text:
PyQt5

This PR implement support to PyQt5, in special as a second try, that is PyQt5 will only be used if importing PyQt4 fails (but this can be easily changed).
This list of changes between PyQt4 to 5 is present here. Since most references to PyQt in the internet are to 4 and not to 5, I do recommend you get familiar with the differences.
The most important difference is that QtGui got splitter into QtWidgets and QtGui, so that must references to QtGui are now QtWidgets. This got changed all over the code, in PyQt4 mode QtWidgets is a copy of QtGui.
There were also some differences to the signals and opening files, but this will cause you little to no problem.

I'll start digging into the code and changes soon. My first two questions that come to mind from your statements above:

By copying QtGui to QtWidgets for PyQt4, will there be any conflicts that try to call the classic QtGui that are no longer associated?
I think that keeping PyQt4 primary and PyQt5 secondary is a good idea for now. Any idea in you looking around the web how much adoption to 5 has taken place?

if I have done my work properly in separating what is QtWidgets and what still is QtGui, there should be no conflicts.
Considering that the main doc for PyQt5 is still like (this)[http://pyqt.sourceforge.net/Docs/PyQt5/api/qmainwindow.html], I do not think it is widelly adopted, apple really rushed into that. But maybe the intention was really to bring moviment into the transition (and it worked in our case!).

pushed a commit with some changes I forget to commit before

Still looking through and setting up a special conda environment to install PyQt5 for testing. I'll keep moving forward with this.

What I did, it that I installed pyqt5 in python3, so I have both: pyqt4 in python and pyqt5 in python3

After setting up my python 3.5 environment the PyQt5 only, the following error on install:
/Users/guy/anaconda/envs/py35_env/lib/python3.5/site-packages/matplotlib/font_manager.py:273: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  warnings.warn('Matplotlib is building the font cache using fc-list. This may take a moment.')
/Users/guy/anaconda/envs/py35_env/lib/python3.5/site-packages/matplotlib/font_manager.py:273: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  warnings.warn('Matplotlib is building the font cache using fc-list. This may take a moment.')
Traceback (most recent call last):
  File "setup.py", line 219, in <module>
    pre_instalation_tests()
  File "setup.py", line 211, in pre_instalation_tests
    from PyQt4.Qt import PYQT_VERSION_STR
ImportError: No module named 'PyQt4'

I didnt test the install, I always run local

pushed a commit, so setup works, you will still get a lot of warning, but I should setup just fine. I will correct the warnings some other time.

Thanks, that did the trick of making the install.
I finally did a clean environment that is running Python 3.5, PyQt5, matplotlib, numpy, scipy, pyart, and artview. I should probably have made a clean test environment like this ages ago for testing.
I'll start looking into the code a little deeper now.

I don't know if this is a function of this PR, but I am getting the following error during testing on the Python3/PyQt5 side. Can you take a look?
File "/Users/guy/anaconda/envs/py35_env/lib/python3.5/site-packages/artview/components/plot_radar.py", line 347, in <lambda>
    lambda RngRing=RngRing: self.RngRingSelectCmd(RngRing))
  File "/Users/guy/anaconda/envs/py35_env/lib/python3.5/site-packages/artview/components/plot_radar.py", line 646, in RngRingSelectCmd
    self.RNG_RINGS = range(ringdel, unrng, ringdel)
UnboundLocalError: local variable 'ringdel' referenced before assignment

Also saw this problem:
Traceback (most recent call last):
  File "/Users/guy/anaconda/envs/py35_env/lib/python3.5/site-packages/artview/components/plot_radar.py", line 553, in NewCmap
    self._update_plot()
  File "/Users/guy/anaconda/envs/py35_env/lib/python3.5/site-packages/artview/components/plot_radar.py", line 933, in _update_plot
    ax=self.ax, fig=self.fig, title=title)
  File "/Users/guy/anaconda/envs/py35_env/lib/python3.5/site-packages/pyart/graph/radardisplay.py", line 404, in plot_ppi
    x, y, data, vmin=vmin, vmax=vmax, cmap=cmap, norm=norm, **kwargs)
  File "/Users/guy/anaconda/envs/py35_env/lib/python3.5/site-packages/matplotlib/__init__.py", line 1819, in inner
    return func(ax, *args, **kwargs)
  File "/Users/guy/anaconda/envs/py35_env/lib/python3.5/site-packages/matplotlib/axes/_axes.py", line 5395, in pcolormesh
    collection.set_cmap(cmap)
  File "/Users/guy/anaconda/envs/py35_env/lib/python3.5/site-packages/matplotlib/cm.py", line 306, in set_cmap
    cmap = get_cmap(cmap)
  File "/Users/guy/anaconda/envs/py35_env/lib/python3.5/site-packages/matplotlib/cm.py", line 166, in get_cmap
    % (name, ', '.join(sorted(cmap_d.keys()))))
ValueError: Colormap False is not recognized. Possible values are: Accent, Accent_r, Blues, Blues_r, BrBG, BrBG_r, BuGn, BuGn_r, BuPu, BuPu_r, CMRmap, CMRmap_r, Dark2, Dark2_r, GnBu, GnBu_r, Greens, Greens_r, Greys, Greys_r, OrRd, OrRd_r, Oranges, Oranges_r, PRGn, PRGn_r, Paired, Paired_r, Pastel1, Pastel1_r, Pastel2, Pastel2_r, PiYG, PiYG_r, PuBu, PuBuGn, PuBuGn_r, PuBu_r, PuOr, PuOr_r, PuRd, PuRd_r, Purples, Purples_r, RdBu, RdBu_r, RdGy, RdGy_r, RdPu, RdPu_r, RdYlBu, RdYlBu_r, RdYlGn, RdYlGn_r, Reds, Reds_r, Set1, Set1_r, Set2, Set2_r, Set3, Set3_r, Spectral, Spectral_r, Wistia, Wistia_r, YlGn, YlGnBu, YlGnBu_r, YlGn_r, YlOrBr, YlOrBr_r, YlOrRd, YlOrRd_r, afmhot, afmhot_r, autumn, autumn_r, binary, binary_r, bone, bone_r, brg, brg_r, bwr, bwr_r, cool, cool_r, coolwarm, coolwarm_r, copper, copper_r, cubehelix, cubehelix_r, flag, flag_r, gist_earth, gist_earth_r, gist_gray, gist_gray_r, gist_heat, gist_heat_r, gist_ncar, gist_ncar_r, gist_rainbow, gist_rainbow_r, gist_stern, gist_stern_r, gist_yarg, gist_yarg_r, gnuplot, gnuplot2, gnuplot2_r, gnuplot_r, gray, gray_r, hot, hot_r, hsv, hsv_r, inferno, inferno_r, jet, jet_r, magma, magma_r, nipy_spectral, nipy_spectral_r, ocean, ocean_r, pink, pink_r, plasma, plasma_r, prism, prism_r, pyart_BlueBrown10, pyart_BlueBrown10_r, pyart_BlueBrown11, pyart_BlueBrown11_r, pyart_BrBu10, pyart_BrBu10_r, pyart_BrBu12, pyart_BrBu12_r, pyart_Bu10, pyart_Bu10_r, pyart_Bu7, pyart_Bu7_r, pyart_BuDOr12, pyart_BuDOr12_r, pyart_BuDOr18, pyart_BuDOr18_r, pyart_BuDRd12, pyart_BuDRd12_r, pyart_BuDRd18, pyart_BuDRd18_r, pyart_BuGr14, pyart_BuGr14_r, pyart_BuGy8, pyart_BuGy8_r, pyart_BuOr10, pyart_BuOr10_r, pyart_BuOr12, pyart_BuOr12_r, pyart_BuOr8, pyart_BuOr8_r, pyart_BuOrR14, pyart_BuOrR14_r, pyart_Carbone11, pyart_Carbone11_r, pyart_Carbone17, pyart_Carbone17_r, pyart_Carbone42, pyart_Carbone42_r, pyart_Cat12, pyart_Cat12_r, pyart_EWilson17, pyart_EWilson17_r, pyart_GrMg16, pyart_GrMg16_r, pyart_Gray5, pyart_Gray5_r, pyart_Gray9, pyart_Gray9_r, pyart_LangRainbow12, pyart_LangRainbow12_r, pyart_NWSRef, pyart_NWSRef_r, pyart_NWSVel, pyart_NWSVel_r, pyart_NWS_SPW, pyart_NWS_SPW_r, pyart_PD17, pyart_PD17_r, pyart_RRate11, pyart_RRate11_r, pyart_RdYlBu11b, pyart_RdYlBu11b_r, pyart_RefDiff, pyart_RefDiff_r, pyart_SCook18, pyart_SCook18_r, pyart_StepSeq25, pyart_StepSeq25_r, pyart_SymGray12, pyart_SymGray12_r, pyart_Theodore16, pyart_Theodore16_r, pyart_Wild25, pyart_Wild25_r, rainbow, rainbow_r, seismic, seismic_r, spectral, spectral_r, spring, spring_r, summer, summer_r, terrain, terrain_r, viridis, viridis_r, winter, winter_r

I'm experiencing a lot of crashes with this new code. For example just testing the new error catching in image_text, the program crashes.
Traceback (most recent call last):
  File "/Users/guy/anaconda/envs/py35_env/lib/python3.5/site-packages/artview/components/image_text.py", line 188, in updateChoice
    self.choice = self._get_entries()
  File "/Users/guy/anaconda/envs/py35_env/lib/python3.5/site-packages/artview/components/image_text.py", line 283, in _get_entries
    'xpos': float(self.ent_xpos.text()),
ValueError: could not convert string to float: 'big'
Abort trap: 6

Also experiencing trouble selecting the File and Modes menus.

I have pushed a new commit correct the points you present, some of those were also in the present before. I could however no reproduce the Abort trap: 6 crash. It seems like this is a bug of the OSX. In the end this is a C allocation error, python should not crash in this way.

I pulled the updates and will test some more.
Which errors were present before? Just trying to keep track.

there where an error in connecting the action for drawing circle and change colormap. There as also the error that _check_entries did not interrupt further execution, so _get_entries would fail.

Thanks, I remember putting the entries on my to-do list, but either had not noticed or forgotten the others.
If the MacOSX bug continues to be a problem, I'm not sure what to do. I suspect that many users work on Macbooks, though I don't know that for certain.
I will do more testing and try the following as suggested in the link you sent python3 setup.py py2app -A --packages=PyQt5 if I continue to have problems. If it solves the issue, then we may need to get creative with the install script.

And just to clarify, you don't see this issue at all on your linux machine, correct?

yes, I got the python error (that is know corrected), but not the subsequent crash. Once it is running, I hardly ever got a crash of artview.

Sorry for the delay, I've been fussing with this on and off for the last month with no luck in getting rid of the error. The macdeployqt solution suggested in a link above seems to be a solution for packing the application when it gets working. I've tried compiling with different flags and such. No luck.
The "Abort Trap 6" error happens when trying to use many plugins and tools. I need to figure a more robust way to test and to trace the problem for more information. I'll be back to working on this more.
Also a weird one: The File menu is not in the window as it was previously. And on top of this it is not selectable at startup. I have to click on the Terminal window where I started ARTview and then I can access the menu. Odd behavior.

I would say we put an comment in the README about this problem, but do not allow it to delay the PR. With some luck this will get solved in the future. Could you prepare such comment.

I will.
Do you think we should include a way to use PyQt4 instead of 5 or put that information in the README for reference as well?

pyqt4 will always be preferred over pyqt5, that is already the way it is.

just pushed the new readme

Nice, merging to get this through.
Just for the record, this does only occur with PyQt5 on a MacOS. Python 2/3 don't matter, along with any combination with Qt4 works fine.

authors: gamaanderson nguy

repo: nguy/artview


text:
Tài khoản, địa chỉ, quyền truy cập, cấu trúc POST /transactions

Em có một số thắc mắc về yêu cầu và cách hoạt động hệ thống như sau:

Đăng nhập bằng tên đăng nhập do người dùng đặt hay bằng email, hay bằng một đoạn mã ngẫu nhiên?
Một người dùng chỉ có một địa chỉ duy nhất cho mọi giao dịch nạp/rút và không thay đổi phải không?
(Yêu cầu 1.8) Một tài khoản vi phạm điều gì là tài khoản trái phép?
Cấu trúc body, header của gói tin để request POST  https://api.kcoin.club/transactions là gì?

Cảm ơn thầy và các bạn đã xem xét.

Do nhóm bạn xác định. Mình không hiểu đoạn mã ngẫu nhiên là gì?
Khi tạo tài khoản địa chỉ này được tạo ra và không thay đổi (trên hệ thống của bạn) và chỉ dùng để nạp tiền. Việc rút tiền thì hệ thống có thể rút từ địa chỉ này hoặc bất cứ địa chỉ nào khác thuộc sở hữu của hệ thống bạn
Không thể truy cập thông tin của người dùng khác, không tạo giao dịch với số tiền thuộc sở hữu của người khác, người dùng bình thường không truy cập phần quản lý hệ thống... đại loại là Access Control
Bạn tham khảo tại https://github.com/nguyenkha/kcoin-blockchain/wiki/API

vậy thưa thầy, sự khác biệt giữa chuyển tiền/rút tiền/nạp tiền là gì ạ?

source: gharchive/issue

repo: nguyenkha/kcoin-blockchain

license: MIT

license_type: permissive

license_source: github-api


text:
how-to use ngx-formly with ngx-translate

[x ] support request
just a question:
Is there a way to use ngx-translate with formly? Any samples available?
Formly seems to be awesome but we can not find any working example for translation or the usage of pipes
something like
       ....
	{
		key: 'readyTime',
		type: 'select',
		templateOptions: {
			description:  '"from" | translate' ,
			required: true,
			options: fromTime
		},
		...
	},
        ...

did not work (translate not defined)
Thanks for a hint!

You can use one of the following methods:

expressionProperties https://stackblitz.com/edit/ngx-formly-translate-1
override the default wrappers for example label wrapper https://stackblitz.com/edit/ngx-formly-translate-2

for the first methods it may introduce some performance issues for a large form which I'm thinking to solve it by allowing observable in expressionProperties, in the future you can use something like:
expressionProperties: {
  'templateOptions.label': this.translate.stream('HOME.SELECT'),
},

another method is to wait until translate is ready and use simply this.translate.instant:
https://stackblitz.com/edit/ngx-formly-translate-3

Thank you for the examples, which were very helpful. It works perfect!
You saved my day!

@aitboudad What is the most recommend way to handle the select options of a custom select type? I am currently using a custom pipe in the template to handle.

@HangLoop that's depend but the most recommended way for me is to pass options as an observable which will give you more control.

an example of ngx-translate is now available through the demo website https://formly-js.github.io/ngx-formly/examples/advanced/i18n

@HangLoop seems to me a good option too, keep in mind that there are several ways to achieve the same goal :)

@aitboudad Changing in label is perfectly detected. But it seems placeholder has no observable to detect changes. Is there  a way to make it as observable !

@AhmedBHameed observable is only available in V5  else use other proposals
expressionProperties: {
  'templateOptions.placeholder': this.translate.stream('HOME.SELECT'),
},

@aitboudad Yes this is what i already done. Still label is updating but placeholder dose not detect changes.
formly v3.

just checked and it seems working for me, check CONTACT.PLACEHOLDER message is defined else
fill an issue with a reproduction example.

@aitboudad Tested with v4 also. Placeholder changes not detected.
I will rise an issue hoping to be solved for the version 3 since we are use it in our company.

I see now the issue which is solved in V5,
V3 is not maintained anymore you may create a custom input which overrides the default input  and bind placeholder attr.

@aitboudad Any docs to follow ?

@AhmedBHameed https://ngx-formly.github.io/ngx-formly/guide/custom-formly-field,
if you want a quick solution (as a workaround), rerender fields when changing the placeholder which can be done using:
  changePlaceholder() {
   ...
    this.fields = [...this.fields];
  }

I think a nice and more performant option would be to provide alternative templates, which always use the translate pipe for things like labels. Like this for example:
    <mat-checkbox
      [formControl]="formControl"
      [id]="id"
      [formlyAttributes]="field"
      [tabindex]="to.tabindex || 0"
      [indeterminate]="to.indeterminate && formControl.value === null"
      [color]="to.color"
      [labelPosition]="to.align || to.labelPosition">
      {{ isTranslatePipe ? (to.label|translate) : to.label }}
      <span *ngIf="to.required && to.hideRequiredMarker !== true" class="mat-form-field-required-marker">*</span>
    </mat-checkbox>

@johannesjo that requires adding ngx-translate as a dependency :(, I see another approach that would make the integration much easy (using a custom extension), I'll provide an example when time allows!

@johannesjo see https://stackblitz.com/edit/angular-k8dzcs

@aitboudad that's really awesome! Thank you very much! Works like a charm! Love it!

You can use one of the following methods:

expressionProperties https://stackblitz.com/edit/ngx-formly-translate-1
override the default wrappers for example label wrapper https://stackblitz.com/edit/ngx-formly-translate-2

for the first method it may introduce some performance issues for a large form which I'm thinking to solve it by allowing observable in expressionProperties, in the future you can use something like:
expressionProperties: {
  'templateOptions.label': this.translate.stream('HOME.SELECT'),
},

I tried to implement the above process, But not work for me,Please give me some suggestions here.
FormlyModule.forRoot({
types: [{
name: 'autocomplete',
component: AutocompleteTypeComponent,
wrappers: ['form-field'],
},
],
wrappers: [
{ name: 'label', component: FormlyWrapperLabel }
],
},),]
In component.ts
{
"key": "dwclanguage",
"type": "radio",
"defaultValue": "en",
"className": "col-lg-12 col-md-12 col-sm-12 col-xs-12 text_center",
"templateOptions": {
"translate": true,
'label':'dwclabels.Charts',
change: (field) => this.changeLang(field.formControl.value),
"options": [
{
"value": "en",
"label": "English"
},
{
"value": "es",
"label": "ESPANOL"
}
]
},

@aitboudad  I am using this translate.extension.ts approach (it is same like your from stackblitz with plus code for placeholder) and works perfect. But i have one issue. When using bootstrap accordion formly fields that are inside collapsed accordion are not translated, for example change language from dropdown and expand accordion labels/placeholders are not translated. But if all accordions are expanded and change language everything works perfect.
{
          type: 'ac-accordion-field',
          templateOptions: {},
          fieldGroupClassName: 'row',
          fieldGroup: [
              {
                  key: 'accPeople',
                  templateOptions: { translate: true, label: 'caseFile.accordionPeople' },
                  fieldGroupClassName: 'row',
                  fieldGroup: [
                      {
                          className: 'col-sm-6 form-group',
                          key: 'personAssoc',
                          type: 'input',
                          templateOptions: {
                              translate: true,
                              label: 'caseFile.personType',
                              placeholder: 'caseFile.placeholderPersonType',
                          },
                      },
                  ],
              },
          ],
}

accordion-field html
<ngb-accordion>
    <ng-container #fieldComponent> </ng-container>
    <ng-container *ngFor="let tab of field.fieldGroup; let index = index; let last = last">
        <ngb-panel title="{{ tab.templateOptions.label }}" id="ngb-panel-{{ index }}">
            <ng-template ngbPanelContent> <formly-field [field]="tab"></formly-field> </ng-template>
        </ngb-panel>
    </ng-container>
</ngb-accordion>

@Bukic please fill a new issue with a reproduction stackblitz example.
Thanks!

@aitboudad  here is link to the new issue i created:
https://github.com/ngx-formly/ngx-formly/issues/2214

authors: AhmedBHameed Bukic HangLoop aitboudad fschell johannesjo sudharsan203

repo: ngx-formly/ngx-formly


text:
One field dependant on another how to write schema for the same

I'm submitting a ...  (check one with "x")
[ ] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request
[x] Query

Hello All,
If I want to validate one field dependent on another filed's value how can I achieve this. example
1st field:
type: number
2nd field:
type: number
Expectation:
Value of first filed should be greater than second filed
Here is the schema created:
"inputSchema": [
{
"label": "Calendar",
"fields": [
{
"wrappers": [
"panel"
],
"templateOptions": {
"label": "Calendar"
},
"fieldGroup": [
{
"key": "from-year",
"type": "input",
"defaultValue": 1990,
"templateOptions": {
"label": "From Year",
"description": "First value in year dropdown"
}
},
{
"key": "through-year",
"type": "input",
"defaultValue": 2018,
"templateOptions": {
"label": "Through Year",
"description": "Last value in year dropdown"
}
},
{
"key": "future-date",
"type": "checkbox",
"defaultValue": true,
"templateOptions": {
"label": "Enable future date"
}
},
{
"key": "message",
"type": "input",
"templateOptions": {
"label": "Message",
"description": "Message to be displayed at the bottom of calendar"
}
}
]
}
]
}
]

see https://ngx-formly.github.io/ngx-formly/examples/validation/matching-two-fields

Thanks @aitboudad  I am using the JSON powered mechanism to achieve this but expression inside validators object is not recognized in json file. How can I achieve this in schema created in json file

define a custom validation through NgModule declaration see the following example https://stackblitz.com/edit/angular-n6foes

authors: LalitKushwah aitboudad


text:
Showing validation errors on init

Question
Hi.
Thanks for the great lib which allows me to create Forms from JSON Schema :-).
I have one question.
Is it possible to show form errors when form is initialized?
i.e.
When input field has "minLength" set and it is initialy empty then field is not marked as "not valid"
I would like to know if there is an option which after enabling would show errors (or mark field as "not valid") upon form init
(Here's the link the starter which has "minLengh: 4" added to input field: https://stackblitz.com/edit/ngx-formly-ui-bootstrap-rxrpwh)
Also i noticed that the first validation runs on 1st blur, so when i start typing it is still not marked as "not valid"
If I click again the input field after "blur" then validation is executed on every keystroke.
It seems that validation is enabled only on 1st blur.
Thanks
Tomasz Kasowicz

see https://formly.dev/examples/validation/force-show-error

authors: TomaszKasowicz aitboudad


text:
form.value and model not in sync

Description
The model and form.value are getting out of sync.
Minimal Reproduction
https://stackblitz.com/edit/ngx-formly-ui-material-querybuilder-jtjbwe?file=app%2Fapp.component.ts
Press right/upper "-" to remove the ruleset around "field1"
The model and form.value are not in sync.
In my personal application with a specific ruleset, and after deleting rulesets (always the most upper one) and adding rules, the old rulesets start bleeding through (also in the model).
** Question **
When an element of a FieldArrayType is deleted, will all FieldTypes and further FieldArrayTypes be recursively deleted?

it is in sync, overridden internal Formly methods could produce such effect.

authors: FritzHerbers aitboudad


text:
How to add custom function buttons, such as Mosaic function

Summary
A clear and concise description of what the question is.
Screenshots
If applicable, add screenshots to help explain your question.
Version
Write the version of the imageEditor you are currently using.
Additional context
Add any other context about the problem here.

@malinxiaM
The feature of adding custom features is not yet in the image-editor.
I'll consider it.


text:
feat(passwordless-sms): support for templates for the sms message

close #196

@plmercereau can you check this one as well?

@plmercereau I have merged your updated here, so let me know if there's something else I can help to get this rolling

This PR tries to do too much IMO.

Adding SMS templates 👍
Changing default values for env vars
Adding env var(s) with no direct association with SMS templates.

I think this PR should only do 1. SMS templates and revert all other unrelated changes.

That's why I reuse the current email templating implementation and introduce SMS templates. The only break change I have introduced was the APP_NAME which we found a workaround for and was applied here https://github.com/nhost/hasura-auth/pull/210/commits/346a5106f3fe9f4b7e8e0954c3647897387c0b3b.  @plmercereau introduce a lot new adjustments for unifying of the templates in https://github.com/dodi-smart/hasura-auth/pull/2
Shall I open new PR and apply just SMS templates?

source: gharchive/pull-request

repo: nhost/hasura-auth


text:
🛑 Auth is down

In 76b8feb, Auth ($AUTH_URL) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Auth is back up in 1c5ebc1 after 6 minutes.

repo: nhs-work/test-upptime


text:
Improvements to Azure resource management

Currently, all the service manual development resources are contained under the prototype-kit resource group, this is bad practice as resources should be held under their own resource group.
Development

[x] Create service manual resource group
[x] Create service manual web app
[x] Update service manual pipeline with new web app
[x] Update review environments
[x] Add user testing environment

staging

[x] Create service manual resource group
[x] Create service manual web app
[x] Update service manual pipeline with new web app

Check that the production environment is following correct resource naming conventions and standards
Delete all misplaced resources once the process is complete.
Update documentation references with the new placement of resources.

Work complete, Development and staging now in the correct subscriptions with the correct naming conventions and resources. All the old resources that were incorrect have been removed.

repo: nhsuk/nhsuk-service-manual


text:
change of parameter name to optionString

Changing parameter name to optionString
Built locally

change of parameter name to optionString for 'GetSFPSessionAccessEnabled'

repo: ni/grpc-device


text:
Nimble combobox doesn't scroll down to the selected option

🐛 Bug Report
When using the nimble combobox component with autocomplete="inline" option, if the dropdown doesn't fit on the screen, when typing a value, the option is selected, but it doesn't scroll down such that the user can see that the option is selected.
💻 Repro or Code Sample
<nimble-combobox
    formControlName="..."
    placeholder="Select or enter workspace"
    autocomplete="inline"
    error-text="text"
    [error-visible]="!valid">
...
</nimble-combobox>

🤔 Expected Behavior
The component should scroll down to the selected value if it is not visible on the screen.
😯 Current Behavior

💁 Possible Solution

🔦 Context

🌍 Your Environment

OS & Device: [e.g. MacOS, iOS, Windows, Linux] on [iPhone 7, PC]
Browser [e.g. Microsoft Edge, Google Chrome, Apple Safari, Mozilla FireFox]
Version [e.g. 1.8.0]

This is, indeed, an issue in FAST. While I think we can go ahead with a solution in Nimble, I've still created an issue in FAST.

repo: ni/nimble


text:
Minor Webshop issues

Version:  2.30
Have some small webshop issues to report. I have the site up if needed.
Not urgent, just wanted to get them documented somewhere.

RESOLVED Have the option to not show sealed product, but the link for sealed product shows when in the "Needed" page. (Also just found it shows on the My Account page)

RESOLVED In the "My Account" page under My Orders the Status header is misspelled to statut.

When using the search bar at the top of the page pressing Enter just reloads the page instead of submitting the search. Pressing the magnifying glass makes if function properly.

RESOLVED Opening the Top Product selector and closing it without selecting a card causes a new card with an index of -1 to be saved to the mtgcompanion-conf.xml file. This causes most of the GUI to crash with a NullPointerException as the stock returns null. Can be manually resolved by editing the xml to remove that entry.

RESOLVED This is more of an enhancement request and very very minor. The "Searched Product" header is a little misleading and doesn't really convey the meaning intended (I think). Something like Needed Cards/Product may be more clear.

NOT AN ISSUE Not sure if anything can be done, but the page load is really slow with a large collection (I have 6500 items in the selling library). Optimization is likely far off and that is fine. I just wanted to mention that. It also could be related to the network setup I have (hosting from a desktop through a home router so not designed for that kind of traffic). DISREGARD. I checked resource monitor and the Json requests are only taking about a second, but it is maxing out my other resources. This is with my device.

point 2. is fixed

Poinnt 1. is fixed

Point 5. is fixed

Point 6. "updated"... results are stored in cache.. but i optimized the query for one call instead of two.

@bewarellamas  can you pull latest commit and let me know ? ( i added some function on the shop like prices range and sort)

I pulled it down and it looks like it is working. I will test it more when I have time.  I will keep the website up if needed for testing
http://fridgewire.com

ok thanks. it's still too long ( Btw, you should up the Cache Time in Json Server to >1 min)

Changed the settings you suggested and it is actually MUCH faster. Thank you. Also tested my last point and that seems to be working. Closing these issues.


text:
BadHTTPResponse 502

Been running the bot for a long time now, and today the bot stopped answering.
I have not modified the code in while. All I get is the error message below when the boot tries to pull new messages. I have testet on 2 diffrents servers and made sure im running the latest version of telepot. Any help?
 Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/telepot/__init__.py", line 348, in get_from_telegram_server result = self.getUpdates(offset=offset, timeout=timeout) File "/usr/local/lib/python2.7/dist-packages/telepot/__init__.py", line 273, in getUpdates return self._parse(r) File "/usr/local/lib/python2.7/dist-packages/telepot/__init__.py", line 166, in _parse raise BadHTTPResponse(response.status_code, response.text) BadHTTPResponse: (502, u'\r\n<title>502 Bad Gateway</title>\r\n\r\n
502 Bad Gateway
\r\n
nginx/1.6.2\r\n\r\n\r\n')

It looks like a problem in the telegram API, not a issue at your side or your code.

It looks like Telegram servers were down when you noticed this problem.
Next time, you may open a browser window to check:
https://api.telegram.org/bot<token>/getMe

or
https://api.telegram.org/bot<token>/getUpdates

If you still get the same error, you can be pretty sure Telegram servers are the culprit.

Thanks for the feedback, this seems to been the case. I will remember that the next time :)

authors: nickoala nockstarr ravxl

repo: nickoala/telepot

license: mit

license_source: bigquery


text:
Add attribute "expand-on-click" to  to be able to expand a …

…branch when we click on it

Couldn't this be achieved by just expanding the branch from the on-select handler passed into the directive?

authors: daerogami theMonarK


text:
[Champ-Animation] Garen

Animations

[ ]  Create animations for Q
[ ]  Create animations for W
[ ]  Create animations for E
[ ]  Create animations for R

Controller

[ ]  Create animation controller

I have Created Animation for His R
GarenR (1).txt

authors: nicolasdeory randycarrero

repo: nicolasdeory/leagueoflegends-led


text:
Exclusions not working with simple html table as input for pivotUI function

Hi Nicolas.
Exclusions parameter is working with the fully_loaded example but it is not working for me in the simple_ui_from_table example. I am using it in the pivotUI function. This seems to be happening when I am using an html table as the input for the function. Is there any solution for this issue?

You'll have to make sure that the values in the exclusions exactly match the values of your table cells including whitespace and markup... If you're still having problems, can you post a URL where I can see the issue in action?

Thanks a ton! I had not included the complete markup. Resolved my issue. Although, I have another question. Currently I am getting an attribute that has some 20 values, and I need to filter that attribute with just 1 value before I load the pivot. Is there any better way to do that besides the exclusions parameter? As of now I am excluding the other 19 odd values.
I would like to add that this is an absolutely fantastic plugin. Amazing work!

Thanks!
If you don't mind your user not having controls over the exclusions you can use the filter parameter (which is a function) instead to prevent certain rows from being included in the input...

On Feb 16, 2015, at 12:16, abanaik notifications@github.com wrote:
Thanks a ton! I had not included the complete markup. Resolved my issue. Although, I have another question. Currently I am getting an attribute that has some 20 values, and I need to filter that attribute with just 1 value before I load the pivot. Is there any better way to do that besides the exclusions parameter? As of now I am excluding the other 19 odd values.
I would like to add that this is an absolutely fantastic plugin. Amazing work!
—
Reply to this email directly or view it on GitHub.

Filters won't do as i need the user to have that control. Anyway exclusions accomplishes my task. Thanks!

authors: abanaik nicolaskruchten

repo: nicolaskruchten/pivottable


text:
Update readme

Replaced "np." with "nj."

thanks @jordanhart :+1:

authors: jordanhart nicolaspanel

repo: nicolaspanel/numjs


text:
Memory leak?

I use your great library for live visualization of the state machines driving a Pac-Man game implementation (https://github.com/armin-reichert/pacman).
There is an integrated dashboard showing 4 state machine graphs (PNGs) at the same time and each state machine image is updated 5 times/sec. After several minutes I get OutOfMemory errors from the Javascript engine. I use 20_000_000 as Graphviz memory in my call to render the graph:
BufferedImage png = Graphviz.fromString(data.getGraph()).totalMemory(GRAPHVIZ_MEMORY).scale(scaling)	.render(Format.PNG).toImage();
Isn't this a useful value or is there a known memory leak?

That's probably not the most common use case, but interesting. looks like a leak, i'll see what i can do.

Thank you for answering. Today I switched to the V8 JS engine but after some runnung time the error still occurs:
`Exception in thread "AWT-EventQueue-0" guru.nidi.graphviz.engine.GraphvizException: Got Error: 'TypeError: Module.print is not a function'. This is probably an out of memory error. Try using the totalMemory method.
at guru.nidi.graphviz.engine.ResultHandler.waitFor(ResultHandler.java:42)
at guru.nidi.graphviz.engine.V8JavascriptEngine.execute(V8JavascriptEngine.java:56)
at guru.nidi.graphviz.engine.AbstractJavascriptEngine.executeJavascript(AbstractJavascriptEngine.java:28)
at guru.nidi.graphviz.engine.AbstractJsGraphvizEngine.jsVizExec(AbstractJsGraphvizEngine.java:105)
at guru.nidi.graphviz.engine.AbstractJsGraphvizEngine.execute(AbstractJsGraphvizEngine.java:96)
at guru.nidi.graphviz.engine.Graphviz.doExecute(Graphviz.java:312)
at guru.nidi.graphviz.engine.Graphviz.execute(Graphviz.java:292)
at guru.nidi.graphviz.engine.Renderer.execute(Renderer.java:139)
at guru.nidi.graphviz.engine.Renderer.toImage(Renderer.java:110)
at de.amr.games.pacman.view.dashboard.fsm.FsmGraphView.update(FsmGraphView.java:81)
at de.amr.games.pacman.view.dashboard.fsm.FsmDashboard.update(FsmDashboard.java:125)
at de.amr.games.pacman.view.dashboard.fsm.FsmView.update(FsmView.java:162)
at de.amr.easy.game.ui.f2dialog.core.F2DialogImpl.update(F2DialogImpl.java:140)
I will change my application to count the number of images rendered until the error occurs to get some numbers.


text:
Tab "GENERAL", "SENSORS", "CODES", "ACTIONS" isn't clickable

Hi all,
The very top tab where you can switch to sensors, codes and actions did not do anything for me. All I could see is 1 line: GENERAL SENSORS CODES ACTIONS.
I'm using Chrome browser on a Macbook. I have restarted the pi and HA but it doesn't help :(

Fixed when adding
type: alarm-panel
entity: alarm_control_panel.alarmo
to the config.yaml
Thank you

repo: nielsfaber/alarmo


text:
早上好！上班第一件事竟然是...

催更！催更！催更！搞快点！

刚创了个qq群: 686383293

authors: Vir-cn nifanfa

repo: nifanfa/MOOS

license: Unlicense


text:
3.10 pull request 2

notebooks now use new menu

This branch has conflicts that must be resolved
Use the web editor or the  to resolve conflicts.
Conflicting files
_includes/nav/csp_units/csp_unit3_p2_fundamentals.html


text:
a proposed fix to the strokeCap issue number #44

As I have mentioned that I was facing an issue with the strokeCap={'round'} prop, I was able to figure out what the issue might be, and I decided to push a PR for the proposed fix. NB: this is happening on "version": "1.1.2".
This is related to issue number #44

I think this will break this use case:

After applying your changes I see this:

You also have merge conflicts as I just merged https://github.com/nihgwu/react-native-pie/pull/40 which ran prettier on the Pie.js file.

@SiyabongaNzulwana ready for review again?

@zgordon01 Yes, its ready...

This same line is currently causing our app to crash because the is no const before the variable name. Would you consider updating this, and then @nihgwu can we get this merged in?
My guess is this repo is abandoned at this point, but hopeful!

@CarolynWebster Sorry I don't use RN for years, but if you can confirm this PR works, I'll update your propose directly and merge it

authors: CarolynWebster SiyabongaNzulwana nihgwu zgordon01

repo: nihgwu/react-native-pie


text:
[Temporary Fix] Draw the cursor on mesh plane when deform

https://github.com/Inochi2D/inochi-creator/issues/188
When in deformation mode, if the mesh has been rotated along the x and y axes, the cursor position may not align as expected. Here is a temporary fix to make the cursor visible.
Upstream PR: null

Thank you for the commit.
I consulted with ChatGPT for a while, and created fix for root cause.
Will commit after merged this branch.

@seagetch Would you mind submitting a complete fix with this work to Inochi Creator? I'm currently organizing some of the PRs I've completed and sending them upstream.
I'll probably just send the temporary fix.

There is another PR that contains the fix
https://github.com/nijigenerate/nijigenerate/pull/30

I'm planning to make some backport patch to inochi creator 0.8.6. Might include my work.

repo: nijigenerate/nijigenerate


text:
Is this a spelling mistake?

In the file _layouts/default.html, line 6, there's a variable 'site.baseur' never saw anywhere else, do you mean 'site.baseurl'?

Yeah, this was a typing error.
Thanks for reporting.

authors: kenmux niklasbuschmann

repo: niklasbuschmann/contrast

license: unlicense


text:
Allow using a deferred as a module's dependeny

Since modules are already built on deferreds it would be awesome to allow the .define() and .require() methods accept deferreds as dependencies in addition to modules. Not sure yet how useful this feature would be, but  since modules are already basically just named deferreds this seems like a natural progression and it's also pretty easily doable.
var windowLoaded = palikka.defer(function (resolve) {
  window.onload = function () {
    resolve(window);
  };
});

palikka
.define('b', {})
.define('a', ['b', windowLoaded], function (b, win) {
  return 'a';
})
.require([windowLoaded, 'a', 'b'], function (win, a, b) {

});

After giving this idea more thought I think this is a good old case of feature creep (got a little carried away after got the big bugs squashed). The code example can be written like this at the moment which is in my opinion efficient enough.
palikka.define('windowLoaded', function() {
  return palikka.defer(function (resolve) {
    window.onload = function () {
      resolve(window);
    };
});

palikka
.define('b', {})
.define('a', ['b', 'windowLoaded'], function (b, win) {
  return 'a';
})
.require(['windowLoaded', 'a', 'b'], function (win, a, b) {

});

repo: niklasramo/palikka


text:
Confused with Steps

I apologize, I'm new with Xcode, and in the process of learning... I'm stuck on this step, and I don't understand this step. How do I add a main plugin class?

Add main plugin class, it should derive from NumiPlugin and contains setup function:

import Numi

class SampleNumiPlugin : NumiPlugin {
  override func setup(module: Numi) {
    NSLog("Plugin loaded")
    // put your plugin code here
  }
}

File -> New -> Swift I think with name of your class.

authors: SethCalkins nikolaeu

repo: nikolaeu/NumiKit


text:
Gringrotts + EssentialsX lowers the TPS to 1.X

Describe the bug
Using EssentialsX together with Gringotts slows down the ticks per second (TPS) to an unplayable level (1.X TPS).
To Reproduce
Steps to reproduce the behavior:

Install EssentialsX & Gringotts onto your server
Start the server
After it shows an error it lowers the TPS from 19.X to 1.X or below. (checkt with /tps)

Expected behavior
To not show an error and slow down the world?
Screenshots
Not a Screenshot but the Error:
[15:17:30] [Craft Scheduler Thread - 17 - Essentials/WARN]: [Essentials] Plugin Essentials v2.20.0-dev+5-d891268 generated an exception while executing task 791
org.gestern.gringotts.GringottsException: java.util.concurrent.TimeoutException
	at org.gestern.gringotts.GringottsAccount.getTimeout(GringottsAccount.java:298) ~[gringotts.jar:?]
	at org.gestern.gringotts.GringottsAccount.getBalance(GringottsAccount.java:80) ~[gringotts.jar:?]
	at org.gestern.gringotts.api.impl.GringottsEco$ValidAccount.balance(GringottsEco.java:552) ~[gringotts.jar:?]
	at org.gestern.gringotts.api.impl.VaultConnector.getBalance(VaultConnector.java:126) ~[gringotts.jar:?]
	at com.earth2me.essentials.economy.layers.VaultLayer.getBalance(VaultLayer.java:27) ~[EssentialsX.jar:?]
	at com.earth2me.essentials.User._getMoney(User.java:590) ~[EssentialsX.jar:?]
	at com.earth2me.essentials.User.getMoney(User.java:568) ~[EssentialsX.jar:?]
	at com.earth2me.essentials.BalanceTopImpl.calculateBalanceTopMap(BalanceTopImpl.java:39) ~[EssentialsX.jar:?]
	at org.bukkit.craftbukkit.v1_18_R2.scheduler.CraftTask.run(CraftTask.java:101) ~[paper-1.18.2.jar:git-Paper-317]
	at org.bukkit.craftbukkit.v1_18_R2.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57) ~[paper-1.18.2.jar:git-Paper-317]
	at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ~[paper-1.18.2.jar:git-Paper-317]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?]
	at java.lang.Thread.run(Thread.java:833) ~[?:?]
Caused by: java.util.concurrent.TimeoutException
	at java.util.concurrent.CompletableFuture.timedGet(CompletableFuture.java:1960) ~[?:?]
	at java.util.concurrent.CompletableFuture.get(CompletableFuture.java:2095) ~[?:?]
	at org.gestern.gringotts.GringottsAccount.getTimeout(GringottsAccount.java:296) ~[gringotts.jar:?]
	... 13 more

Full Log: https://pastebin.com/w0qx2ksC
Desktop (please complete the following information):

Server Type: PaperMC
Server Version: 1.18.2-317
Gringotts Version: 2.12.2

Additional context
If I uninstall either Gringotts or EssentialsX the problem is solved and the TPS doesn't drop instantly to 5 and then slowly to 1.
I also didn't change any settings plugins, ect. and this just happened.
Also the server isn't overloaded as I checked that several times.
I also already asked at EssentialsX for help and they have the opinion it must be an error with Gringrotts. - The post can be found here

Nevermind.
The problem was a wrong configured NPC...

repo: nikosgram/gringotts


text:
请问用什么工具把webrtc直播源下载MP4视频

老大，
https://www.taoguba.com.cn/weblive/userLiveView/2271
Fiddler 抓包得到下面的地址：
str_stream_url=webrtc://tpull.taoguba.com.cn/live/6130889A2271_TD1080?txSecret=ae4ee4e84634da85d19d5a50bad97935&txTime=65201ECD
请问用什么工具把webrtc直播源下载MP4视频

目前不支持

谢谢老大，但请问你知道用什么工具能下载吗？


text:
hi！I'm having some issues with this plugin

I'm using motionbuilder2023, but I can't link plugins, and when I print in vscdoe and press ctrl enter, motionbuilder2023 doesn't respond at all

Hi,
What happens if you run the command manually, without using the shortcut? Just thinking some other extension you have may already be using Ctrl + Enter.
So try using Ctrl + Shift + P and then search for "MotionBuilder: Execute" (must be in a Python file).
Also, do look through all of the troubleshooting steps on this page:
Failed to connect to MotionBuilder [Troubleshooting]
Cheers,
Nils

I'm very glad to hear from you. I found that when I try to run a lightweight script, the plugin can run. I think it may be my script's problem that it didn't work before. Thanks again for your generous answer.
1040151318
@.***

------------------ 原始邮件 ------------------
发件人:                                                                                "nils-soderman/vscode-motionbuilder-utils"                                                                                @.>;
发送时间: 2022年12月8日(星期四) 凌晨4:13
@.>;
@.@.>;
主题: Re: [nils-soderman/vscode-motionbuilder-utils] hi！I'm having some issues with this plugin (Issue #4)
Hi,
What happens if you run the command manually, without using the shortcut? Just thinking some other extension you have may already be using Ctrl + Enter.
So try using Ctrl + Shift + P and then search for "MotionBuilder: Execute" (must be in a Python file).
Also, do look through all of the troubleshooting steps on this page:
Failed to connect to MotionBuilder [Troubleshooting]
Cheers,
Nils
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>

Glad to hear it's working, do let me know if you run into any other issues while using this!

authors: idjjk nils-soderman


text:
Fix this package in install space

Hey, I'm trying to run this package from an install space, but that was not implemented yet.
I've marked all scripts to be installed and cleaned up the CMakeLists.txt a bit. I did this by removing all cpp related code because this package is python only.

Looking good, thanks!

authors: Rayman nilsbore


text:
passing variables (including an element of a vector) as second arg to getParam gives unhelpful error message

Here's a user's code where they were trying to parameterize usage of getParam. They're trying to use positional value as the second arg, but even if trying to use a vector of strings, the issue still occurs. It's occurring because we are creating new setup code and eval'ing it in the context of the an environment in which i is not defined/meaningful.
We should give a better error message. But we might also want to think more about what the user is trying to do.
N <- 1000 # number of observations
num.X = 10 # number of predictors
beta0 <- 1  # intercept
sigma <- rexp(1) # prior variance
beta1 <- rnorm(num.X, 0, sigma) # slopes
X <- matrix(rnorm(n=N*num.X),ncol = num.X)  # standard normal predictors
eta <- beta0 + X%*%beta1 # linear  predictor
lambda <- exp(eta)  # link function
set.seed(1);y <- rpois(n=N, lambda=lambda) # generate data

#################################
########### BUGS code ###########
#################################

pois.glm <- nimbleCode({
  ## Likelihood
    for(i in 1:N){
      y[i] ~ dpois(lambda[i])
      log(lambda[i]) <- eta[i]
      eta[i] <- inprod(beta[1:k],X[i,])
    }
    for(l in 1:k){
      beta[l] ~ dnorm(0,1)
    }
})

#################################
############ sampler ############
#################################

test_sampler <- nimbleFunction(
  contains = sampler_BASE,
  name = 'test_sampler',
  setup = function(model, mvSaved, target, control) {
    targetAsScalar <- model$expandNodeNames(target, returnScalarComponents = T)
    priorParID <- integer(length(targetAsScalar))
    for(i in 1:length(targetAsScalar)){
      priorParID[i] <- which(names(getDistributionInfo(model$getDistribution(targetAsScalar[i]))$paramIDs)%in%c("var","cov"))
    }
    priorCov <- double(length(targetAsScalar))
  },
  run = function(){
      for(i in 1:length(targetAsScalar)){
          priorCov[i] <- model$getParam(targetAsScalar[i], priorParID[i])
          print(priorCov[i])
      }

    copy(from = model, to = mvSaved, row = 1,
         nodes = target, logProb = TRUE)
  },
method = list(reset = function () {}))

#################################
############# fit it ############
#################################

dat <- list(X=cbind(1,X),
            y=y)
const <- list(
  N=N,
  k = num.X+1)
# construct model object
model <- nimbleModel(pois.glm, const, dat, buildDerivs = T)
mod <- nimble::compileNimble(model)
# briefly test sampler
#test_sampler(model,model,"beta")$priorParID # works
test_sampler(model,model,"beta")$run() # works

# assign sampler
nimbleMCMCconf <- configureMCMC(mod, monitors = "beta", print = FALSE)
nimbleMCMCconf$removeSamplers()
nimbleMCMCconf$addSampler("beta",type="test_sampler", print = T)
nimbleMCMCb <- buildMCMC(nimbleMCMCconf)
nimbleMCMCc <- compileNimble(nimbleMCMCb, project = mod) # eek: getParam throws error

Error in eval(newSetupCodeOneExpr, envir = instance) :
  object 'i' not found

This is occurring in nfProcessing$evalNewSetupLinesOneInstance.
Perhaps more concerningly, we also have a scoping problem here. If one sets i in the global env, then the eval will use it.
I'm adding a check in the getParam keyword processor to make sure that all vars in the param expression are found in the nfProc symbol table.
One note is the uncompiled execution will still look for i (in the example) in run and then outside of the nimbleFunction if not otherwise found.

Confusingly I named the branch fix_1144.

Trapped in PR #1370

repo: nimble-dev/nimble


text:
use of HOME/.R/Makevars only affects nimble.so compilation not libnimble.so

per an email conversation, putting CXX=clang++ or CPPFLAGS=-std=c++98 -pedantic affects the compilation of nimble.cpp to nimble.o but not the compilation steps that produce libnimble.so.

I’m not sure there’s an issue here.  I thought the purpose of using those flags was to recreate any CRAN warnings for our testing purposes, but not necessarily to use them in distribution.  The *.cpp is copied from CppCode to src, so libnimble.so and nimble.a are using the same source code (except the small nimble.cpp itself), so I think any -Wpedantic warnings could be caught in one of those two compilations but don’t need both.  If we want to do it for libnimble.so we can control that in CppCode: GNUmakefile and Makevars as needed.

On Aug 14, 2016, at 9:48 PM, Christopher Paciorek notifications@github.com wrote:
per an email conversation, putting CXX=clang++ or CPPFLAGS=-std=c++98 -pedantic affects the compilation of nimble.cpp to nimble.o but not the compilation steps that produce libnimble.so.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub https://github.com/nimble-dev/nimble/issues/217, or mute the thread https://github.com/notifications/unsubscribe-auth/AHpCMeZEaUbNlWkMPj7R29tCzdBiJ965ks5qf--LgaJpZM4JkHE1.

I am closing this because either it was a non-issue or we need a refresh on what the issue really is.

authors: paciorek perrydv


text:
🛑 Nimbus9 Marketing Site is down

In 5ad5f69, Nimbus9 Marketing Site (https://nimbusnine.co) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Nimbus9 Marketing Site is back up in d9f0009 after 15 minutes.


text:
add transparency to context menus

before:

after:

also fix color of the icon and text as you can see

repo: nimsandu/spicetify-bloom


text:
Explore how to represent BV::ugt, BV::lt as bitvector AST in Z3

Right now, there's a type mismatch when attempting to construct bitvector expressions which do gt or lt.

One starting point to this might be using z3::ast::Dynamic (see here), and/or somehow converting booleans to bitvectors.

Or, z3::Bool::ite?
Greater than can expand to something like (ite (gt a b) ONE ZERO).

Greater than can expand to something like (ite (gt a b) ONE ZERO).

If you want to treat your 1-bit bit vectors as bools, then what you are suggesting is the same approach that I have been using: https://github.com/cucapra/patronus/blob/ede6dae2f606acf75784b8354258359e18250626/src/smt/serialize.rs#L296
The inverse (if you would like to use a 1-bit bit vector as the condition to an ITE) would be:
https://github.com/cucapra/patronus/blob/ede6dae2f606acf75784b8354258359e18250626/src/smt/serialize.rs#L305
Hope this helps!

Sorry for the late response! Yep -- I ended up doing an approach very similar to what you promosed @ekiwi . Thanks for the suggestion! :)

authors: ekiwi ninehusky

repo: ninehusky/chompy


text:
Prepare initial translation system

Overview
Prepare necessary code / engine and translation files to support game texts in seven language:

English (default language and base for all translations)
Polish
German
Spanish
French
Ukrainian
Silesian

Narrative

As a player
I want to see game in my local language
To be more convinced into purchasing paid version in future

Acceptance Criteria

Given that a game is started
When I select some language
And and that language is not English (not Latin character set)
Then I see all in-game texts translated
And all the language-specific characters are correctly displayed

Details
All translations will be provided by @trejder or @BeataTrej. Some of them will be:

manually translated (Polish, English),
auto-translated (Google Translate, Sillin Translatōr) and corrected by a person speaking in that language (French, Spanish)
auto-translated and left as is, as we don't know nobody speaking in that language (Ukrainian, Silesian)*

Note: A lot of people speaks Silesian. But we need a professional translation, i.e. with usage of correct diacritics (see below).
Languages and characters set
Please, double check that game supports all languages and are national-specific characters in that languages correctly.
The Latin alphabet
(for reference)
a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, w, v, x, y, z
A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, W, V, X, Y, Z
Link to Wikipedia: Latin script
The Polish alphabet
(specific characters only + entire Latin)
ą, ć, ę, ł, ń, ó, ś, ż, ź
Ą, Ć, Ę, Ł, Ń, Ó, Ś, Ż, Ź
Link to Wikipedia: Polish language
German alphabet
(specific characters only + entire Latin)
ä, ß, ö, ü
Ä, ẞ, Ö, Ü
Link to Wikipedia: German alphabet
The Spanish alphabet
(specific character sonly + entire Latin)
¿, ¡, á, é, í, ó, ú, ñ
¿, ¡, Á, É, Í, Ó, Ú, Ñ
Link to Wikipedia: Spanish orthography
The French alphabet
(specific characters only + entire Latin)
à, â, æ, ç, é, è, ê, ë, î, ï, ô, œ, ù, û, ü, ÿ
À, Â, Æ, Ç, É, È, Ê, Ë, Î, Ï, Ô, Œ, Ù, Û, Ü, Ÿ
Link to Wikipedia: French orthography
The Silesian alphabet
(specific characters only + entire Polish + entire Latin)
ã, ẽ, ŏ, ō, ô, õ, ů
Ã, Ẽ, Ŏ, Ō, Ô, Õ, Ů
Link to Wikipedia: Silesian language
The Ukrainian alphabet
(Cyrylic)
а, б, в, г, ґ, д, е, є, ж, з, и, і, ї, й, к, л, м, н, о, п, р, с, т, у, ф, х, ц, ч, ш, щ, ь, ю, я, '
А, Б, В, Г, Ґ, Д, Е, Є, Ж, З, И, І, Ї, Й, К, Л, М, Н, О, П, Р, С, Т, У, Ф, Х, Ц, Ч, Ш, Щ, Ь, Ю, Я, '
Link to Wikipedia: Ukrainian alphabet
All required characters
(for testing purposes)
ąćęłńóśżźĄĆĘŁŃÓŚŻŹäßöüÄẞÖÜ¿¡áéíóúñ¿¡ÁÉÍÓÚÑ
àâæçéèêëîïôœùûüÿÀÂÆÇÉÈÊËÎÏÔŒÙÛÜŸãẽŏōôõůÃẼŎŌÔÕŮ
абвгґдеєжзиіїйклмнопрстуфхцчшщьюяАБВГҐДЕЄЖЗИІЇЙКЛМНОПРСТУФХЦЧШЩЬЮЯ'
abcdefghijklmnopqrstuwvxyzABCDEFGHIJKLMNOPQRSTUWVXYZ

All the tests and checks should be preformed using both in-game font (#22) and the standard, default mobile app font.

@MadejaMaciej Please, provide some technical details on how to perform translations -- here or in the email.
I will put it into our Wiki and only then we will close this ticket, OK?

@mrfatguy The best would be to just provide a file with every possible string and it's translation (and with a place, where this string is displayed). Then I can move it over without any problems.
I'll open new ticket for creating that file, with a name "Create file with every possible in game string and it's translation" so we can close this one.

authors: MadejaMaciej mrfatguy


text:
reverse a string

basic program to reverse a string. pls merge the PR.

This is too basic @shubhangi-dwivedi. Try another one.


text:
Add concepts/networking

First revision of the networking concepts documentation page.
As I am very bad at getting creative for visually appealing wiki pages, I am looking for your input.
I kept the gateway functionality out for now, as it is not merged into develop/main yet, but Giovanni and I are getting to it.
Will keep it as a draft, in order to finalise it after feedback and adding the gateway documentation as well.

@smnzlnsk what's the timeline on this?

authors: nitindermohan smnzlnsk

repo: nitindermohan/oak-new-docs


text:
how can I get the dataset?

Download the [resources folder]  点击显示没有权限，是怎么回事呢？可以提供下数据集么，万分感谢！

Download the [resources folder] ，I click that but  show no permission, what's going on? Can you provide the data set, thank you very much!

repo: nitishgupta/neural-el


text:
Added VmSlice class, a slice in the virtual address space.

Problem
Add a new VmSlice class, to support slices that are in VM-space. This is needed for keys (or anything else) that are implemented as slices-of-slices. The "inner" slice is in VM-space, but the existing code treats it as if it were a physical address by using a "real" Rust slice for it. This works okay as long as the Agave code is compiled with 64-bit addresses, which matches the 64-bit VM address space. However, if the code is built in 32 bits, interpreted programs can fail with bad memory accesses.
Summary of Changes
Addition of VmSlice class: a virtual-space slice.
Fixes #

Wondering if I should add back Iter (etc), even if we don't currently require it, since this is a slice class and should really have it for completeness.

repo: nitro-svm/agave


text:
Tweak User Settings

Is there any way built into the flake to add configuration settings for VSCode? I tried to unsuccessfully find parameters for it.
These are the current config options that I use in my Home Manager VSCode config: https://github.com/heywoodlh/nixos-configs/blob/master/roles/home-manager/desktop.nix#L27-L58
I'd love to be able to use those types of configs with this flake.
I suspect it shouldn't be too difficult to add a config file, but before trying to come up with a solution myself, I thought I would ask, as it seems like something that could be already supported.
(Also, thanks to all involved for such a great flake!)

This flake focuses on providing extensions.
If you meant settings.json, I usually generate them for each project.
See
https://github.com/nix-community/nix-vscode-extensions/blob/0d4b7e78fd260e1665e0b17f8382f7d704385f97/nix-dev/flake.nix#L46
It comes from
https://github.com/deemp/flakes/blob/53d1b8858665e7b259ec57166cdeaa16b03a5e46/codium/flake.nix#L42

Not sure if that was a solution to your problem. Feel free to reopen this issue if no

authors: deemp heywoodlh

repo: nix-community/nix-vscode-extensions


text:
Rethinking the interface for fork

I was writing a shell as an example for nix, and I realised that #555 makes a really good point: the code that runs in the child after fork(2) must not allocate if there is more than one thread. I don't know if fork should necessarily be made unsafe, but certainly we need to document better what is ok to do afterwards.
This is somewhat related to #90 in that there's an execution context where only limited operations should be performed. Ideally nix would force only correct usage, but at the same time there's a lot of value of staying close to the libc definitions of functions. (#190 seems connected here too.)

Also see http://www.linuxprogrammingblog.com/threads-and-fork-think-twice-before-using-them
And the man page says:
After a fork() in a multithreaded program, the child can safely
call only async-signal-safe functions (see signal-safety(7)) until
such time as it calls execve(2).

This makes it sound like fork really really should be made unsafe: Spawning threads and calling non-signal-safe function is possible in safe Rust, therefore there must not be a safe way to do so after a fork. Instead, nix could provide safe utility functions that do common patterns like fork + execve in a safe way.

This has come up in the standard library, too: https://github.com/rust-lang/rust/issues/39575

You're right that fork is unsafe.  But is it unsafe in the Rust sense?  I think we should follow whatever decision rust-lang makes in the issue you linked.

@asomers I read through some of the discussion there. The argument is that UB should be assumed to include memory unsafety by default. Specifically for fork() there are some more reasonings that should make this more likely.

Is there any undefined behavior associated with calling async-signal-unsafe functions after forking?  I can't find any.  fork(2) doesn't mention any undefined behavior.  Instead, it suggests not calling async-signal-unsafe functions in order to prevent deadlocks and the like.

@jonas-schievink @asomers Did this get cleaned resolved with the merging of #695?

I believe the conclusion was that fork is safe but (eg.) allocating afterwards can cause dadlocks, which is still a footgun.
I don't know if a deadlock will always be the worst that can happen. Also, deadlocks will only happen when forking while another thread is allocating memory (or holding another lock), making this an annoying-to-debug race.
To further the issue, std lib functions generally don't document if they allocate or which libc functions they call.
If you don't think it makes sense to provide a safer interface that prevents this, you can probably close this issue.

Update: The conclusion of https://github.com/rust-lang/rust/issues/39575 was that before_exec should have been an unsafe function, and has been deprecated and replaced by an unsafe fn pre_exec. Thus fork should also be considered an unsafe operation.

@jonas-schievink thanks for that update!

authors: Susurrus asomers jonas-schievink kamalmarhubi

repo: nix-rust/nix


text:
156 add timeStyle field for passFieldContent

Title
Add time_style support and validation to FieldContent struct
Type of Change

[x] New feature
[x] Refactoring

Description
This PR introduces a new time_style field to the FieldContent struct, allowing for finer control over the display of time formats. The changes include:

Adding the time_style field to the struct with appropriate validation.
Extending the documentation to describe valid time_style values.
Adding test cases to verify the behavior of the time_style field.
Refactoring date and number style validation to make the codebase more maintainable.

Testing

Added tests to verify that time_style accepts all valid values and raises errors for invalid values.
Ensured backward compatibility by testing cases without time_style.

Impact
The changes primarily affect how time is displayed in the FieldContent struct. No performance or security concerns are expected. The system now offers more flexibility in date-time formatting, which could enhance user experiences in scenarios that require precise time displays.
Additional Information

Reviewers should focus on the new validation logic for time_style to ensure it aligns with the system's design for date-time formatting.
Ensure that the documentation updates correctly describe how to use the new field.

Checklist

[x] My code adheres to the coding and style guidelines of the project.
[x] I have performed a self-review of my own code.
[x] I have commented my code, particularly in hard-to-understand areas.
[x] I have made corresponding changes to the documentation.
[x] My changes generate no new warnings.

closes: #163


text:
mysql driver does not handle composite foreign key "magic indexes"

As of b7bb1df, the mysql driver creates "magic indexes" for single-column foreign keys, to match how MySQL handles foreign keys/indexes.
Once #87 is done, expand this behavior to composite foreign keys by looking for foreignKey elements.

moving this to 1.4.1 milestone to get existing changes out there for mysql users

authors: austinhyde nkiraly

repo: nkiraly/DBSteward


text:
Update dependency jest to v29.4.3

This PR contains the following updates:

Package
Type
Update
Change

jest (source)
devDependencies
minor
29.3.1 -> 29.4.3

@types/jest (source)
devDependencies
minor
29.2.3 -> 29.4.0

Release Notes

facebook/jest
v29.4.3
Compare Source
Features

[expect] Update toThrow() to be able to use error causes (#13606)
[jest-core] allow to use workerIdleMemoryLimit with only 1 worker or runInBand option (#13846)
[jest-message-util] Add support for error causes (#13868 & #13912)
[jest-runtime] Revert import assertions for JSON modules as it's been relegated to Stage 2 (#13911)

Fixes

[@jest/expect-utils] subsetEquality should consider also an object's inherited string keys (#13824)
[jest-mock] Clear mock state when jest.restoreAllMocks() is called (#13867)
[jest-mock] Prevent mockImplementationOnce and mockReturnValueOnce bleeding into withImplementation (#13888)
[jest-mock] Do not restore mocks when jest.resetAllMocks() is called (#13866)

v29.4.2
Compare Source
Features

[@jest/core] Instrument significant lifecycle events with performance.mark() (#13859)

Fixes

[expect, @jest/expect] Provide type of actual as a generic argument to Matchers to allow better-typed extensions (#13848)
[jest-circus] Added explicit mention of test failing because done() is not being called in error message (#13847)
[jest-runtime] Handle CJS re-exports of node core modules from ESM (#13856)
[jest-transform] Downgrade write-file-atomic to v4 (#13853)
[jest-worker] Ignore IPC messages not intended for Jest (#13543)

Chore & Maintenance

[*] make sure to exclude .eslintcache from published module (#13832)
[docs] Cleanup incorrect links in CHANGELOG.md (#13857)

v29.4.1
Compare Source
Features

[expect, jest-circus, @jest/types] Implement numPassingAsserts of testResults to track the number of passing asserts in a test (#13795)
[jest-core] Add newlines to JSON output (#13817)
[@jest/reporters] Automatic log folding in GitHub Actions Reporter (#13626)

Fixes

[@jest/expect-utils] toMatchObject diffs should include Symbol properties (#13810)
[jest-runtime] Handle missing replaceProperty (#13823)
[@jest/types] Add partial support for done callbacks in typings of each (#13756)

v29.4.0
Compare Source
Features

[expect, @jest/expect-utils] Support custom equality testers (#13654)
[jest-config, jest-worker] Use os.availableParallelism if available to calculate number of workers to spawn (#13738)
[@jest/globals, jest-mock] Add jest.replaceProperty() that replaces property value (#13496)
[jest-haste-map] ignore Sapling vcs directories (.sl/) (#13674)
[jest-resolve] Support subpath imports (#13705, #13723, #13777)
[jest-runtime] Add jest.isolateModulesAsync for scoped module initialization of asynchronous functions (#13680)
[jest-runtime] Add jest.isEnvironmentTornDown function (#13741)
[jest-test-result] Added skipped and focused status to FormattedTestResult (#13700)
[jest-transform] Support for asynchronous createTransformer (#13762)

Fixes

[jest-environment-node] Fix non-configurable globals (#13687)
[@jest/expect-utils] toMatchObject should handle Symbol properties (#13639)
[jest-mock] Fix mockReset and resetAllMocks undefined return value(#13692)
[jest-resolve] Add global paths to require.resolve.paths (#13633)
[jest-resolve] Correct node core module detection when using node: specifiers (#13806)
[jest-runtime] Support WASM files that import JS resources (#13608)
[jest-runtime] Use the scriptTransformer cache in jest-runner (#13735)
[jest-runtime] Enforce import assertions when importing JSON in ESM (#12755 & #13805)
[jest-snapshot] Make sure to import babel outside of the sandbox (#13694)
[jest-transform] Ensure the correct configuration is passed to preprocessors specified multiple times in the transform option (#13770)

Chore & Maintenance

[@jest/fake-timers] Update @sinonjs/fake-timers (#13612)
[docs] Improve custom puppeteer example to prevent worker warnings (#13619)

Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.

[ ] If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

Renovate Ignore Notification
As this PR has been closed unmerged, Renovate will now ignore this update (29.4.3). You will still receive a PR once a newer version is released, so if you wish to permanently ignore this dependency, please add it to the ignoreDeps array of your renovate config.
If this PR was closed by mistake or you changed your mind, you can simply rename this PR and you will soon get a fresh replacement PR opened.

repo: nkuik/typescript-project-boilerplate


text:
Opmerkingenveld oude database ontbreekt in nieuwe

Bij het maken van queries om de oude nlcs database na te bootsen werd het opmerkingenveld niet gevonden. Wat is de functie van het opmerkingenveld?

dit was een soort logging van wijzigingen; dat gebeurt nu via GitHub dus het opmerkingenveld wordt6 niet meer bij de data gepubliceerd

repo: nl-digigo/NLCS


text:
Dscs 2471

This request provides method to retrieve work records in session for reporting purpose.

@m-r-c @ninhnguyen @adityaburra @sjacob @weijunnla @nlahuwgeddes, could you please review?

SonarQube analysis reported 7 issues

 AmberSession.java: This file has 1,139 lines, which is greater than 1,000 authorized. Split it into smaller files.
 AmberQuery.java#L350: This block of commented-out lines of code should be removed.
 AmberQuery.java#L364: Refactor this code to not nest more than 3 if/for/while/switch/try statements.
 AmberQuery.java#L376: Refactor this code to not nest more than 3 if/for/while/switch/try statements.
 AmberSession.java#L213: Document this method return value.
 AmberSession.java#L334: Define a constant instead of duplicating this literal "collection" 3 times.
 AmberSession.java#L369: Define a constant instead of duplicating this literal "bibId" 3 times.

Build finished.

SonarQube analysis reported 4 issues

 AmberSession.java: This file has 1,139 lines, which is greater than 1,000 authorized. Split it into smaller files.
 AmberSession.java#L213: Document this method return value.
 AmberSession.java#L334: Define a constant instead of duplicating this literal "collection" 3 times.
 AmberSession.java#L369: Define a constant instead of duplicating this literal "bibId" 3 times.

Build finished.

authors: nlabuilder shuangzhou

repo: nla/amberdb


text:
dlite Process Consumes 99% of CPU

I was not using anything related to Docker when I noticed the fans on my computer start to spin. I checked Activity Monitor and dlite was using 99% CPU (it was allocated 1 CPU).
I was easily able to resolve it by running dlite stop, however I'm not sure how to go about debugging this when it happens again.

if it happens again, ssh in to the dlite vm via ssh docker@local.docker and run top that should show you what process inside the vm is using so much cpu. let me know what you find out. the only time i've seen this happen myself is when i have a docker container go crazy, so if you have something else going on it would be good to track it down and fix it

Will do!

Inside dlite vm:
CPU:  75% usr  20% sys   0% nic   3% idle   0% io   0% irq   0% sirq
Load average: 3.61 1.83 0.97 4/236 821```

CPU load fluctuates up and down. Outside dlite it's preetty consistently 96%-100%.

the list of processes below that status information should show something with a large number under the CPU column, does it?

Nope. There are a few things using 25%, but nothing big.

25% isn't exactly idle, how many things are running that high and what are they?

There are a couple Ruby unicorn workers, but they're not staying at 25%. They're spiking that high. There are snapshots from top with all processes reporting 0% except one reporting 2% (ksoftirqd), while to MacOS dlite is consuming 100%.

if you stop the docker service inside the vm (sudo /etc/init.d/S51docker stop) does the cpu usage go down?

Stopping docker: umount: can't unmount /sys/fs/cgroup/memory: Device or resource busy
umount: can't unmount /sys/fs/cgroup: Device or resource busy
OK

Then CPU usage drops.

sounds like your docker containers are using just enough cpu to keep things spinning. it is kind of strange that the cpu usage numbers don't seem to match up though. can you start docker back up and show me the output of docker info?

I think I've figured it out.  I had a process that was starting and stopping, so top inside the VM wasn't always catching it using up CPU, while Mac Activity Monitor was!

good catch! that makes sense. thanks for letting me know

authors: nlf silvamerica

repo: nlf/dlite


text:
How to check if key existed

Hi to all is there a method to check if the key exist ,
what is the close to
Java JSON

indivFB.has("object_id")

Thanks

Just like for a map: find().

Hi thanks for the reply but im using iterator
any idea why is causing this problem ?

Value of type 'iterator' (aka 'nlohmann::detail::iter_impl<nlohmann::basic_json<std::map, std::vector, std::__1::basic_string, bool, long long, unsigned long long, double, std::allocator, adl_serializer> >') is not contextually convertible to 'bool'

I would need to see a code example for that.

Hi thanks for time,
The problem i face is that sometimes the json result doesnt have the key so im trying to check for the key

When you iterate over an object (which I assume - I have not seen the JSON), doing this with a range for only gives you access to the values, not to the keys. You need to use items() for this.
The exception comes, because you try to assign a number (from ...["total_count"]) to a string (totallike). Try to output ...["total_count"] directly and use a number type for totallike.

Sorry wrong image it should be this

Then use find:
if (json_field_data[p]["reactions"]["summary"].find("total_count") != json_field_data[p]["reactions"]["summary"].end())
   // now you can be sure json_field_data[p]["reactions"]["summary"]["total_count"] exists

Alternatively, you could use value and provide a default value (e.g., 0):
totallike = json_field_data[p]["reactions"]["summary"].value("total_count", 0);

Thanks for the library and the help

In case if we are not sure if the keys before the nested key exist, should we use nested if ? Because in the documentation it's wrote that is an undefined behavior to if the element with key idx accessing by operator[] does not exist.
if (json_field_data[p].find("reactions") != json_field_data[p].end()){
    if(json_field_data[p]["reactions"].find("summary") != json_field_data[p]["reactions"].end()){
        if(json_field_data[p]["reactions"]["summary"].find("total_count") != json_field_data[p]["reactions"]["summary"].end())
    }
}

In case if we are not sure if the keys before the nested key exist, should we use nested if ? Because in the documentation it's wrote that is an undefined behavior to if the element with key idx accessing by operator[] does not exist.
if (json_field_data[p].find("reactions") != json_field_data[p].end()){
    if(json_field_data[p]["reactions"].find("summary") != json_field_data[p]["reactions"].end()){
        if(json_field_data[p]["reactions"]["summary"].find("total_count") != json_field_data[p]["reactions"]["summary"].end())
    }
}

Yes, you need to check for each level. Note there is a contains function that could simplify your code: https://json.nlohmann.me/api/basic_json/contains/
Also note that that JSON Pointer could help you, see https://github.com/nlohmann/json/discussions/2585#discussioncomment-280524

Yes, you need to check for each level. Note there is a contains function that could simplify your code: https://json.nlohmann.me/api/basic_json/contains/
Also note that that JSON Pointer could help you, see https://github.com/nlohmann/json/discussions/2585#discussioncomment-280524

authors: Tudyx leeqicheng nlohmann

repo: nlohmann/json


text:
Confused about iterating through json objects

If I have:
{
  "england": {
    "name": "euro",
    "value": 57.99
  },
  "mexico": {
    "name": "peso",
    "value": 31.99
  },
  "us": {
    "name": "USD",
    "value": 42.99
  }
}

And I want to iterate through each, how would I do so?
My attempt so far has been similar to the following:
std::ifstream input_file( const string file_path );
nlohmann::json currencies_json;
currencies_json << input_file;
input_file.close();

unordered_map <string, currency_class> currencies;
for ( const auto currency_json: currencies_json ) {
    currency_class new_currency;

    new_currency[ "country" ] = ???
    new_currency[ "name" ] = ???
    new_currency[ "value"] = ???

    currencies[ country ] = new_currency;
}

I've tried it a a few ways including - for example - creating a string for new_currency[ "country" ] first and then storing it in it like new_currency[ "country" ] = my_string, but I get errors such as:
no member named 'key' in 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, double, std::allocator>'

or
[....]:1073:20: error: 'm_it' is a private member of 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>,
      bool, long long, double, std::allocator>::const_iterator'
           result.m_it.object_iterator = m_value.object->find(key);
                   ^
[...]:89:32: note: in instantiation of member function 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, double,
      std::allocator>::find' requested here
                const auto iterator = currencies.find("country");
                                             ^
[...]/build/dependencies/json-prefix/src/json/src/json.hpp:3007:96: note: declared private here
        internal_iterator<typename array_t::const_iterator, typename object_t::const_iterator> m_it;

Could you provide some guidance? I'd really appreciate it!

Here is an extended example.

Dear @DanTheColoradan
Thanks for reporting. I'll check your issue once I'm back from holidays (next week).
All the best
Niels

Duplicate of #43 .

Thanks! I'll fix it as soon as possible.

@nlohmann No rush, we have a workaround. Enjoy the holidays :P

Thanks @gnzlbg! And I agree @nlohmann, the workaround is pretty simple so enjoy your vacation :) A new season is upon us.

This issue should have been closed by https://github.com/nlohmann/json/commit/bb2671df11a33006869212a436766736eb4c4204.

All iterators have now member functions key() to retrieve the key for objects and value() to retrieve the value. This should fix the mentioned issue.

Awesome. Thank you!

authors: DanTheColoradan gnzlbg nlohmann


text:
Do not prescreen file types

Why do you attempt to screen what's uploaded? I can imagine that in a scenario where the images are mixed in with lots of other file types, sure, but in the case where I'm passing in a photos folder full of only photos, I'd really like an option to bypass all filetype comparing and just try to upload everything, and if the server fails to take it, make a note that it was uploaded and don't try again.
This would solve prescreening issues like #59 and #65.

I just realized that in my situation, where I’m mounting into docker a directory from my Synology littered with @eaDir metadata directories, this would require some kind of regex filter to exclude paths.

Hi @avidrissman
The idea of prescreening files is to avoid useless calls to the Google Photos API, but in this case, where the user know that only some files are supported, I'll suggest to remove prescreening and deal with API response errors in case of invalid files.
This could connect with #44 in order to avoid files that, for sure, are going to become failed on upload.
What do you think? Should we remove prescreening? Please share your feedback

Instead of removing prescreening why not move the prescreening option to the configuration file (with sensible defaults)? Some sort of "whitelisted extensions or filenames".
That way we would allow anyone to change what is allowed to be uploaded and what should be excluded. We could even have an option that would mean "try to upload anything without exclusions".

I would be in favor of an allowlist/blocklist. Basically, anything that helps me not have to fight to get my stuff uploaded.

@rfgamaral @avidrissman If i've read good, I think these allowlist/blocklist could be implemented as excludePattern and includePattern from #44 Am I right?

Yep; the allow/blocklist from #44 would be great.

I think you can close this :)

This is different than #44.
44 is about having a blocklist/allowlist. This issue is about removing file type screening.

Which is the same thing. If you implement a block/allow list, you are effectively removing the current file type screening.

Sure.

authors: avidrissman pacoorozco rfgamaral

repo: nmrshll/gphotos-uploader-cli


text:
Make $sheet-border-radius tweak-able

Added a missing !default

Hmm, I assumed it would just work but doesn't seem like it.


text:
nm: Do not raise explcitly within the checkpoint context

In case an exception occurs in a contextmanager, python will re-raise
the exception automatically after the exit method is processed.
Raising from within exit is not required in this case.

Coverage increased (+0.04%) to 66.627% when pulling a5c7435e0ba973ad6ca9c04a4c2092fbc301acb4 on EdDev:fix-checkpoint-exception into 784c02d400552f857bec8de3ba3e84c5361573f7 on nmstate:master.

ci test please

authors: EdDev coveralls

repo: nmstate/nmstate


text:
Add code for 9a Packages, Part 1

Add code for 9a Packages, Part 1
Video: https://www.youtube.com/watch?v=lufnfiKaq_A&list=PLCpux10P7KDKPb4eI5b_qSnQaY1ePGKGK&index=25

Done!

repo: nmunro/cl-tutorials


text:
fatal error: 'gCaptcha-Swift.h' file not found #import "gCaptcha-Swift.h"

is there any advice?
error:
/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/g_captcha-1.0.0/ios/Classes/GCaptchaPlugin.m:8:9: fatal error: 'gCaptcha-Swift.h' file not found
#import "gCaptcha-Swift.h"

Any update on this ??

I am also waiting for update.. unable to run ios build.

i found the solution. to fix this error, by changing "gCaptcha" to "g_Captcha" in all files and classes.

( gCaptcha/ios/Classes/GCaptchaPlugin.m and  gCaptcha/ios/Classes/SwiftGCaptchaPlugin.swift )

this helps to build your project in xcode with no error. but you will get error on runtime!

missingpluginexception(no implementation found for method recaptcha on channel com.yuanchongyu.g_captcha)

finally i just give up and decided to use flutter webview to handle google recaptcha:
create an html file and deploy it on server :
`

reCAPTCHA

<script>
</script>

`
then crate a flutter widget to load this page in webview :
`class CaptchaDilogContent extends StatefulWidget {
const CaptchaDilogContent({Key key}) : super(key: key);
@override
_CaptchaDilogContentState createState() => _CaptchaDilogContentState();
}
class _CaptchaDilogContentState extends State {
var isLoading = true;
final Completer _controller =
Completer();
@override
void initState() {
super.initState();
// Enable hybrid composition.
if (Platform.isAndroid) WebView.platform = SurfaceAndroidWebView();
}
@override
Widget build(BuildContext context) {
var url = "https://youdomain/cp.html";
var height = MediaQuery.of(context).size.height * 0.5;
return Container(
height: height,
child: Stack(
children: [
WebView(
initialUrl: url,
javascriptMode: JavascriptMode.unrestricted,
javascriptChannels: Set.from([
JavascriptChannel(
name: 'Captcha',
onMessageReceived: (JavascriptMessage message) {
Navigator.pop(context, message.message);
})
]),
onWebViewCreated: (WebViewController webViewController) {
_controller.complete(webViewController);
},
onPageFinished: (finish) {
setState(() {
isLoading = false;
});
},
),
isLoading
? Center(
child: CircularProgressIndicator(),
)
: Stack(),
],
),
);
}
}
`
and this widget to load a popup dialog:
 Future<String> captchaDialog() async {     String captchaResponse = "";     return (await showDialog(           context: context,           builder: (context) => AlertDialog(             content: CaptchaDilogContent(),           ),         )) ??         captchaResponse;   }
then you can use it like :
var gRecaptchaResponse = await CommonActions(context).captchaDialog();

repo: nnnggel/gCaptcha


text:
설날에 죄송합니다... ㅜㅜ 검색기능 관련하여 질문드립니다.

어제까지는
const neis = require("../neis/neis");   //-> 제 폴더 기준 주소 맞게 설정해뒀어요!
neis.searchSchool('동래').then(d => {
d.forEach(school => {
console.log("학교 명: " +
school.name + "\n학교 코드 : " + school.code +
"\n학교 위치 : " + school.addr + "\n학교 교육청 코드 : " + school.edu +
"\n학교 유형 : " + neis.TYPE[school.kind] + "\n\n"
);
});
});
위 테스트 함수가 잘작동했는데 오늘 함수를 실행하니
(node:1296) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This e
rror originated either by throwing inside of an async function without a catch bl
ock, or by rejecting a promise which was not handled with .catch(). To terminate
the node process on unhandled promise rejection, use the CLI flag `--unhandled-re
jections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mo
de). (rejection id: 2)
(node:1296) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprec
ated. In the future, promise rejections that are not handled will terminate the N
ode.js process with a non-zero exit code.

에러가 발생합니다. 도와주실수있을가요..

제가 실행했을 때는 오류가 발생하지 않습니다.
neis.searchSchool(...).then(...).catch(console.log) 로 바꾸었을 때 콘솔에 나오는 오류를 보여주세요.

searchSchool에서 특정 지역에 대해 검색하는 경우 발생하는 오류를 찾아 고쳤습니다.
5b20e73c39cd7a2d3b4fb0a79b91890be6811d64 (neis@0.5.1) 버전으로 업데이트하신 뒤에도 같은 오류가 발생하면 알려주세요.

감사합니다. 지역정보를 추가하고나서 문제없이 작동합니다!!

authors: nnnlog rnjsrnrdnjs

repo: nnnlog/neis


text:
[ Fix ] Fix android build error with meson @open sesame 07/26 12:11

This commit includes,
. Fix android build issues
: openblas link and download
Self evaluation:

Build test:	 [X]Passed [ ]Failed [ ]Skipped
Run test:	 [X]Passed [ ]Failed [ ]Skipped

Signed-off-by: jijoong.moon jijoong.moon@samsung.com

:memo: TAOS-CI Version: 1.5.20200925. Thank you for submitting PR #1434. Please a submit 1commit/1PR (one commit per one PR) policy to get comments quickly from reviewers. Your PR must pass all verificiation processes of cibot before starting a review process from reviewers. If you are new member to join this project, please read manuals in documentation folder and wiki page. In order to monitor a progress status of your PR in more detail, visit http://nnstreamer.mooo.com/.

:octocat: cibot: @jijoongmoon, A builder checker could not be completed because one of the checkers is not completed. In order to find out a reason, please go to http://nnstreamer.mooo.com/nntrainer/ci/repo-workers/pr-checker/1434-202107261102140.017499923706055-ea70a9d1859d35d0181b02781ecf8238951252b6/.

:octocat: cibot: @jijoongmoon, A builder checker could not be completed because one of the checkers is not completed. In order to find out a reason, please go to http://nnstreamer.mooo.com/nntrainer/ci/repo-workers/pr-checker/1434-202107261211460.966392993927-ea70a9d1859d35d0181b02781ecf8238951252b6/.

:octocat: cibot: @jijoongmoon, A builder checker could not be completed because one of the checkers is not completed. In order to find out a reason, please go to http://nnstreamer.mooo.com/nntrainer/ci/repo-workers/pr-checker/1434-202107261322090.6672990322113-c8d94e15fe770612ff6e4fac902562e96aa6466a/.

authors: jijoongmoon taos-ci

repo: nnstreamer/nntrainer


text:
[optimization] Dynamic training optimization v2

Added dynamic training v2 final code
Self evaluation:

Build test: [x]Passed [ ]Failed [ ]Skipped
Run test: [x]Passed [ ]Failed [ ]Skipped

Signed-off-by: Parichay Kapoor pk.kapoor@samsung.com

:memo: TAOS-CI Version: 1.4.20191203. Thank you for submitting PR #922. Please a submit 1commit/1PR (one commit per one PR) policy to get comments quickly from reviewers. Your PR must pass all verificiation processes of cibot before starting a review process from reviewers. If you are new member to join this project, please read manuals in documentation folder and wiki page. In order to monitor a progress status of your PR in more detail, visit http://nnsuite.mooo.com/.

:octocat: cibot: @kparichay, One of the module of prebuild group is failed. If you want to get a hint to fix this issue, please go to https://github.com/nnstreamer/nntrainer/wiki/.

:octocat: cibot: @kparichay, A builder checker could not be completed because one of the checkers is not completed. In order to find out a reason, please go to http://nnsuite.mooo.com/nntrainer/ci/repo-workers/pr-checker/922-202102011702100.1174430847168-d60669d2b3fd959f3791e39c6bdaff87577940df/.

authors: kparichay taos-ci


text:
🛑 PegaScape Landing is down

In 44ee0d3, PegaScape Landing (https://pegascape.sdsetup.com) was down:

HTTP code: 403
Response time: 52 ms

Resolved: PegaScape Landing is back up in 9fd6558.


text:
Backup Failed no InstanceIDs to process

Trying to get this up and running again.  I had an older version working for quite a while.
I think I have this set up correctly but I keep getting the error
Backup failed; no InstanceIDS to process
Any help?

Not sure I can be a huge help, but I'll try -- when you say you had an older version working - what changed?  Version of this script or on a new machine (or both?)

Sorry - I figured it out.
My instances didn't have BACKUP tag = Yes
Once I added those everything started working again!
Instructions are good.  I just had to be more meticulous when I was setting up.
Thanks Again!  Great tool!

Woo hoo!  Great to hear.

authors: cappat noahlh

repo: noahlh/aws-automated-backup-powershell


text:
How to run the code

I want to run it, and please let me know how to run it. Please give me guidance.

if you want to test code,you can see example in these files


text:
bleno and noble

It's no clear for me if it is possible to use bleno an noble in the SAME TIME

Advertising a iBeacon message with bleno
AND in the SAME TIME
Scanning for BLE device around the device with noble

If not possible is there a workarround ? start / stop advertising to allow scanning by example ?

Should be possible with multiple Bluetooth (USB) adapters and setting env vars as per the read me.

authors: fvisticot sandeepmistry

repo: noble/bleno


text:
Error: No compatible USB Bluetooth 4.0 device found!

OS: Windows 10
Node: 12.13.1
I have three devices from your list of compatible devices, and I get the same error with either devices. I've tried removing, reinstalling, changing drivers, rebooting the machine, etc. No joy.
If you could please offer some suggestions, that would be awesome. Thank you.
CSR8510 A10 | 0x0a12 | 0x0001
Asus BT-400 | 0x0b05 | 0x17cb
Intel Wireless Bluetooth 8265 | 0x8087 | 0x0a2b
Error: No compatible USB Bluetooth 4.0 device found!
    at BluetoothHciSocket.bindUser (C:\Users\Admin\AppData\Roaming\npm\node_modules\@abandonware\bluetooth-hci-socket\lib\usb.js:87:11)
    at BluetoothHciSocket.bindRaw (C:\Users\Admin\AppData\Roaming\npm\node_modules\@abandonware\bluetooth-hci-socket\lib\usb.js:43:8)
    at Hci.init (C:\Users\Admin\AppData\Roaming\npm\node_modules\@abandonware\noble\lib\hci-socket\hci.js:101:35)
    at NobleBindings.init (C:\Users\Admin\AppData\Roaming\npm\node_modules\@abandonware\noble\lib\hci-socket\bindings.js:82:13)
    at Noble.<anonymous> (C:\Users\Admin\AppData\Roaming\npm\node_modules\@abandonware\noble\lib\noble.js:57:24)
    at processTicksAndRejections (internal/process/task_queues.js:75:11)

edit the file \bluetooth-hci-socket\lib\usb.js. then I added usb.findByIds(0x8087, 0x0A2B) on line 66. The parameters were fetched from zadig.exe

repo: noble/node-bluetooth-hci-socket


text:
Transmission error 8

I am using production certificate files (key.pem & cert.epm) even though I'm facing same issue.
Please help me out on this.
Transmission Error 8
{ encoding: 'utf8',
payload:
{ aps:
{ badge: undefined,
sound: undefined,
alert: 'hiiiii',
'url-args': undefined,
category: undefined } },
expiry: 0,
priority: 10,
retryLimit: -1,
device: undefined,
compiled: '{"aps":{"alert":"hiiiii"}}',
truncateAtWordEnd: false,
_alert: 'hiiiii' } Device {
token: <Buffer 22 bc ee d5 fb 89 df 0c d4 fd 02 8c 03 0e 32 12 20 60 c2 3d 37 40 51 98 d8 37 c2 c2 59 ce f4 ab> }
Status: Transmission Error 8 { encoding: 'utf8',
payload:
{ aps:
{ badge: undefined,
sound: undefined,
alert: 'hiiiii',
'url-args': undefined,
category: undefined } },
expiry: 0,
priority: 10,
retryLimit: -1,
device: undefined,
compiled: '{"aps":{"alert":"hiiiii"}}',
truncateAtWordEnd: false,
_alert: 'hiiiii' } Device {
token: <Buffer 22 bc ee d5 fb 89 df 0c d4 fd 02 8c 03 0e 32 12 20 60 c2 3d 37 40 51 98 d8 37 c2 c2 59 ce f4 ab> }
Status: Transmitted
Status: Transmitted
Status: Transmission Error 8 { encoding: 'utf8',
payload:
{ aps:
{ badge: undefined,
sound: undefined,
alert: 'hiiiii',
'url-args': undefined,
category: undefined } },
expiry: 0,
priority: 10,
retryLimit: -1,
device: undefined,
compiled: '{"aps":{"alert":"hiiiii"}}',
truncateAtWordEnd: false,
_alert: 'hiiiii' } Device {
token: <Buffer 22 bc ee d5 fb 89 df 0c d4 fd 02 8c 03 0e 32 12 20 60 c2 3d 37 40 51 98 d8 37 c2 c2 59 ce f4 ab> }

Hi, do you check this #184 ?
Are you sure about the options of Apn Provider:
production:

It's solved it was Apple build issue.
Thank you.

authors: eiosca harshalyeole-tudip

repo: node-apn/node-apn


text:
Convert response from ReadHoldingRegisters to Decimal

I'm getting this response <Buffer 00 28>, how can i convert to dec?
Thanks
var modbus = require("modbus-stream");

modbus.tcp.connect(502, "10.10.10.8", (err, connection) => {
  if (err) {
    console.log("Falha!");
    throw err;
  }
  console.log("Conectado");

  connection.readHoldingRegisters({ address: 1, quantity: 1 }, (err, res) => {
    if (err) throw err;

    console.log(res.response.data[0]); // response

    console.log(new Uint8Array(res.response.data[0]));
  });
});

Modbus does not enforce types, so you need to know the type of data. Usually, for unsigned integers of 2 bytes, modbus implementers use uint16be. You can do this:
console.log(res.response.data[0].readUInt16BE(0));

Modbus does not enforce types, so you need to know the type of data. Usually, for unsigned integers of 2 bytes, modbus implementers use uint16be. You can do this:
console.log(res.response.data[0].readUInt16BE(0));

It worked perfectly, thank you very much!!

authors: dresende eskstyle

repo: node-modbus/stream


text:
enable template config via msg.template for stored or generated templates

Before you hit that Submit button....
Please read our contribution guidelines
before submitting a pull-request.
Types of changes
What types of changes does your code introduce?
Put an x in the boxes that apply

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

If you want to raise a pull-request with a new feature, or a refactoring
of existing code, it may well get rejected if it hasn't been discussed on
the mailing list or
slack team first.
Proposed changes
Describe the nature of this change. What problem does it address?
Checklist
Put an x in the boxes that apply

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

Coverage increased (+0.006%) to 86.329% when pulling 6c08225603e3d8425f746d958fa791fbc47d323b on rcruicks:master into 5e128f89f6f06565d53e631aeead56c0521fa709 on node-red:master.

authors: coveralls rcruicks

repo: node-red/node-red


text:
Open always returns "Error: Port is opening" under Raspberry Pi 3

Whenever I try to access any serial device, the "open" action always returns an error saying "Port is Opening" and just sits there. This happens no matter what serial device I try to access on the Raspberry... in this case, a Freescale sensor properly enumerated.
I read issue #798 with great detail.. but the solution did not fix my case.
I also read #752 about a similar error, but I'm not using the open() method... so no.

SerialPort.list() correctly returns 3 devices in the list.
I can access all serial devices perfectly from MINICOM or just doing a CAT on the tty device.

Minibian 4.1.18 (Debian)
Node version 10.13.0
NPM version: 6.4.1
SerialPort version: 7.0.2
Some code
var SerialPort = require("serialport");
var portName = "/dev/ttyACM0";

var sp = new SerialPort (
   portName, {
        parser: SerialPort.parsers.readline,
        baudRate: 230400
   },
  true);

sp.open(function (error) {
  if ( error ) {
    console.log(''+error);
  } else {
    console.log('Freescale abierto :)');
    sp.on('data', sendSerialData);
 }
});

minibian@localhost#    node freescale.js
Output:
Error: Port is Opening

Ok..
I commented the "if(port.opening)" conditional at line stream.js but started getting the "cannot lock port" problem...
then I followed your suggestion on #1426 and used "lock:false" in the constructor... and THEN the data started coming in.
Weird... there is something definetly not working as it should. The this.opening property on the raspberry perhaps...

Minibian 4.1.18 (Debian)
Node version 10.13.0
NPM version: 6.4.1
SerialPort version: 7.0.2

I have tried going 9600 baud and a set of data every 0.5 segs to make sure is not some UART error... but it just adds random repetitions everywhere and eats some parts of the data.... any ideas?

Actually... that looks very much as a simple duplicate instance of every letter of the original string.,, with the exception that some duplicate chunks are actually whole syllables.

I´m also broadcasting the serial messages to a websocket... the consumer in the web part sees the same doubled string. 100% sure.
Sure thing, here is the code
var SerialPort = require("serialport");
const Readline = require('@serialport/parser-readline')
var WebSocketServer = require('ws').Server;

var SERVER_PORT = 8080;                                 // Puerto para el servidor
var wss = new WebSocketServer({port: SERVER_PORT});     // Servidor Websocket
var connections = new Array;                            // listado de conexiones entrantes
var portName = "/dev/serial/by-id/usb-P_E_Microcomputer_Systems_Inc._OpenSDA_Hardware_SDA4F5F1E7E-if00"; // Puerto serial del sensor freescale (Siempre debe ser enumer$

//Creamos conn sin lock puerto Serial
var sp = new SerialPort(
        portName, {
                baudRate: 9600,
                lock: false
        }, true);

const parser = sp.pipe(new Readline({ delimiter: '\r\n' })); //Definimos a partir de donde es una nueva linea para el parser
sp.pipe(parser); // Conectamos los eventos de SP al Parser

sp.open(function (error) {
  if ( error ) {
    //console.log(''+error);
  } else {
 //console.log('Freescale abierto :)');
    //sp.on('data', sendSerialData);
    parser.on('data', sendSerialData); //Si hay datos.. haga algo con ellos, pero procesados por el parser
  }
});

function sendSerialData(data) {
  console.log(String(data));
  if (connections.length > 0) {
    broadcast(String(data));    //Distribuimos mensaje a todos los webs conectados
  }
}

Jesus christ..... you are absolutely right.
Fixed....
Thank you SO much man!

You sir. simply rock!

repo: node-serialport/node-serialport