text:
Storage keeps disconnecting

Several times a day Luckperms loses connection to my MariaDB storage. I have changed databases several times but it still happens.  None of the other plugins I use have had a connection problem only luck perms do. I have even tried using one of the databases one of my other plugins is on which works correctly but luck perms still lose connection to it. It keeps spamming this every second in my console for hours when it starts.
23:04:09] [luckperms-scheduler-worker-21/WARN]: java.sql.SQLTransientConnectionException: luckperms-hikari - Connection is not available, request timed out after 5000ms.
> [23:04:09] [luckperms-scheduler-worker-21/WARN]: at me.lucko.luckperms.lib.hikari.pool.HikariPool.createTimeoutException(HikariPool.java:697)
> [23:04:09] [luckperms-scheduler-worker-21/WARN]: at me.lucko.luckperms.lib.hikari.pool.HikariPool.getConnection(HikariPool.java:196)
> [23:04:09] [luckperms-scheduler-worker-21/WARN]: at me.lucko.luckperms.lib.hikari.pool.HikariPool.getConnection(HikariPool.java:161)
> [23:04:09] [luckperms-scheduler-worker-21/WARN]: at me.lucko.luckperms.lib.hikari.HikariDataSource.getConnection(HikariDataSource.java:100)
> [23:04:09] [luckperms-scheduler-worker-21/WARN]: at me.lucko.luckperms.common.storage.implementation.sql.connection.hikari.HikariConnectionFactory.getConnection(HikariConnectionFactory.java:131)
> [23:04:09] [luckperms-scheduler-worker-21/WARN]: at me.lucko.luckperms.common.messaging.sql.SqlMessenger.getConnection(SqlMessenger.java:85)
> [23:04:09] [luckperms-scheduler-worker-21/WARN]: at me.lucko.luckperms.common.messaging.sql.AbstractSqlMessenger.pollMessages(AbstractSqlMessenger.java:96)
> [23:04:09] [luckperms-scheduler-worker-21/WARN]: at me.lucko.luckperms.common.plugin.scheduler.AbstractJavaScheduler$ErrorReportingRunnable.run(AbstractJavaScheduler.java:118)
> [23:04:09] [luckperms-scheduler-worker-21/WARN]: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
> [23:04:09] [luckperms-scheduler-worker-21/WARN]: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> [23:04:09] [luckperms-scheduler-worker-21/WARN]: at java.lang.Thread.run(Thread.java:748)
> [23:04:09] [luckperms-scheduler-worker-21/WARN]: Caused by: java.sql.SQLException: Connection.setNetworkTimeout cannot be called on a closed connection
> [23:04:09] [luckperms-scheduler-worker-21/WARN]: at me.lucko.luckperms.lib.mariadb.internal.util.exceptions.ExceptionMapper.getSqlException(ExceptionMapper.java:278)
> [23:04:09] [luckperms-scheduler-worker-21/WARN]: at me.lucko.luckperms.lib.mariadb.MariaDbConnection.setNetworkTimeout(MariaDbConnection.java:1624)
> [23:04:09] [luckperms-scheduler-worker-21/WARN]: at me.lucko.luckperms.lib.hikari.pool.PoolBase.setNetworkTimeout(PoolBase.java:552)
> [23:04:09] [luckperms-scheduler-worker-21/WARN]: at me.lucko.luckperms.lib.hikari.pool.PoolBase.isConnectionAlive(PoolBase.java:168)
> [23:04:09] [luckperms-scheduler-worker-21/WARN]: at me.lucko.luckperms.lib.hikari.pool.HikariPool.getConnection(HikariPool.java:185)

Please see here for more info: https://github.com/lucko/LuckPerms/wiki/Storage-system-errors

repo: lucko/LuckPerms


text:
Bungeecord error

I get this error when a player joins by Bungeecord proxy.
11:50:13 [SEVERE] [LuckPerms] Exception occurred whilst loading data for 7bd8b230-680e-45e2-acff-5215f7f69688 - EnderTweaks 11:50:13 [SEVERE] [LuckPerms] Exception occurred whilst loading data for 8a9dacdf-8d99-4ad9-9b07-55728d547a17 - rupertrmstr 11:50:13 [SEVERE] java.lang.NullPointerException 11:50:13 [SEVERE]     at me.lucko.luckperms.common.plugin.util.AbstractConnectionListener.loadUser(AbstractConnectionListener.java:67) 11:50:13 [SEVERE]     at me.lucko.luckperms.bungee.listeners.BungeeConnectionListener.lambda$onPlayerLogin$0(BungeeConnectionListener.java:90) 11:50:13 [SEVERE]     at net.md_5.bungee.scheduler.BungeeTask.run(BungeeTask.java:63) 11:50:13 [SEVERE]     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) 11:50:13 [SEVERE]     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) 11:50:13 [SEVERE]     at java.lang.Thread.run(Thread.java:748) 11:50:13 [SEVERE] java.lang.NullPointerException 11:50:13 [SEVERE]     at me.lucko.luckperms.common.plugin.util.AbstractConnectionListener.loadUser(AbstractConnectionListener.java:67) 11:50:13 [SEVERE]     at me.lucko.luckperms.bungee.listeners.BungeeConnectionListener.lambda$onPlayerLogin$0(BungeeConnectionListener.java:90) 11:50:13 [SEVERE]     at net.md_5.bungee.scheduler.BungeeTask.run(BungeeTask.java:63) 11:50:13 [SEVERE]     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) 11:50:13 [SEVERE]     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) 11:50:13 [SEVERE]     at java.lang.Thread.run(Thread.java:748) 11:50:13 [SEVERE] Task BungeeTask(sched=net.md_5.bungee.scheduler.BungeeScheduler@530d0a, id=3, owner=me.lucko.luckperms.bungee.LPBungeeBootstrap@191004a, task=me.lucko.luckperms.bungee.listeners.BungeeConnectionListener$$Lambda$119/16282668@1a2898a, delay=0, period=0, running=true) encountered an exception java.lang.NullPointerException     at me.lucko.luckperms.bungee.listeners.BungeeConnectionListener.lambda$onPlayerLogin$0(BungeeConnectionListener.java:103)     at net.md_5.bungee.scheduler.BungeeTask.run(BungeeTask.java:63)     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)     at java.lang.Thread.run(Thread.java:748) 11:50:13 [SEVERE] Task BungeeTask(sched=net.md_5.bungee.scheduler.BungeeScheduler@530d0a, id=4, owner=me.lucko.

Could you please use a site like https://hasteb.in for sharing errors?

https://hasteb.in/dimekeke.rb

Looks like the information for the users is null (not existant) somehow.
What LP version are you running and what server/proxy type and version are you using?
In worst case would the player data be corrupted.

It is version 5.0.125 of luckperms.
The server was made only hours ago so it would have been the latest version.

Try the latest release from https://luckperms.net and also delete the lib/libs folder to let LP re-download the required dependencies.

How do I configure it? Do I put the bungeecord version on the bungee server and then the spigot version on the spigot servers? Or do I just need the BC version?

https://github.com/lucko/LuckPerms/wiki/Network-Installation

Is there anywhere I can download an older version of luckperms?

I've now stopped the errors, but it is not syncing between servers.

Follow the instructions here: https://github.com/lucko/LuckPerms/wiki/Network-Installation

I've already followed that, it doesn't work..

source: gharchive/issue

license: MIT

license_type: permissive

license_source: github-api


text:
Update Solutions.md

Add 796

Thanks, added

source: gharchive/pull-request

repo: luckytoilet/projecteuler-solutions


text:
Erro de login

Usuários não conseguem logar

Tarefa concluída


text:
adding support for CBDDLP file format

Needed to do this for an older Elegoo Mars printer which would not upgrade to support the CTB file format
Still hopeful that this model can upgrade to handle CTB - already contacted Elegoo Support
Meanwhile, these code changes will successfully run prints for both CTB and CBDDLP formats
Decided to add a new file format definition file, even though it is a copy of CTB - in the future, if other machines out there only supporting CBDDLP show up and require specific offset tweaks, at least the file format is separate from CTB
Unrelated, detected issues operating print sequences on my Mars machine:

Both Print and Print > Pause > Resume sequences work as intended
The Stop sequence doesn't operate as intended on this specific Mars model:

The touch screen resets to the home screen
The fan, LEDs and exposure screen all remain active

To perform a graceful print stop, the following sequence works: Print > Pause > (wait for Pause to finish) > Stop

Z is raised to stop position, LEDs, fan and exposure screen turn off

dealing with gpg signing.....................

repo: luizribeiro/mariner


text:
Optimized for M1?

Great application! Really good job on all the features and simplicity. Keep up the good work.
Is LinearMouse optimized for M1? :)

Although not tested on M1, the releases are universal binaries, which means LinearMouse should run natively on M1 without the help of Rosetta transpiler. It would be nice if someone could verify it on M1 :)

I can confirm it's working fine on my M1 machine. Thank you so much for this program!

Can also confirm it's working on my M1 Pro machine. This app is amazing, thanks a lot!

@Reshurum @ehhthing Thank you very much. So I'm closing this issue. Please feel free to re-open it if performance issues on M1 are observed.

authors: BE-CH Reshurum ehhthing lujjjh

repo: lujjjh/LinearMouse


text:
Display one less component on blank lines

First of all thanks for the plugin.
I would love an option to display one less component on blank lines.
That is how indentation guides work in IntelliJ and VSCode. And I honestly think it makes more sense.
Especially with use_treesitter enabled the trailing component feels out of place (See first image).
Currently:

Expected:

I just added a -1 so it isn't in shape for a PR.
When I have some time I might try to get a grip of the config options and actually implement this.

This is already an option :help g:indent_blankline_show_trailing_blankline_indent

Oops, sorry for bothering you

authors: Saecki lukas-reineke


text:
0.1.11 will not work with babel anymore

Hi :)
thank you first for the library.
0.1.11 introduces a breaking change (but is a patch release) and removes all babel compiler hints / .babelrc file. It's not usable in a out of the box babel/webpack configuration anymore.
Is there any migration path?
david

Hi David,
I have to admit that the versioning of this release is not very informative in regards to semver. Sorry for that.
I removed babel because it was a constant source of bugs and inconveniences across environments. Should I include the regenerator runtime in order to provide out of the box browser compatibility? If yes, what happens in an environment [where generators are already supported (see #8 and #1 )? default export vs module.exports was another thing (see #6). And so on and so forth.
So in the end I decided to make this a node module in the actual sense of the word and treat transpilation as out of scope.
As far as migration paths go you'll have to treat this package like any other node-only package that you want to transpile for e.g. use in browser.
babel-register and Webpack loader configs should help.
And some more info in the README would certainly help.

@BowlingX I ran into an issue with this library not working properly with Babel, as well. My problem was that I was trying to use UglifyJS with webpack to compress my build, and UglifyJS only works with ES5. I discovered that I could solve the problem neatly by upgrading to the standalone uglifyjs-webpack-plugin, which uses a fork of UglifyJS that works with ES6. Once I did that, I had no further problems with this library at all.
Does that help you out?

I just had lunch with a co-worker of mine and he suggested to generally get rid of the es6 features as there are very few anyway, so that no special config/treatment is needed when transpiling. The most important change will probably be switching from generators to loops when iterating over nodes. The downside of that will be that instead of being somewhat O(n)-ish, iterating over nodes is going to be straight O(n).
I hope I can get this done by monday.

@BowlingX
Does v1.0.0 work as expected with your webpack config now?

@singingwolfboy yeah :) this was the issue. @lukasbuenger thank you a lot for publishing the new version, I think I will close the issue for now.

authors: BowlingX lukasbuenger singingwolfboy

repo: lukasbuenger/immutable-treeutils

license: mit

license_source: bigquery


text:
Rotate and mirror video

Hi, is it possible to rotate and mirror the video?
I probe the Config.FFmpegOptions.Add("vf", "transpose=1,transpose=2"); but don't work.
I use RTMP live stream..

Hi, we have just added support for audio effects, but video effects are not implemented yet. A problem with specifically video rotation is that the output image can have a different resolution and aspect ration than the input image. We will only find out once the first image is rendered, but we need to tell the MediaFoundation engine the output resolution before playback starts.
This makes adding video filters a bit more complicated. I am not yet sure how to approach that problem. Either you'd need to tell us the output resolution together with the filter definition, or we'd need to decode the first image, check resolution and then initialize MF with the formats (and keep the decoded image stored for when playback actually starts). The latter would be the more flexible approach, but also the most complicated.
Video rotation could also be achieved by using MF attributes, but there is no such attribute for video mirror/flip, so it won't help for your case. It would be more perormant because it is applied by MF during rendering on the GPU.

I don't think MF_MT_VIDEO_ROTATION attribute alters the resolution of the samples. MF simply figures it out by itself. But I am not sure how that would react with switching it mid playback.

Sure, the MF attributes would not cause problems. But if we add ffmpeg video effects, nothing prevents people from adding rotate, crop, scale, whatever video effects, which will cause different output resolution.
If @grais wants mirror/flip, then that can only be done with ffmpeg effects, and then we have to think about how such situations can be handled. It is not as simple as audio effects, where we can just resample to the desired sample rate/format if we get unexpected output from the filter.

If someone were to use implement a video filter, they'd have to do it in a way that they can plug the filter into the framework and just work. That includes rescaling, interoplation, clipping, padding and other related activities.

Hi. I just want rotate and play, because somtime the streaming phone make a wrong orientation. So i want set the orientation only one time before start playing. and no more time. (or i will stop recreate and start again the playing options..)

You can play with MF_MT_VIDEO_ROTATION attribute, we use it to correct orientation for rotated videos.

Yes, if you only need rotation, things get a lot easier.

Yes! Thanks for all. That's working!

@grais: If you want to bring your solution back into the repo, feel free to open a PR or create a new issue to discuss it. I will be closing this one for now...

authors: grais lukasf mcosmin222

repo: lukasf/FFmpegInterop


text:
Contact becomes blank on update

HI.
I hope that you are going well.
I'm using the plugin but when I try to update a contact, the mobile being blank. I don't know why

I am having the same problem as you.

I am having the same problem as you.

Same problem here TT

Same problem here TT

authors: Alloco225 SmartAri scriptshadow


text:
Plurals example?

Any recommendations or examples how to support plurals with this library?

Hey, sorry for the delay! I managed to "unwatch" the repository somehow 🙈
If you don't want to manage the logic for plurality rules (who does?) I'd use Intl.PluralRules. I personally try to do this through functional definitions, but of course that's now always possible (JSON files, etc).
So instead you can add nested keys for the different select() values to handle your variations, and use that as part of your rosetta.t() lookup:
const i18n = rosetta({
  en: {
    warning: 'WARNING: {{message}}'',
    birds: {
      zero: 'birds',
      one: 'bird',
      two: 'two birds',
      few: 'some birds',
      many: 'flock of birds'
    }
  }
});

const PR = new Intl.PluralRules();

function print(count) {
  let key = PR.select(count);
  let message = count ? i18n.t(`birds.${key}`) : 'Nevermind';
  return i18n.t('warning', { message });
}

print(0); // WARNING: Nevermind
print(1); // WARNING: bird
print(6); // WARNING: some birds
print(42); // WARNING: flock of birds

Hope that helps~! Sorry again for the delay

@lukeed would you accept a PR which enables exactly that behavior with a flag? I think it's a very valuable and lightweight addition.

authors: StarpTech lukeed mrrau

repo: lukeed/rosetta


text:
Added short and long form for month.

Great package! Awesome that it’s so small. Not sure if you’d like to add short and long form for month, @lukeed. Increased size from 340B to to 366B.

Hey, thanks~!
I would not – sorry 😞 I'll get around to adding in #7 in the near-ish future which will allow you to do whatever you want. It's been on my todo list... will try to fast track it this week.

By the way, it's generally a good idea to open an issue first to discuss new features so that you don't risk spending time on something that doesn't land. I appreciate the effort & time you do put into it, but it makes me feel guilty for the same reason. Also, I'd recommend not changing a project's code style. It hurts your chances at getting merged. Feature aside, I would have rejected/requested that you revert those changes – tinydate is purposefully written in ES5 to avoid a compilation step.
Thank you & sorry again~!
I'll get a move on #7 asap
Cheers

That totally makes sense, thanks, @lukeed. I’ll open an issue first, next time.
Also, thanks for explaining why you use ES5. And, yes, will keep code style as-is, next time I issue a PR.

Cool, thank you for your understanding :)
Custom dictionaries are now available under v1.2.0~! I used your examples here as the illustrative example.
Thanks again 🙌

authors: heymartinadams lukeed

repo: lukeed/tinydate


text:
Scrollify doesn't ignore currentHash anymore

If you loaded your page with an hash to an existing ID, scrollify just ignored it and stopped the default browser behavior.
For example, mysite.com/#test became mysite.com/#home (where home is the first section).
Now it's fixed.

This would mean that the page could load half way scrolled between two sections.
This isn't really the user experience that Scrollify is intended for.

In my case, I want to use scrollify as it is intended, but... I also want to create direct links to some parts of my page.
I don't think this breaks Scrollify's UX.

authors: HugoHeneault lukehaas

repo: lukehaas/Scrollify


text:
What's wrong about the 'Gradient overflow' when I using EfficientNet-b7?

I have confirmed that the gradient has been zeroed before each training.
I used the EfficientNet-b7 on the Kaggle's kernel. My dataset includes about 30,000 images, and each image will be resized to 256*256 before training.
I used EfficientNet-b5 to run successfully,  then I replaced EfficientNet-b5 with EfficientNet-b7 and changed the batch-size from 32 to 8.
Then there appeared ‘Gradient overflow.  Skipping step, loss scaler 0 reducing loss scale to 32768.0’， ‘Gradient overflow.  Skipping step, loss scaler 0 reducing loss scale to 16384.0’，etc.

did you use nvidia apex? it is no problem for that

did you use nvidia apex? it is no problem for that

Yes, I  have installed the APEX tool. But the result is as I said above. I am very depressed.

@Liam-Yang you shoudl read about how APEX implements adaptive loss scaling for accurate fp16 training. What you described above is absolutely normal and intended for APEX.

Have you been able to successfully train efficientNet using FP16?

repo: lukemelas/EfficientNet-PyTorch


text:
typora@0.9.81: download via aria2 failed

I have tried cleanup the cache. But not working.

It works for me.  Maybe their website was down when you was installing it.  You can try install again.

It works for me. Maybe their website was down when you were installing it. You can try install again.
Interesting. It works now. Maybe it is caused by unstable networking.

Interesting. It works now. Maybe it is caused by unstable networking.

mainland of China pollute DNS,I use extras/dnsJumper change to google dns and it works

Interesting. It works now. Maybe it is caused by unstable networking.

mainland of China pollute DNS,I use extras/dnsJumper change to google dns and it works

Appreciate for your info.

repo: lukesampson/scoop-extras

license: Unlicense


text:
dont-sleep: Hash fix

Fixed hashes of Don't Sleep v7.89 as reported by the author website.

Open issue with title from installation failure message instead of posting PR.

Open issue with title from installation failure message instead of posting PR.

Sorry, didn't see this was already covered by #5566.

Sorry, didn't see this was already covered by #5566.


text:
No valid scoop shim, breaks repo scripts

I'm trying to update a manifest that I wrote using checkver, but since the scripts all have scoop which scoop and return Not a scoop shim., I get an error.
How do I fix this?

How to reproduce this problem?

I get the same issue. In my case just executing ./bin/checkver.ps1 in a local bucket produces an error, which is also due to the fact that scoop which scoop returns Not a scoop shim.

There was an upstream bug in PowerShell which has been fixed. Reopen if it occurs again.

authors: HUMORCE apommel lmartinez-mirror rashil2000

repo: lukesampson/scoop

license: unlicense


text:
Calculate sum of Arithmetic Progression (A.P.)

the script will calculate the sum of n terms of AP
I would like to add  the script for the above
Thanks

Already exists https://github.com/lukew3/mathgenerator/blob/main/mathgenerator/funcs/misc/arithmetic_progression_sum.py


text:
Can’t Enable Plugin on iOS14 Device

Hello, I’ve installed the plugin (v1.1.5) on an iPhone SE 2020 on iOS14.8, and get an error whenever I try to enable the plugin. I’ve tried on a brand new vault & still have the same issue. Is this an expected incompatibility?

What is the error exactly? I think backwards compatibility for legacy OS-versions is generally out of scope for this project.

Not sure if there’s a debug mode where I can get more info, but here’s a video of what happens: https://d.pr/v/Xre758

Not sure if there’s a debug mode where I can get more info, but here’s a video of what happens: https://d.pr/v/Xre758

Found the dev tools plugin and managed to catch this error

authors: hagure tim-hilt

repo: lumoe/obsidian-rollover-daily-todos


text:
User data table within the parser

It would be useful to have a user-definable data table attached to the parser, which would be visible to any callbacks called by that parser. This would help avoid the use of global variables. It seems like such a table could live in the lxp_userdata structure.
I have no experience with c/lua interoperation, so I don't know how hard this would be, but I'm willing to try to implement this.

I think LuaExpat already offers that.  Have you tried to hang anything you need in the table used to define the callbacks in the creation of the parser (lxp.new)?

I'll try that. Thanks for the suggestion.

When I try to add a table to the table that gets sent to lxp.new  I see a bad argument #-1 to 'new' (invalid option 'UserData') error. My test code looks like this:
lxp = require"lxp"

callbacks = {
   StartElement = function (parser, name)
      print("start")
   end,
   EndElement = function (parser, name)
      print("end")
   end,
   UserData = { "test0", "test1" }
}

parser = lxp.new( callbacks )

You are right.  Sorry for the noise.
Anyway, you can share a table between the callbacks using Lua's upvalues:
lxp = require"lxp"

local shared_table = {}
callbacks = {
   StartElement = function (parser, name)
      print("start", shared_table)
      shared_table[name] = "anything you want to store"
   end,
   EndElement = function (parser, name)
      print("end", shared_table, shared_table[name])
   end,
}

parser = lxp.new( callbacks )

Note that both messages will print the same table address and the last print will show the string stored by the StartElement callback also.
Does it solve your problem?

Thanks for the suggestion. In your example if I made two different parsers they would both see the same shared_table, which isn't exactly what I want, but I've done some reading on Lua upvalues and I think they can be achieved to accmplish what I want.
I appreciate the advice.

I am sure you can do different sets of similar functions sharing particular data.  In Programming in Lua, by Roberto, I recommend the section about "Lexical Scoping".  The example about a counter seems to be what you want.
In other words, you can group the above code in a function that will produce the parser with a shared table, such as (untested code below):
lxp = require"lxp"

function new_parser ()
   local shared_table = {}
   local callbacks = {
      StartElement = function (parser, name)
         print("start", shared_table)
         shared_table[name] = "anything you want to store"
      end,
      EndElement = function (parser, name)
         print("end", shared_table, shared_table[name])
      end,
   }

   return lxp.new( callbacks )
end

first_parser = new_parser()
second_parser = new_parser()

authors: evnpwr tomasguisasola

repo: lunarmodules/luaexpat


text:
Fix incorrect totals due to discounts

The Calculate pipeline hadn't been updated since discounts stopped affecting line totals, so they were generating the wrong totals.
This PR changes the approach to calculating the final cart total.

Ah I forgot you want discount before subtotal. But when I change that other tests fail.
Either way, use this PR as highlighting there is an issue - you probably have a better approach to fixing it.

@ryanmitchell Is this something that could be solved by adding subtotalDiscounted to the cart? I've had a bit of testing on a site we're developing and the totals (with tax) seemed ok.
Otherwise are you able to provide a failing test?

authors: alecritson ryanmitchell

repo: lunarphp/lunar


text:
[1.2] ddd:controller formatting

Spotted during testing with a real project:
ddd:controller results in a newline between imports, when "use App\Http\Controllers\Controller;" is injected by the package at the very end.

Resolved by #80

repo: lunarstorm/laravel-ddd


text:
Make it possible to link to type members directly

Following the path of least resistance: since link anchors are
automatically added to Markdown section headers we can make the
properties each be its own subsection and that gives us anchors
for free, more or less.
We lose the table structure but I'm not sure if I liked the table
in the first place.
This is an RFC rather than a ready-to-merge PR, some good discussion to be had here I belive.
On thing I'm sure I'd still like to change here is to make the overall structure a bit tighter (so that more information fits on the screen, more like with the table-based solution).
Before:
## Project

| Field | Type | Description |
| ----- | ---- | ------------|
| id | string
_**required**_ | The projects's unique identifier |
| name | string
_**required**_ | The project's name |
| short_name | string
_**required**_ | The project's short name. May coincide with name. |
| slug | string
_**required**_ | Project slug |
| description | string
_**required**_ | Project description |
(...)

After:
## Project

### id

Type: string
_**required**_

The projects's unique identifier
### name

Type: string
_**required**_

The project's name
### short_name

Type: string
_**required**_

The project's short name. May coincide with name.
### slug

Type: string
_**required**_

Project slug
### description

Type: string
_**required**_

Project description
(...)

Oh, I haven't even considered the formatting of the actual Markdown output to be a factor here – you're right, it's easier to not have a table there in the first place for that very reason. Yeah, I'm open to making the layout (both of the resulting HTML in lune-docs and of the actual Markdown output), let me see how can I improve it.

Sorry, I'm late to the party. @jstasiak  @raguiar9080
I don't mind either.
But what I would REALLY like is find some ready-made tree component for vuepress. That would make a lot of difference.

For recursively expanding types of properties?

Yes.
Eg https://awesome-vue.js.org/components-and-libraries/ui-components.html#tree

@rbruggem I had another look at the output and I think we can merge (and improve later if we desire). You happy with that?

I am going to merge this for you.

authors: jstasiak rbruggem

repo: lune-climate/openapi-vuepress-markdown


text:
feat: make vsDropdownVisible as a prop

this way dropdown able to be controlled by the parent component
just moves "vsDropdownVisible" from data to props.
Resolve #401

Can we close dropdown programatically with this???

Can we close dropdown programatically with this???

Yes, it provide a new prop called "vsDropdownVisible" you can use it like that
vsDropdownVisible.sync=dropdownVisible
so now you can close the dropdown
dropdownVisible = false
or you can open the dropdown
dropdownVisible = true

authors: jsinhSolanki kamaladenalhomsi

repo: lusaxweb/vuesax


text:
Remove breakpad-symbols crate, use symbolic instead

The breakpad-symbols crate in this repository is not feature complete and likely never will be at this rate. Sentry's symbolic crate has support for reading Breakpad symbol files along with a variety of other debug info formats. We should just remove the breakpad-symbols crate from this tree and use symbolic directly.

Per https://github.com/getsentry/symbolic/issues/31#issuecomment-823810022, it sounds like we're actually going to go in the other direction: the sentry folks have rewritten their breakpad symbol parser and will take that code and replace the existing breakpad-symbols crate with it.

repo: luser/rust-minidump


text:
Add experimental support for recovering function args

I ended up hacking this together today to help a coworker debug a weird crash report.
Spent the rest of the day polishing it up to make it usable.

The gdb target thing would be cool though — even cooler if you wasmed the gdb instance and ran that in an in-browser terminal emulator inside of socorro!

That escalated quickly :sweat_smile:
More seriously, having some kind of debugger-inside-Socorro would be an incredibly pleasant feature and would make crash inspection a much easier endeavor for those who don't do it every day. The biggest problem towards implementing something like that would be non-technical though: its access would have to be restricted because you'd need to be able to poke at the actual minidumps.

Yeah I'm not sure function arguments could be exposed to non-security-clearance folks since that may contain private information, in theory.

Yeah I'm not sure function arguments could be exposed to non-security-clearance folks since that may contain private information, in theory.

Right, our general principle was that aside from the address that caused e.g. a segfault, any memory data that came directly from the minidump was assumed to potentially contain sensitive information.
We already had additional info available in Socorro behind a login when I left, so that doesn't seem like it would be a huge blocker? Especially if it was all implemented client-side, access to raw dumps is auth-protected so the code could just fetch the dump file and do whatever it wanted.

Ok so anyway: r? @luser
(at least to just the concept of including this machinery in the project)

This feels like it'd fit better in the minidump-tools crate? That's where I've been putting ports of the weird little one-off tools I wrote to extract specific bits of information from minidumps over the years. Can this be refactored so it's a post-processing step after minidump processing, just iterating over the frames of each thread and attempting to recover the args if possible?

It already is, actually. I just arbitrarily decided to hook it up in the stackwalk module because that's like, Where Stuff Happens in my head (after all this stackwalking work).

I think there is value in having this kind of information surfaced directly in the common tool, rather than users needing to dig for it. I believe socorro also includes the output of stackwalk (with appropriate auth), so this would get surfaced there for free.

I think there is value in having this kind of information surfaced directly in the common tool, rather than users needing to dig for it. I believe socorro also includes the output of stackwalk (with appropriate auth), so this would get surfaced there for free.

I'm not opposed to this, I pushed for getting as much data out of minidumps into a self-service form in crash-stats as possible when working on crash reporting. I don't want to speak negatively about this cool work that Gankra did, but if you're going to expose data like this from the crash reporting system, you need to make sure that you have high confidence in the data so you don't present misleading evidence to people who are investigating crashes.
For example, there's a longstanding issue with crashes on x86-64 where if the faulting address is a non-canonical pointer, the GPF from the CPU doesn't include the address, so operating systems report a bad value in the userland signal/exception (IIRC it shows up as 0 on Linux/macOS, and -1 on Windows). This isn't even Breakpad or Socorro's fault, but it has caused massive confusion over the years as a red herring to engineers.
Accurately recovering function arguments from the stack requires more debug info than is available in Breakpad-format symbol files. The DWARF and PDB files are also on the symbol server, and doing this correctly, the same way debuggers do, is plausible, but it's a lot of work. The code here is great and useful because it surfaces good-enough info with like 5% of the effort required, but I would be wary of presenting it in the crash-stats UI as objective reality.
If that's what you really want then ultimately I'm not going to stop you because you're using this for work and this is just a hobby project for me nowadays.

That is to say, despite this repo being in my personal account namespace, at present I recognize @Gankra as the defacto maintainer since she's the one doing all the work. (Don't worry, you get all the power with none of the responsibility in this case! Take that Uncle Ben!)

I appreciate the words of caution. How about we surface the info, but caveat it appropriately? Can we enumerate the list of complications that might make it wrong, and simply link to that info from the dump?

Rebased and update this feature to be a bit more principled:

It's "hidden" behind a --recover-function-args flag in minidump-stackwalk
Similarly it is now enabled in minidump-processor only if you set recover_function_args in ProcessorOptions (a new thing I added in the last evil_json PR).

Ok so the second commit (Add better machinery for introducing new optional/experimental features.) introduces a new scheme I have been mulling over for introducing unstable or expensive stuff in a way that lets people get the new stuff without breaking.
With that introduced, I'm more comfortable finally landing this.

Having now properly formed a notion of what an unstable/stable feature is, I am finding myself mentally unblocked on a lot of gunk I've been meaning to garden. That last few commits:

Add discussion of unstable features to the json-schema
remove the sensitive/exploitability stubs completely, as they were always null and consumers should be assuming they're optional anyway.
--raw-json is now --evil-json and properly marked as such to keep consistent with the rest of the code which refers to it as such. This is important because it is now properly marked as [UNSTABLE], and consistent naming helps the documentation talk about unstable features. As a result, everything it uniquely outputs is now properly marked as [UNSTABLE:evil_json].

Also: yes I know I am betraying my own CONTRIBUTING docs by not actually testing this feature at all but I would need to make a new test input that's on x86 AND has symbols and god I am so tired.

Want to land this so other things can build off of it.

I would need to make a new test input that's on x86 AND has symbols and god I am so tired.

I'm pretty sure there are a few of those in the Breakpad repo, we could copy them over for testcases.

authors: Gankra bholley gabrielesvelto luser


text:
gen2-mjpeg-streaming does not work streamed frames

I try runing http://localhost:8090. but It's not work.
is this bug?
127.0.0.1 - - [15/Jun/2022 14:14:42] "GET / HTTP/1.1" 200 -
Exception happened during processing of request from ('127.0.0.1', 43776)
Traceback (most recent call last):
File "/usr/lib/python3.8/socketserver.py", line 683, in process_request_thread
self.finish_request(request, client_address)
File "/usr/lib/python3.8/socketserver.py", line 360, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/usr/lib/python3.8/socketserver.py", line 747, in init
self.handle()
File "/usr/lib/python3.8/http/server.py", line 427, in handle
self.handle_one_request()
File "/usr/lib/python3.8/http/server.py", line 415, in handle_one_request
method()
File "main.py", line 48, in do_GET
self.end_headers()
File "/usr/lib/python3.8/http/server.py", line 529, in end_headers
self.flush_headers()
File "/usr/lib/python3.8/http/server.py", line 533, in flush_headers
self.wfile.write(b"".join(self._headers_buffer))
File "/usr/lib/python3.8/socketserver.py", line 826, in write
self._sock.sendall(b)
BrokenPipeError: [Errno 32] Broken pipe

It do not work in FireFox.

    p{margin-top:0;margin-bottom:0}

Thank you. Erik.

You are right.
there is nothing problem in code.
--------- 원본 메일 ---------
    보낸사람: Erik ***@***.***>
    받는사람: luxonis/depthai-experiments ***@***.***>

        참조: jaiminlee ***@***.***>, Mention ***@***.***>

    날짜: 22.06.16 00:19 GMT +0900
    제목: Re: [luxonis/depthai-experiments] gen2-mjpeg-streaming does not work streamed frames (Issue #368)

@jaiminlee Have you tried with Chrome? In readme of this demo it's written:
To see the streamed frames, open localhost:8090. This works in Chrome, but not Firefox or Safari.
Thanks, Erik
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

Perfect, thanks for testing and confirming!

repo: luxonis/depthai-experiments


text:
opevino 2020.4/2021.1 model download process fails

In both the openvino_2020.4 and openvino_2021.1 branches, the model compilation process fails to complete because it appears that the post processor is looking for the model files in a different folder to the one they were downloaded to - FP16 not used when downloading.  E.g. using 2020.04 (on RPI):
python3 depthai_demo.py
Using depthai module from:  /home/rych/.virtualenvs/openvino/lib/python3.7/site-packages/depthai.cpython-37m-arm-linux-gnueabihf.so
Depthai version installed:  0.2.0.1+09142c24eb487df4e5f63413bc7ee895113bdd4b
Depthai version required:   0.2.0.1+09142c24eb487df4e5f63413bc7ee895113bdd4b
No calibration file. Using Calibration Defaults.
Compiling model for 14 shaves, 14 cmx_slices and 1 NN_engines
Openvino installation detected /home/rych/openvino
Unsupported openvino version installed at /home/rych/openvino, supported version is: 2020.4
model_compilation_target: cloud
################|| Downloading models ||################

========== Retrieving /home/rych/depthai/model_compiler/downloads/mobilenet-ssd/mobilenet-ssd.prototxt from the cache

========== Retrieving /home/rych/depthai/model_compiler/downloads/mobilenet-ssd/mobilenet-ssd.caffemodel from the cache

################|| Post-processing ||################

Traceback (most recent call last):
  File "depthai_demo.py", line 382, in <module>
    dai.startLoop()
  File "depthai_demo.py", line 58, in startLoop
    configMan = DepthConfigManager(args)
  File "/home/rych/depthai/depthai_helpers/config_manager.py", line 26, in __init__
    self.generateJsonConfig()
  File "/home/rych/depthai/depthai_helpers/config_manager.py", line 192, in generateJsonConfig
    blobMan = BlobManager(self.args, self.calc_dist_to_bb, shave_nr, cmx_slices, NCE_nr)
  File "/home/rych/depthai/depthai_helpers/config_manager.py", line 377, in __init__
    self.blob_file = self.compileBlob(self.args['cnn_model'], self.args['model_compilation_target'])
  File "/home/rych/depthai/depthai_helpers/config_manager.py", line 431, in compileBlob
    ret = download_and_compile_NN_model(nn_model, model_zoo_folder, shave_nr_opt, cmx_slices_opt, NCE_nr, outblob_file, model_compilation_target)
  File "/home/rych/depthai/model_compiler/model_compiler.py", line 170, in download_and_compile_NN_model
    raise RuntimeError(f"{ir_model_location} doesn't exist for downloaded model!")
RuntimeError: /home/rych/depthai/model_compiler/downloads/mobilenet-ssd/FP16 doesn't exist for downloaded model!

Ignore the unsupported openvino version.  It is correct but the method for detecting it doesn't work unless INTEL_OPENVINO_DIR contains the version number in the path and mine doesn't....

As mentioned here openvino 2020.4 and 2021.1 works currently only if openvino is installed locally, that's why compilation is not working : model_compilation_target: cloud, our cloud compiler is not ready to do caffemodel->IR conversion automatically based on the yml config.
At the moment openvino doesn't provide any environment variables set to determine the installed openvino version, I will find another way by parsing the version.txt in deployment_tools/inference_engine
For now I removed the check for openvino version based on folder, so it works even with non-standard openvino installation.

Ah, sorry, I missed that.   I see that it only happened because I was running on a RPI and there is no OpenVINO distribution for it that includes the model optimiser so it has to depend on cloud.

Ah, sorry, I missed that. I see that it only happened because I was running on a RPI and there is no OpenVINO distribution for it that includes the model optimiser so it has to depend on cloud.

We are going to update our blobconverter, so everything will be in cloud based on the yml config for all openvino versions.

authors: rychardeh szabi-luxonis

repo: luxonis/depthai


text:
🛑 BrandTag Blockchain API is down

In 9d6550b, BrandTag Blockchain API (https://rest.brandtag.io/chain/height) was down:

HTTP code: 500
Response time: 795 ms

Resolved: BrandTag Blockchain API is back up in 174e489.

repo: luxtagofficial/upptime


text:
update tests for capping module

remove redundant tests. Testing should be on function of code not implementation so transformers should have error handling tested and each methods functionality tested individually.

addressed in #130

repo: lvgig/tubular


text:
pull

pull

pull

repo: lvphps/go-zero


text:
Add SimpleEnum::Enum#values

Adding SimpleEnum::Enum#values method that simply returns #values of underlying hash.
This'll help us migrating from legacy simple_enum to the latest.

RSpec is failing on TravisCI... Looks unrelated though.
  1) SimpleEnum::Mongoid.as_enum has the genders enum
     Failure/Error: Unable to find matching line from backtrace
     NameError:
       uninitialized constant MongoidSupport::Moped
     # ./spec/support/mongoid_support.rb:16:in `rescue in block in included'
     # ./spec/support/mongoid_support.rb:14:in `block in included'

@luvtechno thanks a lot. Can you give a few more insights and how you intend to migration from legacy and how adding values helps you do that - just for my info :)
Regarding the Traxis failure, yes I need to change the gemspec to be more restrictive...

@lwe
In our code base Klass.enum_names are assumed to be an instance of Hash. For example, we have a model class called Post, which uses as_enum as below.
  as_enum :state, [:draft, :published], prefix: true

  scope :with_draft, -> { where(state_cd: Post.states.values) }

Adding #values method will mitigate errors from code like one above...
(Ideally those errors can be caught by an automated test suite, but our code base is not perfectly covered --- that's a different problem...)

@luvtechno cool thanks for the insights - in makes a lot of sense :)

Is it possible to rebase from master, because it restricts now the mongodb compatibility - and the Travis should be green :)

Sure thing - rabased now.

@lwe It's still failing for uninitialized constant MongoidSupport::Moped
Guess we need to restrict mongoid to "< 5"
From http://docs.mongodb.org/ecosystem/tutorial/ruby-mongoid-tutorial/#upgrading-to-5-0-0

Upgrading to 5.0.0
The underlying driver has changed from Moped to the official MongoDB Ruby driver. For all users dropping down to the driver level for operations, please see the driver documentation for help with that API.

@luvtechno oops, you are right... changed it to ~> 4.0, now build on master is green and should fix it in your branch too.

Thanks --- rebased again.

Thanks, I'll see that I soon can release a new minor version

^^ pushed to Rubygems as 2.2.1 https://rubygems.org/gems/simple_enum/versions/2.2.1 - if anything breaks, please let me know :)

Cool. Will do.

authors: luvtechno lwe


text:
LXD failed to start after upgrade

Required information

Distribution: Ubuntu
Distribution version: Trusty
The output of "lxc info" or if that fails:

Kernel version: 4.2.0-27-generic #32~14.04.1-Ubuntu
LXC version: 2.0.0.rc6
LXD version: 2.0.0.rc6
Storage backend in use: LVM

Issue description
After upgrading using the ubuntu repositories LXD refuses to be configured by post-installation script and to start.
Information to attach

/var/log/upstart/lxd.log

RTNETLINK answers: Permission denied
Failed to setup lxd-bridge.
iptables: Bad rule (does a matching rule exist in that chain?).
iptables: Bad rule (does a matching rule exist in that chain?).
iptables: Bad rule (does a matching rule exist in that chain?).
iptables: Bad rule (does a matching rule exist in that chain?).
iptables: Bad rule (does a matching rule exist in that chain?).
iptables: Bad rule (does a matching rule exist in that chain?).
iptables: No chain/target/match by that name.
lxd-bridge isn't running

The same here.
Reason: bridge cannot get up.
+ ifup lxdbr0
+ ip addr add fe80::1/64 dev lxdbr0
RTNETLINK answers: Permission denied
+ cleanup
+ set +e
+ [ 1 = 1 ]
+ echo Failed to setup lxd-bridge.
Failed to setup lxd-bridge.

On my instance ipv6 isn't enabled.

    ip addr add fe80::1/64 dev "${1}"

=>
    ip addr add fe80::1/64 dev "${1}" || true

This works temporarily.

Possibly related to https://github.com/lxc/lxd/issues/1811

The above fix is good for the successful package upgrade but not enough to get the existing system working.
The default network interface was changed to lxdbr0.
Long term fix:
dpkg-reconfigure lxd
-> no
-> yes
-> lxcbr0

The permission denied issue is fixed in rc7 which should now be available through the PPA.

authors: fabfurnari jasonbayton stgraber tomposmiko

repo: lxc/lxd


text:
Make lvm.thinpool_name node-specific

Originally from https://discuss.linuxcontainers.org/t/failed-to-join-cluster-due-to-missing-config-part-in-lxc-profile-show/8538/26,
In July 2018 the lvm.thinpool key was made node-specific (https://github.com/lxc/lxd/commit/1b67e1cc9a9f4851695c898fbb16bc31b444dfe3), however it was likely a typo as this key has apparently never actually been in use.
Instead it should have been lvm.thinpool_name.
We should correct this typo and then make a DB patch that converts existing non-node-specific lvm.thinpool_name keys in the database to node-specific ones.

Hi! I'm a student from UT and my group would like to claim this issue. Thanks!

Thanks, assigned it to you.
@tomponline should be able to help you with this one.
Fixing the typo wherever it's present should be pretty straightforward, then we need a one time patch to fix any deployment where it's incorrect. We should have some examples of this somewhat readily available in lxd/patches.go.
Worth noting that while a DB schema update would be more suitable for such changes, unfortunately those cannot be backported to stable releases whereas this fix definitely should be. So that's why we'll instead need to use a lxd/patches.go entry which is a bit awkward (patches apply on every system, schema updates apply once per cluster).

We've fixed the typo and are working on the patch

Cool!

@AndrewElvisDeng please let me know if you get stuck on anything and need help. Thanks

authors: AndrewElvisDeng stgraber tomponline


text:
Fix usage of --destination-server flag when copying/moving storage volumes between remotes

This commit https://github.com/lxc/lxd/commit/0468e1caf403ddfb11963d58eadece1bb454e8f9 (see https://github.com/lxc/lxd/issues/11061) disallowed usage of --destination-server when the source and destination were different remotes. This was to prevent an error that occurs when the destination server is not clustered.
This PR introduces a few checks on both --target and --destination target to ensure correct usage:

--target is no longer allowed if the source server is not clustered.
If the source server is clustered and the source volume is in local storage, validate that the --target flag matches the location of the source volume.
--destination-target is no longer allowed if the destination server is not clustered.

Note, I'm not certain that #11061 is truly fixed by this PR.

Linter is failing with Checking that there are no trailing spaces in shell scripts... or at least looks like it is

If the source server is clustered and the source volume is in local storage, validate that the --target flag matches the location of the source volume.

@markylaing can you help me understand why this is needed?

Linter is failing with Checking that there are no trailing spaces in shell scripts... or at least looks like it is

Looks like it's actually failing here: https://github.com/lxc/lxd/actions/runs/4126701428/jobs/7128967115#step:6:493
Our usage of run-parts in the static-analysis Makefile target obfuscates the error. I'll create a separate PR to add an --exit-on-error flag.

Linter is failing with Checking that there are no trailing spaces in shell scripts... or at least looks like it is

Looks like it's actually failing here: https://github.com/lxc/lxd/actions/runs/4126701428/jobs/7128967115#step:6:493
Our usage of run-parts in the static-analysis Makefile target obfuscates the error. I'll create a separate PR to add an --exit-on-error flag.

Never mind I can see that you've already done this @stgraber

jenkins: test this please

LGTM, just waiting for tests...

jenkins: test this please

Testsuite passed

Looks like there is still a failure in the clustering storage test for LVM but I can't see how it is related to my change as it is backend agnostic. Is this a common error @tomponline?

Thats ok, its probably a race in the underlying storage driver.

authors: lxc-jenkins markylaing stgraber tomponline


text:
networks: Fixes bug preventing 3rd party routes from being restored

networks: Fixes bug preventing 3rd party routes from being restored on network start.
Signed-off-by: Thomas Parrott thomas.parrott@canonical.com

@stgraber would you prefer that any errors restoring routes just logs an error rather than stopping the network starting?


text:
Remove CleanWebpackPlugin; Webpack 5 supports clearing the build folder

Since webpack 5, cleaning the build folder is part of the native functionality of webpack. I suggest using the webpack 5 functionality instead of using a plugin to clean the build folder.

Could you assign this issue to me? I can get update the config to include the new feature.

done!

authors: Goku-kun lxieyang


text:
Add PostCSS support for TailwindCSS

Hi @lxieyang
I'm using this awesome boilerplate of yours with TailwindCSS. I'm adding barebones PostCSS because it is recommended to use TailwindCSS with PostCSS.
I'm adding this PostCSS because most modern frameworks are already using PostCSS under the hood anyway.
Let me know what you think!

Great work thanks

Can you please upgrade the react version also


text:
请问授权相关问题

您好，注意到这里的panapi在官网没有相关信息，应该是自己抓取的吧？不知道使用这种形式的api在商业软件上，会有版权问题吗？谢谢！

这个要看百度大爷的意思了


text:
为什么一直是百分之0

const pageConfig = {
// Title for your status page
title: "CFuptime",
// Links shown at the header of your status page, could set highlight to true
links: [
{ link: 'https://github.com/lyc8503', label: 'GitHub' },
{ link: 'https://blog.lyc8503.site/', label: 'Blog' },
{ link: 'mailto:me@lyc8503.site', label: 'Email Me', highlight: true },
],
}
const workerConfig = {
// Write KV at most every 3 minutes unless the status changed.
kvWriteCooldownMinutes: 3,
// Define all your monitors here
monitors: [
// Example HTTP Monitor
{
// id should be unique, history will be kept if the id remains constant
id: 'Serv00Alist',
// name is used at status page and callback message
name: 'serv00的Alist',
// method should be a valid HTTP Method
method: 'GET',
// target is a valid URL
target: 'httpowobaba.rocks/',
statusPageLink: 'hocks/',
expectedCodes: [200-299],
timeout: 5000,
},
{
id: 'uptime',
name: 'colocrossing的Uptime',
method: 'GET',
target: 'https://uptimcluhboard/',
statusPageLink: 'https:zboard/',
expectedCodes: [200-299],
timeout: 5000
},
{
id: 'tiebayunqian',
name: '贴吧云签到',
method: 'GET',
target: 'https://tmsl.h/',
statusPageLink: 'httn-msh/',
expectedCodes: [200-299],
timeout: 5000
},
{
id: 'Serv00nezha',
name: 'Serv00的nezha',
method: 'GET',
target: 'https://nme/',
statusPageLink: 'https://asil.me/',
expectedCodes: [200-299],
timeout: 5000
},
{
id: 'Serv00tgState',
name: 'Serv00的tgState',
method: 'GET',
target: 'htt',
statusPageLink: 'httks/',
expectedCodes: [200-299],
timeout: 5000
},
{
id: 'U2',
name: 'U2动漫花园',
method: 'GET',
target: 'https://u2.dmhy.org/',
statusPageLink: 'https://u2.dmhy.org/',
expectedCodes: [200-299],
timeout: 5000
},
// Example TCP Monitor
{
id: 'test_tcp_monitor',
name: 'colocrossing',
// method should be TCP_PING for tcp monitors
method: 'TCP_PING',
// target should be host:port for tcp monitors
target: '10:22',
tooltip: 'My production server SSH',
timeout: 5000,
},
],
notification: {
// [Optional] apprise API server URL
// if not specified, no notification will be sent
appriseApiServer: "https://apprise.example.com/notify",
// [Optional] recipient URL for apprise, refer to https://github.com/caronc/apprise
// if not specified, no notification will be sent
recipientUrl: "tgram://bottoken/ChatID",
// [Optional] timezone used in notification messages, default to "Etc/GMT"
timeZone: "Asia/Shanghai",
// [Optional] grace period in minutes before sending a notification
// notification will be sent only if the monitor is down for N continuous checks after the initial failure
// if not specified, notification will be sent immediately
gracePeriod: 5,
},
callbacks: {
onStatusChange: async (
env: any,
monitor: any,
isUp: boolean,
timeIncidentStart: number,
timeNow: number,
reason: string
) => {
// This callback will be called when there's a status change for any monitor
// Write any Typescript code here
  // This will not follow the grace period settings and will be called immediately when the status changes
  // You need to handle the grace period manually if you want to implement it
},
onIncident: async (
  env: any,
  monitor: any,
  timeIncidentStart: number,
  timeNow: number,
  reason: string
) => {
  // This callback will be called EVERY 1 MINTUE if there's an on-going incident for any monitor
  // Write any Typescript code here
},

},
}
// Don't forget this, otherwise compilation fails.
export { pageConfig, workerConfig }

expectedCodes 不支持 200-299 这种写法，你这样写实际上指定的是 200"减"299 = -99，显然 HTTP 状态码不可能是 -99，所以被认为是 down 了。
如果你省略 expectedCodes，默认就是 200 到 299 都算作成功，所以你只需要删除 expectedCode 这行应该就可以了。
如下：
{
  id: 'uptime',
  name: 'colocrossing的Uptime',
  method: 'GET',
  target: 'https://uptimcluhboard/',
  statusPageLink: 'https:zboard/',
  timeout: 5000
},

expectedCodes 不支持 200-299 这种写法，你这样写实际上指定的是 200"减"299 = -99，显然 HTTP 状态码不可能是 -99，所以被认为是 down 了。
如果你省略 expectedCodes，默认就是 200 到 299 都算作成功，所以你只需要删除 expectedCode 这行应该就可以了。
如下：
{
  id: 'uptime',
  name: 'colocrossing的Uptime',
  method: 'GET',
  target: 'https://uptimcluhboard/',
  statusPageLink: 'https:zboard/',
  timeout: 5000
},

每个格子测试多少次才会变绿，太慢了

每个格子代表一天，当天总体 up 时间低于 95% 应该就是红色了，等第二天开始就正常。
如果你想清空红色的历史记录，配置文件中修改下 id 字段就行。


text:
Refactor AWS EKS to new model

Refactoring EKS module the the new data model since it will make it a lot easier to add in new relationships.
Will make a follow-up PR to attach subnets, roles, security groups, VPCs, etc.

cc: @marco-lancini putting a fresh coat of paint on your plugin :)

repo: lyft/cartography


text:
eds/rds: endpoint subsetting in clusters based on metadata.

Add metadata to endpoints in EDS.

Allow routes to specify a metadata_match. WeightedClusters can further
specify an additional metadata_match based on weighting.

Log all metadata. It makes sense to have available to the logging
pipeline all metadata used during request processing, not just some
that is explicitly annotated. This then makes available the endpoint's
metadata for log consumption. The tradeoff is that this will increase
log sizes when metadata is plentiful. We may want to consider a way to
filter this in logs in the future.

Fixes #81 and #91.

@9len @mccv @mattklein123 @rshriram @dnoe (for logs)

There's no wildcard matching. The metadata_match is intended to be a subset match, i.e. the keys that are specified are used as exact match, the underlying metadata can have additional information that is ignored if the key doesn't appear in metadata_match. Does this meet everyones requirements?

There's no wildcard matching.

I'm not sure that we actually have to stipulate this one way or the other right now. The beauty of the opaque metadata on both route and endpoint is that really anything can be done with it depending on the deployment. There is no reason the embedded metadata int the route could not encode more complex matching rules that a pluggable load balancer knows how to interpret.

@rshriram Do you still have concerns here or can we merge?

@rshriram Agreed, can you file an issue in the main Envoy repo? Thanks.

repo: lyft/envoy-api


text:
Add local web mode

Add ability for webserver to read DAGs locally
I'll make an upstream PR for this shortly, but I wanted to get unblocked before the upstream PR process.

👀 @youngyjd @milton0825 @feng-tao
cc @lyft/dp-tools-viz

setting this to False would not work? https://github.com/lyft/airflowinfra/blob/master/ops/config/states/airflow.cfg#L183

Nope. I had to trace through the code a bit to figure out what was happening, but the home page for the views.py never references the loaded DAGBag, only the model found in the database. It still can use the dag definition files on disc to actually read the graph and code
the serialized dag stuff is about not even having the code for the DAGS on disc, the webserver would just read it directly from the DB

Well, shit:
https://github.com/apache/airflow/issues/8838

I'm going to get this installed on tars, and test it there, rather than trying to fix this right now. The equivalent change passes tests upstream.

authors: ArgentFalcon youngyjd

repo: lyft/incubator-airflow


text:
🛑 SMS Get Sites is down

In b509bb9, SMS Get Sites (https://sms.dev.cmxapp.cloud/sites) was down:

HTTP code: 401
Response time: 309 ms

Resolved: SMS Get Sites is back up in e5b0202 after 17 minutes.


text:
option g:rtagsRcCmd is not considered in vimrtags.py

plugin/vimrtags.py:22 in run_rc_command

I updated completion function to use g:rtagsRcCmd.

authors: andrust lyuts

repo: lyuts/vim-rtags


text:
ndt7: tcpinfo robustness checks

As suggested by @mattmathis, we should:

query BBRInfo before TCPInfo

discard the measurement and report an error if the TCP status in TCPInfo is not open

This allows us to skip corner cases where the last returned line may be relative to an already closed conn

Implemented in https://github.com/m-lab/ndt-server/pull/188/files#diff-02498b73be81bb9dbdb7452994c6e93cR40

repo: m-lab/ndt-server


text:
Build failed

19:11	Executing tasks: [:app:assembleDebug] in project /home/user/experiments/rosettadrone_mini2
19:12	Gradle build failed in 1 m 54 s 762 ms

I'm new to Android Studio, and don't know much about the guts of compiling software. Where can I find more useful information besides "failed"?
I also see this under Problems:

Cannot resolve symbol '@string/google_key'

And Build Output has a few things:
> Task :app:processDebugResources FAILED
AGPBI: {"kind":"error","text":"Android resource linking failed","sources":[{"file":"/home/user/experiments/rosettadrone_mini2/app/src/main/AndroidManifest.xml","position":{"startLine":115,"startColumn":8,"endLine":117,"endColumn":49}}],"original":"/home/user/experiments/rosettadrone_mini2/app/src/main/AndroidManifest.xml:116:9-118:50: AAPT: error: resource string/google_key (aka sq.rogue.rosettadrone:string/google_key) not found.\n    ","tool":"AAPT"}

Android resource linking failed: /home/user/experiments/rosettadrone_mini2/app/src/main/AndroidManifest.xml:116:9-118:50: AAPT: error: resource string/google_key (aka sq.rogue.rosettadrone:string/google_key) not found.

Android resource linking failed
/home/user/experiments/rosettadrone_mini2/app/src/main/AndroidManifest.xml:116:9-118:50: AAPT: error: resource string/google_key (aka sq.rogue.rosettadrone:string/google_key) not found.

> Task :app:externalNativeBuildDebug FAILED
Build djivideojni_armeabi-v7a
ninja: Entering directory `/home/user/experiments/rosettadrone_mini2/app/.cxx/cmake/debug/armeabi-v7a'
[1/2] Building C object CMakeFiles/djivideojni.dir/src/main/cpp/dji_video_jni.c.o
In file included from ../../../../src/main/cpp/dji_video_jni.c:4:
In file included from ../../../../src/main/cpp/ffmpeg.h:34:
In file included from ../../../../src/main/cpp/cmdutils.h:28:
In file included from ../../../../src/main/cpp/include/libavcodec/avcodec.h:31:
In file included from ../../../../src/main/cpp/include/libavutil/samplefmt.h:24:
In file included from ../../../../src/main/cpp/include/libavutil/avutil.h:289:
In file included from ../../../../src/main/cpp/include/libavutil/common.h:401:
In file included from ../../../../src/main/cpp/include/libavutil/mem.h:33:
../../../../src/main/cpp/include/libavutil/error.h:121:5: warning: non-constant static local variable in inline function may be different in different files [-Wstatic-local-in-inline]
    static char str[AV_ERROR_MAX_STRING_SIZE];
    ^
../../../../src/main/cpp/include/libavutil/error.h:119:1: note: use 'static' to give inline function 'av_err2str' internal linkage
av_always_inline char *av_err2str(int errnum) {
^
static
../../../../src/main/cpp/include/libavutil/attributes.h:37:30: note: expanded from macro 'av_always_inline'
#    define av_always_inline __attribute__((always_inline)) inline
                             ^
1 warning generated.
[2/2] Linking C shared library ../../../../build/intermediates/cmake/debug/obj/armeabi-v7a/libdjivideojni.so
FAILED: ../../../../build/intermediates/cmake/debug/obj/armeabi-v7a/libdjivideojni.so
: && /home/user/Android/Sdk/ndk/22.0.7026061/toolchains/llvm/prebuilt/linux-x86_64/bin/clang --target=armv7-none-linux-androideabi22 --gcc-toolchain=/home/user/Android/Sdk/ndk/22.0.7026061/toolchains/llvm/prebuilt/linux-x86_64 --sysroot=/home/user/Android/Sdk/ndk/22.0.7026061/toolchains/llvm/prebuilt/linux-x86_64/sysroot -fPIC -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -march=armv7-a -mthumb -Wformat -Werror=format-security  -O0 -fno-limit-debug-info  -Wl,--exclude-libs,libgcc.a -Wl,--exclude-libs,libgcc_real.a -Wl,--exclude-libs,libatomic.a -static-libstdc++ -Wl,--build-id=sha1 -Wl,--no-rosegment -Wl,--fatal-warnings -Wl,--exclude-libs,libunwind.a -Wl,--no-undefined -Qunused-arguments -shared -Wl,-soname,libdjivideojni.so -o ../../../../build/intermediates/cmake/debug/obj/armeabi-v7a/libdjivideojni.so CMakeFiles/djivideojni.dir/src/main/cpp/dji_video_jni.c.o  ../../../../src/main/cpp/lib/armeabi-v7a/libffmpeg.so /home/user/Android/Sdk/ndk/22.0.7026061/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/lib/arm-linux-androideabi/22/liblog.so -latomic -lm && :
ld: error: ../../../../src/main/cpp/lib/armeabi-v7a/libffmpeg.so:1: unknown directive: version
>>> version https://git-lfs.github.com/spec/v1
>>> ^
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.

Make sure you have git-lfs installed before cloning the repo

Make sure you have git-lfs installed before cloning the repo

Also iirc i only added the for aarch64/armv7a, not x86(64)

I have now installed git-lfs to see if that helps.
If I need to change something in order to build for aarch64/armv7a please explain what to change. I went to Build > Select Build Variant, and I see the option arm64-v8a is selected.
Builds keep failing with the same error messages.
The problem seems pretty clearly to be with some Google key. Is it a Google Maps API key? If so, then where am I supposed to put that key? If it's not Google Maps, what is it, how do I get it, and where do I put it?

Could the problem be that in Android Studio, under File > Settings... > System Settings > Android SDK, I have API 32 selected? Should I change it to an earlier version?

Ok, I fixed this by putting a bogus Google Maps key in the keys.xml file (because I don't care about Google Maps, since I usually fly where there's no internet). I generated my signing key, and use Build > Generate Signed Bundle / APK and choose the APK option (because just plain building failed, complaining about not being signed), and then the build failed with the version error mentioned here https://github.com/The1only/rosettadrone/issues/55#issuecomment-805485817 despite having the phone plugged in. So I did the git lfs clone steps from https://github.com/The1only/rosettadrone/issues/55#issuecomment-878260282 and the version error continues. I tried with both build variants release and debug.

you'd want git lfs checkout iirc as that actually replaces the placeholder files with the actual content.
Sorry didnt get to do much lately so progress has been halted.
Will bring everything up to  date the coming weeks and get rid of the SDK hooks

Ok, I finally got this built! The steps:

Using Manjaro Linux, install git-lfs package.
git lfs install # run this anywhere. It must be run once on each machine post-install, otherwise git lfs commands fail quietly.
cd your-favorite-directory
git lfs clone https://github.com/m4xw/rosettadrone_mini2.git
If the previous step doesn't get everything in place, then cd rosettadrone_mini2 && git lfs checkout
Put the keys.xml file with a DJI key and a Google Maps key (or a fake Google Maps key) in rosettadrone_mini2/app/src/main/res/values/
Open Android Studio.
Open Project, select rosettadrone_mini2.
Accept the offer to build the Gradle project, and wait for that to finish.
Set up your signing keys, either by following Android documentation or by going to Build > Generate signed bundle / apk... and choosing APK and following the steps. Honestly, I'm not sure if this step is necessary, since I found it necessary when I was still getting other errors.
Build > Make project
look for the APK in rosettadrone_mini2/app/build/outputs/apk/debug/

@m4xw wrote:

Will bring everything up to date the coming weeks and get rid of the SDK hooks

This sounds great! Thanks for your effort on this, and I look forward to seeing it even more polished.

Ok, I finally got this built! The steps:

Using Manjaro Linux, install git-lfs package.
git lfs install # run this anywhere. It must be run once on each machine post-install, otherwise git lfs commands fail quietly.
cd your-favorite-directory
git lfs clone https://github.com/m4xw/rosettadrone_mini2.git
If the previous step doesn't get everything in place, then cd rosettadrone_mini2 && git lfs checkout
Put the keys.xml file with a DJI key and a Google Maps key (or a fake Google Maps key) in rosettadrone_mini2/app/src/main/res/values/
Plug your Android phone into your computer, and make sure ADB debugging is enabled on the phone. On my Manjaro GNU/Linux system, I plug my phone into my laptop, then I open a console and run adb devices and that starts the ADB server. Maybe your machine is different.
Open Android Studio.
Open Project, select rosettadrone_mini2.
Accept the offer to build the Gradle project, and wait for that to finish.
Set up your signing keys, either by following Android documentation or by going to Build > Generate signed bundle / apk... and choosing APK and following the steps. Honestly, I'm not sure if this step is necessary, since I found it necessary when I was still getting other errors.
Build > Make project
look for the APK in rosettadrone_mini2/app/build/outputs/apk/debug/

Hey, ive downloaded RosettaDrone2 for Mini2 and it opens up and connects to my DJI Mini 2. But when I press "open" on the main screen the app crashes. Any ideas why that is, since u've been working with the Mini2 Repository?

Ok, I finally got this built! The steps:

Using Manjaro Linux, install git-lfs package.
git lfs install # run this anywhere. It must be run once on each machine post-install, otherwise git lfs commands fail quietly.
cd your-favorite-directory
git lfs clone https://github.com/m4xw/rosettadrone_mini2.git
If the previous step doesn't get everything in place, then cd rosettadrone_mini2 && git lfs checkout
Put the keys.xml file with a DJI key and a Google Maps key (or a fake Google Maps key) in rosettadrone_mini2/app/src/main/res/values/
Plug your Android phone into your computer, and make sure ADB debugging is enabled on the phone. On my Manjaro GNU/Linux system, I plug my phone into my laptop, then I open a console and run adb devices and that starts the ADB server. Maybe your machine is different.
Open Android Studio.
Open Project, select rosettadrone_mini2.
Accept the offer to build the Gradle project, and wait for that to finish.
Set up your signing keys, either by following Android documentation or by going to Build > Generate signed bundle / apk... and choosing APK and following the steps. Honestly, I'm not sure if this step is necessary, since I found it necessary when I was still getting other errors.
Build > Make project
look for the APK in rosettadrone_mini2/app/build/outputs/apk/debug/

Hey, ive downloaded RosettaDrone2 for Mini2 and it opens up and connects to my DJI Mini 2. But when I press "open" on the main screen the app crashes. Any ideas why that is, since u've been working with the Mini2 Repository?

Hi, linus131313. I have the same problem how do you solve it?

I solved it by the steps mentioned here https://github.com/m4xw/rosettadrone_mini2/issues/14#issuecomment-1364742735 However, I think there may be other issues as well that are not related to the screen rotation

That fix among others is now upstream as well as a reimpl of my dji waypoint interpreter by one of the new maintainers (@kripper)
Btw @stefansommer i will work on reducing fork distance over time, now that some of the key features of my fork are upstream, so will be porting my video stuff again etc and from there upstream repo becomes more attractive for our purpose again, so we should consider moving the AI stuff there as there seems to be some interest and its now more actively maintained again (For the time being can still only vouch for my impl tho as it is trialed and optimized on real flight data)
But we should def bring everyone together, especially since we all want to have fun with AI ;)

@m4xw Sorry if i ask you, but there is a difference between this repo and the original repo of The1only?

@m4xw Sorry if i ask you, but there is a difference between this repo and the original repo of The1only?

Yes many things. Litchi waypoint processor, far more stable video feed, optimized stream duplication to qgc (compatible with many troublesome phones), DJI waypoint interpreter (now upstream as well somewhat) and a bunch of other fixes.
Its getting less and less tho as upstream gets better!

Btw @stefansommer i will work on reducing fork distance over time, now that some of the key features of my fork are upstream, so will be porting my video stuff again etc and from there upstream repo becomes more attractive for our purpose again, so we should consider moving the AI stuff there as there seems to be some interest and its now more actively maintained again (For the time being can still only vouch for my impl tho as it is trialed and optimized on real flight data)
But we should def bring everyone together, especially since we all want to have fun with AI ;)

Yes, definitely. It is great to see upstream being maintained again, I hadn’t noticed that. Should I start an AI thread in upstream to get discussion started?

agree

Should I start an AI thread in upstream to get discussion started?

Yes, please.

Here: https://github.com/The1only/rosettadrone/discussions/133


text:
build a separate version of content message sender for when awaiting a response is unnecessary

https://github.com/mOrsExtension/mOrs/blob/9c87c6293b7897a7a118c0a2a5803af943984cd5/content/helper.js#L12

closed by #20

repo: mOrsExtension/mOrs


text:
Certain highlights broken when using impatient.nvim

How it looks without a colorscheme (don't mind the awful contrast of the default colorscheme and my terminal background):

How it looks with nordbuddy:

This is my nordbuddy setup (as seen in the screenshots):
require("nordbuddy").colorscheme({
  italic = false,
  italic_comments = false,
})

This is using the latest nordbuddy 525b9658fcf145e141f34de16029bb069ced92fd and the latest neovim
3f526feebfe6d7bf71380a24639a3dd908f77ff6 (although I've had this problem for a bit longer). This might not be enough information to debug but I wouldn't know what to add exactly so if you miss anything please ask.

Strange. I'm not able to reproduce this :thinking: I'll do a bit more testing here on my end.

Could you maybe share what terminal you're using as well as your $TERM variable ?

Not able to reproduce either, I see this when visually selecting:

Tried a couple of different terminal emulators as well as a couple of variations of $TERM (including inside tmux), and so far I haven't run into this.

It also dawned on me that in @sandersantema's screenshot, the active line has no highlight (not even in the gutter -- text should be "white" there). This should have the same background as "visual mode".

I'm using konsole 21.08.0 but I've tested it with xterm 368-2.1 too and this gives the same result. Whether I'm using tmux or not doesn't matter either, in tmux $TERM is set to tmux-256color without tmux $TERM is set to xterm-256color. I'll try to setup a minimal config and see if I'm still experiencing this error.

Hmmphh for some reason I'm not able to get the minimal config working, do any of you have an idea how to get it working?
let &runtimepath  = '/home/sandersantema/.local/share/nvim/site/pack/packer/start/nordbuddy,' . &runtimepath
let g:nord_underline_option = 'none'
let g:nord_italic = v:true
let g:nord_italic_comments = v:false
let g:nord_minimal_mode = v:false
colorscheme nordbuddy

I was able to run with a minimal config using -u customvimrc -- though, I had to temporarily rename my ~/.config/nvim directory because it always tried to load :thinking:
let &runtimepath  = '/home/anders/.local/share/nvim/site/pack/packer/start/nordbuddy,' . &runtimepath
set termguicolors
colorscheme nordbuddy

Moving ~/.config/nvim did the trick and highlighting works using this minimal config. So I guess this is caused by my config or another plugin, that I'll have to investigate further. I'll get back to you when I have this figured out but it could take a little longer.

Alright. Great! I'll just leave this open then until you've narrowed it down.

Found it :tada: I stumbled upon it by accident and I've got no idea why it's the case but it seems to have something to do with impatient.nvim. Highlighting works once after clearing it's cache (:LuaCacheClear) and restarting neovim afterwards it doesn't. Disabling impatient.nvim all together gets the highlighting working again.
impatient.nvim provides quite a big improvement to startup time but I have no idea whether highlighting isn't working with nordbuddy and impatient.nvim because of my setup, nordbuddy or impatient.nvim. If you'd like to investigate feel free to otherwise it might be a good idea to at least post a warning impatient.nvim could cause some problems with highlighting. Whenever I get around to it I'll try to reproduce with a minimal config and see if it's my config causing the problems.

Ah. Nice find!
I've seen this impatient thing pop up every now and then while I'm browsing, but never tried using it because my load time is 200ms, which is basically a blink of an eye and totally fine :sweat_smile:
I'll install it and do a bit of debugging to get (hopefully) a better idea of what's going on.

OK. So I've figured what's causing the error, but not exactly sure why yet.

https://github.com/maaslalani/nordbuddy/blob/becd30e3c82a9c2a437c30f5f9e249becabfd30d/lua/nordbuddy/init.lua#L67-L72
The unpack here results in nil values when a module is brought back from the impatient cache.
The group always has the table: { "Visual",  [3] = "#434c5e" }, but unpack yields nil.
Example before: Visual nil #434c5e nil, and after: Visual nil nil nil.

Doing this works:
vim.highlight.create(group[1], {
    guifg = group[2] or 'NONE',
    guibg = group[3] or 'NONE',
    gui = group[4] or 'NONE',
})

The following unpack above seems to work fine though.
https://github.com/maaslalani/nordbuddy/blob/becd30e3c82a9c2a437c30f5f9e249becabfd30d/lua/nordbuddy/init.lua#L55

I pushed the changes I mentioned here. Hopefully that takes care of it :nerd_face:

Thanks @andersevenrud for looking into this ❤❤

authors: andersevenrud maaslalani sandersantema

repo: maaslalani/nordbuddy


text:
.so的文件太大了比一个APK还大，能否优化一下

.so的文件太大了比一个APK还大，能否优化一下

因为里面包含了大量编解码库，小了后必然会少很多功能，可以去github下载ffmpeg根据自己业务编译，这样比较合理

repo: mabeijianxi/small-video-record


text:
Make MassStorage::init return true if init was successful else false

Updated MassStorage::init return true if init was successful else false.
This change is to keep compatiblity with M2RET

/ref https://github.com/JoaoDiogoFalcao/Arduino_Due_SD_HSCMI/pull/4, https://github.com/JoaoDiogoFalcao/Arduino_Due_SD_HSCMI/issues/5

Thanks for the pull request!  I went with #5 (which had the same change) because it attributes the change to @collin80 and it used the same commit as was submitted upstream, simplifying history somewhat.

authors: TDoust adamvoss


text:
挂这么多，良心不痛吗

https://github.com/maccmspro/maccms10/blob/9612ffe7c649bd185b6beb7de58f3629bd5f2225/application/admin/view/system/configplay.html#L177

都不知道那个是真的maccms，早用seacms了

这个是播放器调用,你也可以选择性去掉 自己本地化，代码都是开源的

authors: caoboruicbr denghuiquan maccmspro


text:
module "jquery" not found

Hello guys, I'm trying to import the jquery-serialize-object but this error occured
import moment from 'moment'
require('../../bower_components/jquery/dist/jquery.min.js')
require('../../bower_components/jquery-ui/jquery-ui.min.js')
require('../../bower_components/jquery-serialize-object/dist/jquery.serialize-object.min.js')
require('../../bower_components/jquery-validation/dist/jquery.validate.min.js')
require('../../bower_components/wait-me/dist/waitMe.min.js')

const $=jQuery;

How to fix this issue, The other modules that I required does not have error like this.
My question is, Why is it searching for jQuery when I only require it as standalone file, it should not search for dependencies like the others
Im using gulp with browserify that transform babelify@7

I sorry for this, I found the answer, this might be due to jquery version that I am requiring.

repo: macek/jquery-serialize-object


text:
Added upload-from-url to catalog service

Resolves #236
Signed-off-by: JAulet 51500017+JAulet@users.noreply.github.com

@ckadner please review

repo: machine-learning-exchange/mlx


text:
Compilation error with some symbol names

Compilation breaks if the entry point of my grammar is named S, it seems to clash with some other type with the same identifier in the generated code.
Minimal working example:
@module   Sampler
@size     1000
@generate S

S = Leaf
  | Node S S.

The error:
/tmp/tmpap7caq9k/src/Sampler.hs:20:15: error:
    Ambiguous occurrence ‘S’
    It could refer to either ‘GHC.Generics.S’,
                             imported from ‘GHC.Generics’ at src/Sampler.hs:9:1-19
                          or ‘Sampler.S’, defined at src/Sampler.hs:19:1
   |
20 |        | Node S S

My setup:
$ python -c 'import paganini; print(paganini.__version__)'
1.4.0
$ git log --oneline | head -n 1
a85fcc3 Update link

Do you think it's possible to scope things so as to prevent that from ever happening? (I'm not very familiar with Haskell)

We should explicitly list what we need to import, so to avoid unnecessary clashes.

repo: maciej-bendkowski/boltzmann-brain


text:
npm run build:prod is showing the type error TypeError: Cannot read property 'properties' of undefined

I have added the angular universal form this "ng add @ng-toolkit/universal" code.
Next "npm run build:prod" typing this cmd then showing the below error.
TypeError: Cannot read property 'properties' of undefined
at module.exports (D:\Angular\awesome-seo\node_modules\webpack-cli\bin\config-yargs.js:89:48)
at D:\Angular\awesome-seo\node_modules\webpack-cli\bin\webpack.js:60:27
at Object. (D:\Angular\awesome-seo\node_modules\webpack-cli\bin\webpack.js:515:3)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)

"webpack": "^4.20.2",
"webpack-cli": "^3.1.1",
"webpack-dev-server": "^3.1.9",
Install this. I've solved by this.

@yaashaswi
Working fine Thanks,

i'm having the same issue :(
I installed what @yaashaswi said but still doesn't work

this works! but have to be the exact versions @yaashaswi commented.

authors: BattiniSantthosh HARIPRASADHARI pabloservin yaashaswi

repo: maciejtreder/ng-toolkit


text:
WebSockets & Unhandled rejection TypeError: Cannot read property '1' of null

When using the websocket events with the apigwBinary plugin, a unhandled rejection TypeError is thrown.

serverless v1.38.0
serverless-apigw-binary 0.4.4

I do not get this error when the websocket event handlers are not defined in the yml file.
functions:
  # ...
  connectionHandler:
    handler: dist/handler.wsConnectionHandler
    events:
      - websocket:
          route: $connect
      - websocket:
          route: $disconnect

plugins:
  - serverless-apigw-binary

custom:
  apigwBinary:
    types:
      - "*/*"

export const wsConnectionHandler: Handler = async (event: any, context: Context) => {
  // const domain = event.requestContext.domainName;
  // const stage = event.requestContext.stage;
  // const connectionId = event.requestContext.connectionId;
  // // construct the needed url
  // const callbackUrlForAWS = format(format("https://%s/%s", domain, stage));
  // await sendMessageToClient(callbackUrlForAWS, connectionId, event);

  return {
    statusCode: 200
  };
};

Unhandled rejection TypeError: Cannot read property '1' of null
    at provider.request.then.resp (/home/alexander/sandbox/src/git.udia.ca/udia-software/udia-ssr/node_modules/serverless-apigw-binary/src/index.js:19:67)
    at tryCatcher (/home/alexander/sandbox/src/git.udia.ca/udia-software/udia-ssr/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/home/alexander/sandbox/src/git.udia.ca/udia-software/udia-ssr/node_modules/bluebird/js/release/promise.js:512:31)
    at Promise._settlePromise (/home/alexander/sandbox/src/git.udia.ca/udia-software/udia-ssr/node_modules/bluebird/js/release/promise.js:569:18)
    at Promise._settlePromise0 (/home/alexander/sandbox/src/git.udia.ca/udia-software/udia-ssr/node_modules/bluebird/js/release/promise.js:614:10)
    at Promise._settlePromises (/home/alexander/sandbox/src/git.udia.ca/udia-software/udia-ssr/node_modules/bluebird/js/release/promise.js:694:18)
    at _drainQueueStep (/home/alexander/sandbox/src/git.udia.ca/udia-software/udia-ssr/node_modules/bluebird/js/release/async.js:138:12)
    at _drainQueue (/home/alexander/sandbox/src/git.udia.ca/udia-software/udia-ssr/node_modules/bluebird/js/release/async.js:131:9)
    at Async._drainQueues (/home/alexander/sandbox/src/git.udia.ca/udia-software/udia-ssr/node_modules/bluebird/js/release/async.js:147:5)
    at Immediate.Async.drainQueues (/home/alexander/sandbox/src/git.udia.ca/udia-software/udia-ssr/node_modules/bluebird/js/release/async.js:17:14)
    at runCallback (timers.js:810:20)
    at tryOnImmediate (timers.js:768:5)
    at processImmediate [as _immediateCallback] (timers.js:745:5)

Hi, is there any updates regarding this issue? I found that it is because of the assumption of api urls always start with https while in websocket it is possible that the url starts with wss. I did the dirty fix by modifying the index.js file like followings
  ...

  getApiId(stage) {
    return new Promise(resolve => {
      this.provider.request('CloudFormation', 'describeStacks', { StackName: this.provider.naming.getStackName(stage) }).then(resp => {
        const output = resp.Stacks[0].Outputs;
        let apiUrl;
        output.filter(entry => entry.OutputKey.match('ServiceEndpoint')).forEach(entry => apiUrl = entry.OutputValue);
        const apiMatches = apiUrl.match('https:\/\/(.*)\\.execute-api');
        if (apiMatches && apiMatches.length > 1) {
          const apiId = apiMatches[1];
          resolve(apiId);
        } else {
          resolve(null);
        }
      });
    });
  }

  ...

  afterDeploy() {
    const mimeTypes = this.serverless.service.custom.apigwBinary.types;
    const swaggerInput = JSON.stringify({
      "swagger": "2.0",
      "info": {
        "title": this.getApiGatewayName()
      },
      "x-amazon-apigateway-binary-media-types": mimeTypes
    });
    const stage = this.options.stage || this.serverless.service.provider.stage;

    return this.getApiId(stage).then(apiId => {
      if (apiId) {
        return this.putSwagger(apiId, swaggerInput).then(() => {
          return this.createDeployment(apiId, stage);
        });
      }
    });
  }

  ...

I don't know though if this "fix" will not lead to any more problems but it manages to get my functions deployed to AWS. An official fix would be a great help :).

Not quite sure if this still relevant, but I avoid this error by not using this plugin. I instead set binaryMediaTypes directly from my serverless.yml file. Here's a snippet:
  apiGateway:
    binaryMediaTypes:
      - '*/*'

authors: awwong1 davidsoendoro jkapongo

repo: maciejtreder/serverless-apigw-binary


text:
mysql_fetch_assoc not showing

A small thing but.
The mysql_fetch_assoc doesn't show up as a hint, but all the other fetches do, like  mysql_fetch_array
while($row = mysql_fetch_assoc($query))

I am looking at this. . It seems to be a bug in how I am reading in the syntax strings.

lol it turns out it was a major flaw in how I was parsing the function config files. There were dozens of hints being dropped not just mysql_fetch_assoc.
Thanks for catching this. . I will have a fix out shortly. It might be a couple of days as I am travelling this week.

authors: mackenza viktorstrate

repo: mackenza/Brackets-PHP-SmartHints


text:
Compatibility with "regular" Raspberry Pico

The maplepad works with raspberry pico with default 2MB SPI memory? Because i wish build an a "easy" DIY board for my arcade stick.

Hi! Yes, it works on the regular Pico. Look at maple.h to see which GPIO pins to connect buttons to.
(Once I fix some more compatibility issues, I'll upload wiring diagrams for making custom controllers/arcade sticks.)

authors: eduardokenj mackieks

repo: mackieks/MaplePad


text:
npm install 构建失败

node version : v16.15.0
git clone 项目， 执行npm install，报如下错误：
npm ERR! gyp verb `which` succeeded /usr/bin/python3 /usr/bin/python3
npm ERR! gyp ERR! configure error
npm ERR! gyp ERR! stack Error: Command failed: /usr/bin/python3 -c import sys; print "%s.%s.%s" % sys.version_info[:3];
npm ERR! gyp ERR! stack   File "<string>", line 1
npm ERR! gyp ERR! stack     import sys; print "%s.%s.%s" % sys.version_info[:3];
npm ERR! gyp ERR! stack                                ^
npm ERR! gyp ERR! stack SyntaxError: invalid syntax
npm ERR! gyp ERR! stack
npm ERR! gyp ERR! stack     at ChildProcess.exithandler (node:child_process:398:12)
npm ERR! gyp ERR! stack     at ChildProcess.emit (node:events:527:28)
npm ERR! gyp ERR! stack     at maybeClose (node:internal/child_process:1092:16)
npm ERR! gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)
npm ERR! gyp ERR! System Linux 3.10.0-1160.el7.x86_64

升级node-sass 到6.0 版本后，成功构建
"node-sass": "^6.0",

请问下你的Node版本是多少啊？“sass-loader”的版本不需要改动吗？

请问下你的Node版本是多少啊？“sass-loader”的版本不需要改动吗？

误导人了，报错提示是python3解释不了python2的代码。

前端部署的说明：https://www.macrozheng.com/mall/deploy/mall_deploy_web.html

authors: HackyleShawe oqdo ttddss zgjsxx

repo: macrozheng/mall-admin-web


text:
Update modify() logic within LedgerCSVDataFrameEntity class

The logic implemented for the modify() method within LedgerCSVDataFrameEntity class in the loop does not work for making multiple modifications at once within the same file.

We loop over modifications (or ids), in case of multiple modifications to the same file, code in the loop is executed multiple times for the same file.
The entry to be replaced is dropped, a new entry added to the end of the file.
Cache is not updated in the iteration, meaning we get the unmodified entries in the next iteration and ignore the modification just made.
The logic would not work even if the cache was updated, because appending the modified entry at the end potentially modifies all ids within the file
Dropping the entry to be deleted from its current position in the file and adding the modified entry at the end of the file is counter our principle to generate minimal git diffs.

This means we have two problems:

The code does not do what we expect in case of multiple modifications within the same ledger file.
The test suite failed to detect this problem.

Please address both points in the following sequence:

write a test that catches this problem and demonstrate that the test fails as expected.
Then fix the code and demonstrate that the test suite now passes.

I've tested the logic for the LedgerCSVDataFrameEntity modify() method and it is working. Here is why:

The cache was cleared since invalidation is invoked by the _store method.
Order is overwritten by pd.concat() - that is true, but then our write_ledger_file() method within the TextLedger sorts rows by id numeric part. Done along this line: df = df.iloc[self.ledger._id_from_path(df["id"]).argsort(kind="mergesort")]
I removed that line for sorting and now the test catches the problem. It is shown in this failed test action

What it means:

Our test_ledger_mutators_does_not_change_order() test is not broken.
Logic is still not performant and needs to be overwritten anyway.

repo: macxred/pyledger


text:
Login on a test on server side - How to test a logged user?

Hi,
how i can test a logged user to access Meteor.user() in the sampleServerTest.js ??
All the methods to log a user is client side.

I would probably write these as client side tests, and use methods (maybe test methods that you write) to test the server side components with a logged in user.
Alternatively you could mock Meteor.user() with something like sinon
Finally, I bet there is an undocumented method for logging in a user on the server side. I'd dig around in the meteor-accounts[https://github.com/meteor/meteor/tree/devel/packages/accounts-base) package, and see what you find. Good luck!

Yeah "Good luck"

It's hacky but redefining this DDP method works
DDP._CurrentInvocation.get = function() {
  return {
    userId: 'someUserId'
  };
}

quick note: for @svanderbleek's solution I had to import (api.use) the ddp package in my package.js

authors: aj07mm rissem ryanmtaylor svanderbleek

repo: mad-eye/meteor-mocha-web


text:
🛑 HungryApp API is down

In 4be9196, HungryApp API ($API_URL?consumer_key=$API_CONSUMER_KEY&consumer_secret=$API_SECRET_KEY) was down:

HTTP code: 0
Response time: 0 ms

Resolved: HungryApp API is back up in f5469a6.

repo: mad-hengseyha/hungry-app-status