ZeroDivisionError: float division by zero

hey Eric. i got this error during pruning , can you suggest me how should i handle it. Thanks
Traceback (most recent call last):
File "vggprune.py", line 128, in
newmodel = vgg(cfg=cfg)
File "/home/ustc/akb/network-slimming/models/vgg.py", line 22, in init
self.feature = self.make_layers(cfg, True)
File "/home/ustc/akb/network-slimming/models/vgg.py", line 39, in make_layers
conv2d = nn.Conv2d(in_channels, v, kernel_size=3, padding=1, bias=False)
File "/home/ustc/anaconda2/lib/python2.7/site-packages/torch/nn/modules/conv.py", line 297, in init
False, _pair(0), groups, bias)
File "/home/ustc/anaconda2/lib/python2.7/site-packages/torch/nn/modules/conv.py", line 38, in init
self.reset_parameters()
File "/home/ustc/anaconda2/lib/python2.7/site-packages/torch/nn/modules/conv.py", line 44, in reset_parameters
stdv = 1. / math.sqrt(n)
ZeroDivisionError: float division by zero

Which prune ratio are you using? This could happen if you set prune ratio to be large where some layers could get zero channels left.

i am using default ratio of 0.7 on cifar10 for vgg19.

Did your train your vgg model with sparsity?

yes i did, and i varied prune ratio but no effect.

So you try prune ratio less than 0.7 and still does not work? Maybe you can train a second vgg model and see if it still does not work.


Created AptanaStudio.gitignore

Reasons for making this change:
Aptana studio Git-ignore was not available
Links to documentation supporting these rule changes:
http://www.aptana.com/support.html
If this is a new template: YES
http://www.aptana.com
Also attaching a sample project directory screenshot:

cc: @defunkt @pjhyett @technoweenie @Caged  @jnewland

Thank you for your work on this gitignore-file...
Just two little hints:
1.: as  Aptana Studio is a Tool/IDE, it's gitignore file should be placed inside the "Global" directory.
2.: Aptana Studio seems to be based on Eclipse. So it might be better to just create a symlink to the Global/Eclipse.gitignore instead of creating a new one.

moved... How to create the symlink? @drothmaler

In OSX/Linux you can easily create one, using ln -s Eclipse.gitignore AptanaStudio.gitignore and doing a regular git add / git commit afterwards. But it seams that you are using Windows, and I have never created one there.
It seems that you can use mklink these days. Try: mklink AptanaStudio.gitignore Eclipse.gitignore (but without any guarantee :-))
You could also try the Link Shell Extension, if you prefer a GUI.

@drothmaler symlinked it using linux...

@drothmaler Shall i have to close this one?

@gautamkrishnar I don't know; I'm not a member of the gitignore team :-)

@drothmaler @gautamkrishnar I'll have a look through this after I return from a holiday next week.


st2 cli commands in "usage" must be in alphabetical order

usage: st2 [-h] [--version] [--url BASE_URL] [--auth-url AUTH_URL]
           [--api-url API_URL] [--stream-url STREAM_URL]
           [--api-version API_VERSION] [--cacert CACERT]
           [--config-file CONFIG_FILE] [--print-config] [--skip-config]
           [--debug]
           {action,action-alias,auth,apikey,execution,key,login,pack,policy,policy-type,rule,run,runner,sensor,trace,trigger,trigger-instance,webhook,whoami,timer,rule-enforcement,role,role-assignment}

Backstory: someone didn't see timer just because they're out of the order.

And tbh, we should make the whole output more user-friendly.
Perhaps something like:

Usage: st2 all the st2 flags

 action {list,get,create}
 action-alias {list,get,create}
 ...

cliff has a default output format which looks something like that and it's a a lot more user-friendly, imo.


Crash use transmutation table Project E

---- Minecraft Crash Report ----
// Ouch. That hurt :(
Time: 3/18/15 7:46 PM
Description: Rendering item
java.lang.ArrayIndexOutOfBoundsException: 15
at mekanism.client.render.item.ItemRenderingHandler.renderItem(ItemRenderingHandler.java:420)
at net.minecraftforge.client.ForgeHooksClient.renderInventoryItem(ForgeHooksClient.java:183)
at net.minecraft.client.renderer.entity.RenderItem.func_82406_b(RenderItem.java:563)
at codechicken.nei.guihook.GuiContainerManager.drawSlotItem(GuiContainerManager.java:488)
at net.minecraft.client.gui.inventory.GuiContainer.func_146977_a(GuiContainer.java:270)
at net.minecraft.client.gui.inventory.GuiContainer.func_73863_a(GuiContainer.java:99)
at moze_intel.projecte.gameObjs.gui.GUITransmute.func_73863_a(GUITransmute.java:49)
at net.minecraft.client.renderer.EntityRenderer.func_78480_b(EntityRenderer.java:1061)
at net.minecraft.client.Minecraft.func_71411_J(Minecraft.java:989)
at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:887)
at net.minecraft.client.main.Main.main(SourceFile:148)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
A detailed walkthrough of the error, its code path and all known details is as follows:
-- Head --
Stacktrace:
at mekanism.client.render.item.ItemRenderingHandler.renderItem(ItemRenderingHandler.java:420)
at net.minecraftforge.client.ForgeHooksClient.renderInventoryItem(ForgeHooksClient.java:183)
-- Item being rendered --
Details:
Item Type: mekanism.common.multipart.ItemPartTransmitter@35450f2
Item Aux: 15
Item NBT: null
Item Foil: false
Stacktrace:
at net.minecraft.client.renderer.entity.RenderItem.func_82406_b(RenderItem.java:563)
at codechicken.nei.guihook.GuiContainerManager.drawSlotItem(GuiContainerManager.java:488)
at net.minecraft.client.gui.inventory.GuiContainer.func_146977_a(GuiContainer.java:270)
at net.minecraft.client.gui.inventory.GuiContainer.func_73863_a(GuiContainer.java:99)
at moze_intel.projecte.gameObjs.gui.GUITransmute.func_73863_a(GUITransmute.java:49)
-- Screen render details --
Details:
Screen name: moze_intel.projecte.gameObjs.gui.GUITransmute
Mouse location: Scaled: (241, 63). Absolute: (725, 683)
Screen size: Scaled: (481, 292). Absolute: (1442, 874). Scale factor of 3
-- Affected level --
Details:
Level name: MpServer
All players: 1 total; [EntityClientPlayerMP['bikers58'/332, l='MpServer', x=773.05, y=58.62, z=1141.22]]
Chunk stats: MultiplayerChunkCache: 625, 625
Level seed: 0
Level generator: ID 04 - BIOMESOP, ver 0. Features enabled: false
Level generator options:
Level spawn location: World: (1150,64,965), Chunk: (at 14,4,5 in 71,60; contains blocks 1136,0,960 to 1151,255,975), Region: (2,1; contains chunks 64,32 to 95,63, blocks 1024,0,512 to 1535,255,1023)
Level time: 7402951 game time, 9356044 day time
Level dimension: 0
Level storage version: 0x00000 - Unknown?
Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false)
Level game mode: Game mode: survival (ID 0). Hardcore: false.
TConstruct Environment: Environment healthy.
Stencil buffer state: Function set: GL30, pool: internal, bits: 8
AE2 Integration: IC2:ON, RotaryCraft:OFF, RC:ON, BC:ON, MJ6:ON, MJ5:ON, RF:ON, RFItem:ON, MFR:ON, DSU:ON, FZ:ON, FMP:ON, RB:OFF, CLApi:OFF, Waila:ON, InvTweaks:ON, NEI:ON, CraftGuide:OFF, Mekanism:ON, ImmibisMicroblocks:OFF, BetterStorage:OFF
Launched Version: 1.7.10
LWJGL: 2.9.1
OpenGL: GeForce GTX 760/PCIe/SSE2 GL version 4.5.0 NVIDIA 347.88, NVIDIA Corporation
GL Caps: Using GL 1.3 multitexturing.
Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported.
Anisotropic filtering is supported and maximum anisotropy is 16.
Shaders are available because OpenGL 2.1 is supported.
Is Modded: Definitely; Client brand changed to 'fml,forge'
Type: Client (map_client.txt)
Resource Packs: [DNSTech16x v6.1.zip]
Current Language: English (US)
Profiler Position: N/A (disabled)
Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Anisotropic Filtering: Off (1)

This is a bug with the transmutation table - somehow it is changing a transmitter's item damage to 15, which is not supported in the transmitter list.

sorry in advance for my English. In fact arisen crash when I type a third letter to find an object in the transmutation table. I do not know if it bit you help.
Thank you in advance


Unable to configure installments for dropin without brands

Describe the bug
Hi, I'm trying to setup the web drop-in, adding card payment method to it.
My idea is to NOT show the supported card icons on the top-right corner of the dropin, and setup default installments with values 1 and 3. I found that, unless I specify the card types, both in the brands array and in the installments config, I'm unable to see the installments dropdown.
Even if I set up some supported cards in the brands array, and the default installments as described in the docs, the dropdown still doesn't show up.
To Reproduce
This works:
const adyenCheckout = new window.AdyenCheckout({       amount: 10000,       locale: this.ctx.store.getters.locale,       environment: this.PAYMENT_ENVIRONMENT,       originKey,       paymentMethodsResponse: parseToAdyenConfig({ paymentModes, storedCards: this.ctx.store.state.user.creditCards || [] }),       showPayButton: false,       paymentMethodsConfiguration: {         card: {           brands: ['visa'],           hasHolderName: true,           holderNameRequired: true,           enableStoreDetails: isLogged,           hideCVC: false,           name: this.ctx.store.state.checkout.labels.cardData,           installmentOptions: { visa: { values: [1, 3] } }         }       },       // Other stuff     })
This doesn't (this is the setup that I need to achieve):
const adyenCheckout = new window.AdyenCheckout({       amount: 10000,       locale: this.ctx.store.getters.locale,       environment: this.PAYMENT_ENVIRONMENT,       originKey,       paymentMethodsResponse: parseToAdyenConfig({ paymentModes, storedCards: this.ctx.store.state.user.creditCards || [] }),       showPayButton: false,       paymentMethodsConfiguration: {         card: {           hasHolderName: true,           holderNameRequired: true,           enableStoreDetails: isLogged,           hideCVC: false,           name: this.ctx.store.state.checkout.labels.cardData,           installmentOptions: { default: { values: [1, 3] } }         }       },       // Other stuff     })
Expected behavior
The installment options appear even if any card is specified in the brands array.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: Linux mint 19
Browser chrome
Version 81.0.4044.9

Additional context

NVM, I just found the solution looking at the source code.
The "default" option, has to be an object named card...

Maybe the docs have to be updated to reflect this, or maybe I'm missing something...


Default parameters create incorrect Function.length

TypeScript Version:  3.4.1

Search Terms: default parameters, function.length
Code
// A *self-contained* demonstration of the problem follows...
// Test this by running `tsc` on the command-line, rather than through another build tool such as Gulp, Webpack, etc.

function foo(bar: string, baz: string = 'default') {}

console.log(foo.length);

Expected behavior:
Length is 1, which aligns with spec behavior.
Actual behavior:
Length is 2. This is because the transformation produces this code:
function foo(bar, baz) {
    if (baz === void 0) { baz = 'baz'; }
}

baz is an explicitly-defined argument with no default, therefore it counts to the total. The way babel handles it is to take the arguments starting from the first default parameter and assign variables based on that:
function foo(bar) {
  const baz = arguments[1] !== void 0 ? arguments[1] : 'baz';
}

This maintains spec compliance.
Playground Link:
Simple playground example
Related Issues:

Isn't this a duplicate of https://github.com/Microsoft/TypeScript/issues/23251. Title is a bit misleading but the issue seems the same.

Ah yes, it appears to be a duplicate of that issue. Closing as such.


[patch] Introduce caching

I wasn't going to make caching default, but since I'm just using a simple == comparison, it doesn't seem to be introducing any meaningful slowdown. The default easy enough to change in the future, in any case.
Closes #169
Description copied from the update to the deepdive:
Caching
By default, all nodes exploit caching. I.e. when they run they save a fresh dictionary of their input values; in all subsequent runs if the dictionary of their current input values matches (==) that last-used dictionary, they skip executing altogether and leverage their existing outputs.
Any changes to the inputs will obviously stop the cache from being retrieved, but for Composite nodes it is also reset if any child nodes are added/removed/replaced.
Note that since we do a simple == on the dictionary of input values, if your workflow non-idempotently passes around mutable data, it's possible you'll wind up in a situation where you get a false cache hit.
Caching behaviour can be defined at the class-level as a default, but can be overridden for individual nodes. Let's take a look:
from pyiron_workflow import Workflow
import random

@Workflow.wrap.as_function_node(use_cache=False)
def Randint(low=0, high=999):
    rand = random.randint(low, high)
    return rand

wf = Workflow("mixed_caching")
wf.use_cache = False  # Turn _off_ caching for the whole workflow!

wf.always_new = Randint()
wf.cached = Randint()
wf.cached.use_cache = True  # Turn _on_ caching for this node

wf()
>>> {'always_new__rand': 598, 'cached__rand': 307}

Running the same workflow again, we see that the cached node just keeps returning the same "random" number, while the un-cached node gives us something new
wf()
>>> {'always_new__rand': 492, 'cached__rand': 307}

If we look into the caching data, we can see that the non-caching node has not stored any inputs and does not register a cache hit; even if we had previously cached something, if we switch to use_cache = False, we won't even look for the cache hit but will just give new data!
for node in wf:
    print(node.label, node.inputs.to_value_dict(), node.cached_inputs, node.cache_hit)
>>> always_new {'low': 0, 'high': 999} None False
>>> cached {'low': 0, 'high': 999} {'low': 0, 'high': 999} True

Pull Request Test Coverage Report for Build<PHONE_NUMBER>8
Details

0 of 0   changed or added relevant lines in 0 files are covered.
34 unchanged lines in 5 files lost coverage.
Overall coverage increased (+0.05%) to 92.442%

Files with Coverage Reduction
New Missed Lines
%

nodes/function.py
1
98.28%

nodes/transform.py
2
98.14%

nodes/composite.py
6
91.35%

node.py
11
94.57%

nodes/standard.py
14
91.48%

Totals

Change from base Build<PHONE_NUMBER>9:
0.05%

Covered Lines:
3241

Relevant Lines:
3506

💛  - Coveralls


with 'ON CONFLICT DO UPDATE ' support?

raw sql e.g:
INSERT INTO "users" ("id", "name") VALUES (123, "test") ON CONFLICT (id) WHERE id > 0 DO UPDATE SET "name" = excluded."name";

I'm try do it.

Thanks for the help!!

Thank you for the uptaking. Have been busy preparing 0.2, but I think first, we’d need to support this construct in SeaQuery.

From: baoyachi. Aka Rust Hairy crabs @.>
Sent: Thursday, September 30, 2021 11:18:02 PM
To: SeaQL/sea-orm @.>
Cc: Subscribed @.***>
Subject: Re: [SeaQL/sea-orm] with 'ON CONFLICT DO UPDATE ' support? (#187)
I'm try do it.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://apac01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FSeaQL%2Fsea-orm%2Fissues%2F187%23issuecomment-931418026&data=04|01||1de8181d885e4f51635208d984257f5d|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637686118862971934|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=%2BDPEWnFW%2FV9AMpbI%2BwdL%2BPeakLT%2BlCiuZmQBU59wlrE%3D&reserved=0, or unsubscribehttps://apac01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAANTHCGBFVRX75IRDHOQVK3UER5SVANCNFSM5ERYPI7A&data=04|01||1de8181d885e4f51635208d984257f5d|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637686118862981889|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=4Q7m%2BXNMAlEFhSGZjdoARRqs4N%2F8FaBgYmC5LtMW3Ec%3D&reserved=0.

@billy1624 @tyt2y3  please add this issue assignees to me

Oh. Seems like the facility is missing in SeaQuery
https://github.com/SeaQL/sea-query/blob/a4e12409bdf1f2ca9ba44659b8925f265980c149/src/query/insert.rs#L34-L39
And it's mostly a Postgres only thing

INSERT INTO "users" ("id", "name") VALUES (123, "test") ON CONFLICT (id) WHERE id > 0 DO UPDATE SET "name" = excluded."name"

But what does the WHERE id > 0 do in the example?

Hey @baoyachi , any update on this? Thx

Comming soon.

Looks like the upstream sea-query feature was merged 3 days ago https://github.com/SeaQL/sea-query/pull/279

Related PR:

https://github.com/SeaQL/sea-orm/pull/791


Improve logging

By using request logger, all logging statements can now be tied to a particular request. This will help in debugging any issues that may come up. This resolves https://github.com/openshift/certman-operator/issues/32
Signed-off-by: Tejas Parikh<EMAIL_ADDRESS>

/hold

/lgtm

/hold cancel

/lgtm


Encountered a Dart Analysis Server error

Analyzer Feedback from IntelliJ
Version information

IDEA AI-182.5<IP_ADDRESS>60847
2.2.0-edge.0a7dcf17eb5f2450480527d6ad1e201fb47f1e36
AI-182.5<IP_ADDRESS>60847, JRE 1.8.0_152-release-1248-b01x64 JetBrains s.r.o, OS Windows 7(amd64) v6.1 Service Pack 1, screens 1366x768

Exception
Dart analysis server, SDK version 2.2.0-edge.0a7dcf17eb5f2450480527d6ad1e201fb47f1e36, server version 1.23.0, error: Analysis failed: D:\android\projects\oroad_offer\lib\main.dart context: exception_20190510_043904_873
NoSuchMethodError: Class 'LibraryElementInBuildUnit' has no instance getter 'session'.
Receiver: Instance of 'LibraryElementInBuildUnit'
Tried calling: session
#0      Object.noSuchMethod (dart:core/runtime/libobject_patch.dart:50:5)
#1      LibraryElementForLink.noSuchMethod (package:analyzer/src/summary/link.dart:3736:48)
#2      LibraryElementInBuildUnit.session (package:analyzer/src/dart/element/element.dart:5206:25)
#3      LibraryImportScope._lookupInImportedNamespaces (package:analyzer/src/dart/resolver/scope.dart:542:30)
#4      LibraryImportScope.internalLookup (package:analyzer/src/dart/resolver/scope.dart:397:15)
#5      EnclosedScope.internalLookup (package:analyzer/src/dart/resolver/scope.dart:137:27)
#6      EnclosedScope.internalLookup (package:analyzer/src/dart/resolver/scope.dart:137:27)
#7      EnclosedScope.internalLookup (package:analyzer/src/dart/resolver/scope.dart:137:27)
#8      Scope.lookup (package:analyzer/src/dart/resolver/scope.dart:1063:12)
#9      ElementResolver._resolveSimpleIdentifier (package:analyzer/src/generated/element_resolver.dart:1681:43)
#10     ElementResolver.visitSimpleIdentifier (package:analyzer/src/generated/elem

Seems to be a duplicate of https://github.com/dart-lang/sdk/issues/36872
Likely fixed by https://github.com/dart-lang/sdk/commit/7418238239f885ba92093c44a1768f8ec93b121f


SeriLog Azure Table Storage Asp .Net Core

Hi Team,
I am trying to implement SeriLog Logging framework to log the details in Azure Table Storage in Asp .Net Core but it seems .Net Core doesn't supports any version of the "Serilog.Sinks.AzureTableStorage" dependency. I have read few blogs and its mentioned that team is working on to get the support for Asp .Net Core for Azure Table Storage.
Could you please let me know when you can expect the support for the same ?
Thank You!!

Hi,
I need this sink too for my MVC Core project. Is there any plan migrating it to NetStandard?
I would like to help if you need testing or even developing on this project.

The latest version supports .NET Core through .NET Standard 1.3 - https://www.nuget.org/packages/serilog.sinks.azuretablestorage
Cheers!

Super! I tested the day before publishing and I was sad to leave serilog but both needed sinks, this and Mail have been released in these two days!
Congratulation for this excellent library!


database: change insert to upsert in concurrency tests

Using insert() was a violation of our API, kind of, because inserts are not expected to be called twice on the same id. Instead, update or upsert should delete the version first, and that's what's done in this patch.
At the same time, write-write conflict detection needed to be implemented, because we started hitting it with rollback().
Finally, garbage collection is modified to actually work and garbage-collect row versions. Without it, the number of tracked row versions very quickly goes out of hand.

I forgot to git add some very crucial code to this PR... pushed as https://github.com/penberg/mvcc-rs/commit/d7c59bd50e4d1dabd96f2b4bc9cc2b82fc097694


Remove AppsAndFeaturesEntries from HydrusNetwork.HydrusNetwork v517

Microsoft Reviewers: Open in CodeFlow

URL:
Invalid URI: The hostname could not be parsed.
(Automated message - build 891)


Avoid everlasting DNS cache on changing Amazon ELB DNS

Amazon ELB has a 60s DNS TTL, while nginx by default
cache the lookup until config is reloaded.
Eventually the nginx proxy will be holding bad ips
and all calls to the proxy_pass times out.
Ref https://tenzer.dk/nginx-with-dynamic-upstreams/
Related to openshiftio/openshift.io#535
Realted to openshiftio/openshift.io#558

@aslakknutsen would this also explain the 503's and missing service link for https://github.com/openshiftio/openshift.io/issues/545  ?

No.


Testing CLA Assistant with Troll repo

Self-descriptive, I would hope.

Testing branch protection for new OSS project
Testing CLA signing requirements

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

It works! Closing this out as it's a useless PR.


Colour subpage links not clickable through thumbnail

The cards listing subpages does not have links surrounding the generated colour thumbnail

Fixed in ea751dc44d895d60ce0ea81f1a0db90d263f647e


Use direct download instead in total download for scoring search results

fixed by https://github.com/datacamp/rdocumentation-elasticsearch/commit/e25c1f42a811f4d0ffa3dce65069d1de45b41959


Migration snapshot tool creates duplicated index code for UNIQUE indexes

Goal : create a migration from an existing database (MySQL)

Database where migration is being created from : mysqlnd 5.0.12-dev - 20150407 using phpMyAdmin. PHP version: 7.1.9

Indexes looks like this in phpMyAdmin's table view :

Notice how the index user_id is Unique
When following the Official CakePHP's migrations cookbook, doing the command bin/cake bake migration_snapshot Initial works correctly, but then I had problems creating an SQLite database as the error General error 1 : user_id_index already exists in [...] (it was similar to this, I'm writing this from memory) and I banged my head on why was that.
I took a look at the code generated by the snapshot command and I saw this :
// [...]
->addIndex(
    [
        'user_id',
    ],
    ['unique' => true]
)
->addIndex(
    [
        'user_id',
    ]
)
// [...]

Removing the second ->addIndex() solves the problem when creating the SQLite database using the migration(s).
To recap

Trying to go from MySQL to SQLite using migrations
Command bin/cake bake migration_snapshot Initial generates files without errors
then trying the command bin/cake migrations migrate create the SQLite database with errors :

General error 1 : user_id_index already exists in [...] in command line
only one table exists in SQLite database : phinxlog, which has no rows.

Removing duplicated code fixes the problem.

I feel like that duplicated code shouldn't have been generated and I'd consider that a bug.
I haven't done much testing, so I dunno about reproductability.

PR welcome


Create redshift__create_constraints.sql

Create redshift adapter.
Note: Redshift does not allow ALTER COLUMN, so NOT NULL will not work. This means that PRIMARY KEY will also not work, so it is suggested to use UNIQUE KEY.

I believe that Redshift allows for longer identifiers than PostgreSQL?

If so, I think we can replace "63" with "127" in the code so that we use meaningful constraint names in most cases. PostgreSQL and Oracle are much more limited by default so their constraints usually end up with a 'UK_' + MD5 string.

Yes, confirmed that is the case. Code updated.

Want to test with the new order in create_constraints or should I merge the PR now?

All good, I tested the new order already


BackgroundGeolocation plugin is not installed Issue

Your Environment

Plugin version: 3.1.0
Platform: iOS or Android
OS version: Android
Device manufacturer and model: device

Running in Simulator:
Cordova version (cordova -v): 9.0.0
Cordova platform version (cordova platform ls):

Installed platforms:
  android 8.1.0
Available platforms:
  browser ^6.0.0
  electron ^1.0.0
  ios ^5.0.0
  osx ^5.0.0
  windows ^7.0.0

Plugin configuration options:

{
desiredAccuracy: 10,
stationaryRadius: 20,
distanceFilter: 30,
debug: true, //  enable this hear sounds for background-geolocation life-cycle.
stopOnTerminate: false // enable this to clear background location settings when the app terminates
}

Context
I'm trying to run my application with the plugin but it always returns this message to me.
I've tried to reinstall, remove and add the platform, reinstall the platform, uninstall and install the npm packages, and even then this message does not come out. And the plugin is not loaded.
Actual Behavior

Steps to Reproduce

ionic cordova plugin add @mauron85/cordova-plugin-background-geolocation
npm install --save @ionic-native/background-geolocation
ionic cordova platform add android
ionic cordova prepare android

I've the same problem!

Same issue here

Solved!
import { BackgroundGeolocation, BackgroundGeolocationConfig, BackgroundGeolocationEvents, BackgroundGeolocationResponse } from '@ionic-native/background-geolocation/ngx';
instead of
import { BackgroundGeolocation, BackgroundGeolocationConfig, BackgroundGeolocationEvents, BackgroundGeolocationResponse } from '@ionic-native/background-geolocation';

This may be related to #613


Add missing closing divs to events pages

These closing tags were removed in 96d21b958cfd7c9d8dd9e241fdb631e2e2b78e24, breaking the markup (although it was broken in a different way before this).
As a result, events pages look broken and don’t work correctly on IE:

I guess this fixes the bug @yohannaloucheur reports here:
https://twitter.com/YohannaLoucheur/status/1038123054419726337

I should really pay more attention to Github, @andylolz! Sorry I missed this PR before making our own!

I should really pay more attention to Github, @andylolz! Sorry I missed this PR before making our own!

¯\_(ツ)_/¯ No worries.
(for posterity, #255).


code completion doesn't work

I have import the Alamofire, but the code completion doesn't work.
However the code works as well

This is an Xcode issue. Clear your DerivedData and try again. If you have further issues, check StackOverflow for more recommendations.


[Feature Request] Create entities with randomized locale

Hey,
I just stumbled upon your funny lib. I'm using it from BazingaFakerBundle in Symfony. I'm working on a website with an international user base and I'd be great to be able to randomize the used locale. So instead of generating all fake users with a fixed locale, it'd be great if I could randomize this so that I get a willd mix of users from all over the world.
As far as I understood this code, it's not possible at the moment, because the given locale is used on the factory setup?
For now I'll just switch the locale between multiple population iterations, but a build-in option would be awesome.
Cheers
Matthias

Why don't you use several Faker instances?
function getLocalizedFaker() {
  $mainFaker = Faker\Factory::create();
  try {
    return Faker\Factory::create($mainFaker->locale);
  } catch (Exception $e) { // no Faker for this locale, try again
    return getLocalizedFaker();
  }
}

I'm using a faker selector like this one:
class FakerRandomSelector
{
    protected $generators;
    protected $main;

    public function __construct()
    {
        $this->main = \Faker\Factory::create();
    }

    public function add(\Faker\Generator $generator)
    {
        $this->generators[] = $generator;
        return $this;
    }

    /**
     * Choose an arbitrary generator among those registered
     * @return \Faker\Generator
     */
    public function choose()
    {
        $max = count($this->generators);
        if (!$max) {
            return $this->main;
        }
        return $this->generators[$this->main->numberBetween(0, $max - 1)];
    }
}

Using it is a simple as:
$selector = new FakerRandomSelector();
$selector
    ->add(\Faker\Factory::create('fr_FR')
    ->add(\Faker\Factory::create('de_DE');
$faker = $selector->choose();

Thanks for your replies. I've stopped using the Faker as my data structure was too complex, so I'm just using a live data dump (re-writing a old project).


Landing page doesn't render properly for all window sizes

The initial landing page could use some responsivity tweaks. The footer bar obstructs the two buttons depending on browser window sizing.  Not at all a high priority but I thought I'd mention it!
Screenshots attached.

Verified in Chrome, Firefox and IE that Corporate Console renders properly in different window sizes

Issue is reproducible again and hence reopening the ticket

After clicking on Individual Open CLA button is not visible.

Open CLA button can be seen in Full screen. F11

@nirupamav  It is similar to the issue #721. which was fixed and I raise the PR.

Observed that the issue is fixed
When project name is too long

When project name length is short


Demo site not working

Hi and thank you for this repo. I just noticed that the demo site is no longer working. Can you take a look at it, please? Thanks

Sorry about that, I've been moving all my hobby projects to new server and everything's a mess right now.
I've set up a URL that points to the demo site on the old server: https://ken4scholars-dmm.nicholasmoen.com
The above URL will work until I get the new server up and running, in which case I will shut down server that the above URL points to.

Thanks, I really appreciate it!

Sorry about that, I've been moving all my hobby projects to new server and everything's a mess right now.
I've set up a URL that points to the demo site on the old server: https://ken4scholars-dmm.nicholasmoen.com
The above URL will work until I get the new server up and running, in which case I will shut down server that the above URL points to.

The new server is up, so I shut down the old one. the https://ken4scholars-dmm.nicholasmoen.com/ will no longer work, but the old one should be reliable now: https://django-menu-maker.nicholasmoen.com/


[5.7] IR generation for constrained existentials

5.7 version of https://github.com/apple/swift/pull/42317

Please test with following pull request:
https://github.com/apple/llvm-project/pull/4213
@swift-ci Please test


[Table] Actions on left side

Provide the ability to have actions on the left side of the table

:tada: This issue has been resolved in version 7.5.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Changed config.php to include personal IP

Changed localhost to IP address

Needs to stay localhost for rest of the group


Google Autopilot Ephemeral Storage Limit Exceeded

For whatever reason, GCP Autopilot K8s clusters set an ephemeral storage limit of 1Gi: https://cloud.google.com/kubernetes-engine/docs/concepts/autopilot-overview#default_container_resource_requests
This seems to be exceeded, at least during initial setup. I get errors in the logs that just say '/home/valheim/Steam/logs/stderr.txt', and a notice in the console that the limit has been exceeded. Does anyone know what a good value for ephemeral storage limit should be? I'm happy to make the change, just don't really know what to put in that space.
If no one responds to this in a few days I'll submit a PR with a 10Gi Ephemeral storage request.
Sick stuff btw! Thank you!

Just confirmed that setting the ephemeral storage value like --set resources.limits.ephemeral-storage="10Gi" lets the container start up fine. No idea if it will stay up, but that's ok.
Probably as simple a change as a note in the readme. Please let me know if that is preferable, or the first fix I offered was preferable, and I can make the change. Cheers!

I'm going to assume you are persisting the world to some sort of PVC.
Perhaps the container is making use of ephemeral (container) storage to save some data at runtime. Based off that error, Ill go ahead and guess that /home/valheim/Steam/logs/ should be mapped/mounted elsewhere.


Files are not being watched in live mode (1.15.0-rc3)

What is your Test Scenario?
Basic tests, but written in typescript.
What is the Current behavior?
I have been running my tests with this command
npx testcafe chrome e2e/ -L

This used to work fine when I was using 1.10, but no longer works since upgrading to the latest version 1.15.2.
Now, the tests in my e2e directory will run once, but changes do not trigger a new test run. Additionally no list of files is logged after the "Watching files..." message.
After trying a lot of different versions, I narrowed it down to something that changed in 1.15.0-rc.3, since rc.2 is the latest version that still works.
After looking at the diff, I even change my script to
npx testcafe chrome e2e -L

after seeing some comments about the globby upgrade and forward slashes.
I tried to debug it and found a discrepdency in the two calls to parseFileList. When it is called to run the tests the first time, my directory is there:
fileList is populated

But when initializing the file watcher, the directory is no longer there
fileList is empty

When using the special directory names of "tests" or "test", live mode also works as expected, but not when the tests are in a directory of any other name.
What is the Expected behavior?
Live mode works in 1.15 and higher.
Steps to Reproduce:
Your Environment details:

testcafe version:                   1.15.0-rc.3
node.js version:                    12.22.5
command-line arguments: testcafe chrome e2e -L
browser name and version:
platform and version:          Ubuntu 18.04.5 LTS x86_64
other:

Hello,
Thank you for pointing out this issue and performing additional research. I have reproduced it on my side.


Warbirds: 1.0 release

Submission Checklist
Required

[x] The pull request title clearly contains the name of the sheet I am editing.
[x] The pull request title clearly states the type of change I am submitting (New Sheet/New Feature/Bugfix/etc.).
[ ] The pull request makes changes to files in only one sub-folder.
[ ] The pull request does not contain changes to any json files in the translations folder (translation.json is permitted)

New Sheet Details

The name of this game is: <   >  (i.e. Dungeons & Dragons 5th Edition, The Dresden Files RPG)

The publisher of this game is: <   > (i.e. Wizards of the Coast, Evil Hat)

The name of this game system/family is: <   > (i.e. Dungeons & Dragons, FATE)

[ ] I have followed the Character Sheets Standards when building this sheet.

[ ] This sheet has been made on behalf of, or by, the game's publisher.
[ ] This game is not a traditionally published game, but a copy of the game rules can be purchased/downloaded/found at: <   >
[ ] This sheet is for an unofficial fan game, modification to an existing game, or a homebrew system.

Changes / Description

Initial release to support the Rapidfire system game Warbirds by Outrider Studios.

Character Sheet Info Roll20 Internal Use only.


Numeric fontWeight is rejected by the profile parser

Environment
Windows build number: Microsoft Windows [Version 10.0.19041.508]
Windows Terminal version (if applicable): Windows Terminal Preview Version: 1.3.2382.0

Any other software? Fira Code 5.2: https://github.com/tonsky/FiraCode/releases/tag/5.2

Steps to reproduce

(How I got there, starting from a working setup, is hidden inside the fold. It shouldn't affect the reproduction, but is here in case there is something relevant hidden there.)

Starting from a working default profile:
  "profiles": {
    "defaults": {
      // Put settings here that you want to apply to all profiles.
      "colorScheme": "Canon Solarized Dark",
      "fontFace": "Fira Code Retina",
      "fontSize": 14,
      "padding": "0, 0, 0, 0",
      "cursorShape": "filledBox"
    },
    "list": [
//...
    ]
  },

with the Fira Code TTFs (six files, one for each of Bold, Light, Mediuma, Regular, Retina, SemiBold) installed.
I then removed the Fira Code TTFs, and installed the Variable TTF (FiraCode-VF.ttf).
Samples in white-on-black are from the Windows "Font Properties" dialogs.
After this change, my terminal looked like this:  which is Consolas Regular at 14pt:
, but with better anti-aliasing. (Or rather, with any anti-aliasing, I suspect)
This makes sense, since there isn't a "Fira Code Retina" font anymore on my machine, although some kind of notification that my font wasn't found would have been nice. Also, I would have expected a fallback to Cascadia Code, not Consolas. Cascadia Code is installed on my machine as part of the Windows Terminal package (twice, once for Preview, once for regular), so it seems like a better fallback?
I initially tried to move the 'Retina' from the fontFace to the fontWeight
  "profiles": {
    "defaults": {
      // Put settings here that you want to apply to all profiles.
      "colorScheme": "Canon Solarized Dark",
      "fontFace": "Fira Code",
      "fontSize": 14,
      "fontWeight": "Retina",
      "padding": "0, 0, 0, 0",
      "cursorShape": "filledBox"
    },
    "list": [
//...
    ]
  },

but that's not in the hard-coded list of named font-weights. I was disappointed that it wasn't just asking the chosen font if the fontWeight given matched to a font instance name, but not super-disappointed:

I saw in the profile schema and settings implementation that I could pass in a uint to fontWeight, if there was no existing hard-coded name for my desired weight.
I looked up the weight of the Retina instance in the Fira Code variable TTF (450), and got:
  "profiles": {
    "defaults": {
      // Put settings here that you want to apply to all profiles.
      "colorScheme": "Canon Solarized Dark",
      "fontFace": "Fira Code",
      "fontSize": 14,
      "fontWeight": "450",
      "padding": "0, 0, 0, 0",
      "cursorShape": "filledBox"
    },
    "list": [
//...
    ]
  },

Expected behavior

I get the same font I had when using Fira Code Retina as my fontFace and no fontWeight setting, with the Fira Code non-variable TTF files installed, i.e. 6 separate TTFs, one for each of Bold, Light, Mediuma, Regular, Retina, and SemiBold.
Actual behavior

Windows Terminal raises an error about the fontWeight value:

and then ignores the entire theme configuration, including my colour scheme setting.
So yeah, unlike above, I was super-disappointed this time. As a workaround, I'm using "fontWeight": "medium".

If I comment-out the fontWeight, it looks like this:
which appears to be 'Regular' instance (weight 400):  rather than 'Retina' instance (weight 450):  which makes sense, if the default value for fontWeight is 'normal'.
Side-note: I was inspired to make this change by noticing that Cascadia Code recommends their Variable TTF over the fixed-size TTFs, and also https://github.com/microsoft/terminal/issues/107#issuecomment-614347087

So, the error message does a right poor job of surfacing this...
Can you try 450 without the quotes? 😁

Gah. >_<
Yeah, that works.
Thank you.
I'm going to go sit quietly away from the computer for a little while...

I assume the error message doesn't mention integers because the "Override mapping parser to add boolean parsing" (sic) code doesn't override TypeDescription, but just delegates it up to BaseEnumMapper. I expect it could provide its own TypeDescription, which would probably have left me still confused, but confused in the right direction.

I've just noticed that the hover-text in VS Code says:
Sets the weight (lightness or heaviness of the strokes) for the given font. Possible values:

-"thin"

-"extra-light"

-"light"

-"semi-light"

-"normal" (default)

-"medium"

-"semi-bold"

-"bold"

-"extra-bold"

-"black"

-"extra-black" or the corresponding numeric representation of OpenType font weight.

which suggests a couple of newlines are missing in the schema comment to take the last clause out of the list. Not that this would have clued me in to my mistake, if looking at profiles.schema.json and implementation didn't. Although given the current error message, the first thing I checked was "Is this code newer than the version I'm using?".

I should at least throw in a better type description. Thanks for calling that out :smile:

I have a similar warning but with fontSize as of the latest update:
Microsoft Windows [Version 10.0.19041.508]
        {             // Make changes here to the cmd.exe profile             "fontFace": "Cascadia Code",             "fontSize": "10",             "guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",             "name": "cmd",             "commandline": "cmd.exe",             "hidden": false,             "startingDirectory": "."         }
This config with the value 10 in quotes previously worked okay, but now produces:

on startup.
Removing the quotes fixes it:
        {             // Make changes here to the cmd.exe profile             "fontFace": "Cascadia Code",             "fontSize": 10,             "guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",             "name": "cmd",             "commandline": "cmd.exe",             "hidden": false,             "startingDirectory": "."         }
Admittedly putting in a number as a string was dumb to start with (I'm sure I copied it from an example without thinking), but previously it was accepted without error.


[Question]: invalid input syntax for type timestamp with time zone: "null"

General info

[X] I checked the troubleshooting page for similar problems

What is your question?
I am trying to update a row that has a date and change it to null. The field is nullable, however when I send this to update
table.update(entry.opData!!) where entry.opData is {completed=0, completed_at=null, completed_by=null} I get invalid input syntax for type timestamp with time zone: "null".
I assume null is being converted to String null which is resulting in the issue. How can I overcome this?
Relevant log output (optional)
Data upload error - retrying last entry: CrudEntry<3/3 PATCH todos/d6b6d112-e779-4389-a7b4-34c45808ecdc {completed=0, completed_at=null, completed_by=null}>, io.github.jan.supabase.exceptions.BadRequestRestException: invalid input syntax for type timestamp with time zone: "null"

Can you share your actual Supabase code?

@jan-tennert
                val table = supabaseClient.from(entry.table)

                    UpdateType.PATCH -> {
                        Logger.i(entry.opData!!.toString())
                        table.update(entry.opData!!) {
                            filter {
                                eq("id", entry.id)
                            }
                        }
                    }

I am so sorry it's a fault on my side, the nulls are string nulls being sent from us.


UI Redesign for Select, Index, and Admin Pages

UI redesign of admin pages  doesn't contain the Manage Superusers For caMic Lymphocyte App functionality (already in the release branch), which allow add and remove superusers for caMic Lymphocyte App.  This functionality is necessary to switch user by lymph app superusers.
The Lymphocyte App won't work without this functionality.
Code CAN NOT be merged.

Thank you, I'll work on it -#49

@ajasniew I've done a redesign, but I can't really test as my dev environment doesn't have Lymphocyte; I get "The requested URL /camicroscope/api/Data/lymphocyteSuperusers.php was not found on this server."
I think you'll have to help me test or test yourself.

done, pending testing, with ad6c00a865ebea7d157c8b04de1058e306037944

Thank you, Ryan.
I tested your new design of the Lymphocyte App Superusers and implemented small fixes.
https://github.com/camicroscope/Security/pull/47/commits/bd6619868a14e3104cf11b2749782f1c72d31c7c


fix bug: Google One Tap should be hidden after logged in

#2691

Replaced by: https://github.com/casdoor/casdoor/pull/2853


Adding Twitter handles for Routify and JungleJS

Updated on jamstack.org via https://github.com/jamstack/jamstack.org/pull/420 !


Fixing proxy list fetch and some other enhancements

Hey @williamokano, nice to meet you! 👋
I'm maintaining a fork of your repo since may/2018, because I'm with an open-source Android app for checking MtG deck prices.
I'm sorry for not reaching out to you before with a PR, but here I go!
This PR may have a lot of changes, so I recommend you review by each commit.
They include:

Fixing proxy list fetch: checkerproxy.net had changed their API a little bit
Improvements on LigaMagic card prices: we had just major price, now we also have medium and minimum prices
Bugfix on card fetch: some LigaMagic card names returned more than one result for the previous URL we're using (check here)
Bugfix on proxy usage: I guess the proxy it wasn't being used before since we didn't used proxyUrl from requestp, but I'm not sure

Please review carefully and feel free to suggest code improvements, since I'm not exactly an experient NodeJS developer 😅

Hey @tdopires , thank sa lot for this PR. If you want, I can add you as maintainer of this repo, but you rather choose to keep your own fork, it's fine for me.
Thanks a lot for fixing the broken stuff, I'm not a very good (nodejs) developer and this code is pretty old already 😂😂😂
Merged.

Thanks @williamokano !
I'll keep the fork for now, but I'll let you know if I have any news in the future... (maybe a rewrite to Kotlin 👀)
And if you want to use/test my app, just let me know! 😅

To be honest I was thinking about rewriting it in Kotlin today 😂😂😂, but using spring instead of ktor.
About testing your app, today I was on vacation, so I took the day to learn a little bit of flutter because of your project indeed. 😂

Hey @williamokano , is you don't mind you could add a "hacktoberfest-accepted" tag to this PR?
I'm participating of the Hacktoberfest event from Digital Ocean, and with the label I think it will count to my contribution progress on the event...

Sure, done.


vim-utils: remove vim-addon-manager support

Description of changes
It's hard to maintain this complex software and I dont see the advantages yet, now that vim supports "packages". Even if that were the case it could live somewhere else than nixpkgs, e.g., a vim-specific flake.
https://github.com/NixOS/nixpkgs/issues/56338

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
22.11 Release Notes (or backporting 22.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[ ] Fits CONTRIBUTING.md.

@rlupton20 @vquintin  I search github with "vam.knownPlugins" and found out you were using vam https://github.com/rlupton20/dotfiles/blob/e81ee1ec9623ee3d0eda99345f0b0e36ce617c16/vim.nix and https://github.com/vquintin/dotfiles/blob/bbd100b999024001ff0021f06b3a5869c8388aa0/nix/.nixpkgs/packages/dev/vim_custom/default.nix . Any hindsight ? you dont seem to use  any vam specific feature so would you be fine with me discarding vam to ease the maintainance of vim-related infra in nixpkgs ?

I am going ahead and we can revert if it proves to nag too many users but I would like to avoid that.

This is an old dotfiles repository. I moved it off github.
Now I use https://nixos.wiki/wiki/Vim#Using_Home_Manager. I don't use vam.knownPlugins anymore.

You need to understand that maintaining 4+ managers should be no brainer
if plugins are standard plugins thus just augment runtimepath+= and are happy.
https://github.com/MarcWeber/vim-addon-manager/issues/188
https://github.com/MarcWeber/vim-addon-manager/issues/189
-> :packadd does what VAM does, but VAM was about much more
Having an addon-info.json file allowing dependencies to be declared
Having a vim-pi repository to turn the mess on vim.org (the scripts .tar.gz)
into a machine readable format with patches to allow making the work on
installing by name - also trying to disambiguate if names have been chosen
multiple times.
However packadd fails on differentiating install / load time.
After installing you might want to generate tags by using :helptags
The nix code allows having vim-for-user-x and many x.
So Using_Home_Manager is not a replacement for such use case.
Eg if you maintain multiple servers having to manage HOME for many accounts is
just ...
So what exactly is your issue with VAM - why is it causing trouble ?
When I created VAM there was no community lead there was no manager.
There was no sane way to activate plugins once you open a .py file
but loading .py related viml code slowed vim down. The lazy loading thing.
Autolad etc appeared later if I recall correctly.
VAM has flaws:

viml only (thus no paralell installs). Could be wmorked around by using a
json based file

not many users

The json based file I thought might look like this.
And it already kinda works.
call vam#Scripts(expand('~/.vim-scripts'), {})
contents like

{'name': 'vim-addon-surround'}
{'name': 'vim-addon-toc'}
{'filename_regex': '\%(\%(l\)hs\|cabal\)$', 'name': 'vim-addon-haskell'}
{'filename_regex': '\%(php\|inc\|php.inc\|hsc\|lhs\)$', 'names': ['phpcomplete','vim-addon-xdebug', 'vim-addon-php-manual']}
{'filetype_regex': '\%(cabal\|hs\|hsc\|lhs\)$', 'name':  'vim-addon-haskell'}
{'filetype_regex': '\%(rb)$', 'names': ['vim-ruby', 'vim-addon-rdebug', 'vim-addon-ruby-debug-ide', 'textobj-rubyblock' ]}

My past is like

packaging Haskell (hack-nix) trying to reinvent cabal's dependency resolution
within Nix dumpnig hackage to nix format. Of course performance issues and
more turned it into 'lets try latest version and' .. yeah

failing with cabal2nix this year thus rewrtiing my code using typescirpt

nixpkgs-ruby-overlay

trying Python packages, failing , causing damage no master that time
since then I stopped committing. Todays consensus is always use PR
cause things turned too complex

vim-addon-vim2nix or such

Each time wasting time and pain to write the code.
Summing up:
https://github.com/MarcWeber/nix-comment-updater
That's a simple way to keep packages up to date for the future.
Its a complete rewrite of my old haskell based code simple but good enough.
So check it out provide feedback.
But how to package YouCompleteMe correctly ?
With steam-run you can install --rust-completer
But the python code downloads rust and runs a shell file.
So its kind of nightmare. The fix is creating a new platform which
allows source to be put on like github with custom dev env like vscode or vim
with derived contetns like the compliaction result.
Then people would 'fix' the packages and it would just work.
If you're intersted on discussing this level let me know.
I don't mind VAM being removed. I'll keep local patches.
But I doubt VAM is your problem so point me to the issues
so that we can get to the root of it and understand it.
And if you want to unify the mess you need to start on a different level.
You're welcome to discuss this with me.
Pathogen didn't run helptags at the beginning but its what more users knew.
I also tried making it easier for the Vim community to organize itself
by providing a wiki everybody can simply join using git in the background
to allow fast editing:
http://vim-wiki.mawercer.de/wiki/topic/vim plugin managment.html
But reality is that Shougas manager was written cause he didnn't know about
VAM. Vundle hat different design goals (let's try ..) and Pathogen I forgot.
Didn't implement all of VAM's features like :helptags or added them later.
All missing out on vim-pi's idea providing human friendly usable names for
plugins having different numbers but same names.

thanks for taking the time to reply.

You need to understand that maintaining 4+ managers should be no brainer
if plugins are standard plugins thus just augment runtimepath+= and are happy.

I've helped with maintaining the (neo)vim nixpkgs infra for a few years and I find this untrue. I've changed (ie., shortened) the path towards nixpkgs-installed and it broke vim-plug. Now I want to associate a specific config to a plugin but it meant updating the 4 package managers which is painful for me. I tried to do so and was able for the others but because vam is so confidential (sorry but I've never met anyone using it, and there was no nixpkgs complaint since its removal, there might be in the next stable release though), I could not muster the courage to do so. So much choice is also not great for
the users : why 4 different package managers ? when in the end I won't leverage these plugin managers features because nix already does everything.
if these plugin managers were just maintaing runtimepath then nixpkgs doesn't need them.
vam does a lot more than maintaining runtimepath though as shown in the doc: {'filetype_regex': '\%(vim)$', 'names': ['reload', 'vim-dev-plugin']}. The nixpkgs vam doc shows it's a magnitude more complex than the other approaches (since it does more).
I would like to maintain a single "vimrcContent" path, and then your vam code could just generate the inputs for "vimrcContent".
Like you I am also interested in plugin dependencies, and I have something working that I presented here:
https://teto.github.io/posts/2022-06-22-neovim-plugin-luarocks-2.html
One thing to help maintainers create a package out of their plugin is https://github.com/teto/vim2rockspec; it generates a rockspec from their plugin repository. There is an extracost for the maintainer who now has to maintain a package on luarocks (it doesn't have to be lua, a viml plugin could be hosted there) but the whole community could enjoy plugin dependency resolution with an existing working infrastructure.
For this to be successful I would need packer.nvim to better support luarocks install though but I am hopeful.

@teto sorry for the thread necromancy, but i just wanted to point out that the vim-utils.nix comments still (as of both nixos-22.11 and master) reference adding plugins via vam.  Might want to update those examples.  I'm willing to try, but i admittedly don't understand how the current plugin options work, so it'll take me some time to learn it.

BTW: I recently updated vim-addon-manager to allow loading plugin/*.lua code at runtime after startup. Works great :) VAM is simple. It allows defining a function where plugins are found. And it allows giving plugins a name. So you can install by name or by github:name/foo  and you can use VAMActivate at any time startup or lazily after having started up. The only problem is that it doesn't install in parallel.
I can keep private matches.
VAM despite having been influenced by nix it never took off.
But the questions are somewhat different I have. What's the best way to manage Vim on windows without Nix :-)
The reason why VAM was cool in the past was allowing to activate stuff as needed at runtime.
So if you had bad written time consuming plugins they only slowed startup down when you needed them.
And that feature still works and also works with neovim and lua files now.
But what plugins are that slow today and still in use ?
So what's the minimal plugin manager ? Why use one at all ? Why not just set runtimepath and be done then?
What I enjoyed was being able to install by name without having to lookup url cause VAM gets vim-pi which translates names to known github urls (which is biased maybe hard to maintain)
Whats left eventually is mappings. Activate plugins and mappings only when you need.
So the only main use case which is left is like activating vim-addon-sql to run sql queries but had autoload UI
so it was more about the completion overwrite.
Back to you: Do you have use cases for loading plugins at runtime ?
I will / can keep vam as private patch. Don't worry about me.
Now I have tons of small plugins where I use VAM to activate the others.
because there is lack of alterantives. like cmp-tsserver activates my-cmp-mappings.
So I use it as modular sharable vimrc snippets today I can activate by name at runtime.
But its me only and somewhat personal.

The minmial plugin support for to support loading plugins is 1) set runtime path (For startup activation) 2) glob -> source for activation after startup. The glob lines in vim-addon-manager can be found easily. And :helptags is important for documentation (must be run at installation ?). That's all I know which is needed basically.
There is another case for lazy activating plugins: Its snippets. Sometimes depending on template engine you use you might want to use and activate different snippet files. That's something which can be done by rtp or by the addon manager cause many engines just look at &rtp and add /snippets.
And the question would be how shoud a user be able to activate a referenced plugins installed to store without having to type /nix/store/... ? use github:foo/bar like syntax or even what VAM provides -> name rewriting :)
But is it a use case worth taking care of ?
So the minimal VIML or lua code to make this all work can be looked up at VAM handling RTP.
Its also about adding the after/* directories lateer. So its like 20 lines which can be implemented in both viml and lua to have a 'nix' version of a manager to be good enough.
The big question is: Is it worth having aliases for cases like snippets. Are there cases you activate code at runtime and how do you as user want to call it.
And I totally kinda agree that how managers handle post installation hooks (each in his own way) is kinda complicated. And that YCM on Windows eventually requires to be recompiled for each virtual env (?) is yet another story. Does it apply to Linux as well ? .. and ...
I feel its not about VAM. Its more about discussing what features are worth preserving / keeping rather than dropping/adding one addon manager.
https://github.com/MarcWeber/vim-addon-manager/blob/master/autoload/vam.vim#L315
https://github.com/MarcWeber/vim-addon-manager/blob/master/autoload/vam.vim#L422
https://github.com/MarcWeber/vim-addon-manager/blob/master/autoload/vam.vim#L435
Are the most relevant lines to reimplement a nix-vim-plugin manager stripped down to the bare minimum. So its less than 25 lines probably.
Additionally to that VAM maps a plugin name to a file location to find out whether it exists.
So it calls a function which can look up multiple destitanions like ~/vim then dictionary telling about /nix/* locations if all files (ask to) install.
So what's important to me is

be able to give VIM a name because my settings are not what others are used to
eventually being able to allow additional  stuff in ~/.vimrc or ~/.vimrc-name
eventually being able to load lazily (how to name plugins)
Sometimes being able to overwrite (cause nixos-rebuild could take more time or be not possible)

And VIM kinda allows all. But  I agree that the minimal features and the extended features
eventually could be split into 2 pieces. Currently its close by having separate files to be autoloaded as needed.


fix: use bounded sender for bodies responses

This bounds the channel between the TaskDownloader and the SpawnedDownloader, fixing an OOM for machines on fast network connections (400Mb/s+) during the bodies stage.
Previously, we would always poll the downloader and used an UnboundedSender, where bodies responses would accumulate without limits. This PR uses a bounded sender, making use of PollSender::poll_reserve to ensure we don't poll the downloader unless we have capacity in the channel.

is this confirmed to have fixed the issue on your end?

Yes, I recently completed the bodies stage without OOM on a 32GB machine. Previously it would fail around block 10M

Yes, I recently completed the bodies stage without OOM on a 32GB machine. Previously it would fail around block 10M

What are the minimum memory reqs that we can use here?


Discussion: why the "videoId" is inside the controller?

Hi @sarbagyastha . Yesterday I did try to use the version 6.0 but I saw that you have passed the "videoId" to the controller which I think it's not a good experience especially in my situation which I think most fo the people would say that too. in my scenario my "videoId"s are inside my list index as I'm using the listview.builder and grabbing the data from an API. so it's almost impossible to map the "videoId"s outside the listview into the controller. I'm sure you  made this change for improvements but I think it's better to have the "videoId" inside the "youtubeplayer".
Thank you for this great library again.

@Xoshbin Moved videoId to the controller in order to maintain consistency (as i'll add support for flutter web soon) and to match the behavior of YouTube IFrame Player API.
As per your issue with video lists, the solution is here.

@sarbagyastha I know I did check that too. but in my situation the video id's are inside the "listview.builder"s index so it's almost impossible to map it to the controller especially when the controller is outside the listview. I'm not sure if you understand what I say.

ListView.separated(
        itemBuilder: (context, index) {
          return YoutubePlayer(
            controller: YoutubePlayerController(initialVideoId: data[index]),
            actionsPadding: EdgeInsets.only(left: 16.0),
            bottomActions: [
              CurrentPosition(),
              SizedBox(width: 10.0),
              ProgressBar(isExpanded: true),
              SizedBox(width: 10.0),
              RemainingDuration(),
              FullScreenButton(),
            ],
          );
        },
        itemCount: data.length,
        separatorBuilder: (context, _) => SizedBox(height: 10.0),
      ),
    );

You can do like this, if you aren't using controller elsewhere.

@sarbagyastha Thanks it did work that way :)


Create/ design a static layout with items in each section

Implement Materialize and Electron into UI

Pre-electron static design has been completed with ideas of widgets


Image proxy doesn't work with Openshift (Nginx + HHVM)

Image proxy doesn't seem to be working with Nginx + HHVM. It throws the following error message in HHVM logs.
Fatal error: Invalid argument "header": [200] in /var/lib/openshift/username/app-root/runtime/repo/www/vendor/fguillot/picofeed/lib/PicoFeed/Client/Curl.php on line 111
I am running miniflux utilizing the following openshift catridge
https://hub.openshift.com/quickstarts/127-hhvm
Works fine with Apache + PHP but the problem with it is that it gets slow after a while. With HHVM, it seems to be fine so far.
Everything else that I test works fine except for image proxy.
Miniflux version: 1.1.9

You should try again with the last version of Miniflux. It should work otherwise reopen a ticket.


Support diffeqpy library as a backend for differential equation solving

@SamWitty linked this repo https://github.com/SciML/diffeqpy which also allows for SDEs. It might be faster than torchdiffeq too. We would need to wrap it so that Torch can access the gradients.

Closing this since I don't think we're planning to go this route for SciML integration anymore


 Sorry, I think a little work with github true test, I have this first practice.

Thank you for addressing the issues. There are still some outstanding issues to be resolved before merge. But looks better! :) Also can you provide with link to the documentation where you found the new protocol used. Also how do I test this manually with my phone? Thanks in advance.

This now has merge conflicts. Also there are some minor outstanding code issues aswell as unclear source for the new protocol implementation. I have not tested this code myself, I'm sure it works.


Support for LEDs connected to Raspberry Pi GPIO

I'll admit I added this as sort of a hack for a project I am working on, but it might be worth looking into adding for other users to take advantage of. Basically it allows the user to add a couple of LEDs attached the the RasPi GPIO port to show APRS-IS tx/rx activity.

I like it, but don't want to merge any platform-specific code into main. I hope these patches hang around and are used by anyone else who is interested.


BUG: When restore model from check point

Please go to Stack Overflow for help and support:
http://stackoverflow.com/questions/tagged/tensorflow
If you open a GitHub issue, here is our policy:

It must be a bug or a feature request.
The form below must be filled out.

System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow):
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): win 10
TensorFlow installed from (source or binary): binary
TensorFlow version (use command below):1.10
Python version: 3.52
Bazel version (if compiling from source):
CUDA/cuDNN version:8.0/5.1
GPU model and memory:2Gb
Exact command to reproduce:

Describe the problem
I trained my model in a GPU version tensorflow(1.10), but when I restore the model in another computer without GPU it throw the error at the fallow command:
result = mnist_classifier.predict(x = feature, batch_size = 1,as_iterable = False)
I had tested the whole project on the computer which trained the model, so I think the code is right.
Source code / logs

Traceback (most recent call last):
File "D:\xieminzhao\tf-test\main_func\main_func.py", line 71, in
print(rf.cooper_recog(img_test_2)) # had been tested.
File "D:\xieminzhao\tf-test\main_func\recognition_func.py", line 37, in cooper_recog
return recogni_is_cooper.is_cooper(image);
File "D:\xieminzhao\tf-test\main_func\recogni_is_cooper.py", line 110, in is_cooper
result = mnist_classifier.predict(x = feature, batch_size = 1,as_iterable = False)
AssertionError

Could you paste more of the log? We can't see what the actual error is yet.

@drpngx this is all the log tensorflow print and this is why it is difficultly to fix it..
But I fixed just now. The problem is I used the different model_dir in two computers. Although I copy the necessary files to the direct, tensorflow can't find the trained model.
Fixing Way: using the  relative directory and making sure the directories in two model are same.


Better description

Language improvement (hopefully to the right file this time).

Yes, you got the right file this time :-)
Remember that you can run npm install, then jake docs to see how the documentation will look. We usually wait until the next release to update the published documentation files.

Thanks for the tip. I haven't installed it locally yet, but may as I'm starting to use it a lot more.


Question: How to add/remove hosts?

I just set up a cluster using $ pharos-cluster up -c cluster.yml.
What is the recommended way to add and remove hosts to the cluster?
Should I just update the cluster.yml file and execute $ pharos-cluster up -c cluster.yml again ?
Also, will this take down temporarily the running pods/services or will they keep running normally while the cluster is being upgraded?

What is the recommended way to add and remove hosts to the cluster?

Adding hosts is simple, just add new hosts to the cluster.yml.
Removal is multi-step process. You can remove host from cluster.yml but it does not actully do anything to the cluster. So basically you need to do following:

remove host from cluster.yml
terminate host
remove host from kubernetes api (kubectl delete node ...)

Also, will this take down temporarily the running pods/services or will they keep running normally while the cluster is being upgraded?

Pharos tries to minimize downtime -> it keeps user pods running even if controlplane or kubelet is upgraded.

@jakolehm Thanks

So when you had two masters, everything was fine?
Dropping from 2 etcd nodes to single makes the etcd to break as it loses majority. With etcd it's generally advices to run 1, 3, 5,7,9 and so on peers to have maximum availability.

@jnummelin I ran the cluster with single master, thus single etcd, which was all fine.
Temporarily added a second master (to do maintenance on the old one). After things were fixed, I just believed to remove the new master as described above. Worked for kubernetes, apparently not for etcd. So how do I get etcd back to single replica?

@sh0rez I cannot reproduce since Pharos protects me:
==> Configure etcd member changes @ demo-pharos-master-0
RuntimeError : Cannot remove majority of etcd peers

I tried to go down from 2 --> 1 masters.
What were the exact steps you took to remove the second master? I'd guess you first terminated the node itself which resulted already etcd getting borked as it loses the majority.
To recover from majority loss in etcd, you need to follow the disaster recovery guide: https://coreos.com/etcd/docs/3.2.17/op-guide/recovery.html
The process itself applies, but it's somewhat complicated because Pharos sets up the etcd in a container using static pod managed by Kubelet. Here is a list of steps with which I managed to repair a borked etcd. I broke it down on purpose the same way, I think, by forcefully removing second node from 2 node etcd cluster.
Note: This worked for my exact case, no guarantee that it'll work for every case. :) If for some reason the restore fails and etcd gets up as "empty", you'll easily bork all your apps as control plane will remove all the apps, volumes etc.. In my first trial I did exactly that :D During the recovery process you might want to stop kubelets on all worker nodes so that if for some reason the control plane boots up in wrong state, kubelets will not go and bork your app pods, volumes etc.

Copy etcd snapshot to safe place outside of the container

docker cp <etcd container id>:/var/lib/etcd/member/ .

Backup and stop control plane config

mkdir manifests && mv /etc/kubernetes/manifests/* manifests/

Remove all etcd data

rm -rf /var/lib/etcd

Run temporary etcd container just to be able to use the restore tooling. The exact parameters depend on the particular setup, you can see the correct value at you etcd static pod manifest.

docker run -t -i --rm -v $(pwd):/backup -w /backup -v /var/lib/:/var/lib/ registry.pharos.sh/kontenapharos/etcd:3.2.18 sh
⁃ ETCDCTL_API=3 etcdctl snapshot restore member/snap/db  --name=demo-pharos-master-0 --initial-cluster=demo-pharos-master-0=https://<IP_ADDRESS>:2380 --initial-cluster-token=pharos-etcd-token --initial-advertise-peer-urls=https://<IP_ADDRESS>:2380 --skip-hash-check=true --data-dir=/var/lib/etcd
⁃ exit

Bootup etcd

cp manifests/pharos-etcd.yaml /etc/kubernetes/manifests
⁃ Ensure etcd gets up
⁃ Ensure it has all the data it used to have, i.e. to list all namespaces:  ETCDCTL_API=3 etcdctl --endpoints=localhost:2379 --cacert=/etc/kubernetes/pki/ca.pem --cert=/etc/kubernetes/pki/etcd/client.pem --key=/etc/kubernetes/pki/etcd/client-key.pem get /registry/namespaces --prefix --keys-only

Bootup Kube api

cp manifests/kube-apiserver.yaml /etc/kubernetes/manifests/
⁃    Ensure Api gets up:
⁃    kubectl get nodes
⁃    kubectl get namespaces

Bootup all control plane components

cp manifests/* /etc/kubernetes/manifests

And yes, we clearly need better docs around adding and removing nodes to/from the cluster.

@jnummelin

What were the exact steps you took to remove the second master? I'd guess you first terminated the node itself which resulted already etcd getting borked as it loses the majority.

So in all details, I did the following: I own two physical hosts, a primary one and a secondary one. Both are capable of running virtual machines. Usually only the primary one is powered on. It runs 1 Master node and 3 Worker nodes.
To do maintenance on the primary one, I booted the secondary one (no vm's present on this machine at that time), created three Ubuntu Xenial VM's, added those to the cluster.yml, one as master and two as workers, effectively creating a cluster of 2 masters and 5 workers.
Running pharos up resulted in pharos provisioning the new nodes, setting up etcd and the controlplane for the second master and joining all to the cluster.
After this, I drained all worker nodes on the primary host, all pods got evicted to the 2 remaining workers. Then I drained the master on primary. After this, I shut down the primary server.
At this point, kubectl was already unable to return anything, I guess etcd refused operation.
However, after maintenance was done, I brought the primary host back online, so all four old nodes got back online as well. kubectl started working again (probably because the etcd on the worker on primary got back), I uncordoned all nodes and drained the workers on the secondary server to take it down as it was not needed anymore. This worked without a problem, the pods evicted to the primary nodes, all seemed fine. Workers got powered off.
But after I drained the secondary master and powered this one off as well, kubectl refused operation again. So I brought the secondary master back online and voila! It worked again. But I don't want the secondary master to run. I want to go back to my old 3 workers, 1 master, all on the same physical host setup. (I know that this is a SPOF, I don't care as there are no critical workloads, I just want to go back there).
So in theory, my etcd is not borked, so do I really need to do this disaster recovery thing? Sounds quite risky and scary ...
In my imagination I would just tell etcd that is alone again .. like it was for 3 months .. ?

So in theory, my etcd is not borked

Yes, as long as you keep the second master online. :)
Pharos itself will not allow you to change the etcd cluster in a way that would compromise the majority in any way. This is purely to safeguard the etcd cluster which is pretty crucial to the cluster. As you unfortunately found out the hard way.
You probably can achieve the "back to single etcd peer" goal by managing the etcd cluster manually. Here's the official docs on it: https://coreos.com/etcd/docs/3.2.17/op-guide/runtime-configuration.html
Just remember to start with both peers (masters)  still up-and-running and make sure you've got backups for the disaster recovery if things go south.

Okay, just took a look into the etcd docs .. I guess there is a good reason not to run in single peer mode. So would it be an option to create a third master (on the primary host), temporarily having three masters (+etcd's) and then removing the secondary one? This should keep majority, but I'm unsure how consensus works then - what happens if they don't agree on something?


html/${domain} directory not mounting static content to container

Hi, got everything working fine, however I'm having trouble getting my content on the container.
Before setup I had placed my static html files into /home/user/letsencrypt-docker-compose/html/mysite.com, and I have a valid index.html file inside.
When attempting to access my site I see it's directing traffic to the right place and the certificate is valid but I am met with a 403 Forbidden Error.
I checked docker compose logs and saw the following:
[error] 10#10: *51 "/var/www/html/**mysite.com**/index.html" is forbidden (13: Permission denied), client: **IP**, server: **DOMAIN**, request: "GET / HTTP/1.1", host: "**HOST**"
Based on my understanding, it appears that I may have placed my static content in an incorrect location or there may be some other issue that I am not aware of. I would greatly appreciate any guidance you may be able to provide on the matter. Thank you in advance for your assistance.
P.S. What would be the recommended way to update static content in the future?

Hi, @Hazmadd.
This "/var/www/html/**mysite.com**/index.html" is forbidden (13: Permission denied) looks like a problem with file or directory permissions that can be fixed with chown.
Run the following command and share the output:
docker compose exec nginx sh -c 'echo "$(id -u):$(id -g)"'
docker compose exec nginx ls -la /var/www/html/
docker compose exec nginx ls -la /var/www/html/${domain}

P.S. What would be the recommended way to update static content in the future?

Static content is mounted from the host machine to simplify the update of the content.
Thus, just edit the files in the way you prefer. The content of this directory is not in the .gitignore, so you can check the content to Git. Update on a laptop push to Git, pull the updates on the server and that's it. No need to restart or reload Nginx.

docker compose exec nginx ls -la /var/www/html/

For /html dir:
~/letsencrypt-docker-compose$ sudo docker compose exec nginx ls -la /var/www/html/ total 12 drwxr-xr-x    3 1000     1000          4096 Mar 28 00:24 . drwxr-xr-x    4 root     root          4096 Mar 28 00:31 .. -rw-r--r--    1 1000     1000             0 Mar 28 00:24 .gitkeep drwxr-xr-x    3 1000     1000          4096 Mar 28 00:24 mysite.com
For html/{{domain}}:
~/letsencrypt-docker-compose$ sudo docker compose exec nginx ls -la /var/www/html/mysite.com total 24 drwxr-xr-x    3 1000     1000          4096 Mar 28 00:24 . drwxr-xr-x    3 1000     1000          4096 Mar 28 00:24 .. drwxr-xr-x    2 1000     1000          4096 Mar 28 00:24 Img -rw-r--r--    1 1000     1000           861 Mar 28 00:24 Index.html -rw-r--r--    1 1000     1000          1653 Mar 28 00:24 scripts.js -rw-r--r--    1 1000     1000          1398 Mar 28 00:24 styles.css

@Hazmadd, you have Index.html (with the uppercase I) instead of index.html. Rename it mv Index.html index.html
.

@Hazmadd, you have Index.html (with the uppercase I) instead of index.html. Rename it mv Index.html index.html .

Well, that was it. I appreciate you bringing that up. Usually I catch that sort of mistake early


Updated UML diagram.

What will we use to process the receipt? Which API? Building our own is not possible.

What will we use to process the receipt? Which API? Building our own is not possible.

https://cloud.google.com/vision/docs/ocr. I used this in one of the projects in the past. It's pretty accurate!


Can Bark.cpp support acceleration with AMD GPU with ROCM?

Can Bark.cpp support acceleration with AMD GPU with ROCM?

Hello @eliranwong ! We are currently working on ggml to support the necessary operations in CuBLAS. I think with CuBLAS we should be able to support AMD GPU.


WIP: Add a visual indicator on the box widget when b.IsFocused==true

ref #20
I think this follow the direction given in the ticket. I had to increase the widget interface to add a method called IsFocused() bool.
The example app works fine and looks ok except for the Login. For some reason the text SKYNET is also blue when the focus is on the buttons. I don't think it should be the case.
There is still a bit of work but I would appreciate some feedback to let me know if I am on the right track.

[ ] is the blue line to thick for the default the style box.selected if so how to decrease it ?
[ ] write a test or 2
[ ] Fix the login example

Looking real good so far!
On the border thickness, if it's only to get a subtle focus indicator, then I'd probably switch the foreground and background of the box.focused identifier:
"box.focused": {ColorBlue, ColorDefault},

By default though, I'm thinking focus indication should probably be disabled. I think it makes sense for more complex UIs with a lot of boxes, but for simpler applications with one or two boxes it's probably too much. In fact, since you're probably going to set your own colors anyways, I'm thinking of making the default theme monochrome.
Right now, the p.WithStyle() surrounds the Draw call to each child (that's why SKYNET turns blue). Maybe we can limit the highlighting to only the border for now?
	if b.border {
		p.WithStyle(style, func(p *Painter) {
			p.DrawRect(0, 0, sz.X, sz.Y)
			p.WithMask(image.Rect(2, 0, sz.X-3, 0)).DrawText(2, 0, b.title)
		})
		p.Translate(1, 1)
		defer p.Restore()
	}

This diff below that if I am not mistaken you suggest above as a negative impact on the layout.
diff --git a/box.go b/box.go
index 74c8d8e..373bd5a 100644
--- a/box.go
+++ b/box.go
@@ -87,10 +87,9 @@ func (b *Box) Draw(p *Painter) {
                if b.border {
                        p.DrawRect(0, 0, sz.X, sz.Y)
                        p.WithMask(image.Rect(2, 0, sz.X-3, 0)).DrawText(2, 0, b.title)
-
-                       p.Translate(1, 1)
-                       defer p.Restore()
                }
+               p.Translate(1, 1)
+               defer p.Restore()

                var off image.Point
                for _, child := range b.children {

The result that we have a this point is subtle and work really well for the example app. Here it is an example on the example/http.

There is still a side effect when the focus is on the button on example.mail:

As far as I can tell the latest commit fix the issue in example/login.

Nice! Aside from that one comment, I'd be happy to merge!

@marcusolsson I think we are good to go.
Thank you for the hand holding.

LGTM! Thanks again!


require.unsee is not exposed in custom require function

Causes the error of "unable to require.unsee, please upgrade loader.js to >= v3.3.0" to be thrown in the console.  See https://github.com/ember-cli/ember-cli-test-loader/issues/15#issuecomment-141466093

@sglanzer any thoughts on this?

@elwayman02 have you tried require.unsee = savedRequire.unsee - I suppose we should look at a cleaner proxy on require.
I'm slammed and don't have near term bandwidth to look @ it but PRs or pointers welcome

Yea I don't have time to look at it this week at the very least...just heard about it from someone else and it affects stuff I'm working on so I wanted to see if there was any traction here.

We could definitely do some work on a cleaner require proxy - I'm going to do some work on this project again over the next few weeks.
I can dig around the links for steps to reproduce, but if anyone has time to document steps it would be a big help.

You can run the EmberCli-1.13.8 branch of https://github.com/softlayer/sl-ember-components to replicate the error.

I haven't seen this in any of my addons, but I'll find some time to look
into this after finishing the addon exclusions work.
On Thu, Oct 8, 2015 at 10:28 AM, Jeremy Brown<EMAIL_ADDRESS>wrote:

You can run the EmberCli-1.13.8 branch of
https://github.com/softlayer/sl-ember-components to replicate the error.
—
Reply to this email directly or view it on GitHub
https://github.com/sglanzer/ember-cli-blanket/issues/85#issuecomment-146563314
.

I'm seeing this error in my addon also test coverage report drastically changed from 93% to 16% seems inaccurate. I did upgrade from ember-cli 1.13.8 to 1.13.13. that's when I noticed this unable to require.unsee, please upgrade loader.js to >= v3.3.0 when running ember t -s

I did upgrade from ember-cli 1.13.8 to 1.13.13

That's exactly what I was doing, too. Same problem here.

have you tried require.unsee = savedRequire.unsee

That seems to work, thanks @jschilli.

I just ran into this issue. Is there any ETA on a fix?
In the mean time where should I add require.unsee = savedRequire.unsee?

@jagthedrummer adding that won't change the 1.13.13 issue with accuracy of reporting.
There is a series of changes that change up the way we instrument code that is good with 1.13.13 forward but we're waiting on an upstream dep PR on blanket.js - no action on that yet so we'll need to make a decision about creating a temporary fork.
cc: @sglanzer

Ah! Thanks for the info @jschilli. I'm actually on ember-cli 2.2.0-beta.6 and I'm seeing the same error reported above, but I'm also getting no coverage info at all. (Not sure if that's new/useful info...)

Can you retest this with version 0.9.1 (and be sure to update blanket.js via ember g ember-cli-blanket) and reopen if it still persists

Been lurking this for a while now
@jschilli your 0.9.1 update solved the issue for me. Thanks a million, you're a rockstar.


neonvm-runner: Tune QEMU disk cache settings

Resolves #775, refer there for more information.
Figured out how to implement the thing while writing the issue, figured I might as well open this, if only for discussion.

@sharnoff are we going to merge this?

Thanks for the reminder. I think I need to fix the defaults to set writeback=on, but otherwise we should be good to merge. Probably want to rollout to production with cache=none still, but then region-by-region enable the fine-tuning.


Problem targetting "wss"

I got exception class "EIdOSSLCouldNotLoadSSLLibrary".  may be related to indyopenssl?

What moment you got this exception?

When i tried to connect to a wss:// link


Version Bump, Font Awesome Updated

This commit updates font awesome, select2, and bumps the version.

I realise the reason why select2 was removed from dependency. I am submitting another PR with similar change.


Use a service account PAT for format workflow

Deploy key's write access is limited to TurboWarp/extensions, can't touch forks. Instead it now uses a PAT which I've tested to have the necessary permissions
Comment explains why the default workflow token isn't sufficient.

!format

Okay that workflow failed but that's expected because it's running the one on master which uses a deploy key that doesn't exist anymore


[KO] Fix wrong-translated words (OTP Concurrency lesson)

Accidentally, I found wrong-translated word. (In fact, I translated 😂 ) 호출하는 함수 -> 함수를 호출하는 프로세스
In this context, handle_cast/2, handle_call/3 receives 'process' not 'function'.
@riseshia, @Dalgona, @devleoper

Thank you @malkoG!


I wanna change the icon of the launcher to use the anime game's original icon, how?

There are 2 ways to change a macOS App's icon. You replace the .icns file in the directory, or you use "Get Info" on the app to soft-change the icon. Neither of the 2 methods work when Yaagl is open however, as the icon will change back to the Yaagl icon, which doesn't comply with the macOS icon guideline outlined since Big Sur.
Is there a way I can change the icon myself? Its kinda big deal for me

I do use custom icons on many apps and both ways works for me tho.

does the icon change back to Yaagl stock icon when you open the launcher?

I've upscaled Yaagl's stock icon and generated an icns file from it, link valid for 3 months

Sorry for the late reply, it's giving me access denied.

Test 1: Copy and pasted the icon using the "Get info".
Test 2: Modified the internal icns file on Resource folder.

The one modifed persisted even after a reboot, until I "Get info" on it.

They do persist after a reboot, but what bugs me is that when you open the app, it temporarily goes back to stock, then changes back to custom afterwards. And idk if that's a me thing or it's a common issue. I have this happen to a lot of other apps as well, Snap Inc's Lens Studio for example.
Let me show you what I mean:
https://github.com/yaagl/yet-another-anime-game-launcher/assets/40534994/ba015705-64b6-4134-b1a2-b4d0406166ab

I cloned the repo and replaced /src/icons/Paimon.cr.png with a png version of the icon I'm using and built my own launcher, the launcher now uses the new icon properly

Created pull request to replace the icon


Allow customizing --disable-uncorrectable to output rubocop:disable instead of rubocop:todo

Is your feature request related to a problem? Please describe.
At my company we use inline rubocop:disables relatively often and consider a lot of cops to be relatively noisy (for instance, using the method length cop as a nudge to double check something shouldn't be broken up but confidently disabling if we think a fat method is better in context) and also get a decent number of false positives. We do not mark them as a rubocop:todo because we generally have no intention of coming back to them. It is extremely rare for a disable to be an actual TODO but when it is, we can use rubocop:todo.
I've just learned about --disable-uncorrectable which is a great workflow win for some cases but unfortunately it outputs rubocop:todo since #7335. This is misleading since we generally do not consider these items a TODO and manually changing these to rubocop:disables negates the workflow win of the flag. I also value having uniformity in the syntax we use.
Describe the solution you'd like
It would be nice if there was a version of --disable-uncorrectable that output a rubocop:disable instead of a rubocop:todo. This could be changed by a config file, an argument passed to --disable-uncorrectable, an alias of the flag which outputs a rubocop:disable, or a reversion of the behavior change from #7335.
As an aside, I found it mildly surprising that a --disable-... command results in a todo.
Describe alternatives you've considered
I left multiple ideas above--all would be satisfactory. I have also considered doing some kind of sed awkwardness in an alias but I would prefer to have a first-class feature.
I have also considered just switching all our disables to todos but that negates the ability to annotate real todo.
Additional context
N/A

Should this issue be labeled as Good First Issue?
We are doing research about how to help newcomers onboarding in an open source project and how to accelerate the issue resolving process.
We have developed a tool to automatically label the Good First Issue (GFI), i.e., the issue which is good for newcomers.
We first extract 72 features from different dimensions of issue reports, such as readability, semantic meaning, associated code snippets, etc, and experimentally investigate to what extent these features correlate with GFI. Results turn out that a large portion of these features do have a medium to large correlation with GFI.
We then build a machine learning model based on these features to predict GFI. The experiments on a dataset of 12k issues from Github show that 0.90 AUC can be achieved.
Our tool shows that this issue has a very large possibility to be a GFI.
Could you please tell us whether it should be labeled as a GFI?
And if you have any comments or suggestions with this tool, could you please tell us?
Thank you so much.


bug: Modal closes when pressing enter button

What version of daisyUI are you using?
3.0.0
Describe your issue
Welcome new 3.0.0 dialog!
In the past, I wrote code myself that closes modal when pressing ESC, but the new 3.0.0 modal is really good to solve this problem.
But I found that this modal also closes when pressing 'Enter'.
I can't find any mention in documentation!
What browsers are you seeing the problem on?
No response
Reproduction URL (optional)
No response

This is not about daisyUI. That's how <dialog> element works.
If there is <button> inside <form method="dialog"> when you open the modal that button gets focused by default
See this:

https://stackoverflow.com/a/61855683
https://stackoverflow.com/a/76158858


Allow null value in query string KVP per RFC 3986

Fixes https://github.com/aspnet/Home/issues/2679.
This not only fixes the issue specified, but also allows a null KVP value in other methods per RFC 3986 referenced by @jkotalik.
I added a test as well as enhanced existing tests to validate the null option.

@robertmiles3 Thanks for the PR, we should really add some benchmarkdotnet microbenchmarks for this code.

My first "real" PR in the books for dotnet; that's key. Thanks everyone for the feedback.


Should a transcription be created for each file in blob?

I see that this is to create Batch transcription for an Azure Blob Storage. So when we specify the recordings URL in the body of the Post request to create a new transcription, must we specify the SAS URL of the Blob Recording (like file.mp4) or is there a way to reference the entire container? I am asking because right now I am creating a batch transcription service with an ID for each file in the blob (1 for file1.mp4, 1 for file2.mp4, etc.) Then looping through all transcriptions to get my result. Is there a better way to do this?

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 73fb7e76-fb80-c420-2efe-e3ca3a27b749
Version Independent ID: 07a42557-deb3-e4b3-3f14-f26a27be49c2
Content: How to use Batch Transcription - Speech Services
Content Source: articles/cognitive-services/Speech-Service/batch-transcription.md
Service: cognitive-services
Sub-service: speech-service
GitHub Login: @PanosPeriorellis
Microsoft Alias: panosper

With the current API version you need to create a SAS Uri per file. We will soon release an update to allow you to point to containers.
From: Kishan<EMAIL_ADDRESS>Sent: 12 June 2019 08:49
To: MicrosoftDocs/azure-docs<EMAIL_ADDRESS>Cc: Panos Periorellis<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: [MicrosoftDocs/azure-docs] Should a transcription be created for each file in blob? (#33158)
I see that this is to create Batch transcription for an Azure Blob Storage. So when we specify the recordings URL in the body of the Post request to create a new transcription, must we specify the SAS URL of the Blob Recording (like file.mp4) or is there a way to reference the entire container? I am asking because right now I am creating a batch transcription service with an ID for each file in the blob (1 for file1.mp4, 1 for file2.mp4, etc.) Then looping through all transcriptions to get my result. Is there a better way to do this?

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 73fb7e76-fb80-c420-2efe-e3ca3a27b749
Version Independent ID: 07a42557-deb3-e4b3-3f14-f26a27be49c2
Content: How to use Batch Transcription - Speech Serviceshttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fcognitive-services%2Fspeech-service%2Fbatch-transcription%23feedback&data=02|01|panos.periorellis%40microsoft.com|7f0c4733d6cb4d59164c08d6ef020359|72f988bf86f141af91ab2d7cd011db47|1|0|636959189259797780&sdata=b2ka5r1kO6m3OWXZoh1fscXA8N7ncrTGRGR%2BUk1Qd2M%3D&reserved=0
Content Source: articles/cognitive-services/Speech-Service/batch-transcription.mdhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicrosoft%2Fazure-docs%2Fblob%2Fmaster%2Farticles%2Fcognitive-services%2FSpeech-Service%2Fbatch-transcription.md&data=02|01|panos.periorellis%40microsoft.com|7f0c4733d6cb4d59164c08d6ef020359|72f988bf86f141af91ab2d7cd011db47|1|0|636959189259797780&sdata=MusO2HjOILR6Jdk%2FO7onip8sAfoxvg7J5m%2Bb70tGza8%3D&reserved=0
Service: cognitive-services
Sub-service: speech-service
GitHub Login: @PanosPeriorellishttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FPanosPeriorellis&data=02|01|panos.periorellis%40microsoft.com|7f0c4733d6cb4d59164c08d6ef020359|72f988bf86f141af91ab2d7cd011db47|1|0|636959189259807774&sdata=61qWTTlCDbpeCxPQ09JV2XluCxzSq6O2FVDWauE79Wc%3D&reserved=0
Microsoft Alias: panosper

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicrosoftDocs%2Fazure-docs%2Fissues%2F33158%3Femail_source%3Dnotifications%26email_token%3DAGBL3EXMWVD4HQKVXWWUH4LP2CL4XA5CNFSM4HXF3DLKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GY7LKAA&data=02|01|panos.periorellis%40microsoft.com|7f0c4733d6cb4d59164c08d6ef020359|72f988bf86f141af91ab2d7cd011db47|1|0|636959189259807774&sdata=X7xo4AcT2Lv0yHKlgd1jUpTenny6hUjKkN27OnDEPZ8%3D&reserved=0, or mute the threadhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAGBL3EQRLHVIC7JJAUH3X33P2CL4XANCNFSM4HXF3DLA&data=02|01|panos.periorellis%40microsoft.com|7f0c4733d6cb4d59164c08d6ef020359|72f988bf86f141af91ab2d7cd011db47|1|0|636959189259817765&sdata=VzxpmKVF0EcpDH7Mgfyc3De4tK6zqEvPYLOGZcM2pZk%3D&reserved=0.

Yes please specify a SAS Uri for each audio file. Then submit a transcription request per audio file.

We will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.

Is this feature now live or do we need to create a SAS Uri for each file in the blob still?


Added a test case to Where do I belong with return value 0

On the chat today I have seen several solutions that cannot return 0 (usually return arr.length instead), and they still pass, as there is no such test case. Here is one, where([3, 10, 5], 3) === 0.

Awesome, thanks for the PR! :smile:
In the future please name your branch according to the Contribution Guide


Add a command to find your avatar

Could be !findme !whereami to show where your avatar is on the overlay.

Make the avatar bigger for a short amount of time
or
Make the avatar blink
or
Make the avatar say something

Implemented in https://github.com/MrEliptik/twitch_avatars_overlay/commit/9d40160f003bcb9746329d37f06a0c42a492f402


⚠ Samsung has degraded performance

In 3d78970, Samsung (https://samsung.com) experienced degraded performance:

HTTP code: 200
Response time: 2453 ms

Resolved: Samsung performance has improved in d41a187.


Using forward slash ("/") Conflicts with Firefox defaults

In Firefox, the forward slash / defaults to searching the page. Perhaps we could get a secondary key as a shortcut to jump to the search box?

Gmail and Facebook both use /, not to mention vim itself – so I think we'll plan to leave this. Thanks for the suggestion though.


⚠ Bofrost.es has degraded performance

In b2997c4, Bofrost.es (https://www.bofrost.es) experienced degraded performance:

HTTP code: 200
Response time: 1556 ms

Resolved: Bofrost.es performance has improved in 3e1c3db after 7 minutes.