text:
improve scripts/ develop github actons for updating user_examples and test_models

Currently, there are R scripts for updating the models in user-examples and test-models upon each release. These are run locally, but the scripts require some manual changes and take local computing power to run. I feel it takes me longer than it should to run this because I have to refamiliarize myself with the script each time.
Another issue to updating is not well documented, because the script requires some manual changes and doesn't provide good instructions on how to run it. This is not helpful if anyone besides me needs to do the updating.
It may be nicer to fully automate these in github actions. The steps would be:

Download the latest SS3 executable
Run a streamlined version of the script that doesn't require manual input changes. This would update model input and output files.
Delete any files that shouldn't be committed
Open a pull request with the changes to the repository for review.

A tag would also need to be added once it is merged in, but this step may need to be left as manual.

Another reason to fully automate updating the test results on each release are that the compiler/os is then different, which can lead to some small differences in model results. It would be cleaner to run the model updates on ubuntu since that is the system used to run the stock synthesis regression tests.

These scripts are linked in https://github.com/nmfs-stock-synthesis/stock-synthesis/issues/352#issue-1308326395

There are now github actions for updating these the user-example models and the test models in the respective repositories.
user-example models github action
test models github action

authors: e-gugliotti-NOAA k-doering-NOAA

repo: nmfs-stock-synthesis/workflows


text:
Nmon Visualizer WARNING  command line for process id 48759000 redefined at line 377565

I am using NMONVisualizer_2019-01-06.jar and I get a strange error when analysing my nmon files:
$ cat ReportGenerator_20190222_040016.log
/testdata/nmon/logs/20190221/20190221_0000_05h.nmon:
WARNING  command line for process id 48759000 redefined at line 377565
What does it mean and could the message be reworded to be more helpful and to give the name of the source file ?

Is /testdata/nmon/logs/20190221/20190221_0000_05h.nmon not the correct file name?
That's a warning messsage to indicate that a process id was reused. Parsing of the NMON file should not be effect and all the rest of the data is there. I am guessing that happened because this nmon file spanned a long time frame and the system was creating a lot of processes.
But, looking at the code again, the message does need to be changed since the command line was not change, in fact. The process id was reused, but so was the name and it has the same command line arguments in the UARG line. I've only seen this happen once before: see #52 .
This is probably not going to happen very often. In effect you have a new process, but it looks the same so the program keeps the same process info and adds new data to it. I assume the chart for that process would have a gap in the data for some period of time.

Thanks. The error message makes sense now.
I removed the hostname from the nmon file name for .security reasons.
The nmon file spanned 5 hours and there were about 700 processes active at any time.

source: gharchive/issue

repo: nmonvisualizer/nmonvisualizer

license_type: permissive

license_source: bigquery


text:
Fix appveyor build

I noticed you were having some issues with appveyor - this should fix it.

Awesome! I have figured out the issue with 2.7 (numpy doesn't support higher version), but I don't get why the build fails for Python 3x with weird link errors. What was the issue?
PS: I will also try to make this thing generate binaries for Windows. Building anything under Windows is a nightmare. In fact, I wasn't able to build a library with Python 2.x on my own machine, only with 3.x :-(

Yes, I think there were multiple issues here. One was numpy; another was the symlink to .. which led to a recursion error. I resolved it by changing the symlink to ../similarity_search. Another was x86 vs x64 - the appveyor setup wasn't actually setting the python version to x64. I'm working on the deploy script right now to make it easier for you to generate binaries.

source: gharchive/pull-request

authors: scottgigante searchivarius

repo: nmslib/nmslib


text:
Docker container stabilization

Fix the docker container and its run to stabilize network availability and NM loading.

Coverage remained the same at 69.503% when pulling 605055d4f1d83f69242d62a4ce4502cae4c9d141 on EdDev:docker-container-stabilization into 536c9b8d1f940cb908b2b7454b35d1ccedfee916 on nmstate:master.

ci test please

When I run this on Fedora 29 beta, nmcli con reports:
DEVICE  TYPE      STATE                                  CONNECTION
eth2    ethernet  connected                              eth2
eth1    ethernet  connecting (getting IP configuration)  Wired connection 1
eth0    ethernet  unmanaged                              --
lo      loopback  unmanaged                              --

Can you maybe describe the expected state of the docker container before it will be running the integration tests regarding interfaces and output of nmcli con/nmcli dev/ip addr?

ci test please

From Nmstate Github Robot
Test  has

authors: EdDev cathay4t coveralls tyll

repo: nmstate/nmstate

license_source: github-api


text:
add Orion info

add info to available platforms for Orion

Codecov Report

Merging #104 (6609e1b) into main (00a78ca) will increase coverage by 0.01%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #104      +/-   ##
==========================================
+ Coverage   74.07%   74.08%   +0.01%
==========================================
  Files          18       18
  Lines        1778     1779       +1
==========================================
+ Hits         1317     1318       +1
  Misses        461      461

Flag
Coverage Δ

python3.9-Linux
74.08% <100.00%> (+0.01%)
:arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

coupledmodeldriver/platforms.py
100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 00a78ca...6609e1b. Read the comment docs.

authors: codecov-commenter zacharyburnettNOAA

repo: noaa-ocs-modeling/CoupledModelDriver


text:
🛑 Rur is down

In 43a1b65, Rur (https://www.rur.rs) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Rur is back up in 7bedba1 after 15 minutes.

repo: nocturo/status

license: MIT


text:
Exclude list of dates

Hi All,
Is there a way we can exclude list of dates so that the job wont triggered? for example holidays?
Thanks in advance!

That's not really a CRON like thing to do.  If you want that, then your implementation should look up holidays you want to skip, then avoid running those schedules.
cron.schedule('* * * * *', () => {
  if (!mySpecialDay()){
    //Do stuff
  }
});

Thanks @TDola for the idea! This is really helpful. :)

authors: GowrishKumar TDola

repo: node-cron/node-cron

license: ISC


text:
Solves #920

Straightforward fix of #920

Coverage increased (+0.02%) to 92.702% when pulling a1095226507f46553f1051aaafbaf27b19554e7f on edorivai:master into 17d7c25682ea520b0a255e933b64d5c7f355330f on node-nock:master.

This change introduced a bug that surfaced at https://github.com/hoodiehq/hoodie-store-server-api/issues/21, I’m investigating

Actually the specs are wrong and your fix showed that for the first time 👏

What what?! 👏  Thanks @edorivai!

Why does this change not count as a breaking change? This broke my tests and I had to dig to this pull request to find out why.

I have experience with some linters (e.g. jscs) which took an extremely strict interpretation of semver which said "a new error is a breaking change". However, for most libraries, fixing behavior that was previously outright incorrect is not usually a breaking change.
Since this change seems to have a high ecosystem impact, perhaps we should consider reverting it and re-shipping it with a major version change.
Alternatively we could make sure the intended behavior is clear in the changelog. I agree that developers shouldn't have to come to the PR.

@CodeMan99 welcome to open source, it never is perfect, but we are all in this together :) we are all volunteering our time here, please keep that in mind 🤗

@gr2m Was just an honest question, wasn't trying to be firm/abrasive. Sorry.

No worries :) I understand your frustration, it caused the same for several of my projects and caused some work. We’ll soon automate releases with better changelogs, that should help a little.

A few tips if you unexpectedly hit this and don't know what to do.

See the full body so you can find the extra properties that are being sent but are missing from your expectation body.

nock(host).post("/", (body) => {
  console.log("Actual body: ", JSON.stringify(body, null, 2)); // fixme
  return true;
})

If you want loose matching, try integrating tmatch.

const tmatch = require("tmatch");

nock(host).post("/", (body) => tmatch(body, {key1: "foo", key2: /^z/}))

If you use the pattern above a lot, you may want to factor out a helper function.

authors: CodeMan99 coveralls edorivai focusaurus gr2m paulmelnikow

repo: node-nock/nock

license: mit


text:
SyntaxError when trying to use node-serialport on RPI 2

Summary of Problem
Hey guys,
I'm trying to use node-serialport on a RPI 2 with NVM using Node v8.12.0.
Well, the package installation is done and it didn't returns me any error, but when I try to run my node script it returns me an "SyntaxError" coming from "@serialport/bindings/lib/linux.js:16".
This reference in the file points to a class definition(class LinuxBinding extends AbstractBinding) and it is telling me that "Block-scoped declarations (let, const, function, class) not yet supported outside strict mode".
How can I fix this?
Code to Reproduce the Issue
var serialport = new SerialPort(path, {
  baudRate: 9600,
});

port.on('open', function() {
  port.write('main screen turn on', function(err) {
    if (err) {
      return console.log('O cabo usb não está conectado: ', err.message);
    }
    console.log('message written');
  });
});

// Code

Versions, Operating System and Hardware

SerialPort: ^7.0.2
Node.js: v8.12.0
Ubuntu Mate Linux

@gbrennon Are you certain you have Node v8.12.0 running on your Raspberry Pi? Otherwise you can try adding 'use strict'; to the top of your main file that is requiring SerialPort.
Does this code run without errors on your device?
const test = 'test';
console.log(test);

Hi
First on Raspberry you should enable Serial
Second you should choose your path
on RPI 3 is ttyS0 on RPI zero ttyAMA0
example :
var port = new SerialPort('/dev/ttyS0', {
baudRate:115200
});

@HipsterBrown I'm calling the program using "sudo" so maybe it isn't calling my NVM selected version... I'll look which version of node is being called when used with sudo

@HipsterBrown thank u man! It is working now! The problem was because the node version was wrong for the sudo user.

authors: HipsterBrown aminjoharinia gbrennon

repo: node-serialport/node-serialport


text:
node-gyp conflict between two package

Node Version: v14.17.3 npm 7.20.3
Platform:  Windows 10
Compiler: msbuild2019
Module: sqlite3 and naudiodon
step to reproduce the issue,
1 npm i sqlite3
2 npm i naudiodon

i have no issue, if i do install naudiodon only , and this what the output look like
Verbose output (from npm or node-gyp):
npm ERR! code 1
npm ERR! path D:\Projects\DekstopApp\testpackage\node_modules\segfault-handler
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c node-gyp rebuild
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@3.8.0
npm ERR! gyp info using node@14.17.3 | win32 | x64
npm ERR! gyp info spawn C:\Python27\python.exe
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args   'D:\\Projects\\DekstopApp\\testpackage\\node_modules\\node-gyp\\gyp\\gyp_main.py',
npm ERR! gyp info spawn args   'binding.gyp',
npm ERR! gyp info spawn args   '-f',
npm ERR! gyp info spawn args   'msvs',
npm ERR! gyp info spawn args   '-G',
npm ERR! gyp info spawn args   'msvs_version=2019',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   'D:\\Projects\\DekstopApp\\testpackage\\node_modules\\segfault-handler\\build\\config.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   'D:\\Projects\\DekstopApp\\testpackage\\node_modules\\node-gyp\\addon.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   'C:\\Users\\Miftachul\\.node-gyp\\14.17.3\\include\\node\\common.gypi',
npm ERR! gyp info spawn args   '-Dlibrary=shared_library',
npm ERR! gyp info spawn args   '-Dvisibility=default',
npm ERR! gyp info spawn args   '-Dnode_root_dir=C:\\Users\\Miftachul\\.node-gyp\\14.17.3',
npm ERR! gyp info spawn args   '-Dnode_gyp_dir=D:\\Projects\\DekstopApp\\testpackage\\node_modules\\node-gyp',
npm ERR! gyp info spawn args   '-Dnode_lib_file=C:\\Users\\Miftachul\\.node-gyp\\14.17.3\\<(target_arch)\\node.lib',
npm ERR! gyp info spawn args   '-Dmodule_root_dir=D:\\Projects\\DekstopApp\\testpackage\\node_modules\\segfault-handler',
npm ERR! gyp info spawn args   '-Dnode_engine=v8',
npm ERR! gyp info spawn args   '--depth=.',
npm ERR! gyp info spawn args   '--no-parallel',
npm ERR! gyp info spawn args   '--generator-output',
npm ERR! gyp info spawn args   'D:\\Projects\\DekstopApp\\testpackage\\node_modules\\segfault-handler\\build',
npm ERR! gyp info spawn args   '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! Traceback (most recent call last):
npm ERR!   File "D:\Projects\DekstopApp\testpackage\node_modules\node-gyp\gyp\gyp_main.py", line 16, in <module>
npm ERR!     sys.exit(gyp.script_main())
npm ERR!   File "D:\Projects\DekstopApp\testpackage\node_modules\node-gyp\gyp\pylib\gyp\__init__.py", line 545, in script_main
npm ERR!     return main(sys.argv[1:])
npm ERR!   File "D:\Projects\DekstopApp\testpackage\node_modules\node-gyp\gyp\pylib\gyp\__init__.py", line 538, in main
npm ERR!     return gyp_main(args)
npm ERR!   File "D:\Projects\DekstopApp\testpackage\node_modules\node-gyp\gyp\pylib\gyp\__init__.py", line 514, in gyp_main
npm ERR!     options.duplicate_basename_check)
npm ERR!   File "D:\Projects\DekstopApp\testpackage\node_modules\node-gyp\gyp\pylib\gyp\__init__.py", line 98, in Load
npm ERR!     generator.CalculateVariables(default_variables, params)
npm ERR!   File "D:\Projects\DekstopApp\testpackage\node_modules\node-gyp\gyp\pylib\gyp\generator\msvs.py", line 1916, in CalculateVariables
npm ERR!     generator_flags.get('msvs_version', 'auto'))
npm ERR!   File "D:\Projects\DekstopApp\testpackage\node_modules\node-gyp\gyp\pylib\gyp\MSVSVersion.py", line 434, in SelectVisualStudioVersion
npm ERR!     versions = _DetectVisualStudioVersions(version_map[version], 'e' in version)
npm ERR! KeyError: '2019'
npm ERR! gyp ERR! configure error
npm ERR! gyp ERR! stack Error: `gyp` failed with exit code: 1
npm ERR! gyp ERR! stack     at ChildProcess.onCpExit (D:\Projects\DekstopApp\testpackage\node_modules\node-gyp\lib\configure.js:345:16)
npm ERR! gyp ERR! stack     at ChildProcess.emit (events.js:375:28)
npm ERR! gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)
npm ERR! gyp ERR! System Windows_NT 10.0.19042
npm ERR! gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "D:\\Projects\\DekstopApp\\testpackage\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd D:\Projects\DekstopApp\testpackage\node_modules\segfault-handler
npm ERR! gyp ERR! node -v v14.17.3
npm ERR! gyp ERR! node-gyp -v v3.8.0
npm ERR! gyp ERR! not ok

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Miftachul\AppData\Local\npm-cache\_logs\2021-07-30T14_32_05_646Z-debug.log
</details>

<!-- Any further details -->

Please look thru your error log for the string gyp info using node-gyp@ and if the version number is less than the current release of node-gyp then please upgrade using the instructions at https://github.com/nodejs/node-gyp/blob/master/docs/Updating-npm-bundled-node-gyp.md and try your command again.

authors: cclauss miftachuda

repo: nodejs/node-gyp


text:
v0.0.19

Notable changes:

Add implementation for wasi docket functions
Fix windows testing to avoid intermittent failures and hangs on failures
Add install targets for uvwasi. This makes it possible for pkg-config or cmake build pipelines to discover globally installed uvwasi.

For reference - https://github.com/nodejs/uvwasi/issues/228. Close that issue once the release goes out.

repo: nodejs/uvwasi


text:
Issue get paginate data with relationship table.

How to paginate with relationship table ?
this.paginate(this.prisma.user.findMany({ includes:  { roles: true} }))

async findAllLinkZMch( 		where: Prisma.Link_ZMchWhereInput, 		orderBy: Prisma.Link_ZMchOrderByWithRelationInput 	): Promise<PaginatorTypes.PaginatedResult<any>> { 		const include: Prisma.Link_ZMchInclude = { 			mstZ20: true, 			mstMch: true 		}; 		return this.paginate(this.prisma.link_ZMch, { 			where, 			orderBy, 			include 		}); 	}

Hi @dwcahyo23 ! You can only use include if you have 2 models that are connected to each other.
mstZ20 and mstMch are these 2 models connected through link_ZMch?
If the issue persists, could you please provide me with a screenshot of your schema? This will help me understand your situation better.

@Vladyslav317 ok thanks this is closed

@Vladyslav317 ok thanks, but this is closed

repo: nodeteamdev/nestjs-prisma-pagination


text:
Update the game over message

Update the game over message so people know how to play again!

comment

repo: noeshien/skills-review-pull-requests


text:
termux-adb fails with CANNOT LINK EXECUTABLE error

Describe the bug
termux-adb fails to run with the error CANNOT LINK EXECUTABLE "termux-adb": cannot locate symbol "_ZN4absl12lts_2024011612log_internal10LogMessagelsIiLi0EEERS2_RKT_" referenced by "/data/data/com.termux/files/usr/lib/libprotobuf-tadb.so"...
To Reproduce
Install termux-adb, then try to run termux-adb
Expected behavior
Running command termux-adb devices (or any other command) should do something
Screenshots

Smartphone (please complete the following information):

Device: Motorola G5s Plus
Android version: 11

Attach output of the following commands

RUST_LOG=debug ./termux-adb (run with debug logs enabled)
pkg show android-tools (show package info)
adb version (show adb version)

Attach contents of the following files (after running with debug logs enabled)

/data/data/com.termux/files/usr/tmp/adb.10233.log
/data/data/com.termux/files/usr/tmp/termux-adb.10233.log

/data/data/com.termux/files/usr/tmp folder is empty
Additional context
termux-fastboot works without any issues

Thank you for the report, I will look into it soon.

Yes, most likely it means I will have to make a new build. Sorry for the inconvenience.

thank you for your efforts and great work.
(It seems that the issue is in version 1-2).

Q:  is version 1-4 a stable or experimental ? because it works after installing it !
( of course, I did not try all the commands )
tks you again 🙏❤

You should always use the latest from my repository but the executable is termux-adb not adb. I renamed it so there isn't any conflict with the original android tools.

🙏 sorry, I just noticed that 1-4 is an older version.

Current version is 0.2.2-*. Although there is a slight chance the last revision of 0.2.1 might work. I am unable to test at the moment...

Hi all, I released a new version, so you should be able to upgrade the package now and see if it works for you.
Cheers.

Works great and tks for your great work 🙏❤

Eyo, just updated packages and it works.
Dev is chad

It works now 👍

authors: Damglador jroovy nohajc offici5l

repo: nohajc/termux-adb


text:
Run test cases for nargo test in parallel

Problem
We're getting some complaints in the discord that nargo test is running slow.
Happy Case
We can get some easy speed-up by running multiple tests in parallel to take advantage of additional cores.
Alternatives Considered
No response
Additional Context
No response
Would you like to submit a PR for this Issue?
No
Support Needs
No response

I would take on this! Could you outline at least something to start with? (Indicate primary moving parts, and do you have on your mind something more than rayon, std::thread, and maybe crossbeam?)

@skaunov I'd look into the integration tests in crates/nargo_cli/tests/test_data. There are wrappers generated to run these automatically, see crates/nargo_cli/tests/execute.rs. As for a threading lib, I'd suggest using either std::thread or rayon as a test dependency.

I spent some time getting to know Nix, Cargo build, and tests template system (which seems quite exotic, though it could be lack of my experience as well). X)
Will be looking for nargo test usage in dirs which used to be <test_data> to follow the cases and add parallelization to nargo test itself.
Btw, I currently restricted to remote dev environment (with vscode-server usually) and it doesn't look like something seamless to run with Nix. So I went with Gitpod, which solves this [quite ok]; so now I either finish the thing in 20 computing hours, either will need some alternatives (any hints to this technicality are welcome!).
[quite ok]: starting the environment takes double-digit number of minutes, but at least it's reliable

After reading through <build.rs> with all aforementioned in mind I got confused pretty quickly. @TomAFrench stated the issue that nargo test invocation needs to be parallelized, but starting from this end I don't see any nargo test invocations at all --- only testing nargo compilation and execution features. =(
Maybe I'll try just to unwind <nargo_cli> to find some relevant places to begin with. Though it would be really helpful if somebody could point out to me what am I missing or any alternative entry point for the issue.
Also a side question. Is it possible to locate this resulting file with the tests that <build.rs> produce? Locating binaries of these tests was easy, but what's the lifecycle of that code it stitches from the templates?
@jfecher

Hey, I don't think that looking into the integration test suite is useful for this task.
This issue is to modify the nargo test command so that test cases are run in parallel. We don't need to interact with the integration test suite for nargo itself for this.

Also a side question. Is it possible to locate this resulting file with the tests that <build.rs> produce? Locating binaries of these tests was easy, but what's the lifecycle of that code it stitches from the templates?

This file isn't relevant for this issue but will be placed into target/debug/build/nargo_cli-*/out

Closed by #4484

authors: TomAFrench jfecher skaunov

repo: noir-lang/noir


text:
chore: fix relative paths in release please

Description
Continuation of #3645
Problem*
Resolves
Summary*
Additional Context
Documentation*
Check one:

[ ] No documentation needed.
[ ] Documentation included in this PR.
[ ] [Exceptional Case] Documentation to be submitted in a separate PR.

PR Checklist*

[ ] I have tested the changes locally.
[ ] I have formatted the changes with Prettier and/or cargo fmt on default settings.

@kevaundray This isn't doing what we want. We're already updating the version numbers in the individual cargo.tomls, the issue is that the workspace Cargo.toml needs to be in sync.

authors: TomAFrench kevaundray


text:
add bundle collapser, browserify standalone

bundle-collapser shaves off another 200 bytes, also the -s standalone
switch adds a global pouchdbFind variable and apparently makes
it easier for RequireJS users, so why not.

Nice.

authors: garrensmith nolanlawson

repo: nolanlawson/pouchdb-find


text:
Swiper does not work on some tablets

I test my phonegap app in samsung tablet and swiper does not work there at all, you have an idea why?

Should i guess what is your tablet android version?

So you said it will not work on all versions? if yes what version it will not work? thanks.

It will not work on Android < 4.0

Ok i will check what is my version and let you know.

This is samsung galaxy tab 3 android 4.2.2 version.

So it should work. Check your developer console, maybe there are some errors. Also it would be much helpful if you can provide link so i can look at it. Something could break it also

But this is wired because in other devices like my galaxy phone its work, on this specific device it does not working. but i will try to see in console for errors anyway.

Closing as no further discussion


text:
Behavior broken after resizing window when using "Auto Slides Per View / Carousel Mode"

I believe this is related to this comment in the issue #2095.
This is a (multiple allowed):

[x] bug

[x] enhancement

[x] feature-discussion (RFC)

Swiper Version: v5

Live Link or JSFiddle/Codepen or website with isssue: https://codepen.io/italosimpli/pen/zYrLmLV

What you did
Using Auto Slides Per View / Carousel Mode width different width for the swiper-slide-active
Relevant JS:
    slidesPerView: 'auto',
    loop: true,
    loopedSlides: 20,

Relevant CSS:
.swiper-slide {
    width: 200px;
    min-width: 200px;
    transition: min-width 0.3s ease;
}

.swiper-slide-active {
    min-width: 400px;
}

Expected Behavior
When resizing the window, swipershould keep the initial behavior.
Actual Behavior
After resizing the widow, all the slides right after the active one, has the offset values recalculated, and then the behavior of the swiper is broken.
I know the cause, but could not find a way to work around.
Helpfull information
This behavior is result of the different widths. If we compare the initial myswiper.slidesGrid values and the values after resizing, we can see that the values are different:
Initial Values for myswiper.slidesGrid = [0, 210, 420, 630, 840, 1050, 1260, 1470, 1680, 1890, 2100, 2310];
New Values for myswiper.slidesGrid   = [0, 210, 420, 630, 840, 1250, 1460, 1670, 1880, 2090, 2300, 2510];

Notice that 1050 is now 1250.
The new values are not wrong, they are actually the right values, but they break the swiper behaviour, and I would like to keep the values as the initial, or be able to set some slideIntrinsicWidth or something like translateVariation value.
Basically the perfect behaviour for this particular case would be ignore the active width when calculating the slidesGrid values and consequently the translate value.

The demo link you shared doesn't load for me. Can you do another one?

Sorry about that. Looks like i am having some issues with Stackblitz.
Here is the link, let me know if this works: https://codepen.io/italosimpli/pen/zYrLmLV (I also updated the link on the issue description)

Hi @nolimits4web, just a reminder about this issue.
Please let me know if you can see my demo now and if you or any other user have some fix or suggestion about how to get this working as expected.

I figured out a simple workaround for my case, but it only works if you are using px for the swiper-slides width, if the width is in % or auto this workaround will not work.
I just added updateOnWindowResize: false to the configurations, it will prevent the slidesGird to be updated keeping the initial values. This only works because slidesGrid is calculated before the classes are applied, so the width for the active slide (swiper-slide-active) is not considered (what is good for my use case).
Here are the main pieces to reproduce it and the Pen for it:
Pen: https://codepen.io/italosimpli1/pen/ZEpZmwv
**Main code pieces: **
JS
 var swiper = new Swiper('.swiper-container', {

      updateOnWindowResize: false, // this prevents slideGrid to update, comment this line to see the initial issue

      slidesPerView: 'auto',
      loop: true,
      loopedSlides: 20,

      spaceBetween: 10,
      pagination: {
        el: '.swiper-pagination',
        clickable: true,
      },
    });

CSS:
.swiper-slide {
    width: 200px;
    min-width: 200px;
    transition: min-width 0.3s ease;
}

.swiper-slide-active {
    min-width: 400px;
}

NOTE: Although the slider seems to be working fine, it still have a little jump when it loops (see the following video), I am still not sure how to fix it, any suggestion is appreciated.

https://user-images.githubusercontent.com/59578655/105416341-d5aa8b80-5bee-11eb-91c6-2a80b5ed5bc3.mov

I figured out a simple workaround for my case, but it only works if you are using px for the swiper-slides width, if the width is in % or auto this workaround will not work.
I just added updateOnWindowResize: false to the configurations, it will prevent the slidesGird to be updated keeping the initial values. This only works because slidesGrid is calculated before the classes are applied, so the width for the active slide (swiper-slide-active) is not considered (what is good for my use case).
Here are the main pieces to reproduce it and the Pen for it:
Pen: https://codepen.io/italosimpli1/pen/ZEpZmwv
**Main code pieces: **
JS
 var swiper = new Swiper('.swiper-container', {

      updateOnWindowResize: false, // this prevents slideGrid to update, comment this line to see the initial issue

      slidesPerView: 'auto',
      loop: true,
      loopedSlides: 20,

      spaceBetween: 10,
      pagination: {
        el: '.swiper-pagination',
        clickable: true,
      },
    });

CSS:
.swiper-slide {
    width: 200px;
    min-width: 200px;
    transition: min-width 0.3s ease;
}

.swiper-slide-active {
    min-width: 400px;
}

NOTE: Although the slider seems to be working fine, it still have a little jump when it loops (see the following video), I am still not sure how to fix it, any suggestion is appreciated.

https://user-images.githubusercontent.com/59578655/105416341-d5aa8b80-5bee-11eb-91c6-2a80b5ed5bc3.mov

+1

authors: italosimpli milenig nolimits4web


text:
Can you give example build setup?

I like your idea but couldn't figure out how to implement it as you described, so a simple build setup from your description would help alot

The sample code in the README is all you need, but it needs some editing to make it works.
It's just a win32 program that controls VDD using DeviceIoControl api.
First, you need to get the VDD handle. The following uses hardcoded file path.
auto path = "\\\\?\\root#display#0001#{00b41627-04c4-429e-a26e-0265cf50c8fa}";
auto vdd = CreateFileA(path, GENERIC_READ | GENERIC_WRITE, 0, NULL, OPEN_EXISTING, 0, NULL);

0001 is VDD index, note that 4 digits

Next, connect to the VDD and plug in a monitor.
VddIoCtl(vdd, IOCTL_VDD_CONNECT);
VddIoCtl(vdd, IOCTL_VDD_UPDATE);
VddIoCtl(vdd, IOCTL_VDD_ADD);
VddIoCtl(vdd, IOCTL_VDD_UPDATE);

Then run this loop to keep the monitor connection.
while (running) {
    Sleep(100);
    VddIoCtl(vdd, IOCTL_VDD_UPDATE);
}

It also can be run in a parallel thread

Finally, reconnect to unplug the monitor.
VddIoCtl(vdd, IOCTL_VDD_CONNECT);
CloseHandle(vdd);

graph TD
A[controller.exe]
B[ParsecVDD adapter]
X[IOCTL_VDD_CONNECT]
Y[IOCTL_VDD_ADD]
Z[IOCTL_VDD_UPDATE]

A --- X --> |connect/disconnect|B
A --- Y --> |plug in|B
A --- Z --> |update conn|B

Last week I tried to build but ran into this error, I remember looking around for solutions but eventually didn't know how to solve it at all

Information on VS Installer:

Last week I tried to build but ran into this error, I remember looking around for solutions but eventually didn't know how to solve it at all

This RustDeskIddDriver is a user-mode driver, you need to install Windows Driver Kit.
https://learn.microsoft.com/en-us/windows-hardware/drivers/download-the-wdk

I did tried to install it but I'm using Windows 10, seems like it's not working

Last week I tried to build but ran into this error, I remember looking around for solutions but eventually didn't know how to solve it at all

This RustDeskIddDriver is a user-mode driver, you need to install Windows Driver Kit. https://learn.microsoft.com/en-us/windows-hardware/drivers/download-the-wdk

I did tried to install it but I'm using Windows 10, seems like it's not working

No, Windows 10 is not the problem.
You also can build it with VS2017/19 + Win10 WDK.
https://www.techspot.com/downloads/6278-visual-studio.html
https://learn.microsoft.com/en-us/windows-hardware/drivers/other-wdk-downloads
Btw, I think you're going so far.
If you need to create your own VDD, so RustDeskIddDriver or any similar is fine, then open issue on its repo.
With my repo, there is no need to make a driver!

So you mean that I don't need to actually build the who driver, but instead just to take the DeviceOpenHandle function you referenced?
Looking into that function I thought that it will need some dependencies more than just the function itself, so that's why I decided to build the whole repo and try to patch some code after that instead of just trying to pick that function (I expect to run into more errors if I do that)

I just created a demo with edited DeviceOpenHandle(GUID), it's a simple win32 application, no driver or WDK needed.
https://github.com/nomi-san/parsec-vdd/blob/main/demo.cc
Any question please DM me via mess.

Ai cho close?

@nomi-san open lại cãi nhau tí xem nào

authors: monokaijs nomi-san t-rekttt

repo: nomi-san/parsec-vdd


text:
Improved compatibility with future non/algebra traits.

Follow-up of #353
Correcting also Action syntax that was lost in the merge.

Wow, either I'm messing up my trees, or GitHub does not like so much overlapping PRs.
Can you please merge this correction as soon as possible, and I will restart #357 from scratch ?

Looks great, thanks!

authors: denisrosset non

repo: non/spire


text:
How to handle detached link state after re-connection

Hi,
I've met the following issue
2017-01-24T10:29:22.727Z - [amqpSenderLink] detached event
2017-01-24T10:29:27.217Z - [amqpConnection] connection:opened

2017-01-24T10:29:30.616Z - [amqpSenderLink] message sent
2017-01-24T10:29:30.951Z - [Client] successful finish

2017-01-25T06:05:00.876Z - [amqpConnection] connection:errorReceived AmqpProtocolError: amqp:resource-limit-exceeded:local-idle-timeout expired

The issue is that all messages sent between 'detached'  and 'connection:errorReceived' events were reported as sent (promise resolved), but they did not came to a server.
The questing is: should I handle re-attach from the client code or library has a feature to reattach link?
I use AMQP.Policy.ActiveMQ without any tweaks.
amqp10 version 3.2.5

@wingedfox the client should be able to handle re-attach events, could you possibly isolate the exact order of events that lead to this? We should be able to recreate your situation within the unit tests by following the remote frame order

@mbroadst I've updated the log in the first message.
The very first message in the log is the last successful send, the one before the last is 1st lost message.
All messages in between - ampq10 event handlers.
I'm not sure that can I add to log, because I haven't met the same issue. Our investigation shows that at the same time there was about 10-minutes long freeze of the VM, where client resides.
I could not reproduce this issue with another set of VMs, so I do not have amqp10 debug output.
As a short-term solution, should I check 'attached' state of sender link and re-attach it manually?

@wingedfox apologies. I'm traveling this week, I will update the ticket when I'm back.

@wingedfox the link should reattach automatically, but with an exponential backoff which might explain the wait times. I would not recommend reattaching it manually. Are you using the link cache plugin by any chance?

@mbroadst, the problem is that there were no link reattach for more than 12 hours and I was not able to track the issue because amqp10 told me 'everything is ok' by return of Promise.resolve but actually sent nothing.
Our dig to the issue shows that there were a VM suspend for several minutes. Probably client met a kind of window shift issue when the message was actually sent to an amqp server (ActiveMQ) but was not accepted/recorded in a queue for some reason?

Any ideas on fix or reproduction of this issue?

authors: mbroadst wingedfox


text:
AWS Resource Policy Monitoring and Management

Is your feature request related to a problem? Please describe.
Not so much a problem, just a part of IAM that is important for most organizations that I don't see managed currently in iambic.
Describe the solution you'd like
When I import IAM policies for my account, every resource policy associated with an AWS resource in my account should be accounted for and managed.
Describe alternatives you've considered
I guess I would just have to not manage them and hope that I had a sane way of using resource policies?

Resource policy monitoring and management is a massive feature lift.
What are the types of resource are most interesting? S3? EC2? AWS Control API attempts to standardize things; however, I've heard it's not that generic across resources types.
This feature will need a champion to design and plan how to move forward.

authors: rjulian smoy

repo: noqdev/iambic


text:
Suggestion: Configuration file + mu plugin

Also I'd like to suggest the usage of a configuration file. As somebody else already implied, managing multiple WP installs (eg. 20+) could quickly turn into a big fat PITA. Thus adding a configuration file and extending the plugin for MU usage, would greatly improve its value ;)
My suggested scheme as follows:
1. Add configuration file
Should be dropped straight into the upload directory, just like this:
https://gist.github.com/ginsterbusch/b4d84eb6256cd9373210efcca2764cdf
2. Turn or add the main class as custom MU plugin
You'd just drop both the config file and the MU plugin into the MU directory, and be done. Could easily be automated ;)
cu, w0lf.

this is intended for regular users who likely aren't familiar with the whole mu-plugins folder concept. while my use case (having 100's of sites), there's still value for folks that have 5 or 10.
as such, anyone who's capable of setting and using a mu-plugin can do so on their own. I don't intend on adding that functionality.

authors: ginsterbusch norcross

repo: norcross/control-wp-core-emails


text:
Installation procedure Android OKKish and iOS Fails

Android:
I have the following order of events when I update something on Android,
on first run it says installation is ready to be updated
then nothing happens
I dont quit the app, just deactivate
I deactivate the app, then it navigates to the stored old version
I get an event that chcp_updateInstalled
and it works...is this the intended behavior?
iOS, WKWebview:
I simply get an error, for the same manifest that wors for Android:
++++++++++++++++++ to chcp_updateLoadFailed    – CustomEvent {detail: {error: {code: -4, description: "Hash c22cc828ab432172b069b4cddb4b435c of the file …tch the checksum 10f6bae1011fe6816fbd7affa1915cfe"}}, clipboardData: undefined, initCustomEvent: function, …}

Ok this is another good experience for the others, it seems my server is caching certain files, so the hashes will eventually fail.

I dont quit the app, just deactivate

What do you mean by deactivate?

I deactivate the app, then it navigates to the stored old version
I get an event that chcp_updateInstalled
and it works...is this the intended behavior

Depends on the preferences in chcp.json file. There's a preference, called update. By default it is set to start, which means that update will be installed when application is launched. If you want the app to update immediately - set it to now, or start installation process manually from JS side.

Ok this is another good experience for the others, it seems my server is caching certain files, so the hashes will eventually fail.

Good catch 👍

deactivate means minimizing it.
Another issue arisen after a successful update for ios wkwebview I receive an app.html not found. It happens not all the time. I continue to inspect this issue.

Exactly where do i need to put now ? In chcpbuild.options? Seems during build it not gets in the chcp.json.

I have added "update":"now" to chcpbuild.options, but it not gets copied into chcp.json.

chcpbuild.options is used only to set preferences in platform-specific config.xml file. More details can be found here.
update preference should go to chcp.json file, that is placed on the server, because it defines the behaviour of the plugin with this particular release.
If you have created cordova-hcp.json file - then put it in there. For example:
{
  "content_url": "https://myserver.com/www/",
  "release": "2015.09.05-12.20.15",
  "update": "now"
}

That was really my fault, i have misconfigured it in the options file.
I will give feedback on the WKWebview issue asap.

According to the previous hash problem. You need to pay attention to this
http://superuser.com/questions/377743/same-file-different-file-size
it might generate different hash sizes. I mean, you generate the hashes on WIN copy in text transfer to a NIX and the resulting file size will be different ergo malformed checksum will be the result.

Is auto install crash related to #140 ?

As you already found out - currently plugin supports on iOS only cordova-plugin-wkwebview-engine, not teleriks version. Issue for telerik support is already added: https://github.com/nordnet/cordova-hot-code-push/issues/98

Thanks. In other thread I was wondering meanwhike can I use v1.1.2 for iOS.

Answered in there :) Check the links I provided there and decide. But in my opinion - changes are quite big since v1.1.2. I will try to make a quick fix tomorrow, might work.

That would be awesome. You are great!

I've created a branch with possible fix for telerik plugin. But it will work only if your index page doesn't have # in the url. But I suspect that's should be fine in your case.
To install the plugin use the following command:
cordova plugin add https://github.com/nordnet/cordova-hot-code-push.git#telerik-wkwebview-fix

@nikDemyankov thanks a lot, saves the day!

authors: barocsi nikDemyankov

repo: nordnet/cordova-hot-code-push


text:
NoClassDefFoundError

how can i fix this error. pls help me.  thank you.

02-15 20:27:26.403 20485-20485/? E/dalvikvm: Could not find class 'com.nostra13.universalimageloader.cache.memory.impl.FuzzyKeyMemoryCache', referenced from method com.nostra13.universalimageloader.core.ImageLoaderConfiguration$Builder.initEmptyFieldsWithDefaultValues
02-15 20:27:26.413 20485-20485/? E/AndroidRuntime: FATAL EXCEPTION: main
02-15 20:27:26.413 20485-20485/? E/AndroidRuntime: java.lang.NoClassDefFoundError: com.nostra13.universalimageloader.core.assist.QueueProcessingType
02-15 20:27:26.413 20485-20485/? E/AndroidRuntime:     at com.nostra13.universalimageloader.core.ImageLoaderConfiguration$Builder.(ImageLoaderConfiguration

Hi,
I am facing this issue in library version 1.9.2. Any updates on this issue?

authors: VanditPatel gedeju


text:
How to remove from sytem?

The docs contain great instructions on how to install everything, but what are the most important / main steps to remove it if not needed anymore?

Thanx


text:
If PullDownMenuItem's onTap is a showDialog function, nothing happens when clicking it.

PullDownButton(
        itemBuilder: (ctx) => [
          PullDownMenuItem(
            title: 'Compress',
            icon: CupertinoIcons.archivebox,
            onTap: () => showDialog(context: context, builder: (context) => AlertDialog(content: Container())),
          ),
        ],
        position: PullDownMenuPosition.under,
        buttonBuilder: (context, showMenu) => CupertinoButton(
          onPressed: showMenu,
          padding: EdgeInsets.zero,
          child: Icon(CupertinoIcons.ellipsis_circle),
        ),
      ),

Hi @LathDevers, thanks for submitting issue
I am able to reproduce this issue with PullDownButton as well as with PopupMenuButton, so I'd say this behaviour is expected.
Both of menu buttons first call a onTap function and then immediately fire Navigator.pop(), which in this case show and immediately hide dialog as well as not pop menu since navigation was stack changed. Relevant stackoverflow issue
As a working solution, while not perfect, consider this:
PullDownButton(
  itemBuilder: (ctx) => [
    PullDownMenuItem(
      title: 'Compress',
      icon: CupertinoIcons.archivebox,
      onTap: () async {
        await Future<void>.delayed(const Duration(milliseconds: 1));
        await showDialog<void>(
          context: ctx,
          builder: (context) => AlertDialog(content: Container()),
        );
      },
    ),
  ],
  position: PullDownMenuPosition.under,
  buttonBuilder: (context, showMenu) => CupertinoButton(
    onPressed: showMenu,
    padding: EdgeInsets.zero,
    child: const Icon(CupertinoIcons.ellipsis_circle),
  ),
)

Although I will try to come up with a better solution in a couple of weeks when I have more time

Hi @LathDevers, thanks for submitting issue
I am able to reproduce this issue with PullDownButton as well as with PopupMenuButton, so I'd say this behaviour is expected.
Both of menu buttons first call a onTap function and then immediately fire Navigator.pop(), which in this case show and immediately hide dialog as well as not pop menu since navigation was stack changed. Relevant stackoverflow issue
As a working solution, while not perfect, consider this:
PullDownButton(
  itemBuilder: (ctx) => [
    PullDownMenuItem(
      title: 'Compress',
      icon: CupertinoIcons.archivebox,
      onTap: () async {
        await Future<void>.delayed(const Duration(milliseconds: 1));
        await showDialog<void>(
          context: context,
          builder: (context) => AlertDialog(content: Container()),
        );
      },
    ),
  ],
  position: PullDownMenuPosition.under,
  buttonBuilder: (context, showMenu) => CupertinoButton(
    onPressed: showMenu,
    padding: EdgeInsets.zero,
    child: const Icon(CupertinoIcons.ellipsis_circle),
  ),
)

Although I will try to come up with a better solution in a couple of weeks when I have more time (or at least update examples/documentation with example that i provided).

Thanks, that's a perfectly fine workaround for now. 😉

The above workaround works for me with a CupertinoAlertDialog too, thanks!

@LathDevers, @rikbrown,
I have just published an update which should have fixed this issue (at least from my testing it did).
Now its pretty straightforward, just remove await Future<void>.delayed(const Duration(milliseconds: 1)):
PullDownButton(
  itemBuilder: (ctx) => [
    PullDownMenuItem(
      title: 'Compress',
      icon: CupertinoIcons.archivebox,
      onTap: () => howDialog<void>(
        context: context,
        builder: (context) => AlertDialog(content: Container()),
      ),
    ),
  ],
  position: PullDownMenuPosition.under,
  buttonBuilder: (context, showMenu) => CupertinoButton(
    onPressed: showMenu,
    padding: EdgeInsets.zero,
    child: const Icon(CupertinoIcons.ellipsis_circle),
  ),
)

I have just published an update which should have fixed this issue (at least from my testing it did).
...

@notDmDrl thanks! It works for me now 👍🏻
Tested on Android 12 (physical device) and iOS 15.5 (simulator and physical device)

authors: LathDevers notDmDrl rikbrown


text:
Update scalafmt-core to 3.7.15

About this PR
📦 Updates org.scalameta:scalafmt-core from 3.7.2 to 3.7.15
📜 GitHub Release Notes - Version Diff
Usage
✅ Please merge!
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

🔍 Files still referring to the old version number
The following files still refer to the old version number (3.7.2).
You might want to review and update them manually.
.git-blame-ignore-revs

⚙ Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.scalameta", artifactId = "scalafmt-core" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "org.scalameta", artifactId = "scalafmt-core" }
}]

labels: library-update, early-semver-patch, semver-spec-patch, old-version-remains, commit-count:n:3

Superseded by #79.

repo: note/dhallj-magnolia


text:
WebHook support for gitlab.org

Example payload:
{
  "before": "95790bf891e76fee5e1747ab589903a6a1f80f22",
  "after": "da1560886d4f094c3e6c9ef40349f7d38b5d27d7",
  "ref": "refs/heads/master",
  "user_id": 4,
  "user_name": "John Smith",
  "repository": {
    "name": "Diaspora",
    "url": "git@localhost:diaspora.git",
    "description": "",
    "homepage": "http://localhost/diaspora",
  },
  "commits": [
    {
      "id": "b6568db1bc1dcd7f8b4d5a946b0b91f9dacd7327",
      "message": "Update Catalan translation to e38cb41.",
      "timestamp": "2011-12-12T14:27:31+02:00",
      "url": "http://localhost/diaspora/commits/b6568db1bc1dcd7f8b4d5a946b0b91f9dacd7327",
      "author": {
        "name": "Jordi Mallach",
        "email": "jordi@softcatala.org",
      }
    },
    // ...
    {
      "id": "da1560886d4f094c3e6c9ef40349f7d38b5d27d7",
      "message": "fixed readme",
      "timestamp": "2012-01-03T23:36:29+02:00",
      "url": "http://localhost/diaspora/commits/da1560886d4f094c3e6c9ef40349f7d38b5d27d7",
      "author": {
        "name": "GitLab dev user",
        "email": "gitlabdev@dv6700.(none)",
      },
    },
  ],
  "total_commits_count": 4,
};

GitLab support would be great! Has there been any consideration for this since the issue opened?

@jameswritescode I'm personally probably not going to add support, but would gladly merge it if it was contributed.

@TkTech Can you consider this, please? GitLab.com is pretty nice compared to the likes of Bitbucket and it offers free private repos, which is nice.

Notifico is open source, PRs accepted :)

This should be very similiar to Github. Might even just work with the Github hooks, haven't really looked into the details.
Could probably be done by inheriting from the Github hook and only implementing handle_request.

No idea, but I would appreciate you looking into this. My other solution is GitLab--> Slack --> IRC and it's rather clunky.

Great, it works nice. BTW, do you please plan to deploy this support into http://n.tkte.ch/? Thanks!

Bump. @TkTech

authors: Dav1dde MrKeiKun Techman- TkTech jameswritescode wookayin

repo: notifico/notifico


text:
Add Missing Methods for Layouts

Some endpoints of the following section can't be hit from this SDK.
We would like to ensure that all endpoints can be hit. For this issue, we would like to build out the Layouts
Some of these methods may already exist.
If so no need to change/update them, just point out that they already exist and we will close the issue.

This is just to bring every SDK we have on par with all the methods available.
Check all the endpoints here and add the missing ones.

@Cliftonz i will pick this

#35

Fixed by: https://github.com/novuhq/novu-rust/pull/35

authors: Cliftonz kymppi srikanth597

repo: novuhq/novu-rust


text:
[Bug] RUC not resolved when SSR

BUG Description
Lazy-Loading-Components seem to fail when dumping the site as static files.
The code-splitting and stuff works, but the components are not resolved during react-static build and no HTML is included in the static dumped file.
Environment
  System:
    OS: macOS 10.14.5
    CPU: (4) x64 Intel(R) Core(TM) i7-5557U CPU @ 3.10GHz
    Memory: 128.24 MB / 16.00 GB
    Shell: 5.3 - /bin/zsh
  Binaries:
    Node: 12.4.0 - /usr/local/bin/node
    Yarn: 1.17.0 - /usr/local/bin/yarn
    npm: 6.9.0 - /usr/local/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  Browsers:
    Chrome Canary: 77.0.3832.0
    Firefox: 65.0.1
    Safari: 12.1.1
  npmPackages:
    react: ^16.8.6 => 16.8.6
    react-dom: ^16.8.6 => 16.8.6
    react-static: ^7.1 => 7.1.0
    react-static-plugin-sass: ^7.1 => 7.1.0
    react-static-plugin-typescript: ^7.0 => 7.0.10
    react-universal-component: ^4 => 4.0.0

Steps to Reproduce the problem

checkout https://github.com/digitalkaoz/react-static-ruc-ssr
react-static build

Expected Behavior
In https://github.com/digitalkaoz/react-static-ruc-ssr/blob/master/src/pages/blog.js we introduced 2 lazy loaded components with https://github.com/faceyspacey/react-universal-component. Those should be resolved during SSR.
After building the static dump investigate the compiled HTML:
In the file dist/blog/index.html there should be the resolved lazy loaded components, but its not:
search for Loading Bottomlink or Loading Toplink those should not be present, instead i expect the resolved components (like in react-static@6)
Reproducible Demo
https://github.com/digitalkaoz/react-static-ruc-ssr
@tannerlinsley what changed here? In v6 it worked like a charm, in v7 its broken! So SSR with dynamic imports is broken now. Im relying on the v6 behavior todo some further optimizations like purgecss or critical
Since Suspense is broken too (for SSR) whats the correct way todo it now? Code-Splitting works fine, but rendering not!

@tannerlinsley @ScriptedAlchemy anyone have an idea?

hi everyone! thanks for your issue! there is now a call for maintainers of React Static, please weigh in here: https://github.com/nozzle/react-static/issues/1259

I'll check this out, see if i can spot anything.

authors: ScriptedAlchemy digitalkaoz sw-yx

repo: nozzle/react-static


text:
Example/blog previous next navigation

Description
Add previous/next example made from the basic example: https://github.com/nozzle/react-static/pull/662#issuecomment-404926631
Changes/Tasks

[x] Changed code

Motivation and Context

Example of how to use previous next in a blog
Types of changes

[ ] Refactoring/add tests (refactoring or adding test which isn't a fix or add a feature)
[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

[ ] My change requires a change to the documentation.

[ ] I have updated the documentation accordingly.

[ ] My changes have tests around them

How do I get to the beta branch?
There isn't a beta branch to select and I can't npm i react-static@v6.0.0-beta.13

Master branch
On Sun, Jul 15, 2018 at 10:40 PM Scott Spence notifications@github.com
wrote:

How do I get to the beta branch?
There isn't a beta branch to select and I can't npm i
react-static@v6.0.0-beta.13
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/nozzle/react-static/pull/682#issuecomment-405147717,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFUmCfFQpOk-N-Kvpsh2LB4mBEZEYMj3ks5uHBkkgaJpZM4VQYX1
.

I updated from the master branch before submitting the PR 🙃

Will update on resolution of #684

I can't see what's different @tannerlinsley
I have created a basic example with npx react-static@next create and selected the basic template, there's nothing I can see that's changed, the version is still @5.9.7 in the created example.
Would it be simpler if I wait for v6 to be released?

@spences10 As you can see by going to https://www.npmjs.com/package/react-static and then clicking on the "Versions" tab, the Tag 6.0.0-beta.15 is marked as next. Maybe the update didn't work.

@danilobuerger rather than point out that I've done something wrong could you not offer anything helpful?

Like what the differences are? How to identify them, or something other than "you've done it wrong try again!"

😭 Looks like I totally dropped the ball on this one. Since then, v6 has been put in it's own branch, so if you choose to reopen this PR (I hope you do), you can point at that branch.
I will leave some notes in the files for what has changed.

Looks like the branch has been deleted, so reopening will not work until the branch is restored. Or you can just open a new PR and refer to this one for notes?

Since then, v6 has been put in it's own branch, so if you choose to reopen this PR (I hope you do), you can point at that branch.

@tannerlinsley there is no v6 branch, what should I submit a PR to?

The branch is located here: https://github.com/nozzle/react-static/tree/v6. I'm not sure why it's not showing up in your list there. 🤔

The branch is located here: https://github.com/nozzle/react-static/tree/v6. I'm not sure why it's not showing up in your list there. 🤔

Because I was looking at my fork! 🙃

Oh boy!

Resubmitted with https://github.com/nozzle/react-static/pull/798 @tannerlinsley
Thanks

authors: danilobuerger spences10 tannerlinsley


text:
opam package BetterErrors 0.0.1 has bad checksum

[ERROR] Bad checksum for
        /Users/dsheets/.opam/packages.dev/BetterErrors.0.0.1/v0.0.1.tar.gz:
          - aaac92a8c9a6078f4264454c0053e98f [expected result]
          - 213fbbf17f54927d62464d0ac1188f8a [actual result]

Ugh. Thanks for the report. I have no idea how opam works... I'll check it out again

authors: chenglou dsheets

repo: npm-ml/BetterErrors


text:
consider git metadata on 'create'

Refs: https://mobile.twitter.com/izs/status/1115332210381299712
When checking out a git repository in Windows, some FS metadata is lost due to mismatch between the WIN32 and POSIX APIs. Specifically the file mode (but also uid, gid, and some of the time stamps).
refael@refaelux MINGW64 /d/code/node (mode-test)
$ ls -la r.sh
-rw-r--r-- 1 refael 197609 0 Apr  8 15:57 r.sh
^^^^^^^^^^

But git still stores this info
refael@refaelux MINGW64 /d/code/node (mode-test)
$ git ls-files r.sh --stage
100755 e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 0       r.sh
^^^^^^

The code at https://github.com/npm/node-tar/blob/d7268f65123780031e58120f55f28b87ae0c9608/lib/write-entry.js#L331-L334
Could consider this info to "enrich" the created tarball.

P.S. the most interesting use case is losing the +x from script files when doing npm publish from a worktree checked outed on Windows.

This bit Mocha yesterday when we published from Windows for the first time.  Someone using npm install --no-bin-links found that the executable files no longer had the executable flag.  My workaround was to re-publish on macOS.

If anyone wants to help move this along, the next step is to research and document how git stores this.  Is there a specific file in the .git folder we could check for this info?

Big 🔫s - https://github.com/isomorphic-git/isomorphic-git
heat-seeking-🚀 - https://github.com/sbp/gin/blob/master/gin
Seems like .git/index is a fairly simple binary stream. Pulling a snippet out of gin
    with open(.git/index, "rb") as f:

        def read(format):
            # "All binary numbers are in network byte order."
            # Hence "!" = network order, big endian
            format = "! " + format
            bytes = f.read(struct.calcsize(format))
            return struct.unpack(format, bytes)[0]

        index = collections.OrderedDict()

        # 4-byte signature, b"DIRC"
        index["signature"] = f.read(4).decode("ascii")
        check(index["signature"] == "DIRC", "Not a Git index file")

        # 4-byte version number
        index["version"] = read("I")
        check(index["version"] in {2, 3},
            "Unsupported version: %s" % index["version"])

        # 32-bit number of index entries, i.e. 4-byte
        index["entries"] = read("I")

        yield index

        for n in range(index["entries"]):
            entry = collections.OrderedDict()

            entry["entry"] = n + 1

            entry["ctime_seconds"] = read("I")
            entry["ctime_nanoseconds"] = read("I")
            if pretty:
                entry["ctime"] = entry["ctime_seconds"]
                entry["ctime"] += entry["ctime_nanoseconds"] / 1000000000
                del entry["ctime_seconds"]
                del entry["ctime_nanoseconds"]

            entry["mtime_seconds"] = read("I")
            entry["mtime_nanoseconds"] = read("I")
            if pretty:
                entry["mtime"] = entry["mtime_seconds"]
                entry["mtime"] += entry["mtime_nanoseconds"] / 1000000000
                del entry["mtime_seconds"]
                del entry["mtime_nanoseconds"]

            entry["dev"] = read("I")
            entry["ino"] = read("I")

            # 4-bit object type, 3-bit unused, 9-bit unix permission
            entry["mode"] = read("I")
            if pretty:
                entry["mode"] = "%06o" % entry["mode"]

            entry["uid"] = read("I")
            entry["gid"] = read("I")
            entry["size"] = read("I")

            entry["sha1"] = binascii.hexlify(f.read(20)).decode("ascii")
            entry["flags"] = read("H")
...

then just need to seek till the end of the entry.
The magic sauce is python's struct

read("I") -> buf.readInt32LE()
read("H") -> buf.readInt16LE()

Working JS hacky example, could definitely do with a cleanup, but this seems like it works: https://gist.github.com/isaacs/55ad9e3338912c008804f69dbe855ed1

@isaacs I know you won't be interested in pulling it in to this project, but Kaitai provides a declarative format for parsing binary blobs which can then generate code.  I've used it before, and it seems suitable for something like this (in fact, a definition file might already exist for the git index format).  the docs are a bit incomplete, but still might be fun to play with if you have nothing better to do.
advice, if you do look at it: stay away from the js implementation of the tool; it's incomplete, just use the reference (scala?) implementation

imo the project would be better if it just output some sort of object code format that could then be piped into custom code generators, b/c the generated JS looks like what you'd get if you asked an career java dev to sit down and write JS

here's the description file I created to parse multimeter output over serial

@boneskull yeah... I'm probably not gonna use that.
Re: https://github.com/npm/node-tar/issues/210#issuecomment-480994853, I think npm probably ought to chmod the bins on install (or better yet, just update their mode at unpack time before they're written to disk), even if --no-bin-links is set.  That might be hairy to get into v6, but I can make that change in Pacote v10 for npm 7 pretty easily.

Ok, so, npm v7 will make the Mocha-published-from-windows-installed-without-binlinks a total non-issue.
Having looked into this git stuff, I'm kind of uncomfortable with the added complexity and fs ops required to treat the git dir cache as a source of truth.  It was a fun little hack to learn how to parse it, but it feels like a warn in node-tar.

git-archive already exists if you want to put git info into a tarball.
the facts "on the ground" of the file system might not match what's in the git index and that may be what you want a lot of the time!
the solution to the original npm footgun is now solved in an npm library (albeit behind a breaking change, but this would've likely been, anyway).
.git folders can appear anywhere within the tree, the path parsing is relative to the .git folder rather than the root of the archive, etc, etc.  It's all solveable, but it adds a lot of stuff.

So I'm gonna close this issue for now.
If anyone is really desperate for this kind of functionality (informing a tarball's header info based on a git index), you can get at the entry stats on the way into the archive by adding a filter option to tar.c.  (That's how pacote is setting the executable bit on bins now.)

authors: boneskull isaacs refack

repo: npm/node-tar

license: isc


text:
Add pg_repack of resource_events for PE 2019.1+

https://tickets.puppetlabs.com/browse/PDB-3911
Should be able to set $reports_tables to conditionally include resource_events based on the PE version.
https://github.com/npwalker/pe_databases/blob/master/manifests/maintenance/pg_repack.pp#L21

https://github.com/npwalker/pe_databases/pull/28


text:
Remove .ToLower() on URLs to preserve case sensitive parameters

Fixes #45

Thanks for the contribution!

Created release https://github.com/nref/BrowseRouter/releases/tag/0.12.4

authors: illgitthat nref

repo: nref/BrowseRouter


text:
NCS 1.8 rebase

Empty diff with v2.7.0-ncs1-rc1

Empty diff with v2.7.0-ncs1-rc1
@mbolivar-nordic this time it should be empty diff with master HEAD. 4c5893f9683681bc7c63312a18a0f7af39a483ce
The tag is 10 commits behinds that.

authors: mbolivar-nordic nvlsianpu

repo: nrfconnect/sdk-zephyr


text:
fix: dont require serverId

This PR solves an edge-case I'm having in Package Manager.
My use case: I would like to use the library for only searching for clips and see statuses of servers etc. In this case I don't want to provide a serverId.
After this fix, I can send in serverId=0 and it'll work just fine for me.
I suppose a proper long-term solution would be to split the QuantelGateway class into multiple classes, where the basic ones only supports the zone-related functions, etc.. But I think this is should be good enough for now.

I've made some changes after @sparkpunkd s feedback.
Now the serverId is settable anytime during the lifetime of the instance.
I also did a refactor to remove the underscore dependency.


text:
Support removing elements from slice.

Emit error for subslicing of non-byte slices.
Support removing slice elements in-place.

It'd be nice to at least mention util package in the compiler document.

authors: fyrchik roman-khimov

repo: nspcc-dev/neo-go


text:
Added Equi Solution

My First Kata

реквест неверно оформлен

authors: merixman rgordeev

repo: nspectator/katas


text:
Remove Jackson

vert.x alreash has classes for handling json.

Done. But JsonObject internally uses Jackson.

repo: ntalbs/Velociraptor


text:
Python 3  /usr/bin/python: No module named ipykernel_launcher

When I try to run hydrogen on atom I obtain this error:
Python 3
/usr/bin/python: No module named ipykernel_launcher

The reason seems very simple to me, /usr/bin/python in my system is python2, but I have to use python3 which in my system is /usr/bin/python3.
if I try to import ipykernel from python2 obviously return me an error because I have installed this module only for python3, which is the version of python that I want to use.
The solutions in my opinion are 2, pointing /usr/bin/python to python3 (and directly I can not do it because I would break the system, I could use virtualenv but I do not want to do it), or make atom/hydrogen allow me to change version of python.
Sorry I searched far and wide, I found many people with similar problems but I could not find a solution for mine.
In the end I thought about writing to you although probably this setting comes from atom.
But even if so, wouldn't it be a good idea to allow you to set the python path in the hydrogen settings and avoid similar problems?
Here it seems that someone had done it, but that command doesn't exist in my palette at all:
https://github.com/nteract/hydrogen/pull/138
Atom    : 1.41.0
Hydrogen   :2.13.1
All installed today

That issue is from 2015 in which hydrogen and jupyter have changed a lot. Hydrogen has become a language agnostic frontend to jupyter kernels, and it has great success. However instead of using paths of our own, which would become a large maintenance cost, we simply just use jupyter paths. If your kernel is not properly installed to be used by jupyter, you won't be able to use it for hydrogen either. Unfortunately I can't really give you guidance except for to read the nteract docs for installing kernels. There are definitely ways to avoid setting your python path.

While you can find the resources under the installation tab in our docs, which I recommend you read, here is how to install kernels https://nteract.io/kernels

I referred precisely on that page and I used the global installation, this is the command in the history of my bash:
pip3 install ipykernel --upgrade
"pip3" is the executable of ubuntu completely identical to
"python3 -m pip" (interchangeable), I always use the option "--upgrade", for new installations nothing changes, and the command is always the same also for update.
to be sure I launched it again and it was run without any problem (obviously it has not updated anything since I installed it a few days ago):
vinnie:vinnie$ pip3 install ipykernel --upgrade Collecting ipykernel   Using cached https://files.pythonhosted.org/packages/e1/92/8fec943b5b81078399f969f00557804d884c96fcd0bc296e81a2ed4fd270/ipykernel-5.1.3-py3-none-any.whl Collecting ipython>=5.0.0 (from ipykernel)   Using cached https://files.pythonhosted.org/packages/81/2e/59cdacea6476a4c21b7c090a91250ffbcd085900f5eb9f4e4d68dd2ee4e3/ipython-7.9.0-py3-none-any.whl Collecting tornado>=4.2 (from ipykernel) Collecting traitlets>=4.1.0 (from ipykernel)   Using cached https://files.pythonhosted.org/packages/ca/ab/872a23e29cec3cf2594af7e857f18b687ad21039c1f9b922fac5b9b142d5/traitlets-4.3.3-py2.py3-none-any.whl Collecting jupyter-client (from ipykernel)   Using cached https://files.pythonhosted.org/packages/13/81/fe0eee1bcf949851a120254b1f530ae1e01bdde2d3ab9710c6ff81525061/jupyter_client-5.3.4-py2.py3-none-any.whl Collecting pexpect; sys_platform != "win32" (from ipython>=5.0.0->ipykernel)   Using cached https://files.pythonhosted.org/packages/0e/3e/377007e3f36ec42f1b84ec322ee12141a9e10d808312e5738f52f80a232c/pexpect-4.7.0-py2.py3-none-any.whl Collecting pickleshare (from ipython>=5.0.0->ipykernel)   Using cached https://files.pythonhosted.org/packages/9a/41/220f49aaea88bc6fa6cba8d05ecf24676326156c23b991e80b3f2fc24c77/pickleshare-0.7.5-py2.py3-none-any.whl Collecting setuptools>=18.5 (from ipython>=5.0.0->ipykernel)   Using cached https://files.pythonhosted.org/packages/d9/de/554b6310ac87c5b921bc45634b07b11394fe63bc4cb5176f5240addf18ab/setuptools-41.6.0-py2.py3-none-any.whl Collecting jedi>=0.10 (from ipython>=5.0.0->ipykernel)   Using cached https://files.pythonhosted.org/packages/55/54/da994f359e4e7da4776a200e76dbc85ba5fc319eefc22e33d55296d95a1d/jedi-0.15.1-py2.py3-none-any.whl Collecting prompt-toolkit<2.1.0,>=2.0.0 (from ipython>=5.0.0->ipykernel)   Using cached https://files.pythonhosted.org/packages/87/61/2dfea88583d5454e3a64f9308a686071d58d59a55db638268a6413e1eb6d/prompt_toolkit-2.0.10-py3-none-any.whl Collecting pygments (from ipython>=5.0.0->ipykernel)   Using cached https://files.pythonhosted.org/packages/5c/73/1dfa428150e3ccb0fa3e68db406e5be48698f2a979ccbcec795f28f44048/Pygments-2.4.2-py2.py3-none-any.whl Collecting backcall (from ipython>=5.0.0->ipykernel) Collecting decorator (from ipython>=5.0.0->ipykernel)   Using cached https://files.pythonhosted.org/packages/8f/b7/f329cfdc75f3d28d12c65980e4469e2fa373f1953f5df6e370e84ea2e875/decorator-4.4.1-py2.py3-none-any.whl Collecting six (from traitlets>=4.1.0->ipykernel)   Using cached https://files.pythonhosted.org/packages/65/26/32b8464df2a97e6dd1b656ed26b2c194606c16fe163c695a992b36c11cdf/six-1.13.0-py2.py3-none-any.whl Collecting ipython-genutils (from traitlets>=4.1.0->ipykernel)   Using cached https://files.pythonhosted.org/packages/fa/bc/9bd3b5c2b4774d5f33b2d544f1460be9df7df2fe42f352135381c347c69a/ipython_genutils-0.2.0-py2.py3-none-any.whl Collecting jupyter-core>=4.6.0 (from jupyter-client->ipykernel)   Using cached https://files.pythonhosted.org/packages/fb/82/86437f661875e30682e99d04c13ba6c216f86f5f6ca6ef212d3ee8b6ca11/jupyter_core-4.6.1-py2.py3-none-any.whl Collecting pyzmq>=13 (from jupyter-client->ipykernel)   Using cached https://files.pythonhosted.org/packages/75/89/6f0ea51ffa9c2c00c0ab0460f137b16a5ab5b47e3b060c5b1fc9ca425836/pyzmq-18.1.0-cp36-cp36m-manylinux1_x86_64.whl Collecting python-dateutil>=2.1 (from jupyter-client->ipykernel)   Using cached https://files.pythonhosted.org/packages/d4/70/d60450c3dd48ef87586924207ae8907090de0b306af2bce5d134d78615cb/python_dateutil-2.8.1-py2.py3-none-any.whl Collecting ptyprocess>=0.5 (from pexpect; sys_platform != "win32"->ipython>=5.0.0->ipykernel)   Using cached https://files.pythonhosted.org/packages/d1/29/605c2cc68a9992d18dada28206eeada56ea4bd07a239669da41674648b6f/ptyprocess-0.6.0-py2.py3-none-any.whl Collecting parso>=0.5.0 (from jedi>=0.10->ipython>=5.0.0->ipykernel)   Using cached https://files.pythonhosted.org/packages/a3/bd/bf4e5bd01d79906e5b945a7af033154da49fd2b0d5b5c705a21330323305/parso-0.5.1-py2.py3-none-any.whl Collecting wcwidth (from prompt-toolkit<2.1.0,>=2.0.0->ipython>=5.0.0->ipykernel)   Using cached https://files.pythonhosted.org/packages/7e/9f/526a6947247599b084ee5232e4f9190a38f398d7300d866af3ab571a5bfe/wcwidth-0.1.7-py2.py3-none-any.whl Installing collected packages: ptyprocess, pexpect, pickleshare, six, decorator, ipython-genutils, traitlets, setuptools, parso, jedi, wcwidth, prompt-toolkit, pygments, backcall, ipython, tornado, jupyter-core, pyzmq, python-dateutil, jupyter-client, ipykernel Successfully installed backcall-0.1.0 decorator-4.4.1 ipykernel-5.1.3 ipython-7.9.0 ipython-genutils-0.2.0 jedi-0.15.1 jupyter-client-5.3.4 jupyter-core-4.6.1 parso-0.5.1 pexpect-4.7.0 pickleshare-0.7.5 prompt-toolkit-2.0.10 ptyprocess-0.6.0 pygments-2.4.2 python-dateutil-2.8.1 pyzmq-18.1.0 setuptools-41.6.0 six-1.13.0 tornado-6.0.3 traitlets-4.3.3 wcwidth-0.1.7 vinnie:vinnie$
As I tried to explain in my report, the problem is that atom or hydrogen tries to run kernels for python 2 (which in my system is /usr/bin/python as reported in its error), when ipythonkernel for me is installed for python3 (in my system /usr/bin/python3 or /usr/bin/python3.6).
So the problem is not that my system can't see the jupyter paths, the problem is that hydrogen or atom tries to use the wrong version of python and I haven't found any way to tell  to one or both of them that I want to use python3 as an executable and not python.
So I'm not asking to change the structure of your program, I'm asking how I can indicate to hydrogen the correct version of python.
I would like to say also that I didn't make any python installation changes on my system but it was all installed from the official repository and through pips installed from the repository and I still have problems, but I think that in this way it is impossible for anyone to have python in a different path from the hardcoded choosed-one of atom/hydrogen.

We don't control the executable. I think what you mean is how do you get ipykernel to run python 3

you may want to read all of #730 as it discusses the proper fixes. But in order to speed up the process, jupyter kernelspec list --json will output kernel information. The first string under argv of your python3 kernel should point to your python3 exe, if it does not you can manually change the first element of argv in the kernel.json file located at the python3 kernels resource directory.

Ok, I came back to write you that a test with venv was successful, so this confirms my problem (because in virtual enviorment the executable "python" became connected to python3, but I don't want to use a virtual enviorment because I don't want to reinstall all the libraries I already use), however since you answered me I tried to follow the page of the issue you passed me and trying to execute some commands in this page the problem seems to have fixed.
I think the command that solved the problem was python3 -m ipykernel install --user but I'm not totally sure because I don't really understand how jupyter works and I miss a lot of things.
Now I want to test bit Atom + Hydrogen, I've tried a bit of everything and maybe it's a right time that I change editors.
In the meantime I thank you and apologize if I have been a bit too strong in my messages.
Translated with www.DeepL.com/Translator

To add to this ticket, in case anyone in the future will find this useful, I found that python3 -m ipykernel install --user also solved a similar issue I was struggling with! :)
For reference, my issue was (I think) that my jupyter was searching for the wrong python. I used jupyter kernelspec list --json before and after the python3 -m ipykernel install --user command and saw a change of
          "/Applications/Xcode.app/Contents/Developer/usr/bin/python3",```
to
``` "argv": [
          "/usr/local/opt/python@3.8/bin/python3.8",```

To add to this ticket, in case anyone in the future will find this useful, I found that python3 -m ipykernel install --user also solved a similar issue I was struggling with! :)
For reference, my issue was (I think) that my jupyter was searching for the wrong python. I used jupyter kernelspec list --json before and after the python3 -m ipykernel install --user command and saw a change of
          "/Applications/Xcode.app/Contents/Developer/usr/bin/python3",```
to
``` "argv": [
          "/usr/local/opt/python@3.8/bin/python3.8",```

authors: hmwakeling vinniec wadethestealth

repo: nteract/hydrogen


text:
Add animated logo

I thought it would be cool to have a version of the hydrogen logo where the electron orbited the proton. Might be good for a loading icon or something.

Cool!

Cool!
Do you want to add it to our readme, similar to the logo in https://github.com/nteract/nteract?
We can even try and use it for our autocomplete results if it's not too distracting having multiple spinning icons 😉

The reason I started experimenting with this was I thought it would be a cool "spinner" during cell loading. Or even if a logo popped up and did one orbit before output is displayed (then disappears).
As a user I'd like to have a clear way of knowing: I just ran something with hydrogen and not (for example) the Julia console. Although, I also don't want clutter.
But for now, I thought this looked cool enough to share!

authors: BenRussert lgeiger rgbkrk


text:
🛑 TCP ping is down

In 4fccdeb, TCP ping (1.1.1.1) was down:

HTTP code: 0
Response time: 0 ms

Resolved: TCP ping is back up in 2220866.


text:
🛑 Imprese e Made in Italy is down

In 1149a94, Imprese e Made in Italy (https://www.mise.gov.it/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Imprese e Made in Italy is back up in 5f77864.


text:
🛑 Università e ricerca is down

In 656d582, Università e ricerca (https://www.mur.gov.it/it) was down:

HTTP code: 403
Response time: 609 ms

Resolved: Università e ricerca is back up in dd38665 after 1 hour, 58 minutes.


text:
improve server response

A ideia do commit é permitir que o usuário consiga retornar um response em uma função do servidor. O principal problema surgiu em tratar os status code de uma response. Atualmente, se você tentar dar um return response..., ele funciona, mas dá esse erro interno:
Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client

O problema é que ele chama o response duas vezes, pq chama o do retorno e o default. Teria uma alternativa que eu acho o código bem feio, pra tratar o erro e não dar nenhum problema interno, que seria da seguinte forma:
    if (!post) {
      response.statusCode = 400;
      return { message: "Post não encontrado." };
    }

Com o pull request você permite os dois tipos de chamadas e resolve o erro interno em relação a esse tipo de chamada:
    if (!post) {
      return response.status(400).json({ message: "Post não encontrado." });
    }

A ideia do commit é permitir que o usuário consiga retornar um response em uma função do servidor. O principal problema surgiu em tratar os status code de uma response. Atualmente, se você tentar dar um return response..., ele funciona, mas dá esse erro interno:
Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client

O problema é que ele chama o response duas vezes, pq chama o do retorno e o default. Teria uma alternativa que eu acho o código bem feio, pra tratar o erro e não dar nenhum problema interno, que seria da seguinte forma:
    if (!post) {
      response.statusCode = 400;
      return { message: "Post não encontrado." };
    }

Com o pull request você permite os dois tipos de chamadas e resolve o erro interno em relação a esse tipo de chamada:
    if (!post) {
      return response.status(400).json({ message: "Post não encontrado." });
    }

Opa, respondendo aqui tb oque falamos no discord para ficar historico:
A ideia é muito boa de poder levantar o status de forma generica, hoje temos o page.status que controla o status.
No cliente quando uma server function retorna um status diferente de 200, ele seta o page.status para o ultimo status retornado.
Seria uma ótima contribuição fazer o mesmo comportamento no servidor dentro do prerender ai a pessoa poderia setar o status, mas não precisar retornar (server functions não devem ser usadas como public api endpoints)
dicas:
https://github.com/nullstack/nullstack/blob/3e6e32aa305fa8d94dec591d659b2f6804a817c6/server/prerender.js#L37
https://github.com/nullstack/nullstack/blob/3e6e32aa305fa8d94dec591d659b2f6804a817c6/client/invoke.js#L28

Fechando a issue por inatividade, qualquer coisa só reabrir ✨

repo: nullstack/nullstack


text:
dtypes passes as strings don't work in array creation methods

This kind of function does not work:
@numba.jit(nopython=True)
def test_func():
    x = numpy.empty(100, dtype='int64')
    x[0] = 10
    return x

although int64 is interpreted as a valid dtype by NumPy.
Could this be solved by creating a casting rule that allows strings to be cast to dtype objects?

Could this be solved by creating a casting rule that allows strings to be cast to dtype objects?

better make an overload to take dtype=str' instead of new casting rule.

yeah, probably, though any function that takes a dtype object should probably do the same conversion

Also, with reference to #2205
from numba import cuda
@cuda.jit('void(float64[:])')
def kern(arr):
    cuda.local.array(10, 'float64')

kern[1,1](np.zeros(1))

gives:
numba.errors.LoweringError: Failed at nopython (nopython mode backend)
cannot create weak reference to 'str' object
File "issue2205.py", line 4
[1] During: lowering "$0.6 = call ptx.lmem.alloc($const0.4, $const0.5)" at issue2205.py (4)

Since #6262 has now been merged, can this be closed? It seems like #6262 only partially addressed this issue, perhaps we could update here what is still missing, if anything.

Since #6262 has now been merged, can this be closed? It seems like #6262 only partially addressed this issue, perhaps we could update here what is still missing, if anything.

Technically I think yes https://github.com/numba/numba/pull/6262#pullrequestreview-493577596

Updated https://github.com/numba/numba/issues/2205 as feature request. Suggest opening new tickets for any remaining issues.

authors: esc seibert sklam stuartarchibald

repo: numba/numba


text:
Reimplement cdecimal type

Reimplement cdecimal type that was lost in 0.12 refactor

We have determined that the performance improvement would be too small to be worth it.
(while fast, the libmpdec library is still massively slower than hardware FP calculations: removing the Python dispatch overhead doesn't bring much here)

authors: jayvius pitrou


text:
GitHub Actions: fix towncrier workflow to re-run on adding skip label

Currently the towncrier workflow will fail if the skip_release_notes label isn't set. It seems like there is no way to re-run this workflow after adding the label, other than to open/close it. It would be nice if the workflow was runnable after adding the skip_release_notes label such that we don't have to open/close the PRs anymore.

Potential solution: https://github.com/orgs/community/discussions/39062#discussioncomment-4138177

Fixed by: https://github.com/numba/numba/pull/9666

authors: esc sklam


text:
Mailing list cron job and updated HTTP handler.

Fixes #208

Coverage decreased (-2.06%) to 57.56% when pulling 4cc22e44c9485b8f3b3925343f519edc758e3c68 on rhyolight:mailing-list-cron into 59f0fcc8f96dc3cc86a5a8b6b771fd457298c8ae on numenta:master.

authors: coveralls rhyolight


text:
Remove license from Python files

Pros:

Easier to read.
Many open source projects don't include the license in source code files.
Doesn't offer any more protection legally.

Cons:

?

Can we hold off on this PR?

authors: bveeramani elibol

repo: nums-project/nums


text:
🎏 Blowfish translation

Created the skeleton for the menu and language files for IT JA and ZH-CN
Goal will be to translate those and every index.md and _index.md file in the content folder. I would like to keep the same folder structure so plese duplicate the files themselves e.g. for a given index.md create a index.ja.md for the japanese translation. Note: don't forget to translate lists first (_index.md) otherwise Hugo breaks with non-obvious error messages.

[ ] Generate menu and language configs files for each target language
[ ] Translate every index.md and _index.md file in content folder, e.g. for it create a index.it.md or a _index.it.md

Thanks @Weaxs for the first drop. Are you planning to translate more pages?

. Are you planning to translate more pages?

Yes, I will translate more pages in spare time.

@Weaxs FYI - ERROR [zh-cn] REF_NOT_FOUND: Ref "advanced": "/home/runner/work/blowfish/blowfish/exampleSite/content/tags/_index.zh-cn.md:6:91": page not found

@Weaxs FYI - ERROR [zh-cn] REF_NOT_FOUND: Ref "advanced": "/home/runner/work/blowfish/blowfish/exampleSite/content/tags/_index.zh-cn.md:6:91": page not found

I commit a pr for {{< ref "advanced" >}} https://github.com/nunocoracao/blowfish/pull/1330

@Weaxs FYI - ERROR [zh-cn] REF_NOT_FOUND: Ref "advanced": "/home/runner/work/blowfish/blowfish/exampleSite/content/tags/_index.zh-cn.md:6:91": page not found

I commit a pr for {{< ref "advanced" >}} #1330

FYI did a commit to fix the sub-menus structure in Examples

@nunocoracao I want to use single index.md for multiple languages, such like index.md in folder exampleSite/content/users.
I found this question in hugo discourse: Single markdown for multiple languages and I18n: A way to force page generation even if it isn’t translated?, and I also found a option enableMissingTranslationPlaceholders、Missing translations.
But it is not work locally when I try to set enableMissingTranslationPlaceholders in exampleSite/config/_default/hugo.toml .
And this option is global, some riks maybe occur ? The optioon just for article or listing page not global maybe better.
Do you have any other solutions ? thx for your reply.

I also checked that but was under the impression is not possible. I can explore that one. Let's do the following, don't worry about the users page for now. Worse case scenario I'll add it to the script.

@nunocoracao I want to use single index.md for multiple languages, such like index.md in folder exampleSite/content/users.
I found this question in hugo discourse: Single markdown for multiple languages and I18n: A way to force page generation even if it isn’t translated?, and I also found a option enableMissingTranslationPlaceholders、Missing translations.
But it is not work locally when I try to set enableMissingTranslationPlaceholders in exampleSite/config/_default/hugo.toml . And this option is global, some risks maybe occur ? The optioon just for article or listing page not global maybe better.
Do you have any other solutions ? thx for your reply.

@Weaxs I tried to use some of this solutions - including symlinks to populate a new language (see genLanLinks.js) and nothing worked. The configs in those files don't seem to do anything, and Hugo doesn't read symlinks apparently... On a good side, updated the user generation script to generate all required language index files and also translate tags in real time. Wrapping up some optimizations before committing.
Also added a new config for disabling languages. This will enable us to merge this branch into dev/main if this is taking too long and continuing with the translation work in dev while having them hidden in production.

@Weaxs @Lemon73-Computing @BabaRagnarok @Aphcity  I've just committed a an update with all the placeholder files for all languages. I think this is going to take a while to translate. Shall we disable all languages that are not fully translated until they are, or leave the placeholders and people will translate the missing pages over time?

@Weaxs @Lemon73-Computing @BabaRagnarok @Aphcity I've just committed a an update with all the placeholder files for all languages. I think this is going to take a while to translate. Shall we disable all languages that are not fully translated until they are, or leave the placeholders and people will translate the missing pages over time?

I think we cound leave them, people who want to use another language for their website must have the ability to translate them. Leave them and we might get more people contributing to this branch.

@Weaxs @Lemon73-Computing @BabaRagnarok @Aphcity I've just committed a an update with all the placeholder files for all languages. I think this is going to take a while to translate. Shall we disable all languages that are not fully translated until they are, or leave the placeholders and people will translate the missing pages over time?

I think we cound leave them, people who want to use another language for their website must have the ability to translate them. Leave them and we might get more people contributing to this branch.

Ok so in my opinion, I think this branch is looking good. Thanks to everyone for their contributions. This should be good enough to go live and we can continue translating to other languages as people can/want to contribute. I propose merging this one to dev (next release) and publishing everything. Going forward translations become normal PRs on dev branch. thoughts?
We can still track all the missing translation pages here and optionally HIDE some languages in the production deployment.

Ok going to merge to dev let's continue work there

authors: Aphcity Weaxs nunocoracao

repo: nunocoracao/blowfish


text:
Changes type of deleted_at columns to be Carbon instance

[x] Added or updated tests
[ ] Documented user facing changes
[x] Updated CHANGELOG.md

Resolves https://github.com/nunomaduro/larastan/issues/1051
Changes
This updates the SchemaAggregator to read SoftDeletes and SoftDeletesTz columns as Carbon instances instead of strings.

Nice! I think you should get the date type from get_class(\Illuminate\Support\Facades\Date::now()) as you can have overwritten the default Date with Date::use(CarbonImmutable::class) in a service provider.

I've submitted a few commits with changes to the PR in line with the earlier discussion. Let me know if I can do anything else to improve this.

Looks good. Thank you!

authors: BertvanHoekelen canvural totov

repo: nunomaduro/larastan


text:
[T4A4][T14-B1] Advay Pal

Ready for review

@advaypal
Some comments added. Please ack & close the PR after reading comments.

authors: advaypal okkhoy


text:
[CS2103T-W14-4] Taskify

Taskify will help students manage their tasks (academics/personal/CCA) in a systematic and efficient manner. Optimized for students who are fast-typers and prefer using a  CLI.

Codecov Report

Merging #21 (637160a) into master (c36220c) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master      #21   +/-   ##
=========================================
  Coverage     72.15%   72.15%
  Complexity      399      399
=========================================
  Files            70       70
  Lines          1232     1232
  Branches        125      125
=========================================
  Hits            889      889
  Misses          311      311
  Partials         32       32

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c36220c...637160a. Read the comment docs.

authors: codecov-io hengyongming


text:
disable client-server test by default

This test is flaky: there is some kind of race that causes the test to
hang. Now we are run as part of qemu CI, we need to disable this by
default, until we can find time to fix the test.
Signed-off-by: John Levon john.levon@nutanix.com

cc @berrange

Should we open an issue to track fixing of this test?

yes

repo: nutanix/libvfio-user


text:
Fix MAX_SIZE on 64bit

A followup to #308.

@mitar build err : Error: ./const.go:21:23: undefined: math.MaxUInt32
Error: Process completed with exit code 2.

@xujiajun: Thanks. I fixed it now.

@mitar   Thanks your pr.

authors: mitar xujiajun

repo: nutsdb/nutsdb


text:
Cannot read property 'getElementsByTagName' of null

When module is enabled, it throws error in console:
Cannot read property 'getElementsByTagName' of null
It occurs both on 2.3.2 and 2.4.0 version.  What can we do about it?

I think your code was executed before HTML elements was drawn.
solution is here.
window.onload = function () {
  /* your code here */
}

@loadkrnis yeah, but how it applies to nuxt-gtm situation? I just followed everything from the docs - I put gtm into modules and than, I provided module with my GTM container. Nothing more. I don't even know where would I place your window.onload function

@mkierdev Can i see your code all?

I found a solution - code inside gtm container caused this problem, not the gtm module itself, as I initially thought.
Thank you for quick response :)

authors: loadkrnis mkierdev

repo: nuxt-community/gtm-module


text:
@tailwindcss/jit support

Adam Wathan announced the @tailwindcss/jit module, which is configurable in postcss.config.js. I don't know if it's possible to create a postcss.config.js file to work with this nuxt module but it would be great to have an option to the tailwind property in nuxt.config.js like:
export default {
  tailwindcss: {
    jit: true // default: false
  }
}

Additional context

https://github.com/tailwindlabs/tailwindcss-jit

My bad there was a closed issue for that already...

repo: nuxt-community/tailwindcss-module


text:
chore(deps): Update tailwind to 2.1 to natively support JIT

Hi there!
TailwindCSS team added the JIT mode to the core!
Some issues could probably resolve itself if we stop using the additional jit true/false config and let the process be more fluid #299, #298, #302 .
Since the JIT mode needs "a basic" purge config for now (an array referring files to watch instead of a object containing a content property), I also updated the documentation to make it clear that we need to override the default nuxtjs-tailwind purge config from this:
export default ({ _dev, rootDir, srcDir }) => ({
  purge: {
    content: [
      `${srcDir}/components/**/*.{vue,js}`,
      `${srcDir}/layouts/**/*.vue`,
      `${srcDir}/pages/**/*.vue`,
      `${srcDir}/plugins/**/*.{js,ts}`,
      `${rootDir}/nuxt.config.{js,ts}`
    ],
    // https://tailwindcss.com/docs/optimizing-for-production#purge-css-options
    options: {}
  }

to this:
export default {
  mode: 'jit',
  purge: [
    `~/components/**/*.{vue,js}`,
    `~/layouts/**/*.vue`,
    `~/pages/**/*.vue`,
    `~/plugins/**/*.{js,ts}`,
    `~~/nuxt.config.{js,ts}`
  ]
}

I would like to add some test for this, but I'm not so comfortable with Jest to analyze the javascript compilated file to expect the top-[12px] class to be present in it.

@Atinux
Why this isn't merged yet? I'm not sure if some extra-work should be done from my side, I don't see any review to validate or what so ever but both git and NodeJS/TS are my friend.

Updated and merged, thank you very much ❤

Hi,
Maybe we should removed the dependency "@tailwindcss/jit":"^0.1.18" since it's no longer needed and has not been removed from the package.json.

authors: Atinux RomainMazB Stun3R


text:
Remove utm tracking query on page load

Hello,
I'm not sure if this feature must be here of within the plausible analytics but could be nice to remove utm query in order to avoid users to share links with a wrong query.

That's a nice idea. 👍

authors: Barbapapazes johannschopplich

repo: nuxt-modules/plausible


text:
How to output .css files?

How to avoid styles being injected inline in the <head> ?  I tried extractCss: true  but nothing changes.  Can this be done in Nuxt 2 ?

This is the default behaviour in Nuxt 3. In Nuxt 2, you have https://nuxtjs.org/docs/configuration-glossary/configuration-build/#extractcss - if this isn't working, please feel free to share a reproduction and we'll clear it up. 🙂

authors: ekrausso ineshbose

repo: nuxt-modules/tailwindcss


text:
managing reactive data and handling events

Changes Made:

Added a Vue 3 script setup block with TypeScript language support.

Imported ref from Vue to manage reactive data.

Declared a msg ref variable to store a message string.

Defined a changeMessage function to update the message string.

Implemented a simple template to display the message and a button to trigger the changeMessage function.

Can you explain more why this is needed? This is the base template and is supposed to be overridden by each lesson

Can you explain more why this is needed? This is the base template and is supposed to be overridden by each lesson

I thought the base template should include at least one reactive variable. That's why I wrote it that way, for everyone's understanding