more than one datafeed

Hi,
I have tried to get a strategy with 2 data feeds working. eg. hourly and daily.
However even after both feeds have live data the strategy next() function is not called.
Is this a bug or does anyone know how to achieve it?

Can you provide a full working example of the issue you are having? Hard to say where the problem is with a short description.

Hi @Dave-Vallance
Thank you for your response. I realized it is pretty straight forward while assembling below working example.
#!/usr/bin/env python3

import backtrader as bt
import datetime as dt
import sys
from ccxtbt import CCXTStore
import time

DEBUG = False
# https://docs.bitfinex.com/reference#rest-auth-new-order
# https://docs.bitfinex.com/reference#rest-auth-order-status
BITFINEX = {
    "broker_config": {
        'apiKey': "xxx",
        'secret': "xxx",
        'nonce': lambda: str(int(time.time() * 1000)),
        'enableRateLimit': True,
        'rateLimit': 15000  # 4 times per minute or less should work
    },
    "broker_mapping": {
        "order_types":
         {
             bt.Order.Market: 'exchange market',
             bt.Order.Limit: 'exchange limit',
             bt.Order.Stop: 'exchange stop',
             bt.Order.StopLimit: 'exchange stop-limit'
        },
        "mappings":	{
                    'closed_order':{
                        'key': 'status',
                        'value':'closed'
                        },
                    'canceled_order':{
                        'key': 'is_cancelled',
                        'value': True
                        }
        }
    }
}

class Strategy(bt.Strategy):

    def __init__(self):
        if len(self.datas) < 2:
            print("Not enough datas %s" % len(self.datas))
        self.order = None
        self.live_data = False

    def notify_data(self, data, status, *args, **kwargs):
        dn = data._name
        t = dt.datetime.now()
        print('{} - {} - Data Status: {}'.format(t, dn, data._getstatusname(status)))
        if data._getstatusname(status) == 'LIVE':
            self.live_data = True
        else:
            self.live_data = False

    def next(self):
        print("strategy next() reached")

        if not self.live_data:
             print("No live data yet in strategy next")
             return

        print("1BTC@%s" % (self.data0[0]))

        if not self.position:
            print("NOP")
        elif self.position:
            print("NOP")

def main():
    cerebro = bt.Cerebro(quicknotify=True, cheat_on_open=True, runonce=False)

    broker_config = BITFINEX.get("broker_config")

   store0 = CCXTStore(
        exchange='bitfinex',
        currency='USD',
        config=broker_config,
        retries=10,
        debug=DEBUG,
    )

    broker_mapping = BITFINEX.get("broker_mapping")

    broker = store0.getbroker(broker_mapping=broker_mapping)
    cerebro.setbroker(broker)

    hist_start_date = dt.datetime.utcnow() - dt.timedelta(minutes=30)

     data0 = store0.getdata(
        dataname='%s/%s' % ('BTC', 'USD'),
        name='%s%s@%s' % ('BTC', 'USD', '1m'),
        timeframe=bt.TimeFrame.Minutes,
        fromdate=hist_start_date,
        compression=1,
        ohlcv_limit=150,
        debug=DEBUG,
        #backfill_start=True
    )

    data1 = store0.getdata(
        dataname='%s/%s' % ('BTC', 'USD'),
        name='%s%s@%s' % ('BTC', 'USD', '5m'),
        timeframe=bt.TimeFrame.Minutes,
        fromdate=hist_start_date,
        compression=5,
        ohlcv_limit=30,
        debug=DEBUG,
        #backfill_start=True
    )

    cerebro.adddata(data0)
    cerebro.adddata(data1)

    cerebro.addstrategy(Strategy)
    #cerebro.addsizer(CryptoSizer, prop=0.01)

    # run it
    result = cerebro.run()

if __name__ == "__main__":
    try:
        main()
    except KeyboardInterrupt:
        time = dt.datetime.now().strftime("%d-%m-%y %H:%M")
        print("Bot finished by user at %s" % time)
    except Exception as err:
        print("Bot finished with error: %s" % err)
        raise

With output:
2020-05-12 10:09:04.470426 - BTCUSD@1m - Data Status: DELAYED
2020-05-12 10:09:04.470648 - BTCUSD@5m - Data Status: DELAYED
strategy next() reached
No live data yet in strategy next
strategy next() reached
No live data yet in strategy next
...
strategy next() reached
No live data yet in strategy next
2020-05-12 10:09:34.690395 - BTCUSD@5m - Data Status: LIVE
strategy next() reached
<EMAIL_ADDRESS>NOP
Note: only the 5m data feed is reported to be live
The not working Strategy I tried earlier started running yesterday with live data after a few days delay. It is on higher time frames. I assume it might have been due to from_date not being aligned with needed period and ohlcv_limit.
Thank you for your work on bt-ccxt-store and sorry for the noise


Fix Minimap Margin and Bounds for Increased Scrollbar Touch Area

This pull request resolves Issue #100186, where the script editor minimap overlaps the vertical scrollbar when "Increase scrollbar touch area" is enabled in the editor settings.
The changes ensure that the minimap adjusts its position dynamically to avoid overlapping with the scrollbar, and the hover, click, and drag functionalities respect the minimap's new position.

Changes Made
Updated the rendering logic to shift the minimap left by the increased scrollbar offset (50px), ensuring proper alignment.
Modified hover, click, and drag detection logic to align with the new minimap position.
Added a new method set_scrollbar_touch_area_enabled in TextEdit to handle the dynamic adjustment of the scrollbar touch area.
The hardcoded offset (50px) matches the touch area size defined in editor_theme_manager.cpp.

Also fixed by https://github.com/godotengine/godot/pull/97301

But, that is a draft and does a lot of other things. cc @WhalesState
This should use the scrollbar's width instead of a hardcoded value.
It should also not need to be dependent on the setting.
For instance, if the user changes the VScrollBar's size using a theme, it should work as well.

Also fixed by Fix most of TextEdit visual issues. #97301

But, that is a draft and does a lot of other things. cc @WhalesState
This should use the scrollbar's width instead of a hardcoded value. It should also not need to be dependent on the setting. For instance, if the user changes the VScrollBar's size using a theme, it should work as well.

I still have issues with the mini map, so it's better to break it down into 2 PRs.


bw_plex watch not working

bw_plex watch seems to start fine, but then does nothing. I guess it should at least show something in the debug log when I start to play something right?
2018-08-30 01:00:59,757 :: bw_plex :: DEBUG :: misc.py:63 :: Getting server Plex-Server
2018-08-30 01:00:59,757 :: bw_plex :: DEBUG :: misc.py:584 :: Getting hashtable
2018-08-30 01:01:02,257 :: bw_plex :: INFO :: misc.py:670 :: Loading existing files in db
2018-08-30 01:01:06,023 :: bw_plex :: DEBUG :: misc.py:599 :: Files in the hashtable
Watching for media on Plex-Server
2018-08-30 01:01:06,023 :: plexapi :: INFO :: alert.py:33 :: Starting AlertListener: wss://<IP_ADDRESS>:32400/:/websockets/notifications?X-Plex-Token=<hidden>

Windows 10 x64
Python 3.7 x64

Hi! Try starting bw_plex with --debug this is disable to reduce spam in the log but since nothing else is listed on the log we need to get more info.

This is a debug log.
Which version should I use?

Try 3.6

Same problem with 3.6, anything else I can try or some other logs I can post?

What the full Vollane you use to start bw_plex?
Try bw_plex process -n showname

Processing seems to work fine. Tested with Friends 1x01 but still nothing triggered when I start playing the episode.

Dunno mate. You need to do bw_plex -d watch. This enabled not just debug logging in bw_plex but also additional logging from package bw_plex uses. (You havnt done this or havnt provided the full log. Warning this will not sanitize the log for you so you need to do this your self)

check what version of websocket-client you have installed. I think your issue is related to that. Im using websocket-client 0.47. try to install that one.

With version 0.47 Im getting a debug log. It seems to skip on the local PMP install. Not getting the intro right, but with the log I can at least try to get it working. Reporting back tomorrow.

Any news about this?


Provide scala 2.11.x packages in maven repository

Reasons you should do this:

It'll be pretty awesome!
I need it (and hopefully a lot of other folks too).

Hey @ankurcha!
Released as 1.0.2 with 2.10 and 2.11 versions!


Validation sample_weights in Graph seems to be same as the target

May be I am missing something, but this piece of code in models.py L648-650 looks odd to me.
if validation_data:
            sample_weight = [standardize_weights(validation_data[name]) for name in self.output_order]
            val_ins = [validation_data[name] for name in self.input_order] + [standardize_y(validation_data[name]) for name in self.output_order] + sample_weight

Why sample_weight and y are reading from the same field of validation data
validation_data[name] for name in self.output_order

They are not the same as the target, they're a all-ones array (i.e. no weights).
There is no way at this time to use sample weights with validation_data, and it isn't clear what the API for that could look like (if you have any suggestion, let us know...). validation_data simply maps input/output names to data arrays. We could settle with a convention such as: "validation_data['{name}_weights'] will contain the weights for output name", but that's pretty ugly.

Apologies for commenting on a closed topic, but could you please comment on the following for it's correctness. In the nutshell, I have two inputs (inp1 and inp2) and one output (label). Does the following call to fit function looks legit and is expected to do what I want i.e. train the model with class_weight defined by wt and validate using X_val_1, X_val_2 and Y_val using unweighted validation loss function.
model.fit({'inp1':X_1,'inp2':X_2,'label':Y_train},batch_size=2, nb_epoch=200, class_weight={'label':wt}, validation_data=({'inp1':X_val_1,'inp2':X_val_2,'label':Y_val}))

Thanks

Yes, as far as I can tell this is correct.

Hi,
So, I just thought of a quick way of integrating validation weights to the current implementation, here is the code snipped based on what you already have in place and this one also has the same dependencies like building training_weights (indentations could be messed up)
if validation_data or validation_split:
            val_f = self._test
        if validation_data:
            if 'class_weight' in validation_data:
                cw = validation_data['class_weight']
            else:
                cw = {}
            if 'sample_weight' in validation_data:
                sw = validation_data['sample_weight']
            else:
                sw = {}
            sample_weight = [standardize_weights(validation_data[name],class_weight=cw[name],sample_weight=sw[name]) for name in self.output_order]
#             sample_weight = [standardize_weights(validation_data[name]) for name in self.output_order]
            val_ins = [validation_data[name] for name in self.input_order] + [standardize_y(validation_data[name]) for name in self.output_order] + sample_weight

And we make a call to fit is like before but with a dictionary inside the dictionary of validation_data
model.fit({'inp1':X_1,'inp2':X_2,'label':Y_train},batch_size=2, nb_epoch=200, class_weight={'label':wt}, validation_data=({'inp1':X_val_1,'inp2':X_val_2,'label':Y_val,'class_weight':{'label':None},'sample_weight':{'label':sampleWeight}}))


I could use some help setting this up (this isnt an issue)

This seems to be the best way to contact you so sorry of this isnt the right place. Im somewhat new to github and im no sure how a completed .deployment_information should look. Can you give me an example  of how it should be?
Also, how do I use this to run a custom server jar on my minehut server (if its possilbe)?
Thanks!

Hey, thanks for using my software.
I personally would not recommend using this in a production server since it does some pretty hacky things to get everything to work however, if you really want to here's how you do it.
Make a .deployment_information file with only this value
jar_name={JAR NAME}

Replace {JAR NAME} with the name of your new jar, place it in your main directory where your other server.jar file is but make sure to rename it and you should be fine.

Hey, thanks so much for the help! Im trying to run a velocity server without buying a server plan. If I didnt want things to be hacky ill just buy a plan instead so im fine with that.
I tried doing what you said and I put in jar_name=server2.jar (do I need quotes?) server2.jar is paper 1.19.4 right now (just to test)
But nothing has changed, and I dont see the plugin in my plugin list. Im using a paper 1.17.1 with bukkit-0.0.1-all.jar istalled. Any tips? (im fine with changing server versoins from 1.17.1 if I need to)

Never mind! I changed the minehut server versoin to 1.19.3 and its working! Velocity is too!
This is great man, good job on somehow doing this. Ill let you know if I have anymore problems.

Im having trouble acually joining my velocity server, I think this error is from the minehut proxy trying to connect me to my velocity server, as it never shows me trying to join on the velocity console. Im not too familar with how proxy to proxy connections work, and this isnt exactly related to this plugin, but do you think you can help me with this?
Thanks!

My apologies for the delayed response.

In velocity set your forwarding mode to MODERN, on your Spigot servers also enable Velocity support.

No problem! Im sure I set up my velocity server correctly as Ive tested it on my own device and everything works. Forwarding is modern and the spigot server is already set up properly. The problem is that when you buy a server plan and choose velocity, minehut will configure it to connect to their servers, but when doing it using this plugin, minehut wont connect to my server. Nothing shows up in console after I join, and I get the same error even when using bugeecoord or waterfall.
I even bought a daily plan, and used velocity officially, and everthing worked. Then, I used this method with the same config and files from the official velocity versoin, but the same problem.
Heres my velocity.tmol: (coverted to .txt)
velocity.toml.txt
This might be a minehut thing that I cannot fix with access to the minehut proxy servers, but I hope there is a way.
Heres my minehut console, copied after trying to join: (nothing new shows up in the spigot backend server when I join)
The minehut version is paper 1.19.3, but running the latest velocity versoin.
Server starting, setting up fifo connections and writing server ready.
Downloading mojang_1.19.3.jar
Applying patches
Starting org.bukkit.craftbukkit.Main
System Info: Java 17 (OpenJDK 64-Bit Server VM 17.0.1+12) Host: Linux 5.15.0-46-generic (amd64)
Loading libraries, please wait...
2023-04-07 20:29:05,994 ServerMain WARN Advanced terminal features are not available in this environment
[20:29:06 ERROR]: [io.papermc.paper.plugin.provider.source.DirectoryProviderSource] Error loading plugin: Directory 'plugins/velocity-0.0.1-all.jar' failed to load!
java.lang.RuntimeException: Directory 'plugins/velocity-0.0.1-all.jar' failed to load!
	at io.papermc.paper.plugin.provider.source.FileProviderSource.registerProviders(FileProviderSource.java:59) ~[paper-1.19.3.jar:git-Paper-431]
	at io.papermc.paper.plugin.provider.source.DirectoryProviderSource.lambda$registerProviders$2(DirectoryProviderSource.java:32) ~[paper-1.19.3.jar:git-Paper-431]
	at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183) ~[?:?]
	at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179) ~[?:?]
	at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) ~[?:?]
	at java.util.Iterator.forEachRemaining(Iterator.java:133) ~[?:?]
	at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1845) ~[?:?]
	at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) ~[?:?]
	at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) ~[?:?]
	at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150) ~[?:?]
	at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173) ~[?:?]
	at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:?]
	at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596) ~[?:?]
	at io.papermc.paper.plugin.provider.source.DirectoryProviderSource.registerProviders(DirectoryProviderSource.java:30) ~[paper-1.19.3.jar:git-Paper-431]
	at io.papermc.paper.plugin.provider.source.DirectoryProviderSource.registerProviders(DirectoryProviderSource.java:14) ~[paper-1.19.3.jar:git-Paper-431]
	at io.papermc.paper.plugin.util.EntrypointUtil.registerProvidersFromSource(EntrypointUtil.java:14) ~[paper-1.19.3.jar:git-Paper-431]
	at io.papermc.paper.plugin.PluginInitializerManager.load(PluginInitializerManager.java:100) ~[paper-1.19.3.jar:git-Paper-431]
	at net.minecraft.server.Main.main(Main.java:114) ~[paper-1.19.3.jar:git-Paper-431]
	at org.bukkit.craftbukkit.Main.main(Main.java:302) ~[paper-1.19.3.jar:git-Paper-431]
	at io.papermc.paperclip.Paperclip.lambda$main$0(Paperclip.java:42) ~[app:?]
	at java.lang.Thread.run(Thread.java:833) ~[?:?]
Caused by: java.lang.IllegalArgumentException: Directory 'plugins/velocity-0.0.1-all.jar' is not a valid plugin file, cannot load a plugin from it!
	at io.papermc.paper.plugin.provider.source.FileProviderSource.registerProviders(FileProviderSource.java:54) ~[paper-1.19.3.jar:git-Paper-431]
	... 20 more
[20:29:09 INFO]: Building unoptimized datafixer
[20:29:11 INFO]: Environment: authHost='https://authserver.mojang.com', accountsHost='https://api.mojang.com', sessionHost='https://sessionserver.mojang.com', servicesHost='https://api.minecraftservices.com', name='PROD'
[20:29:12 INFO]: Loaded 7 recipes
[20:29:13 INFO]: Starting minecraft server version 1.19.3
[20:29:13 INFO]: Loading properties
[20:29:13 INFO]: This server is running Paper version git-Paper-431 (MC: 1.19.3) (Implementing API version 1.19.3-R0.1-SNAPSHOT) (Git: e574412)
[20:29:13 INFO]: Server Ping Player Sample Count: 12
[20:29:13 INFO]: Using 4 threads for Netty based IO
[20:29:13 INFO]: [ChunkTaskScheduler] Chunk system is using 1 I/O threads, 1 worker threads, and gen parallelism of 1 threads
[20:29:13 INFO]: Default game type: SURVIVAL
[20:29:13 INFO]: Generating keypair
[20:29:14 INFO]: Starting Minecraft server on *:25575
[20:29:14 INFO]: Using epoll channel type
[20:29:14 INFO]: Paper: Using libdeflate (Linux x86_64) compression from Velocity.
[20:29:14 INFO]: Paper: Using OpenSSL 1.1.x (Linux x86_64) cipher from Velocity.
[20:29:14 INFO]: [com.minehut.minehutplugin.net.mapper.ProtocolMapper] Found matching server revision v1_19_R2 (V1_19_R2)
WARN StatusConsoleListener Advanced terminal features are not available in this environment
[20:29:16 INFO]: Booting up Velocity 3.2.0-SNAPSHOT (git-6a125bd0-b247)...
[20:29:16 INFO]: Loading localizations...
[20:29:16 INFO]: Connections will use epoll channels, libdeflate (Linux x86_64) compression, OpenSSL 1.1.x (Linux x86_64) ciphers
[20:29:16 INFO]: Loading plugins...
[20:29:16 ERROR]: Unable to load plugin plugins/bukkit-0.0.1-all (1).jar
com.velocitypowered.api.plugin.InvalidPluginException: The plugin file bukkit-0.0.1-all (1).jar appears to be a Bukkit or BungeeCord plugin. Velocity does not support Bukkit or BungeeCord plugins.
	at com.velocitypowered.proxy.plugin.loader.java.JavaPluginLoader.getSerializedPluginInfo(JavaPluginLoader.java:154) ~[server2.jar:3.2.0-SNAPSHOT (git-6a125bd0-b247)]
	at com.velocitypowered.proxy.plugin.loader.java.JavaPluginLoader.loadCandidate(JavaPluginLoader.java:64) ~[server2.jar:3.2.0-SNAPSHOT (git-6a125bd0-b247)]
	at com.velocitypowered.proxy.plugin.VelocityPluginManager.loadPlugins(VelocityPluginManager.java:96) ~[server2.jar:3.2.0-SNAPSHOT (git-6a125bd0-b247)]
	at com.velocitypowered.proxy.VelocityServer.loadPlugins(VelocityServer.java:345) ~[server2.jar:3.2.0-SNAPSHOT (git-6a125bd0-b247)]
	at com.velocitypowered.proxy.VelocityServer.start(VelocityServer.java:227) ~[server2.jar:3.2.0-SNAPSHOT (git-6a125bd0-b247)]
	at com.velocitypowered.proxy.Velocity.main(Velocity.java:69) ~[server2.jar:3.2.0-SNAPSHOT (git-6a125bd0-b247)]
[20:29:16 ERROR]: Unable to load plugin plugins/MinehutCosmetics.jar
com.velocitypowered.api.plugin.InvalidPluginException: The plugin file MinehutCosmetics.jar appears to be a Bukkit or BungeeCord plugin. Velocity does not support Bukkit or BungeeCord plugins.
	at com.velocitypowered.proxy.plugin.loader.java.JavaPluginLoader.getSerializedPluginInfo(JavaPluginLoader.java:154) ~[server2.jar:3.2.0-SNAPSHOT (git-6a125bd0-b247)]
	at com.velocitypowered.proxy.plugin.loader.java.JavaPluginLoader.loadCandidate(JavaPluginLoader.java:64) ~[server2.jar:3.2.0-SNAPSHOT (git-6a125bd0-b247)]
	at com.velocitypowered.proxy.plugin.VelocityPluginManager.loadPlugins(VelocityPluginManager.java:96) ~[server2.jar:3.2.0-SNAPSHOT (git-6a125bd0-b247)]
	at com.velocitypowered.proxy.VelocityServer.loadPlugins(VelocityServer.java:345) ~[server2.jar:3.2.0-SNAPSHOT (git-6a125bd0-b247)]
	at com.velocitypowered.proxy.VelocityServer.start(VelocityServer.java:227) ~[server2.jar:3.2.0-SNAPSHOT (git-6a125bd0-b247)]
	at com.velocitypowered.proxy.Velocity.main(Velocity.java:69) ~[server2.jar:3.2.0-SNAPSHOT (git-6a125bd0-b247)]
[20:29:16 ERROR]: Unable to load plugin plugins/MinehutAnalytics.jar
com.velocitypowered.api.plugin.InvalidPluginException: The plugin file MinehutAnalytics.jar appears to be a Bukkit or BungeeCord plugin. Velocity does not support Bukkit or BungeeCord plugins.
	at com.velocitypowered.proxy.plugin.loader.java.JavaPluginLoader.getSerializedPluginInfo(JavaPluginLoader.java:154) ~[server2.jar:3.2.0-SNAPSHOT (git-6a125bd0-b247)]
	at com.velocitypowered.proxy.plugin.loader.java.JavaPluginLoader.loadCandidate(JavaPluginLoader.java:64) ~[server2.jar:3.2.0-SNAPSHOT (git-6a125bd0-b247)]
	at com.velocitypowered.proxy.plugin.VelocityPluginManager.loadPlugins(VelocityPluginManager.java:96) ~[server2.jar:3.2.0-SNAPSHOT (git-6a125bd0-b247)]
	at com.velocitypowered.proxy.VelocityServer.loadPlugins(VelocityServer.java:345) ~[server2.jar:3.2.0-SNAPSHOT (git-6a125bd0-b247)]
	at com.velocitypowered.proxy.VelocityServer.start(VelocityServer.java:227) ~[server2.jar:3.2.0-SNAPSHOT (git-6a125bd0-b247)]
	at com.velocitypowered.proxy.Velocity.main(Velocity.java:69) ~[server2.jar:3.2.0-SNAPSHOT (git-6a125bd0-b247)]
[20:29:16 INFO]: Deployed from Github.
[20:29:16 INFO]: Loaded plugin mh-deployment-velocity 0.0.1 by Tech
[20:29:16 INFO]: Loaded plugin viaversion 4.6.2 by _MylesC, creeper123123321, Gerrygames, kennytv, Matsv
[20:29:16 INFO]: Loaded 2 plugins
[20:29:17 INFO] [viaversion]: Loading block connection mappings ...
[20:29:17 INFO] [viaversion]: Replacing channel initializers; you can safely ignore the following two warnings.
[20:29:17 WARN]: The server channel initializer has been replaced by java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[20:29:17 WARN]: The backend channel initializer has been replaced by java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[20:29:17 INFO] [viaversion]: ViaVersion detected lowest supported version by the proxy: 1.13 (393)
[20:29:17 INFO] [viaversion]: Highest supported version by the proxy: 1.19.4 (762)
[20:29:17 INFO]: Listening on /[0:0:0:0:0:0:0:0%0]:25575
[20:29:17 INFO]: Done (1.53s)!
[20:29:17 INFO] [viaversion]: Finished mapping loading, shutting down loader executor!

Haha are you trying to use my plugin to turn your server into a velocity server? That's pretty funny.
I believe Minehut does special networking for Velocity since they basically have to do this.
MH Proxy -> Proxy -> Spigot, I'm not too sure how to resolve this issue unfortunately but I don't think my plugin will be able to help you with this.
You should probably just buy the Minehut plan to allow for external servers, it'd be much easier.

Thats unfortunate, but thanks for the help and making this! I will definitely use this for some other server in the future.
Another question, is it possible to keep a free server up 24/7 with this? Or maybe even increase the player limit?

Unfortunately not as that would be breaking Minehut TOS.

Yes I know that would be breaking TOS, but for science I would like to know ;)
Also running a proxy server without a server plan is prob agaisnt it too, hell maybe even using this in the first place isnt allowed.

I didn't intentionally make it impossible but I never implemented such functionality nor do I plan to do such.
Also this plugin does not break Minehut TOS, I've ran it by multiple administrators however, with your use case it may break TOS 🤷♀
You can modify the code however you want though I don't mind.


Fix: Chunk with chunksize=500 for batch API

A followup on this PR. Seems like the batch API has a 500 file_id limit
Description

User Impact

Demo

Docs

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:
Additional details and impacted files

:loudspeaker: Thoughts on this report? Let us know!

Probably yes. Forgot about that, thanks


Allow chaining with_content predicates

I will write something such as
expect(chef_run).to render_file('/etc/foo').with_content('bar')

then I come along later to add another check:
expect(chef_run).to render_file('/etc/foo')
  .with_content('bar')
  .with_content('something else entirely')

It's very surprising to discover that with_content('bar') is ignored.
The choices are to make it an error to chain .with_content together, to emit some warning, or to regard it as valid usage. I rejected a warning as not very useful and an error as aggressively unhelpful. Any tests inadvertently using chained with_content will probably still pass, so we don't want to suddenly break them.

👍 LGTM

@sethvargo any opinion about this? If you don't want to merge it, that's fine, but in that event, we should probably update the documentation to warn about silent ignoring of chained .with_content.

I think the functionality in this would be least surprising to consumers. I know it caught me out a few times initially as I expected each with_content to be processed.


Preferred net/http.Client for storage drivers?

Hi folks, I am wondering if we have a common practice around net/http.Client values in storage drivers. I remember seeing some issues in Azure driver hanging while pushing images and I experienced some of that myself. This cloudflare blog on http client timeouts shows that the default values regarding timeouts/deadlines on the http.DefaultClient are not very good and suitable for public-Internet access.
For the Azure driver, we have a way of swapping out the net/http.Client instance used. Perhaps if we can get an instance from the registry somehow, we could use that? I'd love to see what you folks think about having a common practice for http communications from registry to Internet endpoints.

hi @ahmetalpbalkan
That is an interesting article.
I had a quick look through the codebase:
For the registry itself, we do use ListenAndServe() which looks like it could be a problem.  The registry HTTP client has a 60s timeout (for dial, handshake, request & response) which the docker engine uses.  This represents the majority of registry clients which is why I think we don't see dangling FDs.  @nwt does this sound right?
The notification HTTP client has a configurable timeout.
The swift driver client has a 60s connection timeout and a 15 minute(!) total timeout.
Everything else looks like it defaults to http.DefaultClient
In summary: we are not consistent with out timeouts.  I don't think replacing the client wholesale would work (we would override any previously set settings) in all drivers, but a common set of timeouts that we set makes sense.
Do you have a handle on exactly why the Azure driver is hanging?

Do you have a handle on exactly why the Azure driver is hanging?

not really, it seems to be a sporadic issue. It sometimes even hangs on my Raspberry PI with Azure Python SDK so I bet it might be a backend problem on the Azure side.
However, I think if I ever hit this issue myself or hear someone hitting it, I will customize the http client on the azure driver.
Just wanted to bring this to your attention, I thought it might be good to set a general practice around the external outbound connectivity.

Closing as wildly outdated. Besides, we've moved the existing API client provided by this codebase into internal package and explicitly recommend folks not to use it. The goal of this project is not to provide clients but rather the APIs. Feel free to move this question to GH discussions or Slack.


Streamtape bypass doesn’t work sometimes.

It returns empty links without any direct dl link!
2022-01-26 19:50:44,840 - bot - INFO - https://www.streamtape.com/v/B4bZlGA0geSyzAv/
2022-01-26 19:50:46,011 - root - INFO - Bypass link streamtape.com: https://streamtape.com/get_video?id=
2022-01-26 19:50:46,131 - bot - INFO - Generated link: https://streamtape.com/get_video?id=
2022-01-26 19:50:46,250 - bot - INFO - Started: 0436b60004957515 DIR: /usr/src/app/downloads/47

Try removing '/' from the end of the URL

Didn’t work!

Worked for me at that time


On contributors list, put former employees in their own section, below current employees

Just hid former contributors altogether with https://github.com/StackExchange/blog/commit/a00f451df9150446d4c3356ec58f0f06b249c8f9


Add float, decimal as type

As by default Laravel types in the rules are integer, string, a decimal|float will be a custom type defined by the developer. Therefore, it is hard to judge by the dashboard and display based on non defaults.


feature - get recent from server

Github Issue URL/Tags (required)
What's this PR do? Please give a technical summary (required)

[x] get recent from server

Any references (stackoverflow …) (optional)

:+1: There are no linter violations.


Save volunteer phone number to localStorage/sessionStorage

Summary
On the user flow for delivery volunteers to pick up deliveries, they have to enter their phone number for each request. Since this can be repetitive, it would be nice to save this phone number in the browser and have it autopopulated in the form.
Requirements:

We will also need a way to clear this saved number.
Number should only be stored if it has been successfully submitted once

Do not store number if it is malformed/not valid

Where
View: https://crownheightsma.herokuapp.com/delivery-needed?sms_pickup=true

Click on Claim Delivery
Click on "Yes I accept" button
This is the phone field form:

Considerations

Which makes more sense to use, localStorage or sessionStorage?
Should we have some text explaining that this is only stored on their browser?

Proposed design
Doesn't have to be exact to this rough mock, best to use MaterialUI components (maybe a secondary button?)

@piratefsh
Could you please assign this to me ?

hi @somstrom are you added to the CHMA Slack? if yes, please complete 'Before you start' https://github.com/crownheightsaid/mutual-aid-app/blob/master/DEVELOPING.md#Before-you-start so we can give you permission to pick up issues! if not, you can join the Slack by signing up to be a volunteer and completing an orientation session: https://crownheightsmutualaid.com/volunteer/

@somstrom another contributor has offered to work on this ticket, but we have many other good first issues (https://github.com/crownheightsaid/mutual-aid-app/labels/good first issue) to pick up when you are ready!

hi @ifearcompilererrors how are things going with this ticket? i think the approach of setting the input type you mentioned on Slack will work great for this!


NetResponseWriter status codes are not being carried across multiple continuations.

This PR demonstrates a very hackish fix to the status codes in the NetResponseWriter not being properly reloaded when openField(int) is invoked. I don't expect this is the correct way to fix the issue, but it hopefully highlights a minor bug in GL...

Closed; issues are now fixed in master.


[Task]: Playground integration test: Run a changed example

What needs to happen?
Playground integration test: Run a changed example
Issue Priority
Priority: 3 (nice-to-have improvement)
Issue Components

[ ] Component: Python SDK
[ ] Component: Java SDK
[ ] Component: Go SDK
[ ] Component: Typescript SDK
[ ] Component: IO connector
[ ] Component: Beam examples
[X] Component: Beam playground
[ ] Component: Beam katas
[ ] Component: Website
[ ] Component: Spark Runner
[ ] Component: Flink Runner
[ ] Component: Samza Runner
[ ] Component: Twister2 Runner
[ ] Component: Hazelcast Jet Runner
[ ] Component: Google Cloud Dataflow Runner

.take-issue


Improve readme for set up

I improved README.md, because I had a trouble in set up.

Add "rake db:migrate" after generate migration files.
Prepend $ command line.

Coverage remained the same at 100.0% when pulling f1f1e95692e47bd530f5d34118b240bbfd0652fb on ryu39:feature/improve_readme into b28afcb740cfcbef42f8b522eb6c2f0592e8442d on alfa-jpn:master.

Sorry for very late reply.
Thank you for a good PR!!


docs: add better descriptions and complete documentation pages

Description of the changes
@fsismondi I checked your PR and thought about making some imprvements/suggestions, see what you think about it.

thanks @lentidas , why so many changes outside .md files tho ?

thanks @lentidas , why so many changes outside .md/.adoc files tho ?

The changes on the .tf files are the following:

added or reworded the descriptions attribute of variables and/or outputs, which are then taken into account to generate the automatic part of the documentation;
reordered some variables to follow the same order of other modules;
I also ran a terraform fmt --recursive to format all the files in the end which also modified the locals.tf.


Revert "No more bintray."

Reverts vespa-engine/vespa#17382
Add it back for now as the required athenz artifact is not available on Maven Central

Hold. We're fixing.

Upgrade to athenz 1.10.11 is ready for review, but the reviewer is out getting some 🍕


Setting javac-linter classpath in Ubuntu

How do I set the classpath for javac-linter in Ubuntu? I try to set it to "/usr/bin" but then it says "error writing the file blahblahblah to /usr/bin (Permission denied)."

Hi @bly15
The first classpath is used as destination for .class files
Let me explain:
// settings.json
{
  "javac-linter.classpath": [
    ".", // This path is used as destination of ".class" files
    "/usr/bin" // You can put your classpath here
  ]
}

The classpath array is joined to java -cp ".;/usr/bin" -d "." ...

Thanks for the help, Faustino! I appreciate the great work you're doing on this extension. Cheers!

I simply cannot get this to work, what am I doing wrong?
"Classpath is incomplete. Only syntax errors will be reported" Mac OS X
"javac-linter.classpath": [".", "/usr/bin/"]

@jxsl13 You don't need "/usr/bin" even you don't need ".". You can set whatever path you want.
All is joined down to java -cp "<your paths>" -d <first path used as destination> ...
You can look at javac-linter output panel for more info.

If I'm not mistaken the class path should also contain at least all the basic JDK libraries?

I guess that javac uses JDK libs by default. However if you want you can include your own libs using "javac-linter.classpath": ["bin/classes/MyProject", "<your lib path>"] where "bin/classes/MyProject" is used as destination.


events.yml and other files don't exist

Quests 3.2.5
When I make events and save them they aren't saved and don't show up. I have tried regenerating the config but still doesn't work.
[19:17:38] [Server thread/INFO]: Seff300 issued server command: /quests events
[19:19:01] [Server thread/WARN]: java.io.FileNotFoundException: plugins/Quests/events.yml (No such file or directory)
[19:19:01] [Server thread/WARN]:        at java.io.FileInputStream.open0(Native Method)
[19:19:01] [Server thread/WARN]:        at java.io.FileInputStream.open(FileInputStream.java:195)
[19:19:01] [Server thread/WARN]:        at java.io.FileInputStream.(FileInputStream.java:138)
[19:19:01] [Server thread/WARN]:        at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:128)
[19:19:01] [Server thread/WARN]:        at me.blackvein.quests.EventFactory.saveEvent(EventFactory.java:751)
[19:19:01] [Server thread/WARN]:        at me.blackvein.quests.EventFactory.access$1800(EventFactory.java:57)
[19:19:01] [Server thread/WARN]:        at me.blackvein.quests.EventFactory$FinishPrompt.acceptInput(EventFactory.java:663)
[19:19:01] [Server thread/WARN]:        at org.bukkit.conversations.Conversation.acceptInput(Conversation.java:228)
[19:19:01] [Server thread/WARN]:        at org.bukkit.craftbukkit.v1_12_R1.conversations.ConversationTracker.acceptConversationInput(ConversationTracker.j$
[19:19:01] [Server thread/WARN]:        at org.bukkit.craftbukkit.v1_12_R1.entity.CraftPlayer.acceptConversationInput(CraftPlayer.java:1114)
[19:19:01] [Server thread/WARN]:        at net.minecraft.server.v1_12_R1.PlayerConnection$5.evaluate(PlayerConnection.java:1246)
[19:19:01] [Server thread/WARN]:        at org.bukkit.craftbukkit.v1_12_R1.util.Waitable.run(Waitable.java:24)
[19:19:01] [Server thread/WARN]:        at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:758)
[19:19:01] [Server thread/WARN]:        at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:406)
[19:19:01] [Server thread/WARN]:        at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:679)
[19:19:01] [Server thread/WARN]:        at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:577)
[19:19:01] [Server thread/WARN]:        at java.lang.Thread.run(Thread.java:748)

Are you saying the events.yml is not generated on startup? Or that it's there, but the files empty? What steps did you take to regenerate the file? Please elaborate.

Weird today those files exist.

Odd. Well if you experience further issues, don't hesitate to open a new ticket :)


Inspire: experiment index

Originally by annetteh on 2012-08-05
Currently only the complete name of an experiment, e.g. CERN-LHC-ATLAS, seems to be indexed, but not the parts of the name, e.g. ATLAS, like spires used to do. A search like "fin exp ATLAS" should work.

This still seems to be an issue:
https://inspirehep.net/search?ln=en&ln=en&p=fin+exp+ATLAS&of=hb&action_search=Search&sf=earliestdate&so=d&rm=&rg=25&sc=0
vs
https://inspirehep.net/search?ln=en&ln=en&p=fin+exp+CERN-LHC-ATLAS&of=hb&action_search=Search&sf=earliestdate&so=d&rm=&rg=25&sc=0
We can move this to our internal tasks as it is a matter of configuration, not of Invenio.

Moved to INSPIRE Asana.


Create test for re-exported default value.

I'm talking from this context: https://github.com/rollup/rollup-plugin-commonjs/issues/414#issuecomment-555321255
The way that the library seems to expect to work is that "Carousel" is the default export for index. I don't think this is the way this library would treat the exports from the index.

Please keep your fork around so we can reference this failing test once the plugin is moved to rollup/plugins. We'll be transferring the referenced issue to the new repo.


Installing finn-examples fails on Pynq Z2 (version 2.7)

After managing to rebuild the BNN images for the Pynq Z2 boards I'm having issues with deploying them.
Unfortunatelfy the pip3 install git+https://github.com/Xilinx/finn-examples.git@dev -v command fails with the following error:
arm-linux-gnueabihf-gcc: fatal error: Killed signal terminated program as
    compilation terminated.
    error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1
    ----------------------------------------
    ERROR: Failed building wheel for pandas
  Successfully built pynq cffi numpy
  Failed to build pandas
  ERROR: Could not build wheels for pandas which use PEP 517 and cannot be installed directly

Are there any steps missing in the quickstart section of the README?
Complete log can be found here: https://gist.github.com/developandplay/128bb4974966d83b2a1217d26008ff60

So the real issue is that the installation of finn-examples ignores all previous installed dependencies and reinstalls them.
Of course when I install the dependencies manually I can download the wheels from here and install them quickly.
However the install script from finn-examples discards all of this and tries to reinstall all packages from source which the PYNQ Z2 is simply not powerful enough.
@maltanar So how can I can tell the install script to not forcefully reinstall all the dependencies from source?

The alternative solution would be a way to specify the wheel sources for pandas, numpy and pynq in the finn-examples installer so that if it forcefully reinstalls everything it at least happens quickly.

Ok so I didn't manage to tell the finn-examples installer to not reinstall everything.
But I did manage to tell it to use the precompiled wheels for numpy, pandas and cffi.
The steps I took are the following:

Download numpy-1.23.0-cp38-cp38-linux_armv7l.whl, pandas-1.4.3-cp38-cp38-linux_armv7l.whl and cffi-1.15.0-cp38-cp38-linux_armv7l.whl from here.
Run pip3 install --find-links ??? git+https://github.com/Xilinx/finn-examples.git@dev -v where ??? is the path where you downloaded the whl files to. This will make the installer use your precompiled files instead of trying to build everything.

@maltanar Maybe their is a prettier/automated way to do this...

@developandplay  you are a life saver, thank you.

Ok so I didn't manage to tell the finn-examples installer to not reinstall everything. But I did manage to tell it to use the precompiled wheels for numpy, pandas and cffi. The steps I took are the following:
1. Download `numpy-1.23.0-cp38-cp38-linux_armv7l.whl`, `pandas-1.4.3-cp38-cp38-linux_armv7l.whl` and `cffi-1.15.0-cp38-cp38-linux_armv7l.whl` from [here](https://wheel-index.linuxserver.io/ubuntu/).

2. Run `pip3 install --find-links ??? git+https://github.com/Xilinx/finn-examples.git@dev -v` where `???` is the path where you downloaded the whl files to. This will make the installer use your precompiled files instead of trying to build everything.

@maltanar Maybe their is a prettier/automated way to do this...

I have executed the above 2 steps, but pip3 install is still building all the packages, ignoring the downloaded whl files in the directory indicated by --find-links
here is my command:
root@pynq:~# pip3 install --find-links /root/tmp git+https://github.com/Xilinx/finn-examples.git@dev -v
and here is the directory with whl files:
root@pynq:~/tmp# v
total 62432
-rw-r--r-- 1 root root   360266 Oct 21  2021 cffi-1.15.0-cp38-cp38-linux_armv7l.whl
-rw-r--r-- 1 root root 19660516 Jun 22 23:58 numpy-1.23.0-cp38-cp38-linux_armv7l.whl
-rw-r--r-- 1 root root 43905267 Jun 23 16:33 pandas-1.4.3-cp38-cp38-linux_armv7l.whl
here is the execution of the command:
Collecting wheel
Using cached wheel-0.37.1-py2.py3-none-any.whl (35 kB)
Collecting pynq>=2.5.1
Using cached pynq-2.7.0-cp38-cp38-linux_armv7l.whl
Collecting tomli>=1.0.0
Using cached tomli-2.0.1-py3-none-any.whl (12 kB)
Collecting packaging>=20.0
Using cached packaging-21.3-py3-none-any.whl (40 kB)
Collecting typing-extensions
Using cached typing_extensions-4.3.0-py3-none-any.whl (25 kB)
Collecting cffi
Using cached cffi-1.15.1-cp38-cp38-linux_armv7l.whl
Collecting pandas
Using cached pandas-1.4.4.tar.gz (4.9 MB)
Installing build dependencies: started
Installing build dependencies: still running...
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: still running...
Getting requirements to build wheel: finished with status 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'done'
Collecting numpy
Using cached numpy-1.23.2-cp38-cp38-linux_armv7l.whl
Collecting pyparsing!=3.0.5,>=2.0.2
Using cached pyparsing-3.0.9-py3-none-any.whl (98 kB)
Collecting pycparser
Using cached pycparser-2.21-py2.py3-none-any.whl (118 kB)
Collecting pytz>=2020.1
Using cached pytz-2022.2.1-py2.py3-none-any.whl (500 kB)
Collecting python-dateutil>=2.8.1
Using cached python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
Collecting six>=1.5
Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Building wheels for collected packages: pandas
Building wheel for pandas (pyproject.toml): started
Building wheel for pandas (pyproject.toml): still running...
Building wheel for pandas (pyproject.toml): still running...
Building wheel for pandas (pyproject.toml): still running...
Building wheel for pandas (pyproject.toml): still running...
Building wheel for pandas (pyproject.toml): still running...

On a quick first glance this looks like a permission issue. I think you
might have downloaded the files as a root user instead of the normal user.
pinootto @.***> schrieb am Sa., 3. Sept. 2022, 16:11:

Ok so I didn't manage to tell the finn-examples installer to not reinstall
everything. But I did manage to tell it to use the precompiled wheels for
numpy, pandas and cffi. The steps I took are the following:

Download numpy-1.23.0-cp38-cp38-linux_armv7l.whl, pandas-1.4.3-cp38-cp38-linux_armv7l.whl and cffi-1.15.0-cp38-cp38-linux_armv7l.whl from here.

Run pip3 install --find-links<EMAIL_ADDRESS>-v where ??? is the path where you downloaded the whl files to. This will make the installer use your precompiled files instead of trying to build everything.

@maltanar https://github.com/maltanar Maybe their is a
prettier/automated way to do this...
I have executed the above 2 steps, but pip3 install is still building all
the packages, ignoring the downloaded whl files in the directory indicated
by --find-links
here is my command:
@.:~# pip3 install --find-links /root/tmp git+
@. -v
and here is the directory with whl files:
@.***:~/tmp# v
total 62432
-rw-r--r-- 1 root root 360266 Oct 21 2021
cffi-1.15.0-cp38-cp38-linux_armv7l.whl
-rw-r--r-- 1 root root 19660516 Jun 22 23:58
numpy-1.23.0-cp38-cp38-linux_armv7l.whl
-rw-r--r-- 1 root root 43905267 Jun 23 16:33
pandas-1.4.3-cp38-cp38-linux_armv7l.whl
here is the execution of the command:
Collecting wheel
Using cached wheel-0.37.1-py2.py3-none-any.whl (35 kB)
Collecting pynq>=2.5.1
Using cached pynq-2.7.0-cp38-cp38-linux_armv7l.whl
Collecting tomli>=1.0.0
Using cached tomli-2.0.1-py3-none-any.whl (12 kB)
Collecting packaging>=20.0
Using cached packaging-21.3-py3-none-any.whl (40 kB)
Collecting typing-extensions
Using cached typing_extensions-4.3.0-py3-none-any.whl (25 kB)
Collecting cffi
Using cached cffi-1.15.1-cp38-cp38-linux_armv7l.whl
Collecting pandas
Using cached pandas-1.4.4.tar.gz (4.9 MB)
Installing build dependencies: started
Installing build dependencies: still running...
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: still running...
Getting requirements to build wheel: finished with status 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'done'
Collecting numpy
Using cached numpy-1.23.2-cp38-cp38-linux_armv7l.whl
Collecting pyparsing!=3.0.5,>=2.0.2
Using cached pyparsing-3.0.9-py3-none-any.whl (98 kB)
Collecting pycparser
Using cached pycparser-2.21-py2.py3-none-any.whl (118 kB)
Collecting pytz>=2020.1
Using cached pytz-2022.2.1-py2.py3-none-any.whl (500 kB)
Collecting python-dateutil>=2.8.1
Using cached python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
Collecting six>=1.5
Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Building wheels for collected packages: pandas
Building wheel for pandas (pyproject.toml): started
Building wheel for pandas (pyproject.toml): still running...
Building wheel for pandas (pyproject.toml): still running...
Building wheel for pandas (pyproject.toml): still running...
Building wheel for pandas (pyproject.toml): still running...
Building wheel for pandas (pyproject.toml): still running...
—
Reply to this email directly, view it on GitHub
https://github.com/Xilinx/finn-examples/issues/34#issuecomment-1236127808,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AIJETINUF45RSTZ4S4ZSYBLV4NL7VANCNFSM5ZYET3YA
.
You are receiving this because you were mentioned.Message ID:
@.***>

So this is also happening for my Pynq Z1 board I got recently. Is there any update on this?
I am posting below questions for other folks to read as documentation:
Question:

If I pulled in the Github package, what do we modify so that the setup.py file actually behaves the right way doing an install of just the package and not the dependencies?
If I have to do the workaround method, how do I find the dependency version of the current version of the package? So for numpy, pandas, cffi, what versions are needed for current version (0.5 in here: https://github.com/Xilinx/finn-examples/tags). Also are those the only packages required?

Hi @developandplay, @tuf22191, @pinootto, @AlmogDavid, thank you for your post!
Unfortunately, I have not tested the installation on a Pynq-Z2 board. I'm not sure how many of the above questions are still relevant, but I'll try to give an answer.
You're right indeed, only the source distribution of FINN-examples is available on PyPI. So when you want to install it, you'll end up first building it, for which pip creates an isolated environment to build/install the dependencies. If you want to disable this option (i.e. to disable the isolation), you can pass the flag --no-build-isolation. Note that this would require that you have the dependencies already installed in your environment.
Please give the latest FINN-examples set-up instructions a try and let me know if you still run into the same issues or have any other questions!


This tool now actually exists

Hey dude, sorry for coming up with the same name, but I built what you were probably trying to achieve.
https://loljournal.app/
I found this repo while searching for my own repo with the same name on Github, but I swear I didn't know this already existed :D

Not a problem at all!
As you can see, my last commit was 6 years ago, so my code was probably due for an update anyway ;-)
It's nice to see this idea finally becoming accessible for everyone, so thanks!

Not a problem at all!
As you can see, my last commit was 6 years ago, so my code was probably due for an update anyway ;-)
It's nice to see this idea finally becoming accessible for everyone, so thanks!


tornado IOLoop blocked for 5 seconds

Hey, when running zulip in vagrant for local development, my log spams the following warning:
2020-10-02 09:18:18.504 WARN [tornado.general:9993] IOLoop blocked for 5.000000 seconds in
  File "./manage.py", line 50, in <module>
    execute_from_command_line(sys.argv)
  File "/srv/zulip-py3-venv/lib/python3.6/site-packages/django/core/management/__init__.py", line 381, in execute_from_command_line
    utility.execute()
  File "/srv/zulip-py3-venv/lib/python3.6/site-packages/django/core/management/__init__.py", line 375, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/srv/zulip-py3-venv/lib/python3.6/site-packages/django/core/management/base.py", line 323, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/srv/zulip-py3-venv/lib/python3.6/site-packages/django/core/management/base.py", line 364, in execute
    output = self.handle(*args, **options)
  File "/srv/zulip/zerver/management/commands/runtornado.py", line 124, in handle
    inner_run()
  File "/srv/zulip/zerver/management/commands/runtornado.py", line 120, in inner_run
    instance.start()
  File "/srv/zulip-py3-venv/lib/python3.6/site-packages/tornado/ioloop.py", line 835, in start
    self._run_callback(timeout.callback)
  File "/srv/zulip-py3-venv/lib/python3.6/site-packages/tornado/ioloop.py", line 605, in _run_callback
    ret = callback()
  File "/srv/zulip-py3-venv/lib/python3.6/site-packages/tornado/stack_context.py", line 277, in null_wrapper
    return fn(*args, **kwargs)
  File "/srv/zulip-py3-venv/lib/python3.6/site-packages/tornado/ioloop.py", line 1026, in _run
    return self.callback()
  File "/srv/zulip/zerver/tornado/autoreload.py", line 155, in _reload_on_update
    result = _check_file(modify_times, module, path)
  File "/srv/zulip/zerver/tornado/autoreload.py", line 171, in _check_file
    modified = os.stat(path).st_mtime

specs:
Vagrant 2.2.10
VirtualBox 6.1.14
macOS 10.15.6
Zulip 3.1

Unfortunately I don't have any more information to share since I'm pretty confused by why this warning is firing. Any guidance is appreciated. Thanks.

Sorry for the trouble!  We've seen this exception before mainly on Windows, e.g.
https://chat.zulip.org/#narrow/stream/9-issues/topic/development.20environment.20windows/near/883809
but not recently as far as I recall on macOS.  In any case, usually that error reflects a problem with the host's shared filesystem driver and/or the RAM available on the system breaking the development server's "watch for changes" logic.  One of these is likely to resolve your problem:

Upgrading the versions of dependencies -- I think you're basically at the latest, but I seem to recall macOS.
Try using vagrant up --provider=docker, which uses Docker rather than Virtualbox and might result in a different filesystem driver being used.

Hey @timabbott, just want to confrim that by

Upgrading the versions of dependencies -- I think you're basically at the latest,

you're referring to the python packages in requirements/? If so, I am unfortunately still getting this error in the 3.2 zulip release.

Try using vagrant up --provider=docker

The problem persists :(

No, by dependencies I meant Vagrant/Virtualbox/macOS.

👌
I'll do some extra debugging and update the issue if I ever end up resolving it

Closing, as we haven't seen other reports, and I don't think it's likely anyone will work on this without a clear reproducer.

fyi this just started happening to me... I'll lookout for workarounds or fixes and post...


[Development] - npm run bootstrap fails via node 8.11.3

Following the setup instructions and having some troubles over here 😅From what I can find via google, it could have something to do with a nan version.
Details

Insomnia Version: develop branch
Operating System: MacOS 10.13.5
Node V: 8.11.3 / 10.6.0
Npm V: 5.6.0

lerna ERR! execute Error occured with 'insomnia-app' while running 'npm run postinstall'
{ Error: Command failed: npm run postinstall

An unhandled error occurred inside electron-rebuild
  SOLINK_MODULE(target) Release/.node
  CXX(target) Release/obj.target/fse/fsevents.o
In file included from ../fsevents.cc:6:
In file included from ../../nan/nan.h:190:
../../nan/nan_maybe_43_inl.h:112:15: error: no member named 'ForceSet' in 'v8::Object'
  return obj->ForceSet(isolate->GetCurrentContext(), key, value, attribs);
         ~~~  ^
In file included from ../fsevents.cc:6:
../../nan/nan.h:832:18: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
    return node::MakeCallback(
                 ^
/Users/seanwash/.electron-gyp/.node-gyp/iojs-3.0.0-beta.2/src/node.h:93:1: note: 'MakeCallback' has been explicitly marked deprecated here
NODE_DEPRECATED("Use MakeCallback(..., async_context)",
^
/Users/seanwash/.electron-gyp/.node-gyp/iojs-3.0.0-beta.2/src/core.h:35:20: note: expanded from macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                   ^
In file included from ../fsevents.cc:6:
../../nan/nan.h:847:18: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
    return node::MakeCallback(
                 ^
/Users/seanwash/.electron-gyp/.node-gyp/iojs-3.0.0-beta.2/src/node.h:86:1: note: 'MakeCallback' has been explicitly marked deprecated here
NODE_DEPRECATED("Use MakeCallback(..., async_context)",
^
/Users/seanwash/.electron-gyp/.node-gyp/iojs-3.0.0-beta.2/src/core.h:35:20: note: expanded from macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                   ^
In file included from ../fsevents.cc:6:
../../nan/nan.h:862:18: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
    return node::MakeCallback(
                 ^
/Users/seanwash/.electron-gyp/.node-gyp/iojs-3.0.0-beta.2/src/node.h:79:1: note: 'MakeCallback' has been explicitly marked deprecated here
NODE_DEPRECATED("Use MakeCallback(..., async_context)",
^
/Users/seanwash/.electron-gyp/.node-gyp/iojs-3.0.0-beta.2/src/core.h:35:20: note: expanded from macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                   ^
In file included from ../fsevents.cc:6:
../../nan/nan.h:1471:31: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
    return scope.Escape(node::MakeCallback(
                              ^
/Users/seanwash/.electron-gyp/.node-gyp/iojs-3.0.0-beta.2/src/node.h:93:1: note: 'MakeCallback' has been explicitly marked deprecated here
NODE_DEPRECATED("Use MakeCallback(..., async_context)",
^
/Users/seanwash/.electron-gyp/.node-gyp/iojs-3.0.0-beta.2/src/core.h:35:20: note: expanded from macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                   ^
4 warnings and 1 error generated.
make: *** [Release/obj.target/fse/fsevents.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/Users/seanwash/Sites/insomnia/packages/insomnia-app/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack     at emitTwo (events.js:126:13)
gyp ERR! stack     at ChildProcess.emit (events.js:214:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
gyp ERR! System Darwin 17.6.0
gyp ERR! command "/Users/seanwash/.nvm/versions/node/v8.11.3/bin/node" "/Users/seanwash/Sites/insomnia/packages/insomnia-app/node_modules/.bin/node-gyp" "rebuild" "--target=3.0.0-beta.2" "--arch=x64" "--dist-url=https://atom.io/download/electron" "--build-from-source" "--module_name=fse" "--module_path=/Users/seanwash/Sites/insomnia/packages/insomnia-app/node_modules/fsevents/lib/binding/Release/electron-v3.0-darwin-x64" "--remote_path=./v1.1.3/" "--package_name=fse-v1.1.3-electron-v3.0-darwin-x64.tar.gz" "--host=https://fsevents-binaries.s3-us-west-2.amazonaws.com"
gyp ERR! cwd /Users/seanwash/Sites/insomnia/packages/insomnia-app/node_modules/fsevents
gyp ERR! node -v v8.11.3
gyp ERR! node-gyp -v v3.7.0
gyp ERR! not ok

Failed with exit code: 1

Ah ya, sorry. The develop branch is completely broken right now. Try checking out 528a8c3b2b8c9eeb368a1087aa74e76ec1d7e931

FYI, currently trying to update to Electron 3.0 (Node 10) and it's not going so well...

@gschier godspeed!
That commit hash does build, but now I'm running into node-pre-gyp not being found on app-start. I'll see if I can't figure it out!

Glad you were able to figure that one out 👍😃


Order Contacts in Direct Messages Group by Last Message Date

In a company i have huge amount of contacts with whom im contacting rarely.
Could you please make by default order of Direct Messages by Last Message date? So whenever i open chat i will see without scrolling who wrote me and people with whom i talked recently.
Could you please also add fuzzy string search for contact names on the right of Direct Messages which will search for contact names and then by message archive.

@drweb86-work you can order the contacts list by Last Message through the UI. These kind of suggestions are more suited for the Rocket.Chat main repository. Make sure to search for similar suggestions before posting it in that repo.


Update package.json for new resin-semver release

This repo is one of the 16 repos identified to use/require a resin-semver version older than 1.4.0. See also:

Trello card
Flowdock thread

@pdcastro Why are we updating this package?

@telphan, thanks for looking into this PR  :)
Why update this package? It's not about this package specifically, but Petros asked me to update packages that make use of resin-semver, to bump the required version to 1.4.0. I found 16 such packages -- see Trello card and Flowdock thread. If this package doesn't need to be updated, just let me know!

I see. thanks for the explanation?

@resin-jenkins retest this please

@resin-jenkins retest this please


[BUG] 2FA code is missing in log

Before submitting a bug report...

[X] This bug wasn't already reported.
(I have checked every bug report on GitHub)

Title

[X] The title is no longer "[BUG] Title" and I edited it with the right error name.

Describe the bug
Running Docker version so I can't push enter and errors. I do get the 2FA notification on my phone but since I don't know the 2-digit code, I don't know which one to select. I see in #66 that the code should be under the Code required line but I don't have that.
Copy and paste your error
2024-05-06 06:07:32,959 [INFO] @hotmail.com
2024-05-06 06:07:33,882 [INFO] Using default request storage
2024-05-06 06:07:33,891 [INFO] Created proxy listening on <IP_ADDRESS>:35815
2024-05-06 06:07:33,891 [INFO] Using undetected_chromedriver
2024-05-06 06:07:34,698 [INFO] patching driver executable /root/.local/share/undetected_chromedriver/undetected_chromedriver
2024-05-06 06:07:35,397 [INFO] Screen size: 2048x1524
2024-05-06 06:07:35,397 [INFO] Device size: 1993x1373
2024-05-06 06:07:35,609 [INFO] [LOGIN] Logging-in...
2024-05-06 06:07:39,260 [INFO] [LOGIN] Entering email...
2024-05-06 06:07:52,833 [ERROR] [LOGIN] 2FA Code required !
2024-05-06 06:07:52,858 [INFO] [LOGIN] Press enter when confirmed on your device...
2024-05-06 06:07:52,865 [WARNING] Error occurred: EOF when reading a line. Retrying... | @hotmail.com
2024-05-06 06:08:02,865 [INFO] @hotmail.com
2024-05-06 06:08:03,908 [INFO] patching driver executable /root/.local/share/undetected_chromedriver/undetected_chromedriver
2024-05-06 06:08:04,356 [INFO] Screen size: 2048x1524
2024-05-06 06:08:04,356 [INFO] Device size: 1993x1373
2024-05-06 06:08:04,463 [INFO] [LOGIN] Logging-in...
2024-05-06 06:08:08,349 [INFO] [LOGIN] Entering email...
2024-05-06 06:08:21,798 [ERROR] [LOGIN] 2FA Code required !
2024-05-06 06:08:21,859 [INFO] [LOGIN] Press enter when confirmed on your device...
2024-05-06 06:08:21,868 [WARNING] Error occurred: EOF when reading a line. Retrying... | @hotmail.com
Screenshots
headless
Value of dashboard variable
headless

I do not maintain the docker version - please look to the maintainer for assistance


 I believe a pointer should do the trick, otherwise, no Go service will be able to pass an identity which is in fact not a service indentity.

On a second thought, there are no other pointers for other structures, this does not right. As @subpop pointed out, there is the "type" field which looks like the definitive fact about the data it carries. If we opt out to do this, I suggest to do pointers everywhere. Which is a big change, however, we have the only chance when doing major version bump.

So how about this?

Thanks I am trying it out now to rule out that RBAC service is confused from the newly added service. After all, even if this does not turn out to be the reason of the failure I am seeing, apps will send less data in the header after this change. I do not think it is too useful to send empty structs around plus they are base64 encoded (33% more data).

And I am happy to report it actually helped. So "unwanted" JSON fields may break existing services which are not yet ready. This solves it plus it also helps to shorten the length of the header. I guess this is a success.


Issue with Firefox 43.0.2 - Webdriver session creation throws error

Suddenly protractor stopped working with my Firefox yesterday, 23-Dec-2015. When I debugged I realized my firefox was automatically upgraded to the latest patch on 22-Dec-2015. This was Firefox 43.0.2. I tested it on my Windows env and I was able to reproduce the issue. Can you have a look and advise how we can by-pass this issue or any other workaround?
protractor/node_modules/selenium-webdriver/lib/atoms/error.js:113
  var template = new Error(this.message);
                 ^
UnknownError: Unable to connect to host <IP_ADDRESS> on port 7055 after 45000 ms. Firefox console output:
54912807	addons.xpi	INFO	Mapping<EMAIL_ADDRESS>to<EMAIL_ADDRESS>1450954912807	addons.xpi	DEBUG	Ignoring file entry whose name is not a valid add-on ID: /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/anonymous8340823167559538204webdriver-profile/extensions/webdriver-staging
1450954912807	addons.xpi	INFO	SystemAddonInstallLocation directory is missing
1450954912807	addons.xpi	INFO	Mapping {972ce4c6-7e08-4474-a285-3208198ce6fd} to /Applications/Firefox.app/Contents/Resources/browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}
1450954912808	addons.xpi	DEBUG	Skipping unavailable install location app-system-share
1450954912808	addons.xpi	DEBUG	checkForChanges
1450954912809	addons.xpi	DEBUG	Loaded add-on state from prefs: {"app-profile":{"fxdriver@googlecode.com":{"d":"/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/anonymous8340823167559538204webdriver-profile/extensions/fxdriver@googlecode.com","e":false,"v":"2.45.0","st":1450954906000,"mt":1450954906000}},"app-global":{"{972ce4c6-7e08-4474-a285-3208198ce6fd}":{"d":"/Applications/Firefox.app/Contents/Resources/browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}","e":true,"v":"43.0.2","st":1450876866000,"mt":1450876860000}}}
1450954912809	addons.xpi	DEBUG	Existing add-on<EMAIL_ADDRESS>in app-profile
1450954912810	addons.xpi	DEBUG	getModTime: Recursive scan of {972ce4c6-7e08-4474-a285-3208198ce6fd}
1450954912810	addons.xpi	DEBUG	Existing add-on {972ce4c6-7e08-4474-a285-3208198ce6fd} in app-global
1450954912810	addons.xpi	DEBUG	getInstallState changed: false, state: {"app-profile":{"fxdriver@googlecode.com":{"d":"/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/anonymous8340823167559538204webdriver-profile/extensions/fxdriver@googlecode.com","e":false,"v":"2.45.0","st":1450954906000,"mt":1450954906000}},"app-global":{"{972ce4c6-7e08-4474-a285-3208198ce6fd}":{"d":"/Applications/Firefox.app/Contents/Resources/browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}","e":true,"v":"43.0.2","st":1450876866000,"mt":1450876860000}}}
1450954912811	addons.xpi	DEBUG	No changes found
1450954912816	addons.manager	DEBUG	Registering shutdown blocker for XPIProvider
1450954912816	addons.manager	DEBUG	Provider finished startup: XPIProvider
1450954912817	addons.manager	DEBUG	Starting provider: LightweightThemeManager
1450954912817	addons.manager	DEBUG	Registering shutdown blocker for LightweightThemeManager
1450954912817	addons.manager	DEBUG	Provider finished startup: LightweightThemeManager
1450954912817	addons.manager	DEBUG	Starting provider: GMPProvider
1450954912820	addons.manager	DEBUG	Registering shutdown blocker for GMPProvider
1450954912820	addons.manager	DEBUG	Provider finished startup: GMPProvider
1450954912820	addons.manager	DEBUG	Starting provider: PluginProvider
1450954912820	addons.manager	DEBUG	Registering shutdown blocker for PluginProvider
1450954912821	addons.manager	DEBUG	Provider finished startup: PluginProvider
1450954912821	addons.manager	DEBUG	Completed startup sequence
1450954912849	addons.xpi-utils	DEBUG	Starting async load of XPI database /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/anonymous8340823167559538204webdriver-profile/extensions.json
*** Blocklist::_loadBlocklistFromFile: blocklist is disabled
1450954912955	addons.manager	DEBUG	Starting provider: <unnamed-provider>
1450954912955	addons.manager	DEBUG	Registering shutdown blocker for <unnamed-provider>
1450954912955	addons.manager	DEBUG	Provider finished startup: <unnamed-provider>
1450954913061	addons.xpi-utils	DEBUG	Async JSON file read took 0 MS
1450954913061	addons.xpi-utils	DEBUG	Finished async read of XPI database, parsing...
1450954913062	addons.xpi-utils	DEBUG	Successfully read XPI database
1450954913118	addons.manager	DEBUG	Starting provider: PreviousExperimentProvider
1450954913118	addons.manager	DEBUG	Registering shutdown blocker for PreviousExperimentProvider
1450954913118	addons.manager	DEBUG	Provider finished startup: PreviousExperimentProvider

I need more information.  Did you run webdriver-manager update?  What's your config file look like?

Yes. webdriver-manager update was run. Below is my protractor config:
exports.config = {
allScriptsTimeout: 11000,
specs: [
'*.js'
],
multiCapabilities: [{
'browserName': 'firefox'
}, {
'browserName': 'chrome'
}],
baseUrl: 'http://xxx',
framework: 'jasmine',
jasmineNodeOpts: {
defaultTimeoutInterval: 30000
}
};

Had the same problem with Firefox 43.0 and standalone selenium server 2.45.0. Upgraded to selenium server 2.48.2 and it works again

Thanks that helped. I had upgraded to 2.48.2 but because I didnt update the protractor config, it had rolled back to 2.45. Its now working. However with Safari I still have issues. I get the below message on browser.


Making sure invalid action argument types generate clear error message

Action argument can't be pointers, arrays or non-const references. We support only values, const lvalue references, and rvalue references.

LGTM


Process.spawn ruby 1.9 only?

Hiya,
Looks like the spawn method used to 'spawn' the CURLBIN is a 1.9 feature. Any chance to make it backwards compatible with 1.8? Looks like everything else works under 1.8 apparently.
Thanks!

Can you try using the spawn-for-legacy gem? If that works I'll make it a dependency for Ruby 1.8.

sounds good idea ;)

sounds good idea ;)


chore: added route listener on non-trackable URLs

Added route listener using NavigationSaga for non-trackable urls to track and send usage pulse.

PR fixes following issue(s)
Fixes #24892

Media

A video or a GIF is preferred. when using Loom, don’t embed because it looks like it’s a GIF. instead, just link to the video

Type of change

Please delete options that are not relevant.

Bug fix (non-breaking change which fixes an issue)
New feature (non-breaking change which adds functionality)
Breaking change (fix or feature that would cause existing functionality to not work as expected)
Chore (housekeeping or task changes that don't impact user perception)
This change requires a documentation update

Testing

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Also list any relevant details for your test configuration.
Delete anything that is not relevant

[x] Manual
[ ] Jest
[ ] Cypress

Test Plan

Add Testsmith test cases links that relate to this PR

Issues raised during DP testing

Link issues raised during DP testing for better visiblity and tracking (copy link from comments dropped on this PR)

Checklist:
Dev activity

[ ] My code follows the style guidelines of this project
[ ] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[ ] PR is being merged under a feature flag

QA activity:

[ ] Speedbreak features have been covered
[ ] Test plan covers all impacted features and areas of interest
[ ] Test plan has been peer reviewed by project stakeholders and other QA members
[ ] Manually tested functionality on DP
[ ] We had an implementation alignment call with stakeholders post QA Round 2
[ ] Cypress test cases have been added and approved by SDET/manual QA
[ ] Added Test Plan Approved label after Cypress tests were reviewed
[ ] Added Test Plan Approved label after JUnit tests were reviewed

/ok-to-test

/build-deploy-preview recreate=true

/ok-to-test

/ok-to-test

/ok-to-test

@sbalaji1192 - QA verified on https://github.com/appsmithorg/appsmith-ee/pull/1966#issuecomment-1664961205
Please check.

@RakshaKShetty - Back Button and Usage Pulse QA for CE was also done, right? Please confirm.

@ankitsrivas14 yes its done from my side

After discussing with @sbalaji1192 and @dipyamanbiswas07 regarding this ticket. We have decided to merge this PR as it will fix https://github.com/appsmithorg/appsmith/issues/24892 and the Usage pulse would remain as it is (QA verified).
We have created https://github.com/appsmithorg/appsmith/issues/25617 ticket to look into history.listen as per the bandwidth.

@ankitsrivas14 Can you please remove the dead code before merging the pr?

I've removed the dead code and updated the logic to send pulse only when

App mounted on a trackable URL
Route changes from non-trackable URL to trackable URL

Please check @dipyamanbiswas07 and @sbalaji1192

/ok-to-test

/build-deploy-preview recreate=true

@ankitsrivas14 this looks good


Prevent stale pages by refreshing on sw update

I often re-visit the page and have to refresh to see the updated content. We should listen to the controllerchange event in the page and refresh if applicable (aka page just loaded).

In #162

Merged, lets see if Chrome crashes all the time :boom:


Allowing setting a theme for sim (& palette) from tutorial md

Allow setting a theme in tutorial / pxt.json, and send that to the sim: https://arcade.makecode.com/app/777ae82cacd76f735a2b99ee0ee53328ed69906c-7731d4169b
w/ tutorial loading bubblegum theme:
https://arcade.makecode.com/app/777ae82cacd76f735a2b99ee0ee53328ed69906c-7731d4169b#tutorial:44182-86552-65080-62109
loading normal project w/ theme set:
https://arcade.makecode.com/app/777ae82cacd76f735a2b99ee0ee53328ed69906c-7731d4169b#pub:_gmeV5DWmEfKf
re: https://github.com/microsoft/pxt-arcade/issues/5819, I took a look around and this should be very simple to implement, but I didn't attach anything for that in this pr / I'll take a look again for next release -- the code is easy but the ux flow / user testing will take a bit and we can't fit that in for a hotfix. I'll find some time to put in the 'glue' for it so we can put something in beta, but before release there would be lots of things to consider, e.g. ;

making sure user understands when a skin is unlocked
making sure user understands difference between it being unlocked & being used (e.g. a skillmap might want to use a skin while 'in' it and allow the user to unlock it at the end along with a badge)
ui for picking skin unlocked skins -- a dropdown is easy but maybe a preview or something?
how much we care about making sure a user is 'allowed' to share a game with an unlocked skin

clientside just not listing in a dropdown, if they edit into pxt.json manually then it works
ignore field in pxt.json if not unlocked
stripping it from pxt.json when sharing if not unlocked
stripping it in backend when sharing if not unlocked

Similarly, I left off any handling for displaying which user you are playing as in the sim when a user sets there skin & edits a multiplayer project; on the sim side I have it set that explicitly defined skin overrides the player # based one to ignore this for now. Since this is only sneaking in the feature for tutorial authors (and manual-pxt-json-editors) at the moment I'd consider this as a fine 'known future enhancement'.
one last thing, I snuck in a fix for the 'not being able to define user palette' issue from https://github.com/microsoft/pxt-arcade/issues/5804 as it wasn't any extra work / fell into the same object. So this provides a way to apply a theme for a tutorial that you've selected in the asset editor.
https://arcade.makecode.com/app/777ae82cacd76f735a2b99ee0ee53328ed69906c-7731d4169b#tutorial:46259-14675-05160-20703
```simtheme
{
    "theme": "bubblegum",
    "palette": [
        "#000000",
        "#ffffff",
        "#d45362",
        "#e8958b",
        "#cc8945",
        "#f5dc8c",
        "#417d53",
        "#5dd48f",
        "#5162c2",
        "#6cadeb",
        "#b56edd",
        "#8f3f29",
        "#612431",
        "#c0fac2",
        "#24325e",
        "#1b1221"
    ]
}
```

For the last link, is it expected for me to get an "unapproved content" warning:

https://arcade.makecode.com/app/777ae82cacd76f735a2b99ee0ee53328ed69906c-7731d4169b#tutorial:46259-14675-05160-20703

Yes, that is intneded to show up whenever you load a non- builtin, not explicitly approved tutorial


[2.5pt] Create Login and registration page - Group Task

Install Devise gem
Create the User model using device and add the extra column: name to the model following the ER Diagram requirements.
Add the functionality of the Registration page, including the possibility of confirming the account with a verification email.
Add the functionality of the Login page including the possibility of recovering the password.
Install CanCanCan
Create the models and migrations for Food, Recipe, and RecipeFood
Customize the layout by adding CSS styles

Hi @Luffytaro22 Can you review this PR: https://github.com/NitBravoA92/recipe-app/pull/20 please?


display number of unread messages by folders

Originally created by Antoine Nguyen on 2010-04-27T14:12:36Z
Display the number of unread messages near the folder name.

This issue was moved to modoboa/modoboa-webmail#21


Handle delete events

Whenever a manifest gets deleted, the registry will send a "delete" event to
Portus. In this commit Portus will be able to react to these events
accordingly: remove specified tag if available, and remove the repository if
it's left empty of tags.
Signed-off-by: Miquel Sabaté<EMAIL_ADDRESS>

Note that this PR does not aim to fix:

Activities on removing images/tags.
Delete images/tags on the UI.

Some NITPICKing otherwise :+1:


Content-Type should be application/json

Using an API key with a newline at the end will make SendGrid respond with the error "Content-Type should be application/json".
Since this repo is for the PHP SDK specifically, it might not be the best place for it, but since I've used this package I thought I post the issue here.
This is strictly speaking a user-error, but I think SendGrid should give a better error, saying that the it is the API key that's wrong.
Maybe it could just trim whitespaces?
I'm no security expert, so not sure about that.
For more background, this happened to me because I was saving the key as base64 encoded string in an env var for later use (using k8s secrets), and the command I used was:
echo 'myapikey' | base64

:point_up: What I missed here is that "echo" will add a newline at the end by default, so the correct way to do this is:
echo -n 'myapikey' | base64

Even if this is not fixed I hope that I help someone in the future googling, because it took me a while to finally find this by accident:
http://jlsegurosystem.com.br/vendor/sendgrid/sendgrid/TROUBLESHOOTING.md

Thank you for reporting this @ZeeCoder!
This issue has been added to our internal backlog to be prioritized. Pull requests and +1s on the issue summary will help it move up the backlog.
With best regards,
Elmer


Joy's Kuda bank app user guide

Please take a look at my pull request. @owans

Hi @Roxie-32, please take a look.


SPARKC-72 more spark sql predicate pushdown and tests

Reviewed, could you take a look at my new comments @alexliu68 ?

@jacek-lewandowski  update code as reviewing.

+1

Please update CHANGES files


Add support for Inno-Maker USB2CAN

I have an inno-maker USB2CAN that has an open source driver here https://github.com/INNO-MAKER/usb2can
This adapter has a native Linux driver (Socket CAN) but it would be fairly trivial to add support for Windows, which would be convenient given the adapter's low cost. Can maybe also add MacOS but I do not have a Mac to test on, so we would need someone to help test that if we add it.

Oeh nice, I see you already started on this. I just got myself this little guy.

Hmm, I can take over the development of this if you like? I have some extra free time this weekend and I'm curious to see this thing in action.

Sure, I'd appreciate it


Weird behaviour about notary

I have three hosts,
host1 with ENV TRUST:
$ export DOCKER_CONTENT_TRUST=1
$ export DOCKER_CONTENT_TRUST_SERVER=https://notaryserver:4443

$ docker tag ubuntu notary-registry:5000/testimage:latest
$ docker push  notary-registry:5000/testimage:latest

host2 without EVN TRUST:
$ docker tag busybox notary-registry:5000/testimage:latest
$ docker push  notary-registry:5000/testimage:latest

host3 with ENV TRUST:
$ export DOCKER_CONTENT_TRUST=1
$ export DOCKER_CONTENT_TRUST_SERVER=https://notaryserver:4443

$ docker pull  notary-registry:5000/testimage:latest

It is the image from host1, shouldn't it from host2 since host2 do the push things after the host1 with the same tag notary-registry:5000/testimage:latest?
And then I do another test,
host3 without ENV TRUST:
$ unset DOCKER_CONTENT_TRUST
$ unset export DOCKER_CONTENT_TRUST_SERVER

$ docker pull  notary-registry:5000/testimage:latest

It is the image from host2.
Is this intended or a bug?

This is intended behavior.
In the case of host1, when you pushed, it should have asked you to sign the image you pushed (and/or maybe create a root key/targets key, and asked you for passwords for them), right?  The output should have ended with Signing and pushing trust metadata?
Since that image is signed, you can pull that image on any client with DOCKER_CONTENT_TRUST enabled.  Setting DOCKER_CONTENT_TRUST in host3 means that it will only pull signed images (the push from host 2 was not signed, but the push from host 1 was, so it pulled host 1's) of the right tag.
On host 3 without DOCKER_CONTENT_TRUST it just pulls the latest image, with or without signing, so it pulled host 2's image.
https://docs.docker.com/security/trust/content_trust/#survey-of-typical-content-trust-operations might clarify how the individual operations work.  :)

Thanks @cyli , this helps me a lot .


Constants.platform.ios.model has been deprecated

Seeing this warning on startup:
Constants.platform.ios.model has been deprecated in favor of expo-device's Device.modelName property. This API will be removed in SDK 45.
at node_modules/expo-constants/build/Constants.js:145:28 in Object.defineProperty$argument_2.get
at node_modules/expo-asset/node_modules/expo-constants/build/Constants.js:141:54 in <global>
at node_modules/metro-runtime/src/polyfills/require.js:339:11 in loadModuleImplementation
at node_modules/expo-asset/build/PlatformUtils.js:2:0 in <global>
at node_modules/metro-runtime/src/polyfills/require.js:339:11 in loadModuleImplementation
at node_modules/expo-asset/build/AssetSources.js:6:0 in <global>
at node_modules/metro-runtime/src/polyfills/require.js:339:11 in loadModuleImplementation
at node_modules/expo-asset/build/Asset.js:3:0 in <global>
at node_modules/metro-runtime/src/polyfills/require.js:339:11 in loadModuleImplementation
at node_modules/expo-asset/build/Asset.fx.js:1:0 in <global>
at node_modules/metro-runtime/src/polyfills/require.js:339:11 in loadModuleImplementation
at node_modules/expo-asset/build/index.js:1:0 in <global>
at node_modules/metro-runtime/src/polyfills/require.js:339:11 in loadModuleImplementation
at node_modules/expo/build/Expo.fx.js:6:0 in <global>
at node_modules/metro-runtime/src/polyfills/require.js:339:11 in loadModuleImplementation
at node_modules/expo/build/launch/registerRootComponent.js:1:0 in <global>
at node_modules/metro-runtime/src/polyfills/require.js:339:11 in loadModuleImplementation
at node_modules/expo/AppEntry.js:1:0 in <global>
at node_modules/metro-runtime/src/polyfills/require.js:339:11 in loadModuleImplementation
at node_modules/metro-runtime/src/polyfills/require.js:200:44 in guardedLoadModule
at http://<IP_ADDRESS>:19000/node_modules/expo/AppEntry.bundle?platform=ios&dev=true&hot=false&strict=false&minify=false:null in global code

expo doctor finds no issues with our dependencies, unclear what is causing this

this got fixed when we updated Expo/RN


i constantly get the "source/WebmHandler.hx:14: characters 16-22 : Type not found : WebmIo" error

Please check for duplicates, similar issues or closed issues with the same problem, as well performing simple troubleshooting steps (such as deleting the export folder if it's an issue with compiling, reinstalling Kade Engine) before submitting an issue.
If you are playing a downloaded version of the game, what operating system are you using?
Windows (x86), Windows (x86_64), Linux, or macOS? Specify below.
What version of the game are you using? Look in the bottom left corner of the main menu.
Have you identified any steps to reproduce the bug? If so, please describe them below. Use images if possible.
Please describe your issue. Provide extensive detail and images if possible.
i downloaded everything and followed literally every set of instruction i could find but it keeps giving me the same error (ಥ _ ಥ)

o ya im using kade engine 1.5.4 ( the latest release) in 64 bit windows.

i changed a line of code
gonna see if it works

wait ignore the whole error thing i spent 2 hours on a problem that was caused by my own ignorance  (✿◠‿◠) (i had originally changed a source code and just fixed that  ¯_( ͡° ͜ʖ ͡°)_/¯)


Add new throttler pkg forked from nozzle/throttler

What type of PR is this?
/kind feature
What this PR does / why we need it:
This commit imports a fork of the nozzle/throttler package.
As discussed in https://github.com/kubernetes-sigs/release-utils/pull/107, this package is used in the release engineering tooling but has not had new commits in over six years so the release engineering team chose to adopt it to keep maintaining it.
Which issue(s) this PR fixes:
Follow-up to #107
Special notes for your reviewer:
I've imported the full commit history and added notices crediting the original package source and origin.
I also fixed the linter and updated the tests a little bit but they still need some improvement.
/cc @saschagrunert @xmudrii
Does this PR introduce a user-facing change?
- release-utils now has a new throttle package forked from nozzle/throttle

Not a big deal that you forked it, just surprising that you didn't file an issue first. There hasn't been a compelling reason for us to make any changes, so it wasn't unmaintained or abandoned, just considered complete, barring issue reports.

Hey @derekperkins thanks for chiming in!
I'm sorry, in the rush to get another feature in we didn't think this through.  We should have filed an issue especially since we've been using the module for years, I'm happy to revert and we can contribute any patches back to you in the future. Apologies!

OK, opened https://github.com/kubernetes-sigs/release-utils/pull/111 to revert the fork!

No worries, really not a big deal either way. If anything, it was an ego booster that it was important enough to fork :)
I saw a few tweaked commits in this PR too that we're happy to pull in upstream, along with any other feedback you have.


[Card] React: Prod QA testing of change to add tags to the bottom of the card component

User Story

As a [user role below]:
developer using the ibm.com Library Card

I need to:
have a version of the pattern or component that has been tested for accessibility compliance as well as on multiple browsers and platforms

so that I can:
be confident that my ibm.com web site users will have a good experience

Additional information

Browser Stack link
Browser Standard
Browser versions to be tested:  Tier 1 browsers will be tested with defects created as Sev 1 or Sev 2.  Tier 2 browser defects will be created as Sev 3 defects.
Platforms to be tested, by priority:  1)  Desktop  2)  Mobile
Mobile iOS versions: 13.1, 13.3 and 14
Mobile Android versions: 9.0 and 10
Browsers to be tested:  Desktop: Chrome, Firefox, Safari, Edge, Mobile: Chrome, Safari, Samsung Internet, UC Browser, QQ Browser
Accessibility testing guidance
Accessibility Checklist
Creating a QA bug
See the Epic (#7281 ) for the Design and Functional specs information
Final Designs Box folder link:  https://ibm.ent.box.com/folder/95514001950?s=hgvu48r1fv2ga2h0yn3qshrtxjc71vch
React Dev issue (#7295 )
Once development is finished the updated code is available on the 1) WC Wrapper test env URL or the React canary environment for testing.

Acceptance criteria

[ ] Accessibility testing is complete.  Component is compliant.
[ ] All browser versions are tested
[ ] All operating systems are tested
[ ] All devices are tested
[ ] Defects are recorded

@Praveen-sr This component is ready to be tested.
cc:  @ariellalgilmore @IgnacioBecerra

The component  can be tested here in the react wrapper storybook: https://ibmdotcom-web-components-react.mybluemix.net/?path=/story/components-card--default

Prod QA testing is finished.  Closing


☂ Support api 34 Umbrella Issue

Description
This issue tracks the work to support API 34.
Following the guidance here https://docs.google.com/document/d/1q9L2-0bXSJpeBwgcNcYIN9X5B6cyP13p6EFSH0JBdgQ/edit
Tracking Issues

[ ] flutter/flutter/issues/132136

Roboletric updates are blocked on https://github.com/robolectric/robolectric/issues/8404

FYI, to have in_app_purhcase_android support API 34, we will need to do the following: https://github.com/flutter/flutter/issues/133331

Note from android triage: Related https://github.com/flutter/flutter/issues/129471

Making a comment to note that I'm requesting CIPD access to upload the new android version to CIPD, so we can update the engine to build against it.

Looks like some packages require 34 API but flutter not set it by default and we need to hard code it manually. Hope reverted will be re-reverted soon.
FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:checkReleaseAarMetadata'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction
   > 2 issues were found when checking AAR metadata:

       1.  Dependency 'androidx.webkit:webkit:1.8.0' requires libraries and applications that
           depend on it to compile against version 34 or later of the
           Android APIs.

           :app is currently compiled against android-33.

           Recommended action: Update this project to use a newer compileSdk
           of at least 34, for example 34.

           Note that updating a library or application's compileSdk (which
           allows newer APIs to be used) can be done separately from updating
           targetSdk (which opts the app in to new runtime behavior) and
           minSdk (which determines which devices the app can be installed
           on).

       2.  Dependency 'androidx.browser:browser:1.6.0' requires libraries and applications that
           depend on it to compile against version 34 or later of the
           Android APIs.

           :app is currently compiled against android-33.

           Recommended action: Update this project to use a newer compileSdk
           of at least 34, for example 34.

           Note that updating a library or application's compileSdk (which
           allows newer APIs to be used) can be done separately from updating
           targetSdk (which opts the app in to new runtime behavior) and
           minSdk (which determines which devices the app can be installed
           on).

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.

@reidbaker
flutter doctor -v
[✓] Flutter (Channel stable, 3.16.5, on macOS 13.3.1 22E261 darwin-arm64, locale
    en-RU)
    • Flutter version 3.16.5 on channel stable at /Users/iam/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 78666c8dc5 (3 weeks ago), 2023-12-19 16:14:14 -0800
    • Engine revision 3f3e560236
    • Dart version 3.2.3
    • DevTools version 2.28.4

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/iam/Library/Android/sdk
    • Platform android-34, build-tools 34.0.0
    • Java binary at: /Applications/Android
      Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      17.0.7+0-17.0.7b1000.6-10550314)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.3.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14E300c
    • CocoaPods version 1.14.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2023.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build
      17.0.7+0-17.0.7b1000.6-10550314)

[✓] IntelliJ IDEA Community Edition (version 2022.1.3)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart

[✓] VS Code (version 1.85.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.80.0

[✓] Connected device (3 available)
    • sdk gphone64 arm64 (mobile) • emulator-5554 • android-arm64  • Android 13
      (API 33) (emulator)
    • macOS (desktop)             • macos         • darwin-arm64   • macOS
      13.3.1 22E261 darwin-arm64
    • Chrome (web)                • chrome        • web-javascript • Google
      Chrome 120.0.6099.129

[✓] Network resources
    • All expected network resources are available.

• No issues found!

@pumano Out of curiosity, what package requires it? Going to try bumping the compileSdk version for most packages in https://github.com/flutter/packages/pull/5783.

Hi @camsim99 i'm not sure about the others, but I have the same problem with this package.
https://pub.dev/packages/flutter_inappwebview

@Cantasura I use that package too


bug: risedev build in release mode compile error

Describe the bug
#5725 refactored feature static-link and static-log-level, then add a compile error if risingwave_cmd or risingwave_cmd_all is not compiled with these two features. But ./risedev d in release mode won't enable these features and will raise a compile error.
To Reproduce
No response
Expected behavior
As https://github.com/risingwavelabs/risingwave/pull/5725#issuecomment-1275533694 said, debug logs are too verbose in release mode even when developing. So static-log-level is needed but static-link isn't.
So, in total,
release when developing: static-log-level,
release for AWS: static-link + static-log-level.
Additional context
No response

/cc @BugenZhao @skyzh

Should we turn off compile_error! or add a new feature to skip the check that only enabled when building with risedev? 🥲

Users should install all required packages when compiling in release mode. Everything is expected to be statically-linked.

I'd prefer using static-link for all release builds 🤣

Users should install all required packages when compiling in release mode?

Not sure of his scenario. Cloud you please describe your needs and could you statically link the needed lib? @StrikeW  🤔

Or let's turn off compile_error. I feel it's okay to do so.

I don't understand. Release build shouldn't have such kinds of verbose log, don't you think so? I didn't add new lib yet.

I agree with that. I'm talking about if static-link should be enabled in release mode for developing.

Any updates? @MrCroxx

This should be fixed already.


Error while loading plugin on Linux

Error detected when processing function <SNR>71_showMarks[4]..<SNR>71_getMarks:
line    1:
E117: Unknown function: getmarklist
line    2:
E121: Undefined variable: marks
E116: Invalid arguements for function filter(marks, 'v:val.mark[1] =~# s:enabled_marks')
line    4:
E121: Undefined variable: marks

They appeared when I installed the plugin on Linux for the first time and also when loading a file, both in terminal and GVim.
Not sure if it also happens on other platforms, I can check it if you want.

They appeared too when I installed the plugin on Linux for the first time.
Will try using a previous version for now.

please update version and check it

That error is fixed!
When I try to update all plugins, it still shows some error from showmarks, but that doesn't prevent the update from working, so no big deal.
Thanks!


Add in Some Resources

Added in some resources I've made on recommendation from @nickmessing, https://github.com/sdras/intro-to-vue/issues/2. I've made a few examples and a guide as well, let me know if you'd like me to trim down my contribution here.

Finally :+1:


fix: UX improvements and bug fixes to dbrp commands

Closes #20085
As described in #20085, this PR includes the following changes:

Expand DBRP to database and retention policy in the help text, as DBRP won't make sense to a new user

At the same time, we're teaching them that the dbrp command is an abbreviated form

Fix a number of identified bugs

[x] Well-formatted commit messages
[x] Rebased/mergeable
[ ] Tests pass

@docmerlin I'll probably end up pushing my own suggestions to get the release out this morning, could you also review my ideas for how things could be reworded?

@docmerlin I'll probably end up pushing my own suggestions to get the release out this morning, could you also review my ideas for how things could be reworded?

Yes, @danxmoran .


Fix/safe crypto

Uses the crypto/rand package in lieu of math/rand for safer tokens and keys.
Adds a FillBytes helper that fills a byte slice completely without using a buffer and use this in all the places random.Bytes was used. This should improve performance.
Add random.StrongString which generates a cryptographically strong random string in the base64.RawURLEncoding. It is a lot slower than random.String:

BenchmarkString-4         	 3000000	       365 ns/op
BenchmarkStrongString-4   	 1000000	      2206 ns/op

However, it does not need to acquire the lock in the global TTNRandom, which, in the end, might improve performance. I propose we remove String in favor of StrongString altogether.

Coverage remained the same at 74.456% when pulling e71a1548bf1f56c6a62e4b37e7d239956a321009 on fix/safe-crypto into d9392eebf7de5f42f3439e5ba9a7c23d49ef08c7 on develop.

Good one. Especially for generating the nonces and ABP keys, we should not use math/rand.
However, we don't need the (slower) crypto/rand everywhere, so I propose that we split this into two packages with (almost) the same API: random and pseudorandom. Code that does not require crypto (such as generating random IDs for trace messages) can use the faster pseudorandom package, while code that does need crypto (such as generating nonces and keys) uses the random package.

Replaced by #481