text:
fixed incredibly confusing typos

Somebody probably used different example data for the forwardGet than for the ClassView init.

Damn that was confusing. Thanks!

authors: eulerreich nicholas-leonard

repo: nicholas-leonard/dp


text:
Add dex

https://github.com/dexidp/dex

See #5230

source: gharchive/issue

repo: nicholasdille/docker-setup

license: MIT

license_type: permissive

license_source: github-api


text:
Random Crash #2

Hi,
Hatte nun auch schon mehrere male den Absturz mit diesem Fehler, evtl. kannst du mit dem Output etwas anfangen:
No Face Found...
Total Runtime: 1.354121446609497
Runtime: 1.354191541671753
Timestamp at Done Runtime: 2020_10_21_05-33-24.251932
Overhead: 24.625928
CUMULUS: 0
Working the Queque with len: 37
2020_10_21_05-33-00.013303
Traceback (most recent call last):
  File "cascade.py", line 727, in <module>
    sq_cascade.queque_handler()
  File "cascade.py", line 336, in queque_handler
    self.queque_worker()
  File "cascade.py", line 232, in queque_worker
    cascade_obj = self.feed(target_img=self.main_deque[self.fps_offset][1], img_name=self.main_deque[self.fps_offset][0])[1]
  File "cascade.py", line 383, in feed
    single_cascade = self.base_cascade.do_single_cascade(event_img_object=target_event_obj)
  File "cascade.py", line 413, in do_single_cascade
    dk_bool, cat_bool, bbs_target_img, pred_cc_bb_full, cc_inference_time = self.do_cc_mobile_stage(cc_target_img=cc_target_img)
  File "cascade.py", line 561, in do_cc_mobile_stage
    pred_cc_bb_full, cat_bool, inference_time = self.cc_mobile_stage.do_cc(target_img=cc_target_img)
  File "/home/pi/CatPreyAnalyzer/model_stages.py", line 98, in do_cc
    preprocessed_img = self.resize_img(input_img=target_img)
  File "/home/pi/CatPreyAnalyzer/model_stages.py", line 93, in resize_img
    img = cv2.cvtColor(input_img, cv2.COLOR_BGR2RGB)
cv2.error: OpenCV(4.4.0) /tmp/pip-install-aty2tyyk/opencv-python/opencv/modules/core/src/alloc.cpp:73: error: (-4:Insufficient memory) Failed to allocate 15116544 bytes in function 'OutOfMemoryError'

Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.7/threading.py", line 865, in run
    self._target(*self._args, **self._kwargs)
  File "/home/pi/CatPreyAnalyzer/camera_class.py", line 38, in fill_queue
    image = cv2.imdecode(data, 1)
cv2.error: OpenCV(4.4.0) /tmp/pip-install-aty2tyyk/opencv-python/opencv/modules/core/src/alloc.cpp:73: error: (-4:Insufficient memory) Failed to allocate 15116544 bytes in function 'OutOfMemoryError'

Beste Grüsse
Michi

Danke für den print!
Scheint mir als würde ich mein memory nicht richtig clear'en, ich schaue mal rein 👍

I think the message refers to the memory of the GPU, isn't it?

I'm not quite sure if OpenCV default goes to the GPU. I haven't specifically implemented it to do so.
Either way, I gave it a few tweaks. Lowered the max Queue Threshold, clear the camera and force garbage collection. Use the newest code, it should also stabilise inference time of the networks by running a "Calibration image" in the beginning.
Hope this helps mitigate the error. It's a bit tricky as the error isn'r really reproducible...
Don't forget to save the telegram data somewhere before pulling!

I've just loaded the new code and started the program. I will watch this cautiously and give feedback here if the problem occurs again.
Thank you very much for the quick fix.

No worries! Hope this works, very annoying bug.
Cheers

Unfortunately the same crash again today
NO CAT FOUND!
Working the Queque with len: 27
2020_10_23_07-38-02.321458
Traceback (most recent call last):
  File "cascade.py", line 718, in <module>
    sq_cascade.queque_handler()
  File "cascade.py", line 310, in queque_handler
Quelength: 28   Streamsize: 48
    self.queque_worker()
  File "cascade.py", line 203, in queque_worker
    cascade_obj = self.feed(target_img=self.main_deque[self.fps_offset][1], img_name=self.main_deque[self.fps_offset][0])[1]
  File "cascade.py", line 359, in feed
    single_cascade = self.base_cascade.do_single_cascade(event_img_object=target_event_obj)
  File "cascade.py", line 418, in do_single_cascade
    dk_bool, cat_bool, bbs_target_img, pred_cc_bb_full, cc_inference_time = self.do_cc_mobile_stage(cc_target_img=cc_target_img)
  File "cascade.py", line 566, in do_cc_mobile_stage
    pred_cc_bb_full, cat_bool, inference_time = self.cc_mobile_stage.do_cc(target_img=cc_target_img)
  File "/home/pi/CatPreyAnalyzer/model_stages.py", line 98, in do_cc
    preprocessed_img = self.resize_img(input_img=target_img)
  File "/home/pi/CatPreyAnalyzer/model_stages.py", line 93, in resize_img
    img = cv2.cvtColor(input_img, cv2.COLOR_BGR2RGB)
cv2.error: OpenCV(4.4.0) /tmp/pip-install-aty2tyyk/opencv-python/opencv/modules/core/src/alloc.cpp:73: error: (-4:Insufficient memory) Failed to allocate 15116544 bytes in function 'OutOfMemoryError'

Exception in thread Thread-8:
Traceback (most recent call last):
  File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.7/threading.py", line 865, in run
    self._target(*self._args, **self._kwargs)
  File "/home/pi/CatPreyAnalyzer/camera_class.py", line 39, in fill_queue
    image = cv2.imdecode(data, 1)
cv2.error: OpenCV(4.4.0) /tmp/pip-install-aty2tyyk/opencv-python/opencv/modules/core/src/alloc.cpp:73: error: (-4:Insufficient memory) Failed to allocate 15116544 bytes in function 'OutOfMemoryError'

Testing new stuff on my node. I'll update the code as soon as my node survives 48 hours.

Two nodes have been running continuously for ~48hours without crash. Problem seems to have been the wrong releasing of memory. Because RAM increased steadily with the old code. Now the memory has stabilised at ~900M on the RPI4 4GB model. Hope it runs smoothly now 👍

Should be fixed now

authors: benleb michi1996 niciBume


text:
🛑 Authinator is down

In effdb06, Authinator (https://www.authinator.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Authinator is back up in f0b6a4f.

repo: nickadam/status


text:
Wrong time interval on server

Hello,
I downloaded this repo and everything is working almost fine.
I'm using the Android Client and the PHP-MySQL server.
The problem is, even if I set the interval in the Android app to 1-5-10 minutes, the record in my MySQL DB only appear at 5 minutes intervals.
So I guess it doesn't take account of the set interval in the app.
Do you have any idea why is that happening?
Thank you!

Can you possibly run the android app on your phone while using Android Studio and log how often gps data is sent (using logcat). This is a new one on me...
Logging is enabled on line 151 of this file:
https://github.com/nickfox/GpsTracker/blob/master/phoneClients/android/app/src/main/java/com/websmithing/gpstracker/LocationService.java

I did run the logs, here is my output:
11-10 09:10:38.581 4796-4796/com.websmithing.gpstracker D/GpsTrackerActivity: startAlarmManager
11-10 09:14:05.351 4796-4796/com.websmithing.gpstracker D/LocationService: startTracking
11-10 09:14:05.401 4796-4796/com.websmithing.gpstracker D/LocationService: onConnected
11-10 09:14:09.261 4796-4796/com.websmithing.gpstracker E/LocationService: position: 46.7594925, 23.5924466 accuracy: 27.737
11-10 09:14:09.921 4796-4796/com.websmithing.gpstracker V/AsyncHttpRH: Progress 19 from 19 (100%)
11-10 09:14:09.921 4796-4796/com.websmithing.gpstracker D/LocationService: URL
11-10 09:14:09.921 4796-4796/com.websmithing.gpstracker E/LocationService: sendLocationDataToWebsite - success
As you can see, the AlarmManager was started at 09:10, and the startTracking and subsequent calls only happened at 09:14. Keep in mind that I have 1 minute intervals selected in my app.
I have no idea, the code looks perfect from my standpoint, don't really know what the issue could be.

Ok, so that was the first one. Did you keep the phone and log running to get a better feel of the interval. There could be several reasons for it taking so long. In line 179, try changing accuracy to something bigger like 5000.0 and above that line, log what the accuracy actually is so that you can see it. Also make sure you are running the phone from a place that is close to a window or outdoors and has clear skies above. Having clouds, tall buildings, trees can make getting gps readings a lot worse. Run the phone for about 10 minutes to get more intervals.

Yes, I did run it by the window and even outdoors, the position is correct, as is the distance and the speed, everything is fine. I don't think is an antenna problem, the updates happen exactly 5 minutes apart, even the seconds. I've run the app all day long today, the accuracy is fine, about 85-107, which has an impact only on my distance. I don't get why it doesn't stay on 1 minute intervals if I select them, I've seen that noone from the issues section encountered this before.

I've tested it on my Note2 (Android 4.4.2) with 1 minute interval and it works well.

#47 looks similar.

authors: brentfraser endl3ssx nickfox

repo: nickfox/GpsTracker

license: mit

license_source: bigquery


text: Ignore this: uploading some screenshots

repo: nickfrerichs/fflproject


text:
Error while training

When I tried to run the example code, I got the following error.
Command:
python train.py task=mt80 model_size=48 batch_size=1024

Error Message:
Error executing job with overrides: ['task=mt80', 'model_size=48', 'batch_size=1024']
Traceback (most recent call last):
  File "/home/yutaka/rl_project/tdmpc2/tdmpc2/train.py", line 56, in train
    trainer.train()
  File "/home/yutaka/rl_project/tdmpc2/tdmpc2/trainer/offline_trainer.py", line 47, in train
    assert self.cfg.task in self.cfg.data_dir, \
omegaconf.errors.MissingMandatoryValue: Missing mandatory value: data_dir
    full_key: data_dir
    object_type=dict

Set the environment variable HYDRA_FULL_ERROR=1 for a complete stack trace.

All of the library should be aligned with the file in the docker/environment.yaml.

please open the “config.yaml” and paste the dataset path at data_dir

@VitaLemonTea1 Thank you so much!


text:
Telepot does not wait for Twitter API to return data

Hi!
I have a Telegram bot (using the telepot wrapper) which I programmed in Python. When I send a specific command to the bot by my phone, it goes to the internet using API's and returns data to my phone. Depending on the command I send it, the bot connects to OpenWeatherMap (grabs my local weather info) or connects to Twitter (searches for one particular keyword that I need to keep an eye on).

When I run the Telegram python in Pixel OS (in IDLE), it works OK (I can get data from both bots).
When I run the Telegram python in the Command Line Interface, it also works OK (I can get data from both bots).
But when I autorun the Telegram python on startup (through a systemd service or even cron), the Twitter API does not return anything. The OpenWeatherMap API runs OK. (So it's not a problem with my modem or router.)

I am wondering if the Telegram bot runs too fast in the background and does not wait for the Twitter API to return data.
(I even changed my module from twython to tweepy and it still behaves the same way [It does not return Twitter data when auto-run on startup]. So it's not the wrapper. )

I have been able to lightswitch the issue in Pixel OS IDLE environment. Here is my snippet of code. I can lightswitch the issue by putting a sleep (5)  in the try statement. (The code works in IDLE if the sleep is not there. I even tried going down to sleep (0.0000000000001) and it still does not wait; it returns the exception.) This shows that telepot is really not waiting for twitter API to return data and [maybe] demands an instantaneous reply(?). Is there some way to make telepot wait? Thanks! I am running the code in Python 2.7.9 on a Raspberry Pi 3 running Pixel.
elif command == '/smrt_tweets':
    try:
        sleep (5)
        SMRT_tweets_str = tweepy_search_module.tweepy_get_tweets(10)
    except:
        SMRT_tweets_str = 'Telegram connection issue to Twitter API'

The sleep call seems to be nonsense here. It just delays further function calls.
Could you change the try-except-block to print the Exception?
try:
   ...
except Exception as err:
    print(repr(err))

try:
sleep (5)
print 'looking for tweets!'
SMRT_tweets_str = tweepy_search_module.tweepy_get_tweets(10)
    except telepot.exception.TelegramError:
        SMRT_tweets_str = '%d: %s' % (telepot.exception.TelegramError.error_code, telepot.exception.TelegramError.description)

    except:
        e = sys.exc_info()[0]
        SMRT_tweets_str = '%s' % e

    print len(SMRT_tweets_str)
    print (chat_id)
    print (SMRT_tweets_str)
    bot.sendMessage(chat_id,SMRT_tweets_str)

This code returns:
<type 'exceptions.NameError'>
It doesn't look like a Telepot or Telegram error.
If I remove the sleep, it returns the normal Twitter API data that I expect. Thanks!

Going deeper into NameError, I added this except block...
    except NameError as e:
        SMRT_tweets_str = e.message.split("'")[1]

Then this returns:
<type 'exceptions.UnicodeEncodeError'>

The first except block is not reachable, as there is no telepot call.
Please use the except block I posted above to print the representation of the exception (which includes it's type and message).

Hi! Here is the result of...
    except Exception as err:
        print(repr(err))

When autorun by cron on bootup:
UnicodeEncodeError('ascii', u'Twitter>>\nSun Oct 22 20:02:54 +0800 2017 @AWCavs : At @smrt_singapore \u2014 https://t.co/mfEGCpBysA\n', 70, 71, 'ordinal not in range(128)')
When running in Pixel  IDLE, the Shell window shows:
Sun Oct 22 20:02:54 +0800 2017 @AWCavs : At @smrt_singapore — https://t.co/mfEGCpBysA
In Telegram on my phone, I also see:
Sun Oct 22 20:02:54 +0800 2017 @AWCavs : At @smrt_singapore — https://t.co/mfEGCpBysA
... and the message shows a preview of that URL. Wonder if that object is the "ordinal not in range".

— aka \u2014 seems to be not handled properly by Python2.x without additional conversation.
Anyways - great to hear that the tweets made it to your Telegram chat!

Wait, wait...
The problem was that my Telegram fails when I autorun on startup, using cron or systemd. But the Telegram is OK when running in Pixel IDLE.
But thanks to your replies and feedback, I was able to track the exception as being an encoding problem. Apparently, the encoding used when Python is autorun is different from when it is run in IDLE! Beats me why!
I was able to fix the program by adding this to the beginning of my code:
import sys
reload(sys)
sys.setdefaultencoding('utf8')

Thanks! I suppose this can be closed, but could still be a bug...

repo: nickoala/telepot


text:
Add Yard docblocks

This PR changes documentation slightly:

remove default RDoc args - this broke builds for people on RPM-built thing #44
add some whitespace
break some long lines

It's Rick & Morty time and then sleeping. Look forward to seeing your progress tomorrow!

source: gharchive/pull-request

authors: ioquatix olleolleolle

repo: nicksieger/multipart-post


text:
Invalid name when using Floodgate

Hello I tried to enable bedrock clients to join to my minecraft server, but when they try to join a message pops up and saying that the name is illegal, because of floodgate which changes the name for bedrock clients and adds a . at the start, how can I enable illegal names on my server?

You can try disabling online mode, which disables the name check for players. The downsides include that no skins are loaded

Using the * prefix in Floodgate should resolve this issue.

authors: Reinmmar Spas-Nikolaev-Dimitrov nickuc

repo: nickuc/OpeNLogin


text:
Labels for Columns and Rows different from Data?

I have a big problem where I really stuck.
My data looks like this at the moment:

My issue is, that I would like to show the user meaningful "text" labels instead of just the numbers like here:

but I can not change the data material, because then, aggregate functions can not be computed, right? I mean, when I change all the 1 to "a lot", all the 2 to "a bit", etc. - then I can not average the data to e.g. 2,34 as a average of all the 1, 2, 3 and 4s... because it's text ("a log", "a bit"... have no arithmetic average, no sum etc.)
Who can I "translate" only the colum and row labels to text without changing the data?
Is there a possibility?

In general, one doesn't encounter this problem all that often, because most fields are either used in the rows/columns OR as the input to an aggregator, but rarely both. There is no way to remap things within the library so if you really need to do what you're trying to do, you will likely need to to your input add a second copy of your numerical data columns containing the strings you're looking for. The derivedAttributes parameter might be of use here :)

authors: nicolaskruchten raffaelmeier

repo: nicolaskruchten/pivottable


text:
LinAlg Error during Rotation for zero communalities

perhaps add a small stabilizer to communalities; this should avoid the error reported in #19

this should be solved with the current release

repo: nicrie/xeofs


text:
File not found

I am getting the following error
Error in _assets/stylesheets/light.scss:50 File to import not found or unreadable: ../bower/fluidbox/src/css/_fluidbox.scss.
Load paths:
/Users/bryanalcorn/Downloads/chalk-master/_assets/css
/Users/bryanalcorn/Downloads/chalk-master/_assets/stylesheets
/Users/bryanalcorn/Downloads/chalk-master/_assets/images
/Users/bryanalcorn/Downloads/chalk-master/_assets/img
/Users/bryanalcorn/Downloads/chalk-master/_assets/fonts
/Users/bryanalcorn/Downloads/chalk-master/_assets/javascripts
/Users/bryanalcorn/Downloads/chalk-master/_assets/js
/Users/bryanalcorn/Downloads/chalk-master/_assets/bower
/Users/bryanalcorn/Downloads/chalk-master/_vendor
Liquid Exception: File to import not found or unreadable: ../bower/fluidbox/src/css/_fluidbox.scss. Load paths: /Users/bryanalcorn/Downloads/chalk-master/_assets/css /Users/bryanalcorn/Downloads/chalk-master/_assets/stylesheets /Users/bryanalcorn/Downloads/chalk-master/_assets/images /Users/bryanalcorn/Downloads/chalk-master/_assets/img /Users/bryanalcorn/Downloads/chalk-master/_assets/fonts /Users/bryanalcorn/Downloads/chalk-master/_assets/javascripts /Users/bryanalcorn/Downloads/chalk-master/_assets/js /Users/bryanalcorn/Downloads/chalk-master/_assets/bower /Users/bryanalcorn/Downloads/chalk-master/_vendor in /_layouts/post.html
jekyll 3.3.0 | Error:  File to import not found or unreadable: ../bower/fluidbox/src/css/_fluidbox.scss.

@rollonbears234 Please run bin/setup (it looks like you did not run bower install). It's in the readme :)

Thanks, I ran the setup, but I did not notice that bower was not installed. Will try to fix it now
Great template by the way, can't wait to get a site up and running!

repo: nielsenramon/chalk


text:
Availability on PyPI

When trying to use the installation instructions from the README (pip install swig), the package does not seem to be found. Looking up https://pypi.org/project/swig/ seems to indicate that there is no official package yet.
Is this correct? What is the current status of this project?

Hi @stefan6419846, sorry for the delay (got sick among other things) -- I had hoped that SWIG version 4.1.0 would come out  soon (well nearly a year now), which adds support for building with CMake. That would resolve a number of issues related to building wheels from source for Windows and Apple Silicon Macs.
Since it has been quite a wait for 4.1.0 (and it is unclear it will come out soon), I went ahead and finished building wheels for an assortment of SWIG 3.x and 4.x versions, and uploaded them to PyPI, so pip install swig should work, listing it in a requirements.txt file, or including it in the list of packages for build-system.requires in a pyproject.toml file.
Let me know if you run into any issues, or need additional features added to the Python wrapper for your use case(s).

Thanks for the explanations and providing some binaries. I just stumbled upon this project when looking for suitable ways to make swig available for semi-automated package builds. It appeared to be a possible replacement to avoid requiring root access for the actual build when using a virtual environment.
For now the system package approach works well enough. Nevertheless, this general status update is nice to have, given the fact that meanwhile two more users seem to have indicated interest in the current status as well.
I am going to close this issue, as the initial request has been resolved. If there are further issues arising from the usage (for example if I give it a try myself in the future), this should go to separate GitHub issues anyway.

repo: nightlark/swig-pypi


text:
插件问题：Remote-SSH插件不可见，OpenRemote不可用，看应用介绍有这个功能，请问作者用的是什么

如题

Remote-SSH 是本来就不支持在 Code-Server 中使用的，这与本项目无关

authors: BinBrent mengyanshou


text:
Uikit text boxes

List of fixed issues (if they exist):
Adds drawing functions and font metrics
Support for Unicode fonts

Support for Right to Left languages

Text boxes with optional rounded corners

Text-wrapping

Calendar

Toggle

Bitmaps

Line Terminators

Rotated Text

Calipers

Buttons

Container Buttons

@cdrake , this work is a tour-de-force, and has lots of nice UI elements added. I really like the new calliper measure option too. Are you done making changes? I can review and get this merged in if so.

I have

@cdrake , this work is a tour-de-force, and has lots of nice UI elements added. I really like the new calliper measure option too. Are you done making changes? I can review and get this merged in if so.

Thanks @hanayik !  I need to a few more things.  I should be ready today or tomorrow.

@cdrake , I converted this PR to a draft until you are ready. Just let me know once you have finished making changes.

authors: cdrake hanayik

repo: niivue/niivue


text:
A simple GUI for gnewsclient

A nice GUI with filters on edition, topic, location and language can be created.

The newsfeed should be displayed with image, topic and hyperlink of each story.
Tkinter can be used to make it as it should be simple and minimal.

I can work on this.
@nikhilkumarsingh

@utkarshkvs1 I am working on it.

@aditodkar @nikhilkumarsingh @utkarshkvs1  I tried making a GUI using tkinter, but I had difficulties with displaying a JPG image from its link. Can you help me out?

repo: nikhilkumarsingh/gnewsclient


text:
bug: support for 4 modifier keys / super key

It seems when i try and set my config to something like
ctrl-alt-cmd-shift-left = 'focus left'

It does not work.
It works fine with
ctrl-alt-cmd-left = 'focus left'

I have caps lock remapped to ctrl-alt-cmd-shift with karibaner elements, aka a super key.
It would be really handy to allow this in AeroSpace.
Thanks for your hard work on this project, I am really enjoying it! I think it will replace yabai as my daily driver. 🔥

I've just checked ctrl-alt-cmd-shift-left binding and it works in my environment. Sonoma, AeroSpace 0.9.2
Please check that there is no other software running that may intercept this shortcut (e.g. skhd, karabiner)

My mistake! I still had skhd service running from my yabai setup.
Apologies once again, thanks for getting back to me.

authors: nikitabobko srsholmes

repo: nikitabobko/AeroSpace


text:
Use image to make menu bar monospace

Another attempt at making the menu bar indicator monospace (https://github.com/nikitabobko/AeroSpace/issues/56).
It's quite simple to use an image to solve this problem. The thing I couldn't figure out was how to make the color black when the menu bar accent is lighter. There apparently isn't a way to do that in SwiftUI.
https://github.com/user-attachments/assets/0fba2180-1dd2-486f-adcb-8f6cee63884e
Related to https://github.com/nikitabobko/AeroSpace/pull/685

The thing I couldn't figure out was how to make the color black when the menu bar accent is lighter. There apparently isn't a way to do that in SwiftUI.

It's critical part of the functionality

authors: gartnera nikitabobko


text:
#2 issue-2 add resolve class for interface

PR for #2 and https://github.com/nikolaposa/monolog-factory/issues/3

@nikolaposa, I will send commit for it.

I fixed the comments about flat format

repo: nikolaposa/cascader


text:
PHP 7.0 - Update Query - setValues() - empty string value filtered out

When calling the setValues function, if the array contains a key/value pair with an empty string value, the key/value pair will be filtered out.
Looking at the code, there is an issue with the array_filter call where an empty string value is treated as false.

I just did a test, using the isset() function seems to work.

great @evanirla , but yes PHP does sees empty string as false when its used in a conditional statement, so will be good to avoid passing empty strings

Just hit this issue myself on 1.8.0. While PHP treats an empty string as false, in this context the outcome does not represent the intended behaviour and blocks a number of valid (and common) use cases. null, "", false, and any other falsey values should valid input for a field.

authors: Silic0nS0ldier evanirla marcus-hiles

repo: nilportugues/php-sql-query-builder


text:
Release 2.5.0

What happened 👀
Bugs

#45

Chores

#48
#54
#38

@carryall, should we add #38 in the PR description too? I see some commits related to it, but I'm not sure as the issue was closed with the indication #39 fixed it already 🤔

@carryall, should we add #38 in the PR description too? I see some commits related to it, but I'm not sure as the issue was closed with the indication #39 fixed it already 🤔

Thanks, the description is updated

authors: carryall malparty

repo: nimblehq/eslint-config-nimble


text:
[16] [UI] Emoji rating screen

https://github.com/nimblehq/ic-flutter-avishek/issues/16
What happened 👀

Show the range emoji.
Show the emoji type based on the question's display_type (star, heart) and pick is one

Insight 📝

The zoom-in animation doesn't take place without some delay. Set a 50 millisecond delay before updating the state.
Did some refactoring to move the action buttons — Start Survey, >, and Submit Survey — to the parent screen.

Proof Of Work 📹
Android
https://github.com/nimblehq/ic-flutter-avishek/assets/8093908/d3895f7f-d786-43b8-8fd0-f6ff2d90917f
iOS
https://github.com/nimblehq/ic-flutter-avishek/assets/8093908/4023cec0-6fc9-429a-99a6-6acb36023a75

The CI issue is weird. It's working fine on my machine. I'll revisit this once the previous PR is merged.

@AVI5HEK please check the CI 🙏

@AVI5HEK please check the CI 🙏

@markgravity fixed.

repo: nimblehq/ic-flutter-avishek


text:
execute /tests functions and print the Y results

Hi,
I'm currently developing on VideoCore GPU and your project is really interesting.
Sadly I'm a totally Python beginner.
Could you send me a command-line to execute the  "test_per_elmt_imm()" function in "test_alu.py" and print the result in my raspberry terminal. I'm using a raspian lite OS.
Thanks :)

nosetests -v tests/test_alu.py:test_per_elmt_imm

(If you add print functions to test_per_elmt_imm, do nosetests -v -s tests/test_alu.py:test_per_elmt_imm.)

Thank you a lot ;)

authors: SimonBataille Terminus-IMRC

repo: nineties/py-videocore


text:
Using from ObjC ?

Hi there,
I'm using your controller in a swift project, and it's so awesome that I want to use it in another one, an ObjC one. From what I understand I only need to import the framework and I'll be set to go. (doc)
But for some reason I can't set the type of the view. Ok, fine, I'll use the default one. But when trying to go ahead, I find out I can't even init the view. I tried both [[NVActivityIndicatorView alloc] initWithFrame:CGRectMake(0, 0, 20, 20)]; and [[NVActivityIndicatorView alloc] init]; to no avail.
Is there something else I should be doing? Thanks in advance!

@AndresCianio: Because of using some Swift features, e.g. Enum with methods, default value for parameter, etc, I'm afraid using the control in ObjC has limits and it only support minimal functionalities. Please correct if I'm wrong. However, if you can think of ways to give more support to ObjC, PR is welcome.

I really don't know how the whole Swift -> ObjC conversion works. Thought there might be some kind of issue with the configuration or something like that.
In any case, I'll try to dig deeper and let you know with a PR if I find something useful.
Cheers!

So not possible to use in objective-c ? I believe it's possible if implemented.

@rene-dohan: It's still possible to use in ObjC, with limit though. PR is welcome if you would like to make it fully support ObjC.

authors: AndresCianio ninjaprox rene-dohan

repo: ninjaprox/NVActivityIndicatorView


text:
[RESOLVED] Interface eth0(): High error rate (>2 for 5m)

Problem started at 11:30:29 on 2023.06.10
Problem name: Interface eth0(): High error rate (>2 for 5m)
Host: S100-Primario
Severity: Warning
Operational data: errors in: 0, errors out: 0
Original problem ID: 28497
Event details in Zabbix: http://192.168.232.99/tr_events.php?triggerid=23483&eventid=28497

Problem has been resolved in 3m 0s at 11:33:29 on 2023.06.10
Problem name: Interface eth0(): High error rate (>2 for 5m)
Host: S100-Primario
Severity: Warning
Original problem ID: 28497


text:
[RESOLVED] Interface eth0(): High error rate (>2 for 5m)

Problem started at 09:03:29 on 2023.05.02
Problem name: Interface eth0(): High error rate (>2 for 5m)
Host: S100-Primario
Severity: Warning
Operational data: errors in: 1, errors out: 0
Original problem ID: 20203
Event details in Zabbix: http://192.168.232.99/tr_events.php?triggerid=23483&eventid=20203

Problem has been resolved in 3m 0s at 09:06:29 on 2023.05.02
Problem name: Interface eth0(): High error rate (>2 for 5m)
Host: S100-Primario
Severity: Warning
Original problem ID: 20203


text:
i can't get the component to mount

i use jspm.
i read the issues people have with riotts and jspm so i added riotts as a git submodule.
i built a tiny component and i followed the execution in the debugger:

the registration seems perfectly fine, to the best of my discernment
the mounting, however, doesn't find the component (although it finds another component that was defined normally, using a .tag file)
How could that be...?

so the problem is that you can't mount an element that was previously registered?
Please keep in mind that in a module-based scenario, the .ts file of an element must be imported before any mount occurs. E.g.
import "./my-tag"; // this registers the component

riot.mount("*");

That's what i did.  As i said, i followed the execution into your code. It even seems like it executed the following line  element.prototype.tagName = registerTag(compiled); correctly.
i followed also the execution of the mount, and there i saw that it simply doesn't recognize the tag...
So i'm in lost..

it's difficult to say. The only thing that comes into my mind is having two riot instances, you are registering in one but mounting with the other (just guessing).
If you can/want, setup a repo that I can clone and check.

It sounds very reasonable...i still don't see where riot was instantiated twice, though.
It is a private repository, but i can send you a tar/zip. it's very small, because it's in a boilerplate status. where can i send it to?

@dharmax sent it to nino.porcino@gmail.com

i sent it to you yesterday

yup I'm looking at it, but nothing so far.
Can you please confirm the correct way to build/run the project is:
node server/web-server
?
2016-11-24 12:16 GMT+01:00 avi notifications@github.com:

i sent it to you yesterday
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/nippur72/RiotTS/issues/41#issuecomment-262752496, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ACemK_ue2hdziLIqQz_Bsqy4DlCU-W23ks5rBXH4gaJpZM4K5H7q
.

hi, yes, this is indeed the program to execute, sorry (after you do yarn
install, typings install, compile with tsc and lessc)
On Thu, Nov 24, 2016 at 1:19 PM nino-porcino notifications@github.com
wrote:

yup I'm looking at it, but nothing so far.
Can you please confirm the correct way to build/run the project is:
node server/web-server
?
2016-11-24 12:16 GMT+01:00 avi notifications@github.com:

i sent it to you yesterday
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/nippur72/RiotTS/issues/41#issuecomment-262752496,
or mute
the thread
<
https://github.com/notifications/unsubscribe-auth/ACemK_ue2hdziLIqQz_Bsqy4DlCU-W23ks5rBXH4gaJpZM4K5H7q
.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/nippur72/RiotTS/issues/41#issuecomment-262753051, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AC-ezkGBcEsB3BVPPOH3XKqoOkBuf6F_ks5rBXKsgaJpZM4K5H7q
.

Any new findings?

Same issue here... I use steal.js as module loader and even if I try to do everything in one file riot doesn't mount. I've looked if it isn't related to template or some issue with requests but everything downloads correctly only (I even tried calling riot.compile() with callback containing riot.mount()) riot.mount() returns empty array and nothing mounts.
Main.ts:
`import riot = require('node_modules/riot/riot+compiler');
import './IDE';
riot.compile(() => {
let tags = riot.mount('*');
tags;
});`
IDE.ts:
`import * as Riot from 'riot-typescript';
import 'codemirror/lib/codemirror.css';
import * as CodeMirror from 'codemirror';
import * as EmmetCodemirror from 'emmet-codemirror';
@Riot.template('/_template/Administration/Templates/ACMS_IDE')
class IDE extends Riot.Element {
attention: string = "yay";

}`
ACMS_IDE (twig template rendered from php server with symfony):
{% raw %} <ide>
Testing, {{ attention }} please!
 </ide> {% endraw %}
any suggestions? :)


text:
T1w-SyN: Is contrast inversion really necessary? (at least for mutual-information scales)

I think I've heard @mattcieslak asking about this, please let me know if I'm wrong (whether you made the comment and/or the content of the comment).
The question is that, most of the linear and nonlinear registration steps of our SyN implementation use Mattes. With this cost function, the contrast inversion just does nothing - while it is one more massaging step where we can harm the reliability of the overall process.
Maybe we could limit the contrast inversion only for the final CC antsRegistration step.
For the case of BOLD, it would be doubtful we need to invert the contrast at all in some cases. Because we are picking the frames with the strongest T1 contrast across all runs in the session with share shimming settings, the inversion is probably not needed anymore (even for the CC metric).
Thoughts?
(I'm giving this very low priority, but nonetheless noting it down for future reference)

Related: #68.

That sounds correct, but worth verifying with some before/after shots of the specific steps.

authors: effigies oesteban

repo: nipreps/sdcflows


text:
More forgiving FreeSurfer check

Currently, we use Nipype's full recon-all interface to detect whether FreeSurfer has been fully run, and also to finish the run if it has not.
This has complications when using FreeSurfer subjects reconstructed with different versions, as well as FastSurfer. Instead, it may make sense to directly detect the outputs we need, and only construct the recon-all workflow if they are not all available.
Ref. https://github.com/Deep-MI/FastSurfer/issues/21

Also double check what outputs you really need. For example the T1.mgz should not be needed for anything as it is an intermediate file. If you only need the header for mapping across FS conform space and the original input, then use e.g. orig.mgz instead.

authors: effigies m-reuter

repo: nipreps/smriprep


text:
Writer functions

I would like to create a branch with the _writer.py script. At the moment my solution only supports the nifti format.
The functions works by creating a nibabel.Nifti1Image from the selected layer (image or labels) data and metadata. Do have an idea for a more elegant way to support the different formats in nibabel other than writing a specific writer for each?

nibabel.save() will do its best to convert to a format based on the extension. The affine will be converted, but most other header data will be lost, if the output format doesn't match the input format. When there are good mappings for specific fields between two formats, then we can improve the conversion.

To use nibabel.save() wouldn't we need to store the SpatialImage in the napari.viewer.layer.metadata? At the moment only the header and affine matrix are stored in the metadata and the image is represented in the layer as array. I think we could do this as the header and affine matrix could still be accessed from the SpatialImage in the metadata.

I assume header isn't a napari notion... why not store the image object itself as the header?

Yes your right. We should switch from storing the affine matrix and the image header in naparis metadata to storing the image object. With the image object we can then use nibabel.save(). I will update my writer function and add it as a branch.

I uploaded a basic writer implementation for the image layers to the writer_implementation branch.
Is there a way to select the image classes from a given extension.

The logic is basically all in nibabel.save(), which uses a priority list of image classes in imageclasses. Each image type describes valid extensions.

But nibabel.save() requires a image object. If the user wants to save a layer that was not loaded from a file format that nibabel supports the napari load functions will be used and no image object will be in the layer metadata. Thus, I would like to create a bare bone image object from the given save extension to feed it into nibabel.save().

I meant you could adapt the logic to something you need, such as:
valid_klasses = [klass for klass in all_image_classes
                 if ext in klass.valid_exts]
img = klass[0](data, affine)
img.to_filename(...)

But you can even just save time by creating a SpatialImage object:
In [1]: import nibabel as nb

In [2]: import numpy as np

In [3]: img = nb.spatialimages.SpatialImage(np.zeros((5,5,5)), np.eye(4))

In [4]: nb.save(img, "test.nii")

In [5]: nb.load("test.nii")
Out[5]: <nibabel.nifti1.Nifti1Image at 0x7fcd1cd74c10>

Though if you need to set additional header information, you will probably want to do something like the first option and modify img.header before writing it out.

Thanks for the input.
I will use the second approach for the case of saving a layer with no additional information in its metadata.
To give the user the ability to modify the header a separate widget might be a better solution. I would like to add a widget to display the header information anyway.
This widget could have a button and file format selection to add an image object to the layer.

authors: ch-n effigies

repo: nipy/napari-nibabel


text:
Barcode recognition libs are not downloaded and are not operational

E/BarcodeNativeHandle: Error creating remote native handle
com.google.android.gms.dynamite.DynamiteModule$zzc: No acceptable module found. Local version is 0 and remote version is 0.
...
E/QREader: Barcode recognition libs are not downloaded and are not operational
A week ago it worked correctly, but now it throws me that error.
I have updated Play services and even then it is not possible to open the scanner
Library works fine in Huawei P20 and Moto G6 Play

Device Information:  Moto E5 Play

Android Version:  8.1.0

Please let know any solution for this. Unable to get camera preview using ML-Kit.
Error Loading module
com.google.android.gms.dynamite.DynamiteModule$LoadingException: No acceptable module found. Local version is 0 and remote version is 0.
W/BarcodeNativeHandle: Native handle not yet available. Reverting to no-op handle.
Library works fine in all other device except the following one
Device Information: Studio Mega Phone
Android Version: 8.1.0

The problem is that : this library needs more than 500 m free.

I have the same issue. Any idea how to fix this?

@trix0 this library is outdated. It still uses old google play libs which are not useful anymore. I am going to put this info on the readme since many people seem to get confused.

@trix0 this library is outdated. It still uses old google play libs which are not useful anymore. I am going to put this info on the readme since many people seem to get confused.

I see, Do you know any library you could recommend?
Thanks :)

I would suggest you use the one from Firebase directly.
When I created this library, the setup was tedious, but I think the new Firebase library is now a good setup to use.

Closing as issue is outdated.

authors: RobertoLayna ShiftDigitalSolutions nisrulz perusudroid trix0

repo: nisrulz/qreader


text:
Excel random FillForegroundXSSFColor evertime it's called

Hi,
During development I need to analyze Excel file and find proper types of information. Excel is really huge, but well formatted. To achieve my goals I have to check if data label is in proper "section". Sections are divided by different styles.
When using NPOI I have a small methods that checks if fill is not white, which means, that I can stop processing rows:
private bool IsOtherRow(ICell cell)
{
    if (cell?.CellStyle.FillPattern != FillPattern.SolidForeground) return false;

    XSSFCellStyle style = cell?.CellStyle as XSSFCellStyle;
    XSSFColor fillColor = style.FillForegroundXSSFColor;

    return fillColor?.ARGBHex != "FFFFFFFF";
}

Pretty easy and straightforward. But everytime I check for ARGBHex or RGB fields, values are different.

Where actural color is #D9D9D9

(Cell E33)

What is happening behind the scenes? :)
How can I make sure, that color taken from code is exactly the same as in Excel GUI?
This is really a blocker, so any help would be appreciated.
Thanks

Are you talking about the cellstyle are always different while getting the same cell E33? This doesn't make much sense to me. Is it possible you are iterating different cell styles? then the fillforeground are different?

authors: cysieks tonyqus

repo: nissl-lab/npoi


text:
[WIP] Issue DeprecationWarning regarding end of Python2 support

Issue #261

Thx, this is very important indeed.

authors: bthirion kchawla-pi

repo: nistats/nistats


text:
[WIP] Speed up python env setup in CircleCI & Appveyor

Small optimizations to speed up CircleCI:

Default conda is 3.7, abandon 3.6 so new python doesn't have to be downloaded and installed.
Using conda-forge to install non-default channel packages upgrades all conda installed packages. Switch to using pip for these instead.

Small optimizations to speed up Appveyor:

Use pip for installation of packages instead of conda-forge channel.
Remove the wheel build step.

Same questions as for #326

No, the experiments did not you'll any benefit. I'll probably closer this
soon
On Tue, Apr 16, 2019, 15:48 bthirion notifications@github.com wrote:

Same questions as for #326 https://github.com/nistats/nistats/pull/326
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/nistats/nistats/pull/327#issuecomment-483666953, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AH0rxJRACrWp2vGgXGBmWj8yGu9AFYdcks5vhdTGgaJpZM4cYV-g
.


text:
weired issue

from eld import LanguageDetector
text="4444"
detector = LanguageDetector()
lang=detector.detect(text).language
print(lang)
text=4444
detector = LanguageDetector()
lang=detector.detect(text).language
print(lang)

Well detect() expects a string, as explained in the documentation, any digit alone should not return any language anyways.
The integer is obviously failing: 'int' object is not subscriptable
All can I do is add:
if not isinstance(text, str):
    raise TypeError("Input 'text' must be a string.")

But I also think, does sending an integer to a language detector have to be handled? Also, all this fix will do is give another fatal error, is it necessary another error cause when the current error is 'int' object is not subscriptable
What do you think?

I added the fix, since there weren't any cons to it. If there is nothing more I will close the issue.

thanks though, earlier I catch the input type to avoid this

authors: nitotm wanghaisheng

repo: nitotm/efficient-language-detector-py


text:
希望增加的功能

直接点作者名搜索经常跳出些沾边的名字的作者，官方app点的出来的都是那个作者的，但是直接搜索名字的结果两个app又一样，有方法解决吗

应该可以改进成只看到作者的内容

还发现个事搜索栏加个a就只有作者的，a加哪都行，其他的试了不行只有a可以，不知道是不是能用操作符

repo: niuhuan/pikapika


text:
fix some typos

found some typos and ran typos

@mergify queue

authors: Lassulus Stunkymonkey

repo: nix-community/nixos-images


text:
plugins/treesitter-textobjects: init

Add support for treesitter-textobjects.
Fixes #722.

Disk full...
error: executing SQLite statement 'insert or replace into NARs(cache, hashPart, timestamp, present) values (2, 'bx1bx1fmp49j356lgcqy3zk66wddvarn', 1700736613, 0)': database or disk is full, database or disk is full (in '/root/.cache/nix/binary-cache-v6.sqlite')

authors: GaetanLepage traxys

repo: nix-community/nixvim


text:
Documentation: comparision with using EDK2

This project looks great, but I'm quite curious to understand: the wiki mentions that it is better to use EDK2 + the rpi5 kernel that is now in nixpkgs: https://github.com/NixOS/nixos-hardware/pull/927
How does both approaches compare, e.g. in term of caching/hardware support? A note in the readme would be great to clarify this.

I don't know anything about EDK2, so that is something for me to look into. A short partial answer is that this repo uses the bootloader process that raspberry pi OS itself uses, and the rpi 5 kernel should be the same (raspberry pi's linux fork), although pointing to different pins I'm sure.

authors: tobiasBora tstat

repo: nix-community/raspberry-pi-nix


text:
Unable to use recvfrom() on TCP socket

Hello,
I try to use the socket::recvfrom() function on a TCP socket and I get an error ENOTCONN.
I agree I could use the socket::recv() function but the docs says using recvfrom is allowed
https://linux.die.net/man/2/recvfrom

The recvfrom() [...] may be used to receive data on a socket whether or not it is connection-oriented.

I believe the issue comes from the function sockaddr_storage_to_addr() :
https://github.com/nix-rust/nix/blob/master/src/sys/socket/mod.rs#L1243
    if len < mem::size_of_val(&addr.ss_family) {
        return Err(Error::Sys(Errno::ENOTCONN));
    }

Here is an example of the problem. If you connect to this server with a tcp client (telnet for ex). You will get errors: Read err ENOTCONN: Transport endpoint is not connected
use nix::sys::socket;
use nix::sys::socket::{AddressFamily, SockType, SockFlag, InetAddr, SockAddr, IpAddr};

fn main() {
    let localhost = InetAddr::new(IpAddr::new_v4(127, 0, 0, 1), 6678);

    let tcp_listener = socket::socket(AddressFamily::Inet, SockType::Stream, SockFlag::empty(), None).unwrap();
    socket::bind(tcp_listener, &SockAddr::new_inet(localhost)).unwrap();
    socket::listen(tcp_listener, 1).unwrap();

    loop {
        let client_socket = socket::accept(tcp_listener).unwrap();

        loop {
            let mut buf: [u8; 256] = [0; 256];

            match socket::recvfrom(client_socket, &mut buf[..]) {
                Ok((len, from)) => {
                    buf[len] = 0;
                    let message = String::from_utf8_lossy(&buf);
                    println!("Message from {} of len {}: {}", from, len, message);
                },
                Err(e) => {
                    println!("Read err {}", e);
                }
            }
        }
    }
}

On the other hand, with this C code, it works as expected
#include <stdio.h>
#include <arpa/inet.h>
#include <string.h>

#define READ_SIZE 200

int main() {
    struct sockaddr_in localhost;
    memset(&localhost, 0, sizeof(struct sockaddr_in));
    localhost.sin_family = AF_INET;
    localhost.sin_port = htons(6677);
    inet_pton(AF_INET, "127.0.0.1", &(localhost.sin_addr));

    int tcp_listener = socket(AF_INET, SOCK_STREAM, 0);

    bind(tcp_listener, (struct sockaddr *) &localhost, sizeof(struct sockaddr_in));
    listen(tcp_listener, 1);

    char read_buffer[READ_SIZE + 1];
    while (1) {

        int client_socket = accept(tcp_listener, NULL, NULL);

        while(1) {
            char read_buffer[READ_SIZE + 1];
            int bytes_read = recvfrom(client_socket, read_buffer, READ_SIZE, 0, NULL, NULL);
            read_buffer[bytes_read] = '\0';
            printf("Message of len %d: %s\n", bytes_read, read_buffer);
        }
    }

    return 0;
}

Thanks,
Thibaut

You're correct, and it's somewhat shocking that nobody has noticed that bug for more than four years.  Maybe most people don't use recvfrom that way because the standard library works well enough?  In any case, I'll fix it.

Amazing, thank you !

Could you please check PR #1145 and tell me if that change works for you?

Hi,
It works like a charm with you fix 👍
The returned Option<SockAddr> behave as expected, with Some(SockAddr) in case of UDP socket and None in case of TCP socket.
Thanks,

authors: asomers thib-ack

repo: nix-rust/nix


text:
Builds against xml 1.3.3 from mac homebrew

samael with xmlsec couldn't build on my mac, forked and renamed a binding

Can you let me know if latest main builds fine for you now?

we had the same issue, using main works for us

I've released 0.0.15 with this

authors: HugoCasa njaremko xrl

repo: njaremko/samael


text:
Add functionality for code copy button

Similar to available in Github Markdown.

How it is done with other hugo themes:
https://github.com/dillonzq/LoveIt/blob/f787a4e5ad4edf60467658d10c286248dc5027a6/src/js/theme.js#L325-L377

repo: njkevlani/hst


text:
Allow to pass a withImported parameter

To retreive data from Plausible that was imported we need to pass a with_imported parameter in the url.
This PR let's you pass this parameter for the aggregate function.

Thank you for your contribution.

authors: dudelisius njoguamos

repo: njoguamos/laravel-plausible


text:
Add arciniega.one

Report: https://yellowlab.tools/result/gh1czu27kb

Welcome to the club!

authors: nkoehring solelychloe


text:
Implemented predicateMap

Refs #31
Implementation Note:
I basically copied the logic of objectMap to implement predicateMap.

Hi,
The change is not obvious because the whole file appears to have been changed. Could you please commit in a way that clearly shows changes in the files Parser.java and PredicateObjectMap.java?
Thank you for your contributions.
Best,
Nikolaos

The change is not obvious because the whole file appears to have been changed. Could you please commit in a way that clearly shows changes in the files Parser.java and PredicateObjectMap.java?

Yes you are absolutely right.
The issue was that there seem to be two different types of line separators in the project. Parser.java and PredicateObjectMap.java use CRLF while the rest of the files seem to use LF. I fiddled around a bit and setting git config core.autocrlf false finally did the trick.

authors: mmopitz nkons


text:
Expand CI test matrix from Node 18 to 18/20/22

The CI currently only check Node 18:
https://github.com/nksaraf/vinxi/blob/b0ccb64d3c37488050eb9411be4290ea466c3eba/.github/workflows/test.yml#L30
The active and current LTS version of Node is Node 20/22.
I'm sure a lot of people, myself included, use these versions.

I fully agree.
Would even argue it would make sense for a project like Vinxi to drop official 18 support.
While Vite states 18 and 20+ are supported, the v18 support is getting less in the eco system.
Nitro officially only states latest LTS, so I guess that while 22 is the latest LTS, 20 will be supported for a longer period as well.

@codebryo , I was thinking maybe dropping node 18 in 5 months, when it's security support expires. Does that sounds reasonable to you?
https://endoflife.date/nodejs

authors: birkskyum codebryo

repo: nksaraf/vinxi


text:
Decide on release policy for version numbering

Decide on release policy for version numbering and add this to "how to release".
Suggestion:

Update major version number for breaking changes, e.g. dropping support for a CUDA version on GPU architecture, changes to the API
Update minor version number for small changes that do not directly impact the users
What to do when we add functionality?

I find semantic versioning a useful paradigm, in particular this part:

Many more details on https://semver.org/ :)

Agreed!

@svlugt We will add this to developer documentation. Can this issue be closed?

Yes

authors: fdiblen jspaaks svlugt

repo: nlesc-recruit/CUDA-wrappers


text:
How to create JSON Object from my Structures of Data and Json File from that Object

I have structures as follows,
  struct Lel1
{
  string Title;
  struct Lel2 ns;
};
  struct Lel2
{
  string name;
};

I need to export tho one into json file.
can anyone help?
__
C.G

Please check https://github.com/nlohmann/json#arbitrary-types-conversions - there, it is described how to translate arbitrary types to and from JSON.

authors: GaneshJeevaa nlohmann

repo: nlohmann/json


text:
'operator =' is ambiguous on VS2017

What is the issue you have?
I have a minimalistic code snippet which builds on VS2015, but not on VS2017
Please describe the steps to reproduce the issue.

try building the snippet below in VS2017

Can you provide a small but working code example?
`
#include <nlohmann/json.hpp>  // version 3.10.2
void prob()
{
nlohmann::json foo;
int i = foo["ww"];   // ok
std::vector vi;
vi = foo["re"];      // C2593 'operator =' is ambiguous on VS2017; no probs on VS2015
}
`
What is the expected behavior?
should build
And what is the actual behavior instead?
compiler error as in title
Which compiler and operating system are you using?

Compiler: Visual Studio 15.9.38
Operating system: Win10

Which version of the library did you use?

[ X ] latest release version 3.10.2
[ ] other release - please state the version: ___
[ ] the develop branch

If you experience a compilation error: can you compile and run the unit tests?

[ X ] yes
[ ] no - please copy/paste the error message below

std::vector is a templated type, so that won't compile as-is.  What is the actual type of vi?

ha! somehow the editor cut the <>. vi is a std::vector

Assuming std::vector<int> then this code will also fail to compile on Clang and GCC, so I assume this is actually a VS2015 issue where it was accepting code that was ambiguous due to some of its loose typing rules.
This version works fine on Clang and GCC
std::vector vi = foo["re"];

As does this one:
std::vector<int> vi;
vi = foo["re"].get<std::vector<int>>();

I confirm your solution works on VS2017! thanks! I see then, it is actually an issue with VS2015 which actually allowed me to type less code... but an issue nevertheless. Thanks again.


text:
Support startIndex for from_cbor/from_msgpack

The idea is to not create another copy of std::vector since my cbor data start at certain offset.
    static basic_json from_cbor(const std::vector<uint8_t>& v, const size_t startIndex = 0)
    {
        size_t i = startIndex;
        return from_cbor_internal(v, i);
    }

Done.

Thanks!

With 22b59693f110b730d41c8f616f82b1fef72c161a, the offset/startIndex parameter  was removed as this behavior can be mimicked with an iterator range. For instance, instead of calling
json j = json::from_cbor(vec, 5);

you can write
json j = json::from_cbor({vec.begin()+5, vec.end()});

Are the braces {} intentional?

Yes, I did not find a better way to implicitly create an input adapter from two parameters. And since there is a parameter with a default value following, I cannot use variadic parameters.
(Though I would love to find a solution!)

I didn't go into the details, but what about adding a new overload of  from_{cbor,msgpack} that take an iterator range, just like parse?
You could then construct the input_adapter as you did in your example code.

That would be one solution, but then I also have an input adapter to parse from a uint8_t* and a length, and then I would need another family of overloads...

(Of course, the example above could be written as
json j = json::from_cbor(json::input_adapter(vec.begin()+5, vec.end()));

Actually, this is also supported by parse:
auto j = json::parse(vec.begin(), vec.end());
auto j2 = json::parse(vec.data(), vec.data() + vec.size());

Both cases are covered with the same overload. Plus, that would be symmetrical with other parts of the API (e.g. parse as mentioned).
If those kind of methods could share the same API, that would become really intuitive to use IMO.

I know that this is desirable, but I don't really like copy/pasting so many functions...

On the other hand, there are at most two parameters, so I can add two functions for each parser and forward the arguments to the input_adapter constructors.

@theodelrieu Since you are the SFINAE wizard - what do you think of
template<typename A1, typename A2,
         detail::enable_if_t<std::is_constructible<detail::input_adapter, A1, A2>::value, int> = 0>
static basic_json from_cbor(A1&& a1, A2&& a2, const bool strict = true)
{
    return binary_reader(detail::input_adapter(std::forward<A1>(a1), std::forward<A2>(a2))).parse_cbor(strict);
}

Ahah I'm not sure I deserve that title :)
Well that will work, but I think it's quite brittle for some reasons:

Too complex for what it does.

You have no idea what kind of arguments the function takes. (Not to mention that input_adapter  is not exposed, due to the detail namespace)

Might break if there is a new ctor to input_adapter (or one less)

I understand that you don't want to copy code, in order to get the same interface than parse, but that's really what we want IMO:
All those functions (parse/from_cbor/msgpack) only take byte containers or equivalent.
Last but not least, I'd rather write boilerplate in the library code than in the client code, all day everyday! Even more when it's just a few lines ;)

I wish I had some arguments that do not translate into "I am too lazy to do the copying...". :-/

I can take care of it :p
Anyway I'd rather not have to rebase my PR (#700) twice a day, so if you want to wait a bit before committing that's fine for me!

I won't touch this one right now. I'm about to finish #593 and then I let the library go.

About https://github.com/nlohmann/json/issues/462#issuecomment-322864786:
I just realized we do more or less the same here: https://github.com/nlohmann/json/blob/develop/src/json.hpp#L8368

authors: nlohmann prsyahmi theodelrieu


text:
Fixes doctest for python3

Dictionary hash are dynamic in Python3 so the repr output will be different all the time. Doctest should check for value equality instead. Monotonic nested defaultdict/dictionary outputs should not be affected though.
Fixes issue on https://nltk.ci.cloudbees.com/job/nltk/TOXENV=py34-jenkins,jdk=jdk8latestOnlineInstall/lastCompletedBuild/testReport/nltk.util/Trie/as_dict/ and https://nltk.ci.cloudbees.com/job/nltk/TOXENV=py33-jenkins,jdk=jdk8latestOnlineInstall/lastCompletedBuild/testReport/
(Same issue as https://github.com/nltk/nltk/commit/a488bb6c900c89ea4d2ca154627fa92093626332)
@stevenbird Sorry I presented the wrong radio button in the previous commit when fixing https://github.com/nltk/nltk/commit/a488bb6c900c89ea4d2ca154627fa92093626332

Great, thanks @alvations

authors: alvations stevenbird

repo: nltk/nltk


text:
Pickless-less tagsets helper

Instead of loading of tagsets pickle, this PR loads the tagsets_json dataset.
Related: https://github.com/nltk/nltk/issues/3266
Testing
% python3 -m unittest nltk/test/unit/test_pos_tag.py -vvv
test_pos_tag_eng (nltk.test.unit.test_pos_tag.TestPosTag) ... ok
test_pos_tag_eng_universal (nltk.test.unit.test_pos_tag.TestPosTag) ... ok
test_pos_tag_rus (nltk.test.unit.test_pos_tag.TestPosTag) ... ok
test_pos_tag_rus_universal (nltk.test.unit.test_pos_tag.TestPosTag) ... ok
test_pos_tag_unknown_lang (nltk.test.unit.test_pos_tag.TestPosTag) ... ok
test_tagsets_brown (nltk.test.unit.test_pos_tag.TestPosTag) ... ok
test_tagsets_claw5 (nltk.test.unit.test_pos_tag.TestPosTag) ... ok
test_tagsets_upenn (nltk.test.unit.test_pos_tag.TestPosTag) ... ok
test_unspecified_lang (nltk.test.unit.test_pos_tag.TestPosTag) ... ok

----------------------------------------------------------------------
Ran 9 tests in 0.421s

OK

@alvations, after running black, you probably forgot to re-run git add and git commit on the file that black modified. This is likely also the reason of your CI problem in the other PR as well.

black....................................................................Failed

hook id: black
files were modified by this hook

reformatted nltk/test/unit/test_pos_tag.py

[CI: retest]

[CI: retest]

Thanks @ekaf for checking the PR and catching the black/isort missing.

authors: alvations ekaf


text:
Optionally allow subdirectories of XSendFilePath

In earlier versions of mod_xsendfile it was possible to serve files from subdirectories of a permitted directory. Unfortunately this option is gone now again.
I build a simple file storage system where the files are stored in a partitioned directory structure like this (to not have too many files inside one directory):
/path/to/files/0/1.jpg
/path/to/files/0/2.jpg
...
/path/to/files/1/100.jpg
/path/to/files/1/101.jpg
...

With the current version it's not sufficient to set XSendFilePath to /path/to/files. I have to configure every single subdirectory. This is very cumbersome. Couldn't we have an option to include all subdirectories?

Sir , Help me please
now , I've Apache's httpd.conf content is follow:
<Files *>
XsendFile on
XsendFilePath /tmp

and django python view is:
def test_download(request):
response = HttpResponse()
response['Content-Type'] =''
response['Content-Disposition'] = 'attachment; filename=passwdaaaa'
response['X-Sendfile'] ='/tmp/passwd'
return response
I mean  when is  IE access http://ip/test_download  time  ,Django Server return static file ,but can do permission authenticated ,
bug, I used the above configuration ,download file is zero bytes .
So Help!  please contact E-mail  qichuan.zhang@qq.com

authors: mikehaertl zhangqichuan


text:
Major cleanup

DO NOT MERGE

Closing in favor of #33

repo: nmattia/naersk


text:
kafka_2.11-0.9.0.0 支持

Hi，我们这边的kafka_版本信息如下

kafka_2.11-0.9.0.0
zookeeper-3.4.6
PHP 5.5.25 (cli) (built: May 20 2015 07:30:18)

请问此扩展现在支持么
谢谢

@luxixing  当前版本对于生产者API是支持 v0.9.x 的，消费者API正在开发

authors: luxixing nmred

repo: nmred/kafka-php


text:
Remove nmstate from pypi or maintain it well

The pypi nmstate is outdated, we should remove it or at least maintain it(better setup CI release autotask)

I would like to work on it Kindly assign it to me @cathay4t

Hi @cathay4t , I am Maha, could you please consider assigning me to this issue? I'm keen to contribute and would be happy to take on the task.

hello @cathay4t  i submitted a PR, can you have a look at it please and also consider assigning me this issue

what would be the best appraoch here.
either provide user with explicit installation steps of the nmstae c lib or install the nmstate c lib(seemingly requires more work, but I am willing to take it on if guided)
@cathay4t @ffmancera

repo: nmstate/nmstate


text:
Rewrite the README.release.md to a template for a task list

Rewrite README.release.md to a task list
Ideally, this would be a template for new issues.

Good idea! Thanks!

I would like to contribute to this issue,
I'm a little confused on how exactly to rewrite the issue.
A little help would be great!

I would like to contribute to this issue,
I'm a little confused on how exactly to rewrite the issue.
A little help would be great!

Sure, that would be awesome.
Currently, README.release.md contains the instructions to do a release. The idea is to transform that markdown file into a template in order to use it in new release issues.
The new template should be a task list, so we could mark the different steps as done when releasing.
If you have any other question, please let me know. Please, @tyll could you assign this to @pavitra14? Thanks!

Pushed changes to #912 PR

authors: ffmancera pavitra14 tyll


text:
Update README.md

Minor error in the docs sample

Thanks for the heads-up, @gsheni ! :)

authors: gsheni wojtekmaj

repo: nnarhinen/react-pdf


text:
Download Chart / Print

Are there any plans to add the functionality to download/print a specific chart? maybe with different resolutions?
I have seen a few people trying to print screen the charts, and I have also made my own implementation but as an extension.

See #1350

authors: drakoumel etimberg


text:
Tags for all charts

Is there anyway to put a tag or hover element on each piece of the pie chart to identify what each of the blocks stand for?

Closing per @fulldecent

authors: etimberg ryangurn


text:
getLayer C API after loading the model or create the model

There is requirment to provide getter APIs after loading the model to create the model.
such as C++ API getLayer() in model.h

:octocat: cibot: Thank you for posting issue #1856. The person in charge will reply soon.

Hello, isn't it a duplicate of #1848 ?

Oh.. yes. it is. Closed with #1848 then.

authors: jijoongmoon pkosko taos-ci

repo: nnstreamer/nntrainer


text:
make nntrainer thread safe

Lets make nntrainer thread safe atleast from the API.

:octocat: cibot: Thank you for posting issue #287. The person in charge will reply soon.

Do you have some kind of a road map or way to assure MT-safe?

Needs to be at two levels -

MT-safe primitives at the API level
MT-safe primitives at NeuralNetwork class functions (if applications are allowed to use this directly). This reduces MT-safe overhead from other APIs.

I think this MT-safe is not urgent matter. We could do this next year or end of this year. But keep in mind.

authors: jijoongmoon kparichay taos-ci zhoonit


text:
Adding Auto CI/checks and tests

After Issues #21, #22, and #23 are completed get some tests of output going, maybe for WAF based on the examples in the paper
so we can track that results stay the same and validate with literature
Another test we can add, now that there are a bunch of option switches, is to at least make sure that they all run using an automated CI/checks so you don't have to check yourself every time you do something.
@zmoon
@drnimbusrain

@zmoon Do you think the current auto CI/checks are enough to close this for now, or should remain open until we get more progress on checks for all options/switches, if possible. I defer to you on this one.

@zmoon  Based on our recent tag-up discussion with  @angehung5,  once issue #41 is done she can provide you with her Canopy-App running scripts with new inputs, so that you can add improved CI checks/tests to the workflow.  Really appreciate it!

repo: noaa-oar-arl/canopy-app


text:
Failing APNS for Independent WatchOS6 app

Hey guys, I am not sure if this is of fault of the library, Apple, or something I have done wrong.
So basically the new Independent WatchOS6 apps can now have a push token of their own, don't need the phone. I am creating a token and passing to server no issue.
The issue I am getting is EVERY time I try and send the push I get Error: DeviceTokenNotForTopic I have tried with p8 - and key/cert pem - Both are passing the same errors.
Is there something missing from your end?

Been working with a few other engineers and specifically sending notification to watchOS is not possible with this library.

Hi @RichAppz  could be in any way related to the change in tokens discussed in the Cordova community? https://github.com/phonegap/phonegap-plugin-push/issues/2819
Would be interested to know if this is the actual problem. To be frank I am totally clueless on the WatchOS internals ... and it scares me :))

Hey, removed my last comment, as after further investigation turns out to be down to some missing documentation. https://medium.com/@RichMucha/independent-watchos-and-apns-4a8ede6f44e8
As for this library the release is not working as expected, 3.0.0 is not being pulled.

authors: RichAppz paulincai

repo: node-apn/node-apn


text:
node-red erro in function since upgrade to Version 3.0.2

Current Behavior
FUNCTION check MAC, see below printscreen
I get an "error in Javascript code" since the upgrade to node-red Version 3.0.2.
The function code looks like
const lastSeenSeconds = 15;
let presenceCutoff = (new Date() - (lastSeenSeconds * 1000)) / 1000;
const people = {
    "presence/s....": "d2:84:23:xxxxxxx",
    "presence/j.....": "16:97:2a:xxxxxxx"
};

return Object.keys(people).map(function (topic) {
    let devices = msg.payload.filter[0](device => device.name === people[topic] && device.last_seen > presenceCutoff);
    return {
        topic: topic,
        retain: true,
        payload: devices.length > 0
    };
});

Expected Behavior
No response
Steps To Reproduce
No response
Example flow
paste your flow here

Environment

Node-RED version: 3.0.2
Node.js version:
npm version:
Platform/OS: Ubuntu 20
Browser:

Client Devices is a Unifi Controller Version 7.3.76

Hi @github6043
The quick fix is to change the second line of your code to:
let presenceCutoff = (new Date().getTime() - (lastSeenSeconds * 1000)) / 1000;

If you had opened up the Function node, the error would have been highlighted for you:

I changed the line to
let devices = **msg.payload[0].filter**(device => device.name === people[topic] && device.last_seen > presenceCutoff);

but still get
"TypeError: msg.payload[0].filter is not a function"

At this point, we're debugging your application rather than discussing a Node-RED bug. We prefer to do that on the community forum so the whole community can help, rather than depend on the core development team.
I believe your screenshot shows msg.payload is an array of objects. msg.payload[0] will be the first object in that array - and objects do not have a filter function.
Maybe you want to filter the list of devices in msg.payload? If so, you'd use msg.payload.filter(....)

Hi @github6043 as Nick points out, this is not a bug. Please head over to the forum or slack of you need help - the guys over there are super helpful.
I will close this as complete but please don't hesitate to head back here if you believe there is a bug.
Thanks.

authors: Steve-Mcl github6043 knolleary

repo: node-red/node-red


text:
Fix error hanndling of JSONata expression editor for extennded functions

[x] Bugfix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)

Proposed changes

Current JSONata editor reports extended functions $flowContext and $globalContext as not testable but not reports for $env, $moment, and $clone.
This PR makes all these functions reported as not testable.
Checklist

[x] I have read the contribution guidelines
[ ] For non-bugfix PRs, I have discussed this change on the forum/slack team.
[x] I have run grunt to verify the unit tests pass
[ ] I have added suitable unit tests to cover the new/changed functionality

Coverage remained the same at 68.341% when pulling b0d12c41251529f4b7aefad8e2581df920a2e6f7 on node-red-hitachi:fix-extended-function-error-handling-of-jsonata-editor into a5d7f7acceb4c77d1e91feca63a3619164d8b06b on node-red:master.

authors: HiroyasuNishiyama coveralls


text:
Change default file name to flows.json in project feature

[x] Bugfix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)

Proposed changes
In the project feature, the default file name of flow is flow.json. It works correctly in the project feature but users manually need to specify flow.json when they start Node-RED in the project directory under the ~/.node-red/projects/. If users modify package.json to enable the runnable project, they also need to add the flow.json like the following.
    "scripts": {         "start": "node-red flow.json"     },
I thought that flows.json is more appropriate for the default file name. Therefore, I submitted this pull request to change the file name.
Checklist

[x] I have read the contribution guidelines
[ ] For non-bugfix PRs, I have discussed this change on the forum/slack team.
[x] I have run grunt to verify the unit tests pass
[ ] I have added suitable unit tests to cover the new/changed functionality

Coverage: 68.556%. Remained the same when pulling e30df544dbdf997d46f856b822130b807f30e79f on kazuhitoyokoi:master-flowname into 604487143886cd5a5150f269e5d244934df29fcc on node-red:master.

Thank you!

authors: coveralls kazuhitoyokoi


text:
Add tests for AnnotatedCommit

Introduce tests for the last two functions in AnnotatedCommit that aren't currently covered by the test suite.
fromFetchhead
fromRevspec

I made the mistake of creating the changes on my clone's master. Closing this PR...

repo: nodegit/nodegit


text:
feat: moved and updated prevOpenings.md

Moved previousOpportunities.md to the outside of Onboarding Docs Folder.
Updated previousOpportunities.md to include recent positions.

I think this link should be updated too alongside with it @LonelyTree
https://github.com/nodejs/mentorship/blob/main/README.md#previous-opportunities

authors: LonelyTree manishprivet

repo: nodejs/mentorship


text:
version `GLIBC_2.25' not found

Node Version: v14.4.0 and v6.14.5
Platform: Linux Ryan-Ubuntu 5.3.0-53-generic #47~18.04.1-Ubuntu SMP Thu May 7 13:10:50 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Compiler: Using built-in specs. COLLECT_GCC=cc COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/7/lto-wrapper OFFLOAD_TARGET_NAMES=nvptx-none OFFLOAD_TARGET_DEFAULT=1 Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Ubuntu 7.5.0-3ubuntu1~18.04' --with-bugurl=file:///usr/share/doc/gcc-7/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-7 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu Thread model: posix gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04)
Module: https://doc.libsodium.org/installation

Verbose output (from npm or node-gyp):
Error Error: /snap/core/current/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.25' not found (required by /usr/local/lib/libsodium.so.23)

I have v2.27 of glibc on my machine, I also compiled libsodium using the installation instructions. My module builds no worries but when I run it I get this error. When I log gnu_get_libc_version() it shows node-gyp is using v2.23.
How do I configure node-gyp to use at least v2.25 of glibc or must I compile nodejs myself?

/snap/core/current/lib/x86_64-linux-gnu/libc.so.6, so I guess you're using the Node.js Snap to do this. A Snap runs in an executable container-like environment and uses runtime libraries found in Snap Core, which is in /snap/core/current/ and is based on Ubuntu Xenial and therefore uses glibc 2.23, which is where this is coming from.
Without tinkering I'm not sure the best way to solve this if you still want to use the Snap, although you could consider switching to a manual install or use deb.nodesource.com to get a .deb. If you run the executable directly, via /snap/node/current/bin/node then you run outside of the app container, so you could do that if you wanted to but you'd be opting out of some of the benefits of snaps and you could possibly have the node executable file disappear from out under you (the current directory is a symlink that will be replaced when a new version of Node.js is released) which may, or may not matte for long-running processes. But if you wanted to use it directly like that then you're going to have to get that as a prefix to all of your Node.js processes, including npm and node-gyp which, if you run them directly, use your PATH to find node. You could run /snap/node/current/bin/node /path/to/node-gyp/bin/node-gyp.js ..., but that gets messy quickly. Also if you do it this way, you have to make sure that you do the same for any node processes you run that use addons that have been compiled like this or you'll get a mismatch at module loading time.
You could also try to compile libsodium against glibc 2.23 so you don't run into this problem.

@rvagg I can't thank you enough for your help. I've removed the Node.js Snap and instead have opted for nvm which has fixed the issue. I really appreciate your time and detailed explanation.
Thank you again!

authors: rvagg rynz

repo: nodejs/node-gyp


text:
Remove unused gyp test scripts.

Shrinks node-gyp's size by about 100 kB.

Do we think we'll ever take another upstream gyp?

Unlikely in the extreme.


text:
v5.0.0 proposal

This is what a v5.0.0 would look like, can we get this right and clean up the backlog on master out of the door? This is a WIP, I haven't reviewed much of what's in here and can't vouch for its reliability or stability.
@cclauss @refack what does Python 3 support look like at the moment? Are we there yet?

[7a71d68bce] - win: use msbuild from the configure stage (Bartosz Sosnowski) #1654
[45e3221fd4] - Remove an outdated workaround for Python 2.4 (cclauss) #1650
[997bc3c748] - readme: add ARM64 info to MSVC setup instructions (Jon Kunkee) #1655
[721dc7d314] - Add ARM64 to MSBuild /Platform logic (Jon Kunkee) #1655
[a6e0a6c7ed] - gyp: move compile_commands_json (Paul Maréchal) #1661
[c515912d08] - doc: improve issue template (Bartosz Sosnowski) #1618
[cca2d66727] - doc: python info needs own header (Taylor D. Lee) #1245
[43031fadcb] - python: clean-up detection (João Reis) #1582
[49ab79d221] - python: more informative error (Refael Ackermann) #1269
[d3b21220a0] - win: fix delay-load hook for electron 4 (Andy Dill)
[6f5a408934] - tools: fix usage of inherited -fPIC and -fPIE (Jens) #1340
[8a83972743] - (SEMVER-MAJOR) bin: follow XDG OS conventions for storing data (Selwyn) #1570
[8098ebdeb4] - deps: replace osenv dependency with native os (Selwyn)
[92e8b52cee] - gyp: fix target --> self.target (cclauss)
[febdfa2137] - gyp: fix sntex error (cclauss) #1333
[588d333c14] - gyp: _winreg module was renamed to winreg in Python 3. (Craig Rodrigues)
[98226d198c] - gyp: replace basestring with str, but only on Python 3. (Craig Rodrigues)
[7535e4478e] - gyp: replace deprecated functions (Craig Rodrigues)
[2040cd21cc] - gyp: use print as a function, as specified in PEP 3105. (Craig Rodrigues)
[abef93ded5] - gyp: get ready for python 3 (cclauss)
[788e767179] - test: remove unused variable (João Reis)
[f83b457e03] - deps: bump request to 2.8.7, fixes heok/hawk issues (Rohit Hazra) #1492
[323cee7323] - deps: pin request version range (Refael Ackermann) #1300
[a5b7410497] - Add ESLint no-unused-vars rule (Jon Moss) #1497
[9e46872ea3] - bin,lib: remove extra comments/lines/spaces (Jon Moss) #1508
[3e64c780f5] - doc: lint README.md (Jon Moss) #1498

BTW this could be 4.0.0...
Python3 is close, Only thing that's known to be broken is cross-compilation, but I need a better CI environment to test the fix.

BTW this could be 4.0.0...

No, I just released 4.0.0 based on your 3.x proposal, that last release was semver-major so I just did the full bump

Agreed but could you please unpack a better CI environment for us?  What exactly is needed?

No, I just released 4.0.0 based on your 3.x proposal,

Ok. My main concern is/was coordination with npm...

a better CI environment

Currently GYP3 and node-gyp run on a limited set of platforms, i.e. what is available on free CI services; Windows, Ubuntu, and macOS over Intel x64.
IMHO a better testing environment would be the Node.js build cluster.

@rvagg can you include https://github.com/nodejs/node-gyp/pull/1679 and https://github.com/nodejs/node-gyp/pull/1739? Both just landed in master, thanks!

missing visual studio 2019 support which should be prioritized.

@rvagg can you include #1679 and #1739? Both just landed in master, thanks!

#1739 is the last Node.js-ish change necessary for Electron v6 to ship with ARM64 Windows support, so I'm particularly interested in seeing it land in an official node-gyp release. (Right now they have to manually patch node-gyp to HEAD to get builds out.)

Does this repo have any automated testing?  I am reluctant to endorse a release that is not supported by at least some level of automated testing.  With 225 days until the end of life of Python 2, I still see several calls to functionality that no longer exists in Python 3.  Some basic linting would really help.

Re testing: @cclauss we have a ci.nodejs.org job that can be triggered manually, not automatic yet but I think that should be doable with the github-bot setup.
Re 5.0.0: folks, how about we aim to get a 5.0.0 out within the next month, we can be ambitious with what's included but at the same time recommend to npm that they not pick it up as the default version straight away. That would alleviate some of the pressure to get this perfect but we'd still get it in the hands of a large number of people that are using it directly—and we can dogfood it ourselves.
Does that sound like a reasonable strategy? I'm struggling to come up with a better idea for moving forward here.

@rvagg it's still open if 5.0 will include the move to python3, right?

Some of the Python 3 issues that need to be addressed...
flake8 testing of https://github.com/nodejs/node-gyp on Python 3.7.1
$ flake8 . --count --select=E9,F63,F72,F82 --show-source --statistics
./gyp/tools/pretty_vcproj.py:31:12: F821 undefined name 'cmp'
    return cmp(x[0], y[0])
           ^
./gyp/tools/pretty_vcproj.py:59:12: F821 undefined name 'cmp'
    return cmp(get_string(x), get_string(y))
           ^
./gyp/pylib/gyp/MSVSVersion.py:189:18: F821 undefined name '_winreg'
    with OpenKey(_winreg.HKEY_LOCAL_MACHINE, subkey) as hkey:
                 ^
./gyp/pylib/gyp/input.py:1185:10: F632 use ==/!= to compare str, bytes, and int literals
      if the_dict_key is 'variables' and variable_name in the_dict:
         ^
./gyp/pylib/gyp/xcode_emulation.py:847:9: F821 undefined name 'cflags'
        cflags.append('-F' + platform_root + '/Developer/Library/Frameworks/')
        ^
./gyp/pylib/gyp/MSVSNew.py:55:12: F821 undefined name 'cmp'
    return cmp((self.name, self.get_guid()), (other.name, other.get_guid()))
           ^
./gyp/pylib/gyp/simple_copy.py:31:28: F821 undefined name 'long'
for x in (type(None), int, long, float,
                           ^
./gyp/pylib/gyp/simple_copy.py:32:22: F821 undefined name 'unicode'
          bool, str, unicode, type):
                     ^
./gyp/pylib/gyp/xcodeproj_file.py:327:56: F821 undefined name 'unicode'
      elif isinstance(value, str) or isinstance(value, unicode) or \
                                                       ^
./gyp/pylib/gyp/xcodeproj_file.py:606:28: F821 undefined name 'unicode'
    elif isinstance(value, unicode):
                           ^
./gyp/pylib/gyp/xcodeproj_file.py:769:37: F821 undefined name 'unicode'
             not (item.__class__ == unicode and property_type == str):
                                    ^
./gyp/pylib/gyp/xcodeproj_file.py:777:36: F821 undefined name 'unicode'
           not (value.__class__ == unicode and property_type == str):
                                   ^
./gyp/pylib/gyp/xcodeproj_file.py:791:58: F821 undefined name 'unicode'
        elif isinstance(value, str) or isinstance(value, unicode) or \
                                                         ^
./gyp/pylib/gyp/xcodeproj_file.py:1019:14: F821 undefined name 'cmp'
      return cmp(self.Name(), other.Name())
             ^
./gyp/pylib/gyp/xcodeproj_file.py:2736:18: F821 undefined name 'cmp'
                 cmp(x['ProjectRef'].Name().lower(),
                 ^
./gyp/pylib/gyp/xcodeproj_file.py:2845:14: F821 undefined name 'cmp'
      return cmp(x_index, y_index)
             ^
./gyp/pylib/gyp/xcodeproj_file.py:2893:52: F821 undefined name 'cmp'
                                  cmp=lambda x, y: cmp(x, y)):
                                                   ^
./gyp/pylib/gyp/xcodeproj_file.py:2920:45: F821 undefined name 'cmp'
                           cmp=lambda x, y: cmp(x.id, y.id)):
                                            ^
./test/fixtures/test-charmap.py:5:1: F821 undefined name 'reload'
reload(sys)
^
1     F632 use ==/!= to compare str, bytes, and int literals
18    F821 undefined name 'cmp'
19

E901,E999,F821,F822,F823 are the "showstopper" flake8 issues that can halt the runtime with a SyntaxError, NameError, etc. These 5 are different from most other flake8 issues which are merely "style violations" -- useful for readability but they do not effect runtime safety.

F821: undefined name name
F822: undefined name name in __all__
F823: local variable name referenced before assignment
E901: SyntaxError or IndentationError
E999: SyntaxError -- failed to compile a file into an Abstract Syntax Tree

@rvagg https://github.com/nodejs/node-gyp/pull/1762 just landed, it would be great if you can include it (essentially, all of master).
The strategy of just making the release and recommending to npm to not pick it up as default right away sounds like the best path forward to me. We just have to be prepared to release a fix quickly if any issue is actually found.
I'd rather see a v5.0.0 come out quickly because of https://github.com/nodejs/node-gyp/issues/1764. I don't see a reason to wait for Python 3 support, we can release v6.0.0 as soon as it's ready. It's even probably better to have it in its own release. Let me know if I can help with the release, thanks!

I've done a rebase and made a new CHANGELOG, it's in OP. Any blockers for pushing this out? If not, maybe we should do it tomorrow?
Again, let's not recommend npm pick this one up straight away but let's also get back onto a more regular cadence of releases and not let these things back up so much. Python 3 support seems like the top priority after this. We're not constrained by major version bump cadence but we should be prepared to go back and fix older majors for folks that really need things fixed but can't afford the breakage, LTS-style.

Published v5.0.0.
@refack or @joaocgreis do either of you have a login to the new npm bug tracker? We can't open issues on the repo anymore. We need to let them know not to pick this one up until we have a patch or minor release or two and that we can continue to patch 4.x if there are critical bugs. I thought about opening a PR to do it but that'd be a bit too obnoxious I think.

Thanks @rvagg!
I opened this in npm: https://npm.community/t/node-gyp-v5-0-0-released/8179

authors: Stanzilla cclauss jkunkee joaocgreis refack rvagg


text:
Apply featherlight to per JS loaded content

I'm trying to dynamically load images (as a result of a post request)
after manually initializing featherlight (since featherlight isn't listening to dynamically loaded content)
I managed to get a featherlight frame with overlay, but the image within it is not displayed.
See reduced testcase: http://jsfiddle.net/ovvtr7Lc/2/

Okay, featherlight seems to listen to dynamically added content! it works great now.
you should have noticed that in the documentation + that if you initialize a gallery, you don't need the featherlight data attribute PER image/a element.
I found that out when taking a look at the contribution fiddle: http://jsfiddle.net/JNsu6/15/

Congrats on finding the filter option. PR on documentation welcome.

authors: MartinMuzatko marcandre

repo: noelboss/featherlight


text:
Use github as main download mirror

See: https://twitter.com/YuriSizov/status/1681704221186326543
All existing releases will be transfered to github. New releases (stable or not) are no longer being uploaded to Tuxfamily.
There are to repos to fetch download links:
For stable releases: https://github.com/godotengine/godot/releases
For everything else: https://github.com/godotengine/godot-builds/releases
This together with #29 completely removes the need to parse html as both news and download links can be obtained through json APIs

Moved to 1.x as tuxfamily is still supported and working correctly

Implemented in #35 by @jokoho48

repo: noidexe/godot-version-manager


text:
created task create/edit endpoints

Proposed Changes

updated openapi annotations
moved auth files to users dir
user endpoints: updated response status to be more detailed (403/404/etc)
changed incremental id's to uuid's
added contest, contestTask, and participation entities
added strict/lax task view/edit access validation

Closing because I have merged this already in another PR!

authors: jabbawookiees nimendoza

repo: noiph/hurado


text:
Add a derive attribute with support for (de)serialize macros on existing complex types

### Blocked by
- [ ] https://github.com/noir-lang/noir/issues/2568

Problem
@rahul-kothari brought up that Noir does not currently have a canonical way of (de)serializing all types (including custom structs), hence users have to write their own custom methods to achieve so.
An example of such custom method in Aztec.nr.
Happy Case
@kevaundray suggested we could add a derive attribute similar to Rust with support of derive macros.
For this GitHub Issue, we can aim at:

Add #[derive(serialize)] and #[derive(deserialize)]
For all complex data types that currently exist natively in Noir (i.e. arrays, tuples, slices, vectors, structs, traits)

P.S. Pardon my lack of knowledge in Rust. If the scope does not make sense, definitely comment below.
Support for e.g. additional derive macros, custom derive macros definable by users can be added later with separate issues.
Alternatives Considered
No response
Additional Context
@kevaundray noted that his might not necessarily be the best solution for the problem if the serialization needs to be duplicated in another language like TypeScript.
Would you like to submit a PR for this Issue?
No
Support Needs
No response

Assigning P-HIGH as @rahul-kothari suggested this is helpful for both Aztec.nr development and most if not all its users.

I think we should wait until after we have traits for this. We'll likely want the derive macro to be able to derive certain traits like it can in rust, with Serialize and Deserialize being two of those traits.

Thanks @jfecher, added Traits as a blocker of this Issue.

@kevaundray @jfecher would you anticipate this to be considerably more complex to implement versus https://github.com/noir-lang/noir/issues/2240? (Otherwise seems like this could be a super set of that.)

@jfecher when will Noir start using traits? Aren't they already at least experimental? I remember Kev saying we could use them in sandbox land

@rahul-kothari no official time on them yet since they're still experimental. They're in the compiler already for the most part but you'll receive warnings if you try to use them as there are still some missing features and edge cases. Most notably I'm working now to add support for generics to traits which is important since generics are required for even something as simple as equality on arrays.
You may be fine using them now if you're alright with the warnings and limit yourself to only non-generic types on non-generic traits. ETA for generics is... perhaps roughly 1 months time.

@Savio-Sou I suppose adding a derive macro version to derive Serialize/Deserialize would be a bit more complex than writing a built in function to do so. It's just that we know we want a derive macro solution already for traits anyway, so tacking this onto that is essentially little extra work. Compared to the builtin function approach which we may want to remove once we have a trait version of (De)Serialize.

We have derive in Noir's stdlib now so it should be possible to define your own deriver function to derive Serialize and Deserialize for any type following the derive_eq and derive_default examples in the stdlib.
We can't implement this deriver function in Noir's stdlib since we don't define Serialize or Deserialize there either - that will be work for the authors of those libraries. Since it should be possible now, I'm closing this issue.

authors: Savio-Sou jfecher rahul-kothari

repo: noir-lang/noir


text:
About the way of importing compontnents

@nolimits4web
Hi,
In my case, i used framework7-vue as the main framework of mobile webapp. But, there is a problem, that after build with webpack, the vendor js file and main js file were to big for mobile.
I figured out that all of framework7 components imported by default, can we import components when actually need them, like:
import {F7Page, F7Navbar} from 'framework7-vue'

Same as #219


text:
When total item is not a multiple of items-per-group and loop is true. Prev button stay on the same group.

Check that this is really a bug

[X] I confirm

Reproduction link
https://codesandbox.io/s/dazzling-ramanujan-zv5nby?file=/src/App.vue
Bug description
I got a problem when the number of swiper-slide is not a multiple of item-per-group parameter Number. (For example I have 8 swiper-slide and item-per-group is equal to 5) and loop is set to true.
When I try to go to previous using navigation, it's looping on the same group.
Expected Behavior
Should succeed to go to the previous slide group.
Actual Behavior
Stay on the current slide group.
Swiper version
8.0.7
Platform/Target and Browser Versions
Chrome / Vue
Validations

[X] Follow our Code of Conduct
[X] Read the docs.
[X] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
[X] Make sure this is a Swiper issue and not a framework-specific issue

Would you like to open a PR for this bug?

[ ] I'm willing to open a PR

Bug still exists in 8.2.4
Code pen:
https://codepen.io/deifro/pen/eYVoOoY - duplicate swiper slides are in a different colour

Swiper v9 comes with fully reworked and now different loop functionality. If you have similar issues in Swiper 9, open a new issue with a CodeSandbox showing the issue.


text:
Fix migration

Rails6 より マイグレーションファイルにファイル作成時のバージョン指定が必要となったため，修正を行いました．
参考：https://railsguides.jp/active_record_migrations.html

https://github.com/nomlab/jay/pull/100 にて対応されているのを確認したので close

repo: nomlab/jay


text:
DRAFT | NC | Pass noobaa args to GPFS on initialization

Explain the changes

Issues: Fixed #xxx / Gap #xxx

Testing Instructions:

[ ] Doc added/updated
[ ] Tests added

@romayalon can you update the PR description too?

authors: guymguym romayalon

repo: noobaa/noobaa-core


text:
Readable stream

Refactors streams into dedicated createReceiverStream() and createSenderStream() methods within AMQPClient.js instead of using policyOverrides.
Adds JSON parsing to ReceiverStream.
Adds stream - servicebus test

closing since the feature has been merged into master, thanks!

authors: jacoscaz mbroadst


text:
Nicer documentation

Personally I was thinking using this repo to get it going, thoughts?

Should we proceed with this? It would be quite an effort, and we're not in the league yet, though I understand it can be used outside of the league.

I think so, better documentation is always a good thing, and we can remove League-related stuff for now (and add it back in if Config is accepted)

I agree :+1.

authors: DavidePastore hassankhan noodlehaus

repo: noodlehaus/config


text:
Not working with PhoneGap Build for Android?

I cannot get this plugin to work using PhoneGap Build for Android.  The discussion in this open issue relating to iOS seems to indicate getting it working for Android might be less problematic than for iOS.  Since that question & discussion related specifically to iOS, opening a new issue/question here for Android.
Is there a PGB workaround that works for Android?
(There's some discussion in the above issue about altering the AndroidManifest.xml using Cordova/PGB <config-file> tags, but I'm not sure what actually needs to be changed there for this plugin to work.)

OK, after (finally!) getting local cordova working to compare, and some trial-and-error, I can get this plugin partly working with PhoneGap Build with these additions to the config.xml:
<config-file platform="android" parent="/manifest/application" mode="merge">
	<activity android:launchMode="singleTask" />
</config-file>

<config-file platform="android" target="AndroidManifest.xml" parent="/manifest/application/activity[1]" mode="add">
	<intent-filter android:autoVerify="true">
		<action android:name="android.intent.action.VIEW" />
		<category android:name="android.intent.category.DEFAULT" />
		<category android:name="android.intent.category.BROWSABLE" />
		<data android:scheme="https" android:host="MYDOMAINHERE" android:path="/MYPATHHERE" />
	</intent-filter>
	<intent-filter android:autoVerify="true">
		<action android:name="android.intent.action.VIEW" />
		<category android:name="android.intent.category.DEFAULT" />
		<category android:name="android.intent.category.BROWSABLE" />
		<data android:scheme="https" android:host="OTHERDOMAINHERE"/>
	</intent-filter>
</config-file>

However, while links now trigger the app to open, the universalLinks.subscribe() callback doesn't seem to fire (neither with the default event, or with custom events).  (As was mentioned already here, we need a way to tell the plugin about which events to fire, and PGB apparently strips the  tag from the config.xml.)
@nikDemyankov - you mentioned a "ul.json" type solution in issue 28.  Is this something that is implemented for Android, or could be?

Any luck with this @blukis ?

Nope.  I'm hoping someone smarter than me can help fill in there gaps I left above.  :)
I think the "ul.json" type solution discussed in the other issue would do the trick, but was unclear from that discussion whether that was ever implemented for Android.  (Looks like they were trying it in iOS, then ran into some iOS-specific showstoppers?)

authors: blukis ekubischta

repo: nordnet/cordova-universal-links-plugin