text:
Test for random connection loss

Can we please get a new test in crust which can:
spawn a listening node(beacon node)
spawn about 5 clients that bootstrap against the listening node
In parallel: each client sends the beacon node 1000 messages in a short span
assert beacon node receives all messages sent by the client nodes.
Currently as identified by @maqi vault tests seem to show nodes sometimes dropping connections to peers when handling some traffic. Hope here is to have this test confirm this isn't a crust issue.

PR: https://github.com/maidsafe/crust/pull/570

https://github.com/maidsafe/crust/pull/570 merged

authors: Viv-Rajkumar madadam vinipsmaker

repo: maidsafe/crust


text:
Add support for response compression

This utilises the Gorilla CompressHandler to compress responses if the client supports it.
The primary advantage is when MailHog is that this drastically reduces the response times when operating over a remote link. Without it, a single request for 50 messages can easily start reaching 10MB.
Given the push-button approach that MailHog is intended to support, requiring it to be deployed behind a "real" web-server seems like an extra unnecessary complication.
For this to work as expected, mailhog/MailHog-UI#9 is necessary to provide valid content types for all static content.

thanks again @danielwhite :+1:

source: gharchive/pull-request

authors: danielwhite ian-kent

repo: mailhog/http

license: mit

license_type: permissive

license_source: bigquery


text:
Morning session: Peer-to-peer code review

Hi @mailsg 🖐
I'm Abenezer your morning session partner
Good job so far! 🎉
Highlights
✔Good job overall following the template design
✔Correct GitHub Flow
But there are some issues that you still need to work on but you are almost there!♻

[ ]  Fix the bottom margin property in the footer

Cheers and Happy coding!

Thanks for the review @abenezer-addisu , the issue is fixed now.

source: gharchive/issue

authors: abenezer-addisu mailsg

repo: mailsg/Awesome-Books

license: MIT

license_source: github-api


text:
Updating the Cert-Manager DNS name

warning	envoy config	StreamSecrets gRPC config stream closed: 2, failed to generate secret for ROOTCA: failed to generate workload certificate: create certificate: rpc error: code = Unavailable desc = connection error: desc = "transport: authentication handshake failed: x509: certificate is valid for cert-manager-istio-csr.istio-system.svc, not cert-manager-istio-csr.cert-manager.svc"
Error with the DNS name.
In the SMCP the istio-ingress and istio-egress pod not deploying.
This DNS name fixes the running the Istio-ingress and Istio-Egress pods are running successfully and I'm able to verify the cert-manager successfully.

@luksa: Please Merge this PR, I don't have permission to Merge this PR.

or is that not the case?

@luksa: I'm unable to add the label as well
@jwendell: Thank you, John.

repo: maistra/istio-operator


text:
Request support for Honeyguaridan pet feeder s56

Information about DPS mappings

IoT Core
Query Things Data Model

{
  "result": {
    "model": "{'modelId':'000003ys3u',
'services':[{'actions':[],
'code':'','description':'',
'events':[],
'name':'默认服务',
'properties':[

{'abilityId':1,
'accessMode':'rw',
'code':'meal_plan',
'description':'同步到设备端本地，即使设备离线，仍能正常喂食出粮，喂食计划支持6组，共30字节，不足位补零。
	\\nraw格式约定：按照“周期+时间+喂食份数+开关”来实现本地定时，具体如下
	\\n1，前7个比特位代表周一到周日，二进制转十六进制，占用一个字节，0代表未设置，1代表设置，如0000001，表示周日生效，转换为16进制就是01
	\\n2，时间按照小时分钟格式，占用2个字节，分钟和小时，十进制转16进制，如18：50，转为16进制为1232
	\\n3，喂食份数，范围1-48.占用1个字节，十进制转16进制，如12，转为16进制为0c
	\\n4，开关，占用1个字节，00表示关闭，01表示开启\\n上述举例，对于APP端时间下发的结果为0112320c01，表示周日，18：50，喂食12份，开启。',
'extensions':{'iconName':'icon-dp_time3','attribute':'96','trigger':'direct'},
'name':'喂食计划',
'typeSpec':{'maxlen':128,'type':'raw'}},

{'abilityId':3,
'accessMode':'rw',
'code':'manual_feed',
'description':'手动喂食份数',
'extensions':{'iconName':'icon-icon-test13','trigger':'direct'},
'name':'手动喂食',
'typeSpec':{'max':6,'min':1,'scale':0,'step':1,'type':'value','typeDefaultValue':1,'unit':''}},

{'abilityId':6,
'accessMode':'rw',
'code':'slow_feed',
'description':'',
'extensions':{'iconName':'icon-dp_wash','trigger':'direct'},
'name':'慢放喂食','typeSpec':{'type':'bool','typeDefaultValue':false}},

{'abilityId':14,
'accessMode':'ro',
'code':'fault',
'description':'',
'extensions':{'iconName':'icon-dp_notice','scope':'fault','trigger':'direct'},
'name':'故障告警',
'typeSpec':{'label':['food_run_out','ERR1','ERR3','ERR5'],
'maxlen':4,'type':'bitmap','typeDefaultValue':0}},

{'abilityId':18,
'accessMode':'rw',
'code':'voice_times',
'description':'',
'extensions':{'attribute':'224'},
'name':'语音播放次数',
'typeSpec':{'max':10,'min':0,'scale':0,'step':1,'type':'value',
'typeDefaultValue':0}},

{'abilityId':101,
'accessMode':'ro',
'code':'record','description':'用于记录喂食份数。每次喂食成功后mcu需要上报喂食份数。面板显示在记录页面。',
'extensions':{'trigger':'direct'},'name':'喂食记录',
'typeSpec':{'max':48,'min':1,'scale':0,'step':1,
'type':'value',
'typeDefaultValue':1,'unit':''}},
Query Things Data Model

{'abilityId':102,
'accessMode':'rw',
'code':'hour',
'description':'false为12小时制（默认），true为24小时制',
'name':'24小时制',
'typeSpec':{'type':'bool','typeDefaultValue':false}},

{'abilityId':103,
'accessMode':'ro',
'code':'battery',
'description':'',
'name':'备用电池',
'typeSpec':{'range':['empty','low','high','full'],
'type':'enum',
'typeDefaultValue':'empty'}},

{'abilityId':104,
'accessMode':'rw',
'code':'style',
'description':'',
'name':'风格',
'typeSpec':{'range':['1','2','3','4','5'],
'type':'enum','typeDefaultValue':'1'}}]}]}"
  },
  "success": true,
  "t": 1700182758297,
  "tid": "890fc13f84e411eea29b36ef545ddf3a"
}

Iot Core
Get the specifications and properties of the device

{
  "result": {
    "category": "cwwsq",
    "functions": [
      {
        "code": "meal_plan",
        "desc": "{}",
        "name": "喂食计划",
        "type": "Raw",
        "values": "{}"
      },
      {
        "code": "manual_feed",
        "desc": "{\"unit\":\"\",\"min\":1,\"max\":6,\"scale\":0,\"step\":1}",
        "name": "手动喂食",
        "type": "Integer",
        "values": "{\"unit\":\"\",\"min\":1,\"max\":6,\"scale\":0,\"step\":1}"
      },
      {
        "code": "slow_feed",
        "desc": "{}",
        "name": "慢放喂食",
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "voice_times",
        "desc": "{\"min\":0,\"max\":10,\"scale\":0,\"step\":1}",
        "name": "语音播放次数",
        "type": "Integer",
        "values": "{\"min\":0,\"max\":10,\"scale\":0,\"step\":1}"
      },
      {
        "code": "hour",
        "desc": "{}",
        "name": "24小时制",
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "style",
        "desc": "{\"range\":[\"1\",\"2\",\"3\",\"4\",\"5\"]}",
        "name": "风格",
        "type": "Enum",
        "values": "{\"range\":[\"1\",\"2\",\"3\",\"4\",\"5\"]}"
      }
    ],
    "status": [
      {
        "code": "meal_plan",
        "name": "喂食计划",
        "type": "Raw",
        "values": "{}"
      },
      {
        "code": "manual_feed",
        "name": "手动喂食",
        "type": "Integer",
        "values": "{\"unit\":\"\",\"min\":1,\"max\":6,\"scale\":0,\"step\":1}"
      },
      {
        "code": "slow_feed",
        "name": "慢放喂食",
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "fault",
        "name": "故障告警",
        "type": "Bitmap",
        "values": "{\"label\":[\"food_run_out\",\"ERR1\",\"ERR3\",\"ERR5\"],\"maxlen\":4}"
      },
      {
        "code": "voice_times",
        "name": "语音播放次数",
        "type": "Integer",
        "values": "{\"min\":0,\"max\":10,\"scale\":0,\"step\":1}"
      },
      {
        "code": "record",
        "name": "喂食记录",
        "type": "Integer",
        "values": "{\"unit\":\"\",\"min\":1,\"max\":48,\"scale\":0,\"step\":1}"
      },
      {
        "code": "hour",
        "name": "24小时制",
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "battery",
        "name": "备用电池",
        "type": "Enum",
        "values": "{\"range\":[\"empty\",\"low\",\"high\",\"full\"]}"
      },
      {
        "code": "style",
        "name": "风格",
        "type": "Enum",
        "values": "{\"range\":[\"1\",\"2\",\"3\",\"4\",\"5\"]}"
      }
    ]
  },
  "success": true,
  "t": 1700184647362,
  "tid": "ef1235c184e811ee9a23cea0a4c732c1"

Product ID

IoTCore
Query Device Details in Bulk

{
  "result": [
    {
      "active_time": 1698839473,
      "category": "cwwsq",
      "create_time": 1698675956,
      "custom_name": "Distributore Cibo Gatti",
      "icon": "smart/icon/ay1543989738995Ij0in/2a9874753784ef33241cdddffe5fc2c6.png",
      "id": "xxxxxxxxxxxxxxxxxx",
      "ip": "xxxxxxxxxxx",
      "is_online": true,
      "lat": "xxxxxxxx",
      "local_key": "xxxxxxxxx",
      "lon": "xxxxxxx",
      "model": "",
      "name": "Alimentatore intelligente ",
      "product_id": "wa8pwmxwnhpujmdq",
      "product_name": "海龙喂食器S56",
      "sub": false,
      "time_zone": "+01:00",
      "update_time": 1700086317,
      "uuid": "xxxxxxxxxxxxxxx"
    }
  ],
  "success": true,
  "t": 1700184155289,
  "tid": "c9bf471f84e711eea84192c59b34336d"
}

Information about how the device functions

Config file to check
https://github.com/Bellavista/Tuya-Local-Honeygaridan-S56/blob/main/honeyguaridan_pet_feeder_s56.yaml
Original site description
https://www.honeyguardian.com/collections/feeder/products/honeyguardian-6l-smart-cat-feeder?variant=46640566272293
Githud whit Homeassistant installation
https://github.com/Bellavista/Tuya-Local-Honeygaridan-S56

@make-all please reconsider supporting this device as @Bellavista already did all the hard work and the configuration yaml.

authors: Bellavista ciotorcristian

repo: make-all/tuya-local


text:
[Device Support Request] Security Camera with Lock Control

Hello,
Complete newbie here.
I have a Tuya powered security camera which controls my gate. I don't want to get the camera working in homeassistant. However, this device is the only way which I can control my gate using IoT.
Unfortunately, the official Tuya integration only supports the camera (and very poorly since it goes from local to EU cloud back to local).
Thus far I have bumbled my way into discovering that in order to trigger the relay which opens/ closes my gate I need to issue a get request to DPS 148.
I've done this using tuya-cli by issuing the following command:
tuya-cli get --ip XXX --id XXX --key XXX--dps 148 --full --protocol-version 3.3
This returns true if the command was successful.
That is where my knowledge of how this all works ends though. Ideally, I want to create a button entity in HA which issues this command when pushed but I have no idea how/ where to begin.
I'm sure you will need more information from me regarding what this device is - please provide instructions and I will do my utmost to help.
Thanks

Currently the integration only supports devices that conform to a simple model where all available status are returned by an empty get request, and commands are optionally available as set requests to change individual values from the DPS returned by the get request.
I guess security devices are more commonly using obscure commands like this (a get request for a do that is not visible in the default dps returned by the empty get request), and currently they are not really supported well.

Okay. Thank you for letting me know. It's a shame that even the official tuya integration doesn't properly support this application. I'm using an extremely hacky/ bodge way to get this working right now (tuya-cli installed on HAOS and running a shell command to open the gate)/
I know this isn't a tech support forum but is there a way to get devices to list the available DPS?

Since you already have tuya-cli installed, you could try tuya-cli get --all (with the additional arguments for device id and key that you need for connecting your device)

Since you have tuya-cli installed, I think you can use tuya-cli get --id DEVICE_ID --key LOCAL_KEY -a replacing DEVICE_ID and LOCAL_KEY with the appropriate values for your device.

Further information on discovery of DPs: the most complete info seems to be available by using the iot.tuya.com device debugging feature, along with the browser development tools to capture the code used in the request (which happens to be the same code used for the local DPS index).
Instructions are here (some is only relevant to zigbee devices, but mostly it is generic).
https://www.zigbee2mqtt.io/advanced/support-new-devices/03_find_tuya_data_points.html
Since this method reveals DPs that are not normally broadcast by the device, even if they are not listed in the API Explorer methods on iot.tuya.com, it seems to be the most complete source of info (though for DPs listed in the API Explorer, there is more information there on range of possible values, whereas the debug interface only gives you snapshots of actual values reported recently by your device).

As you mentioned in #365, you are right. My device doesn't broadcast status at all besides giving the usual semaphore I'm alive response to Tuya Cloud.
It seems it only provides status updates when things change and assumes you know what you are doing. Running tuya-cli get -full seemingly crashes the device.
What I have been able to figure out from messing about is (more for my benefit in the future in case your awesome integration is changed):
- dps: 148
  description: Gate Controller
  values: true, false
  action: Will switch to true for 2 seconds while unlocking the gate, then switch to false. Attempting to query or set this DPS to anything will cause the gate to open.
- dps: 136
  description: Doorbell
  values: -1 (I'm assuming this is a signed binary number)
  action: Will report a value of -1 when the doorbell is pressed. Otherwise, doesn't report anything. Attempting to query or set this DPS triggers the Doorbell.
- dps: 154
  description: Doorbell Snapshot
  values: Base64 Encoded URL
  action: Will report a Base64 Encoded URL with a https link to a jpeg image of the camera when the doorbell was pressed. Link expires after 60s.

These 3 dps seem to match the rl_video_intercom from #462, which had a similar issue with dps not showing up by default.  It may be a variant of the same device, so try that config and see if it can work.

Closing on assumption that the rl_video_intercom config is sufficient to support this device also

@make-all Sorry about being so slow to get back to you here... this was stalled for a long while and I didn't see the update.
This update doesn't work and I think I know why. Using tuya-cli I've never been able to get a status response using tuya-cli get --full or any other commands - I assume this is deliberately some kind of hardening against attacks because the device takes itself completely offline when you do this (and it can only be rectified by powering the device off then on again). When no status response is provided tuya-local assumes the device isn't working and gives the connection error specified.
The device is 100% working because I can use tuya-cli to manually do what I want it to do - just a pain to have to use shell commands and include tuya-cli to my install to open and close my gate.

authors: illuzn make-all


text:
🛑 Academic Homepage is down

In 72037f5, Academic Homepage (https://research.aurelienooms.be) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Academic Homepage is back up in b1666f9 after 15 minutes.

repo: make-github-pseudonymous-again/monitor


text:
Feature/javascripting noelia garcia

Descripción
Se realizo la tarea correspondiente, completando cada ejercicio de javascript en Javascripting.
Feeling

[ ] 🤙 Solucion rapida
[x] 👌 Terminado y listo
[ ] 🤞 Espero que esto funcione, por favor revisar cuidadosamente

Screenshots

Scope

[ ] 🐞 Bugfix (non-breaking changes que resuelve un problema
[ ] 💚 Mejora (non-breaking change que agrega/modifica funcionalidad a una característica existente)
[x] ⚡ Nueva característica/feature (non-breaking change que agrega una nueva característica)
[ ] ⚠ Breaking change (cambio que no es compatible con versiones anteriores y/o cambia la funcionalidad actual)

Error con la rama al realizar pull request.


text:
can't read the property "loaded" of underfined

I'm using redux with immutable js.
TypeError: Cannot read property 'loaded' of undefined
[1]     at AsyncConnect.isLoaded (/node_modules/redux-connect/lib/components/AsyncConnect.js:67:59)

I havent used it with immutable.js and there is a request for this already https://github.com/makeomatic/redux-connect/issues/15
However, it looks like you dont have reducer enabled and prop is not passed from state?

When I console log the store I have reduxAsyncConnect state in it as below.
{ reduxAsyncConnect: { loaded: true, loadState: {} },

https://github.com/makeomatic/redux-connect/blob/master/modules/components/AsyncConnect.js#L58-L60
this.context.store.getState().reduxAsyncConnect.loaded  must be defined. I guess immutable js provides different semantics for accessing props of store

And part .reduxAsyncConnect must be changed somehow

closing as duplicate of #15

authors: AVVS damamsrinivas

repo: makeomatic/redux-connect


text:
Information regarding AUTOMATIC MATCHING BETWEEN ORDERS

I copy the message from the MakerChat :
It's becoming a very common thing now to see newcomers getting confused by the lack of order matching. And this is our fault, this should be very explicit because there's not a single centralized exchange which works this way. I suggest a warning msg below the buy/sell boxes and above the "buy orders" and "sell order" boxes.
Suggestions for this message below the buy/sell boxes:

THERE'S NO AUTOMATIC MATCHING BETWEEN ORDERS!
To create a new entry on the order book, simply use the boxes above. But if you want to fill existing orders, you have to click on each desired order, one at a time.
There should be a little x at the right top corner of the message box, so the user can dismiss it (hide it) after having read it.

I will create a few different approaches so we can decide together how we get the user informed regarding the missing automatic matching between orders!

Version 1

Version 2

I prefer version 1

under get started 3) there is a typo: befor -> before.
There also need to be an additional sentence, something like "You're automatically prompted to do this if your allowance isn't already set"

btw lets get rid of the numbers for allowance and just make it a binary approval mechanism that sets the allowance to 999999999 behind the scenes.

I disagree to setting allowance to some arbitrary high number under the
hood for convenience sake. please keep security in mind at all time; I have
heard a couple times of traders being saved from making incorrect trades
due to the allowance mechanism.
On Jan 24, 2017 04:27, "Rune23" notifications@github.com wrote:

btw lets get rid of the numbers for allowance and just make it a binary
approval mechanism that sets the allowance to 999999999 behind the scenes.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/makerdao/maker-market/issues/128#issuecomment-274691496,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAl5n2evu5siyAQP_5eZ9D-V8byaY2Ylks5rVW-UgaJpZM4LqAWU
.

Version I is updated:
@Rune23

I made your suggested sentence a little bit shorter so it can fits in one line. Do you think this is enough ? Do you have maybe a better idea?
Regarding the allowance thing. I think we should discuss this topic with the whole team and should be moving it to the next design iteration. Right now we should clean most of the issues we already have and make the UX as perfect as possible.

@pimato What happens if you close one of the banners? How the other would show?

if you close the left one, the right one should be expand (and so on) example:

I have a better version of number 3: The first time you make a transaction you will be prompted to set your allowance

UPDATED :

Okay I have a few points :

Warning signs should be aligned to the widgets below.
the number_icon should have the same padding to the left as to the right
You still have a opacity on the number_icon and the dots, please remove it.

This is how it should look like:

I uploaded you new darker crosses. There is a default(normal) edition and a pressed version. Would love to see both integrated.
Archiv.zip

@pimato changes were applied in the repository. When this is uploaded please check what you think about the alignment. The structure is a bit complicated and tried to align it the best as possible. Let me know if looks fine.

small issue when I am cloing the right warning :

@pimato for some reason in your screen the first li fits in one line. The bullet was prepared for two. Will make some tests.

@pimate just made a fix. Let's see if you still see the issue when we upload this.

Yes, sadly I can still see it.

fixed

authors: Rune23 gbalabasquer jorisbontje pimato

repo: makerdao/maker-market


text:
Date - Date order issue

If we have  (not sure if it will compile, just want to show that D2 is later than D1)
D1 = "1/2/2015"
D2 = "1/2/2016"
I was expecting D2 - D1 would give me 365 days. But in fact in code  we have to use D1 - D2 to get the actual time interval.
Is this intended behavior?
Thank you!

Hi, you can use .in() method an specify the .day as parameter.
let D1 = try! "1/2/2015".date(format: .custom("dd/MM/yyyy"))
let D2 = try! "1/2/2016".date(format: .custom("dd/MM/yyyy"))
let v = (D2 - D1).in(.day) // 365

I believe this will crash because in here we specifies the lhs is the start of the interval instead of the end of the interval.
Please try run the code above and let me know!

I've tried it right now; do you encounter a crash?

Hi @malcommac I tested your code and it works fine.
But I don't understand why using Date instead of SwiftDate.DateInRegion in the following code crashes
let today = Date()
let tomorrow = Date() + 1.days
print(tomorrow - today) // This crashes here

I've tried using DateInRegion(), it works fine, in the comments what I get
let today = DateInRegion()
let tomorrow = DateInRegion() + 1.days
let diffInDays = (tomorrow - today).in(.day) // -> 1
print(tomorrow - today) // -> in seconds = 86400.0012260079

Can you post your crash?

The problem is that I have to use Date().
The crash message is
fatal error: Reverse intervals are not allowed: file /Users/hongfeili/Documents/GitHub/Just Did It/Carthage/Checkouts/SwiftDate/Sources/SwiftDate/DateTimeInterval.swift, line 69

I still think the Date+Math order should be reversed or consider absolute like how it is done in DateInRegion+Math
Is the order of minus between Dates intended?

Ok should be fixed 👍

repo: malcommac/SwiftDate


text:
[Bug Report] Input 组件的type 属性，在

问题出在哪个包
@taroify/core
问题出在哪个平台/设备/浏览器
微信小程序
平台/设备/浏览器
No response
你正在使用的 Taroify 版本是多少
0.0.27-alpha.6
描述一下您遇到的问题以及重现步骤
                <Form.Item name="bloodPressure">
                  <Form.Label>血压(kPa)</Form.Label>
                  <Form.Control>
                    <Input placeholder="请填写血压" type="digit" />
                  </Form.Control>
                </Form.Item>

type 无效，不能限制任何输入
如果可能的话，请包含一个代码框的链接与复制的问题
No response
你知道如何解决这个问题吗
No
您是否愿意参与修复这个问题，并创建一个 PR
No response
修复这个问题的解决方案
No response

import { Input } from "@taroify/core"
import { Input as TaroInput } from "@tarojs/components"

import * as React from "react"

function Index() {
  return (
    <>
      <Input type="digit" placeholder="请输入内容" />
      <TaroInput type="digit" placeholder="请输入内容" />
    </>
  )
}

export default Index

这个问题不是 taroify 的问题。你可能是用模拟器测试的，你可以试试真机。看看还有这个问题嘛

authors: tgioer yeluolei

repo: mallfoundry/taroify


text:
ng2 rounting module icon not showing

Describe the bug
When you generate a ng2 rounting module a file is created with the name
[yourname]-routing.module.ts
in the current regex the ".module" is missing
#306
To Reproduce

ng g m home --routing
CREATE src/app/home/home-routing.module.ts (247 bytes)
CREATE src/app/home/home.module.ts (272 bytes)

Expected Behavior
correct mapping
Environment
Build #IU-222.3739.54, built on August 16, 2022
Atom File Icon 72.0
Advice
// change
.*\[._-]routing\.(dart|[tj]s)$
// to
.*(\.routing|-routing\.module)\.(dart|[tj]s)$

I think the error lies in the \[ that should be [
I'll fix it

and the file type ".module" is still missing

repo: mallowigi/a-file-icon-idea


text:
Comic 1608 Broke It

There are no new comics appearing in the comic after #1607.

Seems you're right. I'll have @fergusean take a look at the server/db and see whats up. Thanks @zevlag !

I imagine that we are getting an exception from this line:
https://github.com/mamaral/xkcd-Open-Source/blob/master/cache-server/update-server.php#L203
The JSON for 1608 looks like this:
{"month": "11", "num": 1608, "link": "", "year": "2015", "news": "", "safe_title": "Hoverboard", "transcript": "My new book, Thing Explainer, comes out today! To celebrate, here's a small game.\n\n[[A stick figure on a hoverboard can navigate around a field with platforms and barriers, reminiscent of a pinball machine, from top to bottom and left to right. Along the way it can collect coins, and then deposit them in a little terminal down at the center of the bottom. When you do, a message reads, \"You got X coins in Y seconds!\" and a secondary message depending on how well you did. \nX=0 \"You successfully avoided all the coins!\"\nX=1 \"It's a start.\"\nX=2-4 \"Not bad.\"\nX=5-9 \"Terrific!\"\nX=10-16 (No message.)\nX=17 \"You found all the coins! Great job!\"\n\nHowever, if you leave the bounds of the playing field in either direction, a message in large red letters will flash:\nRETURN TO THE PLAY AREA\n\nWhen you keep going, you discover a vast world with grassy fields, caverns, mountains, volcanoes, and buildings. There are many little vignettes hidden everywhere, along with more coins.]]\n{{Title text: Return to the play area}}", "alt": "Return to the play area", "img": "http:\/\/imgs.xkcd.com\/comics\/", "title": "Hoverboard", "day": "24"}

Yup, that's what we were thinking.

Image URL isn't valid. Points to a 404. Suggestions on how to handle?

Ignore for now or screenshot website and manually enter into db :)

Hosted a screenshot of 1608 in a fork of the repo and manually injected 1608 into the DB.  I'll patch the PHP to handle that comic's edge case and PR.  Until next time...

Thanks @zevlag!

authors: fergusean mamaral zevlag

repo: mamaral/xkcd-Open-Source


text:
Not working out of the box with cmd

Currently I need to activate the conda environment by hand on the cmd shell. Here are my instructions
    strategy:
      fail-fast: false
      matrix:
        runs-on: [windows-latest]

    name: ${{ matrix.runs-on }} • x64 ${{ matrix.args }} • py
    runs-on: ${{ matrix.runs-on }}

    steps:

    - name: Basic GitHub action setup
      uses: actions/checkout@v2

    - name: Set conda environment
      uses: mamba-org/provision-with-micromamba@main
      with:
        environment-file: environment.yaml
        environment-name: myenv

    - name: Build and install Python module
      shell: cmd /C CALL {0}
      run: |
        call micromamba activate myenv
        python -m pip install . -vv

I'm really not an expert on this, but I did create a reproducer that, when merged, should check for this in the future:
https://github.com/mamba-org/provision-with-micromamba/pull/43

Why does this GHA step fail and abort the rest of the run: code, but the job still continues and eventually succeeds? https://github.com/mamba-org/provision-with-micromamba/runs/6408495202?check_suite_focus=true https://github.com/mamba-org/provision-with-micromamba/blob/d7eeccca14d2609b867ac0002544ec701ec11068/.github/workflows/test.yml#L34

I'm also hitting this issue in https://github.com/blue-yonder/turbodbc/pull/380. From peeking at the source code of setup-miniconda, I can see that they append auto-activation to conda_hook.bat: https://github.com/conda-incubator/setup-miniconda/blob/7e642bb2e4ca56ff706818a0febf72bb226d348d/src/conda.ts#L259
Thus the fix should be that we add a similar statement to C:\Users\runneradmin\micromamba-root\condabin\mamba_hook.bat as part of the action.

Btw, I tend to not use activation anymore (in CI and on my local machines) because it simply causes too much trouble. I use micromamba run and micromamba shell (which we broke in 1.3.0 :()

I have a serious of commands which all need to run with CMD activation. There activation (and not mm run) is much more convenient to write.

Conveniently migrating to the newer mamba-org/setup-micromamba allowed me to drop the hacky workaround (call micromamba activate <env>) to manually activate the conda env in each step

authors: jdblischak jonashaag tdegeus xhochy

repo: mamba-org/provision-with-micromamba


text:
Remove uncommented code (or clarify why it's there)

I came across this code snippet while going through the source code: https://github.com/mamba-org/rattler/blob/526cd23b08fd497fb2811af12f3d615dc1229200/crates/rattler_conda_types/src/match_spec/parse.rs#L111-L117
I don't understand the code well enough to know whether the comment needs to be removed, but it looks like an oversight. This issue is to make sure you are aware (and a suggestion to clarify why the commented code needs to be there, if it is actually on purpose).

Well, I think this came from conda: https://github.com/conda/conda/blob/ad615752a7efa20f8ba135e2fa31417807dcfefb/conda/models/match_spec.py#L619-L623
Unfortunately, I also don't know what to do with this.

Looks like the idea was to have conditional dependencies? https://github.com/conda/conda/issues/7592

Im going to leave the status quo for the moment.

authors: aochagavia baszalmstra wolfv

repo: mamba-org/rattler


text:
Add compatibility with Noxy Multidirectional Trains

This PR does two things:

Extracts the train id migration logic from the space elevator teleport compatibility.
Adds compatibility with Noxy's Multidirectional Trains.

This relies on a related pull request to add events to Noxy: https://github.com/NoxyNixie/Noxys_Multidirectional_Trains/pull/9
This has not been rigorously tested, but initial tests seem promising. I do not have a complete understanding of how Cybersyn's internal logic works, and what additional considerations might be necessary.

Let's talk about this one in Discord a bit (https://discord.gg/pg6yQx8EXV) if you don't mind. I think a well defined api for teleporting trains is a good idea but we need some contributor discussion on it.
Also, for a start, drop the changelog and metadata updates from this PR, as we do that separately when we cut releases.

Should I drop the min-version for Noxy as well? That feels like something easy to forget, if so.

authors: kirazy wcjohnson

repo: mamoniot/project-cybersyn


text:
added card structure with styles & animation for mission details

Fixes #9
Added Card structure with details inside separate blocks using CSS styles and animation

This is amazing work @ShwetKhatri2001 , thank you for your contribution 🥇

repo: manankohlii/spacex-launch-data


text:
Support "run" macro from a directory with spaces in it

Actually, I think some exec should be used here to avoid dealing with shell syntax

That seems like a hack, yes. inspect really isn't designed to produce shell compatible output, it may break that contract without warning. I agree, it probably should just skip the shell here.

For now we can accept this, the args are also inspected so they work in the shell. Later we can improve this :-)

I would've taken the opportunity to fix it for the args too, but okay.

authors: asterite jhass lbguilherme

repo: manastech/crystal


text:
Fixes #1318 by multiplying decreaseExpirationBySec with 1000. Also fixes returning true for calling hasValidAccessToken on tokens which are already expired

In the "expires_at" is set and its calculated with local clock (see https://github.com/manfredsteyer/angular-oauth2-oidc/blob/15.0.0/projects/lib/src/oauth-service.ts#L1698 ). Therefore there is no need to appy clockSkewInMsec in hasValidAccessToken

Heya! FYI: I'm no longer very active as a maintainer or community moderator (see #1280), so I will likely not be investigating or reviewing. But thanks for submitting a fix to this Open Source project, hopefully Manfred or another contributor can find time to help out!

@manfredsteyer sry for bumping, but i think this is a big issue and should be fixed asap

Need to be merged.

authors: IchbinkeinReh bkrajendra jeroenheijmans


text:
fix on prem group type casing

Msgraph stores this as Pascal and sends it back in that way so we should have the same naming.

@manicminer this is a small fix to #196

Thanks @manicminer, would you mind making a new release at some point? Without this fix this PR https://github.com/hashicorp/terraform-provider-azuread/pull/964 does not work properly.

@tomasmota No problem, have tagged v0.53.0 with this fix

authors: manicminer tomasmota

repo: manicminer/hamilton


text:
Integrate Password Recovery Feature

Pull Request
Title
Integrate Password Recovery Feature
Description
This PR adds the Password Recovery feature, allowing users to reset their forgotten passwords with ease. It includes the front-end flow without backend integration, simulating OTP verification via alerts. The feature improves the user experience by providing a seamless way to regain access to accounts.
Related Issues

Fixes #592
Changes Made

Created Password Recovery component in React.
Added OTP input fields and reset password form.
Implemented alert-based OTP simulation for demonstration.
Included CSS for responsive design.
Checklist

[ x] I have tested the changes locally
[ x] Documentation has been updated (if necessary)
[ x] Changes are backward-compatible

Screenshots (if applicable)

https://github.com/user-attachments/assets/4ed86ae6-8ffa-45db-a011-d1f7acf397d8
Additional Notes

This feature currently uses alert-based OTP simulation. It can be expanded in the future with API calls for OTP generation and verification once backend support is available.
Footer

@saras-69 I actually wanted to implement this and I was curious to know how it was implemented. May I please know how this is sending OTP to email and how the forget password mechanism works? I don't quite see a section of code for that implementation part. Please implement it properly. Or let others work. No harm intended! Thanks.
In addition, could u please tell why the single quotes are changed to double quotes everywhere? This action would seriously affect other's PRs and would result us everyone into merge conflicts. So, I suggest you to revert them back.

@saras-69 I actually wanted to implement this and I was curious to know how it was implemented. May I please know how this is sending OTP to email and how the forget password mechanism works? I don't quite see a section of code for that implementation part. Please implement it properly. Or let others work. No harm intended! Thanks.
In addition, could u please tell why the single quotes are changed to double quotes everywhere? This action would seriously affect other's PRs and would result us everyone into merge conflicts. So, I suggest you to revert them back.

It makes sense that an extension could automatically enforce different formatting rules, such as changing single quotes to double quotes. Extensions like Prettier or ESLint can be configured to apply specific code style guidelines when you save or format files.

@J-B-Mugundh Ok, I will work on sending the OTP. I forgot to do this since I was used to sending a recovery link to the email for resetting the password in a previous project due to security concerns. That's why using OTP didn’t come to mind initially.

@J-B-Mugundh Ok, I will work on sending the OTP. I forgot to do this since I was used to sending a recovery link to the email for resetting the password in a previous project due to security concerns. That's why using OTP didn’t come to mind initially.

Okay great! Carry on. U can ping here in case u r stuck or need help.

@J-B-Mugundh Ok, I will work on sending the OTP. I forgot to do this since I was used to sending a recovery link to the email for resetting the password in a previous project due to security concerns. That's why using OTP didn’t come to mind initially.

Okay great! Carry on. U can ping here in case u r stuck or need help.

Sure

@saras-69 I actually wanted to implement this and I was curious to know how it was implemented. May I please know how this is sending OTP to email and how the forget password mechanism works? I don't quite see a section of code for that implementation part. Please implement it properly. Or let others work. No harm intended! Thanks.
In addition, could u please tell why the single quotes are changed to double quotes everywhere? This action would seriously affect other's PRs and would result us everyone into merge conflicts. So, I suggest you to revert them back.

It makes sense that an extension could automatically enforce different formatting rules, such as changing single quotes to double quotes. Extensions like Prettier or ESLint can be configured to apply specific code style guidelines when you save or format files.

You just used ..chatgpt or any other ai tools...that's it I guess ....the total file changed....you just created a frontend recovery page that's it . nothing morethan that...and sorry to inform you that I am closing this PR ..issue as well... because this is the heart of the project I don't want to ruin it ..

@saras-69 I actually wanted to implement this and I was curious to know how it was implemented. May I please know how this is sending OTP to email and how the forget password mechanism works? I don't quite see a section of code for that implementation part. Please implement it properly. Or let others work. No harm intended! Thanks.
In addition, could u please tell why the single quotes are changed to double quotes everywhere? This action would seriously affect other's PRs and would result us everyone into merge conflicts. So, I suggest you to revert them back.

It makes sense that an extension could automatically enforce different formatting rules, such as changing single quotes to double quotes. Extensions like Prettier or ESLint can be configured to apply specific code style guidelines when you save or format files.

You just used ..chatgpt or any other ai tools...that's it I guess ....the total file changed....you just created a frontend recovery page that's it . nothing morethan that...and sorry to inform you that I am closing this PR ..issue as well... because this is the heart of the project I don't want to ruin it ..

When you save the file the extension will automatically change the format

@saras-69 I actually wanted to implement this and I was curious to know how it was implemented. May I please know how this is sending OTP to email and how the forget password mechanism works? I don't quite see a section of code for that implementation part. Please implement it properly. Or let others work. No harm intended! Thanks.
In addition, could u please tell why the single quotes are changed to double quotes everywhere? This action would seriously affect other's PRs and would result us everyone into merge conflicts. So, I suggest you to revert them back.

It makes sense that an extension could automatically enforce different formatting rules, such as changing single quotes to double quotes. Extensions like Prettier or ESLint can be configured to apply specific code style guidelines when you save or format files.

You just used ..chatgpt or any other ai tools...that's it I guess ....the total file changed....you just created a frontend recovery page that's it . nothing morethan that...and sorry to inform you that I am closing this PR ..issue as well... because this is the heart of the project I don't want to ruin it ..

@manikumarreddyu Here you can see  ---|
|
|
https://github.com/user-attachments/assets/cb6013ab-1833-4d7f-ab39-a325fdbe86ff

ok...then.. what is the use of this feature which you have done...just sending recovery mail..thats it..

ok...then.. what is the use of this feature which you have done...just sending recovery mail..thats it..

Yes but I will improve it

ok...then.. what is the use of this feature which you have done...just sending recovery mail..thats it..

Could you please let me know if I can proceed with this contribution, or if there are any specific guidelines you'd like me to follow?

authors: J-B-Mugundh manikumarreddyu saras-69

repo: manikumarreddyu/AgroTech-AI


text:
UI/UX and some bug fixes

*Center Articles and Publishers.
*Add Write New Article button in profile and categories views
*Clearer edit profile button
*Remove Publishers Bio from Writers Section
*Add navigation buttons to categories and topics views
*Fix save publishers articles count

Nice work!

authors: RashaHussein mkhatib

repo: manshar/manshar


text:
Site Map Options Overlapping

Is there an existing issue for this?

[X] I have searched the existing issues

Feature Description

"Home","Feature","Team", options are overlapping with "log in get started".
Use Case
It is not looking good because of overlapping , clicking on links is difficult!
Benefits
No response
Priority
High
Record

[X] I agree to follow this project's Code of Conduct
[X] I'm a GSSOC contributor
[X] I want to work on this issue
[X] I'm willing to provide further clarification or assistance if needed.

I can fix this.

I would like to work on this.

@mansiruhil13 please review my Pull Request.

authors: Raj-Ganatra anubhavvsharma


text:
Implement GitHub authentication

In order to have team features we need a way to authenticate and authorize users. The current idea is to use GitHub as an identity provider and perform authorization based on organization roles.
The GitHub oauth flow is described here. We will be using the web application flow which is a bit more user friendly since it doesn't require the user to manually enter a code. Instead, it requires us to host a small callback application on our side which will be used by GitHub to perform authentication.
An overview of the architecture can be seen here:

The user runs a mantil CLI command which requires authentication. If a token is not already present, this triggers GitHub authentication by opening a browser window. The CLI opens a NATS channel and waits for a response.
After successfully authenticating, GitHub invokes the callback URL of our oauth app. The lambda handler behind this URL uses the oauth app credentials to create a GitHub token.
The callback handler invokes an auth function on the mantil node which knows the public/private key pair used to generate JWT tokens. It then performs authorization by checking organization access rights and allowed projects/users (stored somewhere on the node) and creates the corresponding JWT token.
The auth function then sends the token back to the user's NATS channel.

I implemented a first version of this. It can be enabled by setting the github-org flag when using mantil aws install to create a node, for example:
mantil aws install daniel --aws-profile daniel --github-org mantil-team
Now the node is tied to the mantil-team organization and will require authentication when executing project and node commands.
After successfully authenticating, the node will create a JWT token based on the user's role in the organization and the allowed projects/users for the node:

organization admins will get a token with the Owner role which grants them access to everything including managing the node (adding allowed users/projects and creating long lived tokens for automation)
regular members of the organization will get a token with the Member role if they are on the list of allowed users for the node. This token will grant them permissions to deploy projects allowed on the node.

Admins can manage node users and projects using the mantil user add and mantil project add commands. For example:
mantil user add djelusic --node daniel
and
mantil project add --node daniel --name project --repo=https://www.github.com/mantil-team/project
To test this you will ideally need a github organization with at least two members, one admin and one regular member. For convenience I added a logout command which will erase the stored token and allow you to log in with a different user:
mantil logout daniel
Here daniel is the name of the node.

After some discussion we implemented a few changes to this flow:

the node handles all user authorization now, meaning we don't use GitHub org roles to determine user roles anymore. This also means that nodes will be tied to a GitHub user instead of an organization
mantil project add is gone, a user that has access to the node can deploy any project
node management functions (adding/removing users) are now under a node subcommand
added a mantil node login command which will set up everything needed for a user to access the node

So now an example flow might look like this:
Someone with admin accces to the AWS account creates a node and ties it to their GitHub user.
mantil aws install daniel --aws-profile=daniel --github-user=djelusic

After creating the node they have admin rights to manage it. They can now add users using the user-add command:
mantil node user-add --node daniel --github-user some-user --role user

which will return
Successfully added user some-user. They can now login using the command "mantil node login https://8ilfp3l7yh.execute-api.eu-central-1.amazonaws.com"

Then the user can use this command to log in and start deploying projects to the node. However with the user role they won't have permissions to access node management functions. For that they need the admin role. To upgrade their role you can simply run:
mantil node user-add --node daniel --github-user some-user --role user

After logging in again they will have admin permissions.
Users can also be removed using the user-remove command, for example:
mantil node user-remove some-user --node daniel

repo: mantil-io/mantil


text:
Convert PDF to PNG for test verification

It's not feasible to compare PDF files byte-by-byte because the PDF creation uses DeflateStream which produces different results on different platforms (Linux/macOS/Windows and .NET Framework/.NET Core), see https://github.com/dotnet/runtime/issues/30539
Running the tests on macOS would fails because the compressed stream computed on macOS is slightly different from the one computed on Windows.
The conversion uses Docnet.Core (which is a wrapper around the PDFium C++ library that is used by Chromium) for PDF rendering and ImageSharp to create the PNG from the rendered buffer. This method does not rely on any external tool such as ghostscript to be installed on the machine since the pdfium native dll is embedded in the Docnet.Core NuGet package for all platforms (Linux + macOS + Windows 32 and 64 bits).

Before this pull request:
Windows: 100% (451/451) ✅
Linux: 96% (435/451) ❌
macOS: 95% (432/451) ❌
After this pull request:
Windows: 100% (451/451) ✅
Linux: 98% (446/451) ❌
macOS: 98% (443/451) ❌


text:
Update README.md

task #47

@MBhavishya feel free to merge

authors: MBhavishya maneetgoyal

repo: manufac-analytics/inchi


text:
Make entrez calls more reliable

They often fail

This was made because lots of tests were failing. Turns out the problem was not waiting for the responses, sometimes of the datasets API. closing


text:
[NavigationAccordion] collapses subitems when not selected and adds active state

This PR builds on the work in https://github.com/mapbox/dr-ui/pull/58 and collapses h3 subitems on load. When that section (h2) or a subitem (h3) within the group is selected, then the subitems expand. This PR also adds an active state txt-bold to currently selected items in the navigation to help add context.
Unselected, h3s collapsed:

Selected h2, h3s expanded:

Selected h3, all h3s in section expand:

refs  https://github.com/mapbox/api-documentation/pull/613
@danswick to add this functionality, the component requires props.location.hash - I'm not sure if this is the best way to pull that info in. Would you happen to have suggestions for a better implementation?

@katydecorah I am not very well-versed in getting hashes into props, so I'll just ask some questions and maybe we can figure out a good next step!
In production, would you expect that a router would supply the location.hash prop? And would that change what gets passed to onDropdownChange? Or maybe the hash changes could all be handled in whatever the onDropdownChange function is and the shared accordion component would be a bit more static?

Per chat, I decided to store the hash location to the state instead

@HeyStenson or @colleenmcginnis I'd love to get extra eyes on this PR if either of you has time  🙏 Hoping to merge this sometime on Monday so we can do a release

I can take a look this afternoon @katydecorah!!

When that section (h2) or a subitem (h3) within the group is selected, then the subitems expand.

Are you thinking of adding that the h3 headings would only be displayed if the user clicks on an h2 or h3 heading or are you planning to work in updating the hash similar to how https://www.mapbox.com/api-documentation/ currently works so h3s are displayed on scroll, too?
If yes, maybe we should just pass the NavigationAccordion an activeSection prop that we get using in either (1) the PageShell in each docs repo or (2) create a new shared component here that uses both PageLayout and NavigationAccordion and prescribes what the relationship between these components should be (somewhat similar to the purpose of the ExamplesPage component) and adds a scroll event listener to determine the activeSection that gets passed to NavigationAccordion.
What do you think @katydecorah?

@colleenmcginnis that's a really good point, the sidebar navigation should have a scrollspy-like interaction so that as you are scrolling the navigation opens and highlights the current item. I'll work on adding that in!

In examining how /api-documentation currently handles its scrollspy: each section is wrapped in div.section. The site then uses these sections to calculate if a user has scrolled within its boundaries. As far as I can tell, wrapping sections is the best method. I've played around with libraries like https://github.com/makotot/react-scrollspy, which works until you scroll out of the very close vicinity of the heading and results in lots of flashes of state change on the nav.
I think the next best step is to find/create a plugin that we can use in our batfish config that will wrap a div around the start of an h2 and then close it before the start of the next (see example output below). We can then use a very similar implementation as the current /api-documentation to handle the active section and consider also using https://github.com/makotot/react-scrollspy to help highlight the h3s in the nav.

Example of desired output:

Heading

Paragraph

Sub heading

Paragraph

Heading

Paragraph

Sub heading

Paragraph

💋👌 perfect, thanks @colleenmcginnis!

😅 This is ready for review @colleenmcginnis @HeyStenson !
If it's helpful: in /api-documentation I created a testing branch af-navacc-test that is using this component.
Notes:

Created a new plugin that (when included in your batfish.config) will wrap div.section around heading levels 2 and 3.
Added .eslintrc.json to the plugins folder since it required different rules in order to be properly linted

If it's helpful: in /api-documentation I created a testing branch af-navacc-test that is using this component.

Awesome! Thanks for setting that up -- taking a look now. 😄 Next quarter maybe we can think about how we can adjust how this repo is set up to meet our testing needs!

authors: colleenmcginnis danswick katydecorah

repo: mapbox/dr-ui


text:
Release Localization plugin 0.11.0

mapbox-android-plugin-localization-v8:0.11.0
Bugs

adjusted Timber.e to Timber.d (#993)

Release checklist

[ ] Cut the release branch
[ ] Run through testapp/demo app and test all activities
[ ] Update CHANGELOG.md
[ ] Change version names in gradle.properties
[ ] Publish artifacts to Maven Central
[ ] Change version name back to SNAPSHOT
[ ] Merge the release branch back to master
[ ] Tag releases in GitHub

Post-release @langsmith

[ ] Update README.md
[ ] Update constants.js file in android-docs repo
[ ] Generate updated javadocs and add to android-docs repo
[ ] If needed, bump dependencies in https://github.com/mapbox/mapbox-android-demo

/cc: @mapbox/android @mapbox/enterprise-support @mapbox/maps-pms

cc @snkashis, who's expressed interest in this release

This release is done

repo: mapbox/mapbox-plugins-android


text:
Tolerance condition error

Encountered this while reprojecting a shapefile with the following SRS:
PROJCS["NAD_1983_HARN_StatePlane_Michigan_South_FIPS_2113_Feet_Intl",
    GEOGCS["GCS_North_American_1983_HARN",
        DATUM["NAD83_High_Accuracy_Reference_Network",
            SPHEROID["GRS_1980",6378137.0,298.257222101]],
        PRIMEM["Greenwich",0.0],
        UNIT["Degree",0.0174532925199433]],
    PROJECTION["Lambert_Conformal_Conic_2SP"],
    PARAMETER["False_Easting",13123359.58005249],
    PARAMETER["False_Northing",0.0],
    PARAMETER["Central_Meridian",-84.36666666666666],
    PARAMETER["Standard_Parallel_1",42.1],
    PARAMETER["Standard_Parallel_2",43.66666666666666],
    PARAMETER["Latitude_Of_Origin",41.5],
    UNIT["Foot",0.3048]]

using ogr2ogr yields the same error:
ogr2ogr -t_srs epsg:3857 -f "ESRI Shapefile" ~/tmp/tolerance-condition-error.projected ~/tmp/tolerance-condition-error/finalhomicide.shp
ERROR 1: tolerance condition error
Failed to reproject feature 25 (geometry probably out of source or destination SRS).
ERROR 1: Terminating translation prematurely after failed
translation of layer finalhomicide (use -skipfailures to skip errors)

Hitting the same thing with this datasource: https://data.cityofnewyork.us/Environment/Street-Tree-Census-Bronx-/bkyy-g74a

message is coming from proj4

proj4 triggers this error from a whole lot of places. projects.h shortcuts the errorcode with a macro:
#define F_ERROR { pj_ctx_set_errno( P->ctx, -20); return(xy); }

And then triggers it from all kinds of forward-projection Mercator code.

Filed issue upstream: http://trac.osgeo.org/proj/ticket/272

authors: rclark tmcw

repo: mapbox/node-wmshp

license: ISC


text:
Can I use this for Google Map Tile Layer?

Sorry, this is a question rather than an issue.  Can I use this library for Google Map Tile Layer? I tried it, but no tile is shown on Google Map on iOS. Thanks in advance.
Note:

I generated png tiles
Google Map requested an existing tile over http

Tippecanoe generates vector tiles that have to be accompanied by a style sheet to be rendered, not raster tiles that can be used directly as an overlay with the Google Maps API. They are intended for use with Mapbox GL as the renderer.

repo: mapbox/tippecanoe


text:
Make manipulate callbacks consistent

When {pre,post}Manipulate is specified as an array, the callback
expects only the content, but when it is just a single handler
the callback expects an error as well as the content.
I would have preferred to use the nodejs pattern and include the error
but all connect-assetmanager-handlers only pass content so I went the
simpler route for now.

The cssmin bug was committed separately. I'll close this pull as the API breaking changes won't be coupled with it.
Thanks for the fix.

authors: eirikurn mape

repo: mape/connect-assetmanager


text:
Bounty system improvements

Communicate that people/companies can request more than the pre-approved budgets for bounty directions.
Go through all communication (website, wiki).

https://github.com/maplibre/maplibre/issues?q=is%3Aissue+is%3Aopen+label%3A"bounty+direction"

https://maplibre.org/roadmap/step-by-step-bounties-guide/

https://github.com/maplibre/maplibre/wiki/Bounty-System

Make a news post https://maplibre.org/news/ about possibility to suggest large bounties

https://opencollective.com/maplibre/transactions add paid bounties to developer pool https://github.com/maplibre/maplibre/wiki/Developer-Role#current-role-holders-developer-pool

Thanks for the suggestion, @duje. I think the codeowners file is redundant because we already have the project tiers in https://github.com/maplibre/maplibre/blob/main/PROJECT_TIERS.md#tiers and the maintainers ensure that issues get answered in the core repositories.

But what would be good is some communication channel to submit epics for bounties, i.e., a proposal for work which is composed of multiple bounties.

Epic for Bounties means multiple tickets that add up to a larger solution. I will draft the section "Budget Increase" in https://github.com/maplibre/maplibre/wiki/Bounty-System about details that will have to be handed in by the Community to request a higher budget for a Bounty Direction which are listed in https://github.com/maplibre/maplibre/issues?q=is%3Aopen+is%3Aissue+label%3A"bounty+direction".

https://github.com/maplibre/maplibre.github.io/pull/166

authors: duje wipfli

repo: maplibre/maplibre


text:
No remove_layer in mapnik-node

Is it possible to add remove_layer or have some sort of way to modify a layer dynamically via node?
The only functions I see are
    // layer access
    NODE_SET_PROTOTYPE_METHOD(lcons, "add_layer", add_layer);
    NODE_SET_PROTOTYPE_METHOD(lcons, "get_layer", get_layer);
    NODE_SET_PROTOTYPE_METHOD(lcons, "layers", layers);

ref: https://github.com/mapnik/node-mapnik/blob/master/src/mapnik_map.cpp
But in mapnik we have https://github.com/mapnik/mapnik/blob/master/src/map.cpp#L334

This omission was intentional: standard practice is to consider instances of a mapnik.Map as immutable. So you create them once / load an XML and after that you don't modify them. This makes async code predictably safe.
If you are writing an app that creates layers one by one and exposes an interface to modify them in place (sounds like you are) then I recommend using your own structure to hold layers + styles and then creating a new mapnik.Map and adding them lazily when you need to render.
If you think the above is not feasible, happy to discuss more. However that is a pretty reliable and simple approach that I would recommend. Loading maps from XML might sound "slow" but its actually been heavily optimized for this kind of case.

I understand the practice, and will approach it differently.

@springmeyer Isn't add_layer also mutating mapnik.Map?
I would also find remove_layer useful - in my case I'd like to clone a mapnik.Map (from a pool), remove some optional layers, render it and throw the clone away.

@springmeyer how to find a reviewer?

authors: BHare1985 springmeyer zdila

repo: mapnik/node-mapnik


text:
Change license element to support CURIEs, e.g., for SPDX

The license element of the schema is currently a URI. It would be nice to be able to specify licenses based on SPDX identifiers as well, since this has the benefit of being a controlled vocabulary, and pushing people towards using well-defined licenses

In principle no objection to that, but it should be noted that, with the current implementation in SSSOM-Py, the “as well” bit is not possible: either the slot expects a URI, or it accepts a CURIE, but it cannot accept both: SSSOM-Py enforces any slot typed as a EntityReference MUST be in CURIE form.
So if we change the type of license to be an EntityReference, SSSOM-Py will no longer accept the use of plain IRI, and will barf on a mapping set with
#license: https://creativecommons.org/licenses/by/4.0

(which is currently perfectly valid). This will have to be replaced by a pseudo-CURIE, as in
#curie_map:
#  CCORG: https://creativecommons.org/licenses/
#license: CCORG:by/4.0

I’m very reluctant to break existing mapping sets just for that, so I will oppose any such change until/unless SSSOM-Py is made to silently accept the use of IRIs for EntityReference-typed slots.

Has anyone ever tried to validate
#curie_map:
#  CC.ORG: "CC.ORG:"
#license: CC.ORG:by/4.0

Just out of curiosity for a hacky workaround for some cases. In general if we type something "uriorcurie" its is my understanding it should literally be possible to either or, even if tools don't support it yet.
All that said,
is this really that bad?
#curie_map:
#  SPDX: https://spdx.org/licenses/
#license: SPDX:AdaCore-doc

TBH SPDX may not be as strong a case for allowing curies explicitly, even if the RDF transformation of the above adds https://spdx.org/licenses/AdaCore-doc as the license..

Has anyone ever tried to validate
#curie_map:
#  CC.ORG: "CC.ORG:"
#license: CC.ORG:by/4.0

Err, yes, this works, but why would ever do that?

If you really want to store the license as a CURIE, you can do so the “normal” way, without having to make this weird “prefix” declaration:

#curie_map:
CCORG: https://creativecommons.org/licenses
#license: CCORG/by/4.0

This already works perfectly fine, both with SSSOM-Py and with SSSOM-Java. It’s just that, _officially_, this is not a CURIE, this is string that happens to look like a CURIE (which means, for example, that SSSOM-Java will _not_ expand it as it normally does for all other EntityReference-typed slots). The requested change here is to make this slot accept CURIEfied values officially, rather than as something that is silently accepted by implementations.

> In general if we type something "uriorcurie" its is my understanding it should literally be possible to either or

This is what SSSOM-Java does. This is also what SSSOM-Py _used_ to do, but now it only accepts CURIEs. Any attempt to validate a set containing a IRI where an EntityReference is expected results in:

WARNING:sssom.util:Slot 'license' has an incorrect value: https://creativecommons.org/licenses/by/4.0/

(here, after I changed the type of `license` from URI to EntityReference, as requested).

My understanding is that this change, the fact that SSSOM-Py enforces that all values of EntityReference-typed slots MUST be in CURIE form, was a deliberate decision. Was that not the case?

My understanding is that this change, the fact that SSSOM-Py enforces that all values of EntityReference-typed slots MUST be in CURIE form, was a deliberate decision (in fact this is because of that change that, when re-writing the specification, I baked in the requirement that all identifiers in a SSSOM/TSV file had to be in CURIE form only). Was that not the case?

I believe you are right!
And yes, hence my comment about SPDX. Not sure this case merrits drilling into the data model. @cthoyt whats your opinion, this is not good enough?
curie_map:
  SPDX: https://spdx.org/licenses/
license: SPDX:AdaCore-doc

Not sure this case merrits drilling into the data model.

The problem is not so much changing the data model per se (as I have said, I would have no objection to making that slot a EntityReference), it’s more that it is a breaking change, because existing sets that are currently using a plain IRI in their license field would suddenly fail to validate with SSSOM-Py after this change is introduced.
I am not opposed to changing the model, but now that we are post-1.0 any change must be carefully weighted, especially breaking changes. From what I see, that particular change is clearly not worth breaking existing sets.

Ahhhh oops sorry, I totally messed up here. I thought the problem was something else :D
Basically for this to be a non breaking change, we would literally have to implement a union data type curie or uri so that we can have both CURIE values and URI values in the field.
The real question was if @cthoyt's wish to do
curie_map:
  SPDX: https://spdx.org/licenses/
license: SPDX:AdaCore-doc

is a high enough marginal gain over the current solution
license: https://spdx.org/licenses/AdaCore-doc

to justify changing the tool.. the answer is of course that we should be faithful to the docs, and here the big question is what the linkml:UriOrCurie datatype truly is..
https://github.com/mapping-commons/sssom/blob/1177d54122754a1311c143ad426b0742dda4d6f8/src/sssom_schema/schema/sssom_schema.yaml#L72
Sorry for misleading the discussion I corrected my comment above

authors: cthoyt gouttegd matentzn

repo: mapping-commons/sssom


text:
Add coverage support for caches

Mapproxy may be used to serve different kind of caches without any sources. This makes it possible to serve pre-existing data in different formats that are not served from a server.
It would be nice if it was possible to define a coverage for each cache, just as it is currently possible for sources, with directly defining in the cache or with the parts section in the mapproxy.yaml.

This could be a buildup for #166.

@weskamm This issue can be closed. Thank you very much!

repo: mapproxy/mapproxy


text:
MD-360: implement cancelling query after timeout

@sudheeshkatkam
Can you review the PR as we discussed? I checked, after statement.cancel(), no other call can be made to check status.
Thanks.
http://10.10.104.91:8080/job/Framework-Regression/508/console

Comments to be addressed. Otherwise, +1

repo: mapr/drill-test-framework


text:
MarkerCluster remove() method not work and break clustering on Android

I'm submitting a ...  (check one with "x")
[ ] question
[x] any problem or bug report
[ ] feature request
The plugin version:  (check one with "x")
[ ] 1.4.x
[x] 2.0.0-beta3
If you choose 'problem or bug report', please select OS:  (check one with "x")
[x] Android
[ ] iOS
cordova information:  (run $> cordova plugin list)
cordova-plugin-console 1.0.7 "Console"
cordova-plugin-googlemaps 2.0.0-beta3-20170831-1824 "cordova-plugin-googlemaps"
cordova-plugin-whitelist 1.3.2 "Whitelist"

Current behavior:
Calling markerCluster.remove() do not remove marker cluster from map. Marker clusterer also stop working after that.
Expected behavior:
Method remove() should remove marker cluster from map.
Steps to reproduce:
Call markerCluster.remove()  method on Android device.
Screen capture or video record:
https://www.youtube.com/watch?v=W6WgPvkWQHk&feature=youtu.be
Related code, data or error log (please format your code or data):
https://github.com/lpikora/cluster_test

Did you check there is any JS error?
I tested the same way before general available.
I guess there is some js error in your app.

No JS error in Chrome Developer Tools console. I placed debugger in plugins MarkerCluster remove method definition MarkerCluster.prototype.remove = function() { and it reached it while executing.

ok. I will check it later

Fixed.

repo: mapsplugin/cordova-plugin-googlemaps


text:
Custom OverlayView

I'm submitting a ...  (check one with "x")
[X] question
[ ] any problem or bug report
[ ] feature request
I've been trying to create a custom OverlayView to insert CSS customizable markers, using the JS API this is easy, but I can't find any way to do this with the plugin or ionic-native. So I wonder if there's something I can do to get my custom OverlayViews to work.

Not possible. Because this plugin does not use the Google Maps JavaScript API v3.
This plugin uses Google Maps Android API v2 and Google Maps SDK for iOS, which are drawn in OpenGL, not HTML.


text:
LatestFilm component

Hey @marcbouchenoire I've notice that the letterboxd api response with a 500 status all the time. I don't really now the reason why. Thanks for sharing. Really cool web.

Hey, thanks for the heads-up!
Looks like Letterboxd URLs might be blocked on Vercel, I'll look more into it soon.

The issue fixed itself, not sure if on Vercel's or Letterboxd's side but it's fixed.

authors: luiseulate marcbouchenoire


text:
IE11 problem in v0.4.1 -  Object doesn't support property or method 'assign'

Seems still broken in Internet Explorer 11 with version 0.4.1.
I included latest version in my project and get following error in IE11:
SCRIPT438: Object doesn't support property or method 'assign'
Following page is not working either if I try to open it in IE 11: http://marcio.github.io/react-skylight/.
Also there I get following error:
SCRIPT438: Object doesn't support property or method 'assign'

Issue is that the files in the lib directory are not rebuild after the last merge and before the last release. Therefore the old files with Object.assign are still there.
I solved it by running
npm run build
in the skylight module root directory.
I can create a pull request tomorrow if needed.

I created a pull request with the changes.

repo: marcio/react-skylight


text:
🛑 Video Call is down

In b54ab95, Video Call (https://jitsi01.diversolatam.com/test) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Video Call is back up in 74b20e8.

repo: marcoadasilvaa/health


text:
Add charmhelpers>=0.10.0,<1.0.0 as dependency

Ubuntu charm needs application_version_set() available since 0.10.0.
If the ubuntu charm is installed in a machine where charmhelpers was
already installed (e.g. juju deployer was used in the machine), then
it will fail.

👍 thanks!

authors: freyes marcoceppi

repo: marcoceppi/charm-ubuntu


text:
how to remove vtk log

i use vedo.Mesh.intersect_with_plane many times.
once i call vedo.Mesh.intersect_with_plane, one vtk log("2024-05-30 16:18:57.450 (   3.004s) [D74557468B270C7F]vtkPolyDataPlaneCutter.:589   INFO| Executing vtkPolyData plane cutter") appear my console and log files.
how can i remove vtk log?
i tried changing logging.setLevel, logging.disabled, stdout/stderr suppress(https://stackoverflow.com/questions/11130156/suppress-stdout-stderr-print-from-python-functions)
but i still sees many vtk logs

To disable the ~weird~ vtk logs and error messages in my applications I added the following lines just before launching the main code:
vtk.vtkObject.GlobalWarningDisplayOff()
vtk.vtkLogger.SetStderrVerbosity(vtk.vtkLogger.VERBOSITY_OFF)

repo: marcomusy/vedo


text:
Compatibilità con ET4W

Ciao è compatibile con il controllo et4W

Si, è compatibile. Fammi sapere se ci sono problemi ma lo ho testato. L'unica cosa è che vista la frequenza di polling dell'integrazione il controller dell'ET4W è un po' sovraccaricato. Comunque puoi provarla alla peggio si riavvia il controller ma non succede nulla di grave.


text:
Ajuste da View Login do caso de uso Autentificar Usuario. resolve #169

Ajustei a View Login para ficar de acordo com o protótipo.
Ajustes:
Adicionei o logo e um botão para direcionar o usuário para a paginar de cadastro caso ele ainda não fosse cadastrado como pode ser visto no protótipo.
Os campos de texto foram alterados para ficar semelhantes ao protótipo.
Alguns campos foram apagados.
Alguns trechos no código desnecessários foram comentados.
O opção do menu "Cadastre-se" foi removida, pois foi acrescentado na pagina de login um botão que redireciona o usuário para a mesma.
Os campos de texto da View Register também foram alteradas para se adequar melhor ao protótipo.
Peço que revise, por favor.

Tudo certinho.

Seria interessante corrigir alguns erros ortográficos e realizar traduções.

authors: faelteles isacsilva

repo: marcosdosea/IDrug


text:
Request: Gamepad support

Request gamepad support to work with xbox controller, etc..map arrow keys, spacebar etc.  (I can do this on my steamdeck ui through steam remapping , but would rather have it natively built in.)

Hello.
It is possible to implement an interface between controller events and YouTube keystroke events.
However I don't have an xbox controller, but I can try to do some tests with my switch controllers.
I also recommend you to try this user agent of an Xbox One...
Mozilla/5.0 (Windows NT 10.0; Win64; x64; Xbox; Xbox One) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36 Edge/44.18363.8131

or this one for PlayStation 4:
Mozilla/5.0 (PlayStation; PlayStation 4/9.51) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0 Safari/605.1.15

You can simulate the basic behavior of YouTube TV without installing the Node environment, for this I recommend the User-Agent Switcher extension.
Then navigate to the YouTube Leanback interface and test if the buttons on your controller work as expected.
Check that in the application version it explicitly states that the app has detected that the device is an Xbox One or PlayStation 4:

Regards.

The leanback link bounces me to the regular youtube page, not tv..i guess it's not available everywhere.  Also CTRL-F still isn't working.  Maybe its possible to open in fullscreen option?

It's strange, I have configured the Xbox user agent and the Leanback interface loads without problems.
Are you sure you're loading the user agent correctly?
In the following video I show you how I do it:
video.webm
Regarding what you tell me about the fullscreen bug, it was solved in the latest version (2.2.4), if you see that there is an unexpected behavior, please open another issue specifying the steps to reproduce the error and I will check it.

No, I mean that website redirects to the regular youtbube website from the tv one in countries/locations without Youtube TV, I guess.


text:
WebViewJavascriptBridge Can't send message to  app In iOS11.3

WVJB Bug Report
Thanks for reporting an issue with WebViewJavascriptBridge.
Do these 4 things and I will fix your problem!

Go to https://github.com/marcuswestin/WebViewJavascriptBridge and click Fork.
Clone your fork, cd into it and run make test. All tests should pass!
Edit Tests/WebViewJavascriptBridgeTests/BridgeTests.m and create a new, failing test which demostrates your issue.
Create a pull request for https://github.com/marcuswestin/WebViewJavascriptBridge

That's it!
I will take it from there and promise that I'll fix your problem ASAP.
If you don't do this then I can't help you!
And I probably won't :)
Cheers,
@marcuswestin

I also found this problem!

me too!

authors: Jackzigen chilimyan smoothdvd

repo: marcuswestin/WebViewJavascriptBridge


text:
Replace :use with :require

This replaces all :uses in namespace forms with :require, except for one that doesn't work when I do it (has to do with exposing a private macro after requiring it).
Why?  use is marked as deprecated, and I'm running Avi in Jaunt–a Clojure fork which reports deprecation warnings, among other things.
There are still three deprecation warnings from ecosystem.clj about the use of *clojure-version*, even though it doesn't seem to actually be marked deprecated.  That's a weird thing, dunno.

*clojure-version* is marked deprecated in Jaunt for... not the best of reasons. use is not deprecated in Clojure, it's just sub-optimal style.

It looks like the CI failure isn't related to this PR (it happens on master, also).

Grump! I think :use is better than :require :refer, but I bow to convention. Thanks for doing the work!

:refer :all is sub-optimal, I'll try and get you a follow up patch with either selective refers or qualified imports. Style grumping 😄

I use almost exclusively qualified imports. Most of the Midje code is old, and I didn't know better then.

Yeah. Most of us didn't which is why Jaunt whines about such style. It does need to get better at cleaning up the mess tho....

authors: arrdem eraserhd marick

repo: marick/Midje


text:
Add async events

Radio events are sync and it's great the way it is. Some can trigger 2 events in a row and expect handlers are called in the same sequence.
But I think it would be useful to have async events. In a case of a long task handler, this will allow the event emitter to not be blocked.
Thoughts?

Can you elaborate more on the example you provided? I'm not sure I follow ya' :stuck_out_tongue:

I am lost as well

Yeah, always have issue to explain things in english :p
emitter doing
fooChannel.trigger('before:action');
this.action();

one listener
fooChannel.on('before:action, function() {
  // very long computing
})

action could be called is a little delay due to event handler
yeah, doing an heavy computing on a before event is not the best thing, maybe a bad example :p
also I could fix this by putting a setTimeout 0 on the handler
but could this be natively handled by Backbone.Radio with an async event?

That sort of breaks the normal event pattern. Handlers shouldn't be blocking, you should create a different interface for what you are doing.
runAction() {
  return Promise.resolve()
    .then(_.bindKey(this, 'willAction'))
    .then(_.bindKey(this, 'action'))
    .then(_.bindKey(this, 'didAction'));
}

I agree with @thejameskyle; this seems outside of the scope of Radio.

Yep, I realized it after explaining with a true example. It was just an idea like that, (not even a real use case of mine) and wanted to share with you guys

Heh heh :stuck_out_tongue:  @JSteunou, think we can close this issue, then?

Handlers are blocking though, I think what's being asked for is an option
to make them non-blocking.
I was unaware that handlers were blocking also until recently :o
On Tuesday, 5 May 2015, James Kyle notifications@github.com wrote:

That sort of breaks the normal event pattern. Handlers shouldn't be
blocking, you should create a different interface for what you are doing.
runAction() {
return Promise.resolve()
.then(.bindKey(this, 'willAction'))
.then(.bindKey(this, 'action'))
.then(_.bindKey(this, 'didAction'));
}
—
Reply to this email directly or view it on GitHub
https://github.com/marionettejs/backbone.radio/issues/216#issuecomment-99142702
.

It's not really an option, because we don't modify Backbone.Events. Radio is intended to just be an extension to BB.Events msging patterns without rewriting the whole thing.

Handlers are blocking though

I meant in the sense that handlers shouldn't block asynchronously. There's not much we can do in JavaScript to make them non-blocking for synchronous actions unless we defer them which would be a massive breaking change.

yeah I guess handlers are "stack" blocking but as @thejameskyle said  deferring would break the internet :)

I did not thought about the fact radio extends bb.events so radio couldnot
do much about this.
In my mind I was just thinking: "hey registring an handler in a setTimeout
0 in order to make events async could be useful". I did not even have a
true use case, but hey, why not open the discussion :)
Le 5 mai 2015 20:01, "Sam Saccone" notifications@github.com a écrit :

yeah I guess handlers are "stack" blocking but as @thejameskyle
https://github.com/thejameskyle said deferring would break the internet
:)
—
Reply to this email directly or view it on GitHub
https://github.com/marionettejs/backbone.radio/issues/216#issuecomment-99159641
.

Gonna close dis

authors: JSteunou ahumphreys87 jmeas samccone thejameskyle


text:
[HELP] Node pre gyp fails when running npm install

Any tips to get around this issue, when i bump package.json and the odbc to 2.4.8 I get an issue with the installation.
npm ERR! code 1
npm ERR! path /home/petter/test2/nice-rest/node_modules/odbc
npm ERR! command failed
npm ERR! command sh -c node-pre-gyp install --fallback-to-build
npm ERR! gmake: Entering directory '/home/petter/test2/nice-rest/node_modules/odbc/build'
npm ERR!   CXX(target) Release/obj.target/odbc/src/odbc.o
npm ERR! gmake: Leaving directory '/home/petter/test2/nice-rest/node_modules/odbc/build'
npm ERR! Failed to execute '/QOpenSys/pkgs/lib/nodejs18/bin/node /QOpenSys/pkgs/lib/nodejs18/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/petter/test2/nice-rest/node_modules/odbc/lib/bindings/napi-v6/odbc.node --module_name=odbc --module_path=/home/petter/test2/nice-rest/node_modules/odbc/lib/bindings/napi-v6 --napi_version=8 --node_abi_napi=napi --napi_build_version=6 --node_napi_label=napi-v6' (1)
npm ERR! node-pre-gyp info it worked if it ends with ok
npm ERR! node-pre-gyp info using @1.0.11
npm ERR! node-pre-gyp info using node@18.0.0 | os400 | ppc64
npm ERR! node-pre-gyp info check checked for "/home/petter/test2/nice-rest/node_modules/odbc/lib/bindings/napi-v6/odbc.node" (not found)
npm ERR! node-pre-gyp http GET https://github.com/markdirish/node-odbc/releases/download/v2.4.8/odbc-v2.4.8-os400-ppc64-napi-v6.tar.gz
npm ERR! node-pre-gyp ERR! install request to https://objects.githubusercontent.com/github-production-release-asset-2e65be/146304236/fa066300-abb4-4732-91ab-e47104c46794?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAVCODYLSA53PQK4ZA%2F20240115%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240115T164355Z&X-Amz-Expires=300&X-Amz-Signature=e2623448563cbec418a2b92a949042be4012e7119fb13178949cf29ee15f3c61&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=146304236&response-content-disposition=attachment%3B filename%3Dodbc-v2.4.8-os400-ppc64-napi-v6.tar.gz&response-content-type=application%2Foctet-stream failed, reason: read ECONNRESET
npm ERR! node-pre-gyp WARN Pre-built binaries not installable for odbc@2.4.8 and node@18.0.0 (node-v108 ABI, unknown) (falling back to source compile with node-gyp)
npm ERR! node-pre-gyp WARN Hit error request to https://objects.githubusercontent.com/github-production-release-asset-2e65be/146304236/fa066300-abb4-4732-91ab-e47104c46794?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAVCODYLSA53PQK4ZA%2F20240115%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240115T164355Z&X-Amz-Expires=300&X-Amz-Signature=e2623448563cbec418a2b92a949042be4012e7119fb13178949cf29ee15f3c61&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=146304236&response-content-disposition=attachment%3B filename%3Dodbc-v2.4.8-os400-ppc64-napi-v6.tar.gz&response-content-type=application%2Foctet-stream failed, reason: read ECONNRESET
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@9.3.0
npm ERR! gyp info using node@18.0.0 | os400 | ppc64
npm ERR! gyp info ok
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@9.3.0
npm ERR! gyp info using node@18.0.0 | os400 | ppc64
npm ERR! gyp info find Python using Python version 3.9.6 found at "/QOpenSys/pkgs/bin/python3"
npm ERR! gyp info spawn /QOpenSys/pkgs/bin/python3
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args   '/QOpenSys/pkgs/lib/nodejs18/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
npm ERR! gyp info spawn args   'binding.gyp',
npm ERR! gyp info spawn args   '-f',
npm ERR! gyp info spawn args   'make',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/home/petter/test2/nice-rest/node_modules/odbc/build/config.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/QOpenSys/pkgs/lib/nodejs18/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/home/petter/.cache/node-gyp/18.0.0/include/node/common.gypi',
npm ERR! gyp info spawn args   '-Dlibrary=shared_library',
npm ERR! gyp info spawn args   '-Dvisibility=default',
npm ERR! gyp info spawn args   '-Dnode_root_dir=/home/petter/.cache/node-gyp/18.0.0',
npm ERR! gyp info spawn args   '-Dnode_exp_file=/QOpenSys/pkgs/lib/nodejs18/include/node/node.exp',
npm ERR! gyp info spawn args   '-Dnode_gyp_dir=/QOpenSys/pkgs/lib/nodejs18/lib/node_modules/npm/node_modules/node-gyp',
npm ERR! gyp info spawn args   '-Dnode_lib_file=/home/petter/.cache/node-gyp/18.0.0/<(target_arch)/node.lib',
npm ERR! gyp info spawn args   '-Dmodule_root_dir=/home/petter/test2/nice-rest/node_modules/odbc',
npm ERR! gyp info spawn args   '-Dnode_engine=v8',
npm ERR! gyp info spawn args   '--depth=.',
npm ERR! gyp info spawn args   '--no-parallel',
npm ERR! gyp info spawn args   '--generator-output',
npm ERR! gyp info spawn args   'build',
npm ERR! gyp info spawn args   '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! gyp info ok
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@9.3.0
npm ERR! gyp info using node@18.0.0 | os400 | ppc64
npm ERR! gyp info spawn gmake
npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
npm ERR! In file included from /usr/include/sys/resource.h:57:0,
npm ERR!                  from /QOpenSys/pkgs/lib/gcc/powerpc-ibm-aix6.1.0.0/6.3.0/include-fixed-7.1/sys/wait.h:56,
npm ERR!                  from /QOpenSys/pkgs/lib/gcc/powerpc-ibm-aix6.1.0.0/6.3.0/include-fixed-7.1/stdlib.h:386,
npm ERR!                  from /QOpenSys/pkgs/lib/gcc/powerpc-ibm-aix6.1.0.0/6.3.0/include/c++/cstdlib:75,
npm ERR!                  from /QOpenSys/pkgs/lib/gcc/powerpc-ibm-aix6.1.0.0/6.3.0/include/c++/stdlib.h:36,
npm ERR!                  from ../src/odbc.cpp:20:
npm ERR! /usr/include/sys/time.h:108:16: error: redefinition of 'struct sigset_t'
npm ERR!  typedef struct sigset_t {
npm ERR!                 ^~~~~~~~
npm ERR! In file included from /QOpenSys/pkgs/lib/gcc/powerpc-ibm-aix6.1.0.0/6.3.0/include-fixed-7.1/time.h:199:0,
npm ERR!                  from ../src/odbc.cpp:19:
npm ERR! /QOpenSys/pkgs/lib/gcc/powerpc-ibm-aix6.1.0.0/6.3.0/include-fixed-7.1/sys/types.h:345:16: error: previous definition of 'struct sigset_t'
npm ERR!  typedef struct sigset_t {
npm ERR!                 ^~~~~~~~
npm ERR! In file included from /usr/include/sys/resource.h:57:0,
npm ERR!                  from /QOpenSys/pkgs/lib/gcc/powerpc-ibm-aix6.1.0.0/6.3.0/include-fixed-7.1/sys/wait.h:56,
npm ERR!                  from /QOpenSys/pkgs/lib/gcc/powerpc-ibm-aix6.1.0.0/6.3.0/include-fixed-7.1/stdlib.h:386,
npm ERR!                  from /QOpenSys/pkgs/lib/gcc/powerpc-ibm-aix6.1.0.0/6.3.0/include/c++/cstdlib:75,
npm ERR!                  from /QOpenSys/pkgs/lib/gcc/powerpc-ibm-aix6.1.0.0/6.3.0/include/c++/stdlib.h:36,
npm ERR!                  from ../src/odbc.cpp:20:
npm ERR! /usr/include/sys/time.h:124:3: error: conflicting declaration 'typedef int sigset_t'
npm ERR!  } sigset_t;
npm ERR!    ^~~~~~~~
npm ERR! In file included from /QOpenSys/pkgs/lib/gcc/powerpc-ibm-aix6.1.0.0/6.3.0/include-fixed-7.1/time.h:199:0,
npm ERR!                  from ../src/odbc.cpp:19:
npm ERR! /QOpenSys/pkgs/lib/gcc/powerpc-ibm-aix6.1.0.0/6.3.0/include-fixed-7.1/sys/types.h:361:3: note: previous declaration as 'typedef struct sigset_t sigset_t'
npm ERR!  } sigset_t;
npm ERR!    ^~~~~~~~
npm ERR! gmake: *** [odbc.target.mk:136: Release/obj.target/odbc/src/odbc.o] Error 1
npm ERR! gyp ERR! build error
npm ERR! gyp ERR! stack Error: gmake failed with exit code: 2
npm ERR! gyp ERR! stack     at ChildProcess.onExit (/QOpenSys/pkgs/lib/nodejs18/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:203:23)
npm ERR! gyp ERR! stack     at ChildProcess.emit (node:events:527:28)
npm ERR! gyp ERR! stack     at ChildProcess._handle.onexit (node:internal/child_process:291:12)
npm ERR! gyp ERR! System OS400 7.5
npm ERR! gyp ERR! command "/QOpenSys/pkgs/lib/nodejs18/bin/node" "/QOpenSys/pkgs/lib/nodejs18/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/home/petter/test2/nice-rest/node_modules/odbc/lib/bindings/napi-v6/odbc.node" "--module_name=odbc" "--module_path=/home/petter/test2/nice-rest/node_modules/odbc/lib/bindings/napi-v6" "--napi_version=8" "--node_abi_napi=napi" "--napi_build_version=6" "--node_napi_label=napi-v6"
npm ERR! gyp ERR! cwd /home/petter/test2/nice-rest/node_modules/odbc
npm ERR! gyp ERR! node -v v18.0.0
npm ERR! gyp ERR! node-gyp -v v9.3.0
npm ERR! gyp ERR! not ok
npm ERR! node-pre-gyp ERR! build error
npm ERR! node-pre-gyp ERR! stack Error: Failed to execute '/QOpenSys/pkgs/lib/nodejs18/bin/node /QOpenSys/pkgs/lib/nodejs18/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/petter/test2/nice-rest/node_modules/odbc/lib/bindings/napi-v6/odbc.node --module_name=odbc --module_path=/home/petter/test2/nice-rest/node_modules/odbc/lib/bindings/napi-v6 --napi_version=8 --node_abi_napi=napi --napi_build_version=6 --node_napi_label=napi-v6' (1)
npm ERR! node-pre-gyp ERR! stack     at ChildProcess. (/home/petter/test2/nice-rest/node_modules/@mapbox/node-pre-gyp/lib/util/compile.js:89:23)
npm ERR! node-pre-gyp ERR! stack     at ChildProcess.emit (node:events:527:28)
npm ERR! node-pre-gyp ERR! stack     at maybeClose (node:internal/child_process:1090:16)
npm ERR! node-pre-gyp ERR! stack     at ChildProcess._handle.onexit (node:internal/child_process:302:5)
npm ERR! node-pre-gyp ERR! System OS400 7.5
npm ERR! node-pre-gyp ERR! command "/QOpenSys/pkgs/lib/nodejs18/bin/node" "/home/petter/test2/nice-rest/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
npm ERR! node-pre-gyp ERR! cwd /home/petter/test2/nice-rest/node_modules/odbc
npm ERR! node-pre-gyp ERR! node -v v18.0.0
npm ERR! node-pre-gyp ERR!  -v v1.0.11
npm ERR! node-pre-gyp ERR! not ok
npm ERR! A complete log of this run can be found in:
npm ERR!     /home/petter/.npm/_logs/2024-01-15T16_43_26_499Z-debug-0.log

Looks like you're on IBM i 7.5. The header files shipped with GCC 6 is not compatible with 7.5, so you need to use GCC 10.
You'll need to install gcc10-cplusplus and then tell npm to use it, eg. CXX=g++-10 npm install.

Thanks, that solved the problem. 👍
Do you know how to instruct NPM to use this as a default?
/Petter

authors: kadler petterjohansson

repo: markdirish/node-odbc


text:
ERROR 'int' object has no attribute 'getitem' with MarkLogic 9.0-8.2

Unable to run the plugin against MarkLogic 9.0-8.2.
Seeing errors that look like:
newrelic_marklogic plugin now sending statuses to NewRelic Plugin API (to see more log messages change log_level=DEBUG).
retrieve statuses and update newrelic
dereference http GET
http://localhost:8002/manage/v2?view=status&format=json
'int' object has no attribute '__getitem__'
retrieve statuses and update newrelic
dereference http GET
http://localhost:8002/manage/v2?view=status&format=json
'int' object has no attribute '__getitem__'

In another environment, the error message was for float instead of int:
ERROR 'float' object has no attribute '__getitem__'

It seems that this is because of newly added fields and differences in the https://docs.marklogic.com/REST/GET/manage/v2@view=status response.
Newly added fields, such as memory-process-huge-pages-size, memory-process-res, memory-size, memory-system-free, memory-system-total, total-cpu-stat-system, total-cpu-statu-user
are returned as primitive numeric values.
"memory-size": 16384

However, most of the other metrics are returned as objects that have units and value properties. Such as:
"total-hosts": {
  "units": "quantity",
  "value": 6
}

It seems that adjustments need to be made to the following places in init.py to accommodate these newer properties with primitive values, instead of expecting that they will be objects that have a value property.
I think we could change lines like:
                else:
                    metrics["Component/hosts/" + metric + "[" + host_summary[metric]["units"] + "]"] = \
                        host_summary[metric]["value"]

to:
                    val = host_summary[metric]
                    if type(val) is dict:
                        metrics["Component/hosts/" + metric + "[" + host_summary[metric]["units"] + "]"] = val["value"]
                    else:
                        metrics["Component/hosts/" + metric + "[quantity]"] = val

in the following locations:

https://github.com/marklogic-community/newrelic-plugin/blob/master/newrelic_marklogic_plugin/__init__.py#L172
https://github.com/marklogic-community/newrelic-plugin/blob/master/newrelic_marklogic_plugin/__init__.py#L202
https://github.com/marklogic-community/newrelic-plugin/blob/master/newrelic_marklogic_plugin/__init__.py#L228

If that sounds reasonable, I can submit a PR with those changes.

Please consider tagging a new release that includes this fix. This will allow users to both deploy tagged releases and use this plugin with MarkLogic 9.0-8.2.

authors: hansenmc laquereric

repo: marklogic-community/newrelic-plugin


text:
Added ProgressListener

So we can incorporate your pull request, please share the following:

What issue are you addressing with this pull request?

This is a reusable listener that I created on another project using DMSDK where I wanted to keep track of progress while running a large query.

Are you modifying the correct branch? (See CONTRIBUTING.md)

Yes, the develop branch.

Have you run unit tests? (See CONTRIBUTING.md)

Yes, and I added ProgressListenerTest.

Version of MarkLogic Java Client API (see Readme.txt)

4.0.4

Version of MarkLogic Server (see admin gui on port 8001)

9.0-5

Java version (java -version)

1.8.0_131

OS and version

N/A

What Changed: What happened before this change? What happens without this change?

N/A

Thanks @jmakeig - while we're on the subject, Warriors in how many?

If we think this is a generally useful listener, please beef up the class javadoc to be in line with things like DeleteListener and ExportListener. For example, include an example of how to use it, and anything else the user needs to know to make best use of it.

Also @rjrudin can you make the PR against post4.1 branch? I have created a new branch for tasks/bugs  that should go in post 4.1 as we have 4.1 planned entirely for API-First. The branch name is "post4.1"
Sorry for the runaround.

@vivekmuniyandi I'll add the class comments and close this and submit a new one against the branch you mentioned.

repo: marklogic/java-client-api


text:
PutMarkLogic and RunFlowMarkLogic should send failed FlowFiles to a relationship

These 2 processors differ from the other processors in that when an exception occurs, they rollback the session. This causes the FlowFile to be retried. In the event of a connection error or misconfiguration, the FlowFile will repeatedly fail, leading to the logging described in #124 .
Both for consistency with the other processors and also for what seems like behavior that NiFi wants, these two processors should be modified to send failed FlowFiles to a "failure" relationship. This does happen already for some failures in PutMarkLogic, but we should do it for all failures. This gives the user the ability to determine how to handle the relationship and avoids the undesirable behavior reported in #124.

Resolved via #200

repo: marklogic/nifi


text:
test on Node.js 0.12 and io.js

Now that Node.js 0.12 and io.js 1.1.0 are available, the next release of the API should test in these environments as well.

Steps to upgrade node on *nix:

sudo npm install n
sudo n 0.12.0

test-basic and test-complete are running fine on node version 0.12.0 on both linux and windows

Instruction to install iojs:
http://jonathanmh.com/installing-io-js-ubuntu-digital-ocean-droplet/

wget https://iojs.org/dist/v1.5.1/iojs-v1.5.1-linux-x64.tar.gz
tar zxf iojs-v1.5.1-linux-x64.tar.gz
cd iojs-v1.5.1-linux-x64
cp bin/* /usr/bin (as root user)

Then modify package.json to use iojs engine version 1.5.1
"engines": {
"iojs": "1.5.1"
},
Then run npm install

iojs v1.5.1 is working fine on test-basic and test-complete on linux

Excellent.  Thanks for confirming that.

iojs v1.5.1 is working fine on test-basic and test-complete on windows

authors: ayuwono ehennum

repo: marklogic/node-client-api


text:
chore: upgrade vite dependency

As far as my testing shows, this works fine with Vite 6

@DylanPiercey Any chance we can release this?

Shoot, I'm used to the automated release workflow but this PR was missing a changeset (and I think the changeset bot is incorrectly configured so it didn't warn us). I'll get out a release in a few mins.

authors: DylanPiercey vwong

repo: marko-js/arc-vite


text:
Auto ID could be better

The readme says "Identification beacons will be transmitted if the amount of time since the last identification is greater than the configured interval and there is any data to send." but that doesn't really facilitate following the rules in the US (and probably many other places) where the requirement is "every 10 minutes and at the end of each transmission".
To do it right according to the common interpretation, you should

Send an ID if there's outgoing data, and the ID timer is expired or about to expire.
Send an ID (even if idle) if the ID timer is about to expire and we've sent data since the last ID.
Send an ID on exit (if reasonably possible) if we've sent data since the last ID.

Another way of looking at it: an ID frame should follow within 10 minutes after any transmission.

Agreed, that is a better way of doing it. I'll implement it like that.

This is now implemented in the 0.1.5 release :) Thanks for the help!
https://github.com/markqvist/tncattach/releases/tag/0.1.5

authors: arodland markqvist

repo: markqvist/tncattach


text:
Support for unusedOnly and nameOrValue GET filters for objects that support them

This should take care of #157
Open to feedback here since this is somewhat similar to how searching by name filter for a few endpoints work. I didn't want to fully revamp that since my solution is a bit different.

Worked well, thanks for the PR.

authors: manofcolombia marksull

repo: marksull/fmcapi


text:
Fix custom widget tests

Description
Previous tests test_custom_widget and test_custom_widget2 failed to override the BLEACH_DEFAULT_WIDGET at the correct time to influence the form being used to test thus the tests were not actually testing with the intended widget class.
The reason the old tests were not correct is that testproject.forms.BleachForm is evaluated at compile time (with settings as per testproject.settings) while the mock only changes the settings when the individual test is run and it is too late.
This PR defines a class within the setUp method of the test class while override_settings is in effect.
Checklist

[X] I have ran tox to ensure tests pass
[X] Usage documentation added in case of new features
[X] Tests added / I have not lowered coverage from 100%

Great catch! Thanks @MrkGrgsn.

authors: MrkGrgsn marksweb

repo: marksweb/django-bleach


text:
Theme is visually borked on small screens

@markteekman After opening the mobile menu toggle, something visually happens. The icon for the mobile toggle has visually vanished although the button is still there and functional. In general, the layout looks off even when returning to the collapsed menu.
Screencast: https://cloudup.com/czmmaH5b-kA

Upon a quick inspection, it looks like the svg element might be the culprit because if I remove it from within the button, the layout appears fine.

I'm also curious why you've chosen to now use the same menu twice – once as mobile, and the other as desktop. Is there any benefit or just personal preference.

Hey @djmtype! Thanks for submitting the issue 🙂 Weird, I haven't noticed this behavior before, must have been after doing some updates.. I'll check it out. I'm hoping to have some time to get to this in the near future (and your other issue in the Accessible Astro Components repo as well), have been a little too busy lately to do work on the Accessible Astro projects.
As for the double menu, that's a design decision I made in version 1.3.0. It introduced an auto responsive feature for the navigation, so that there's no need to custom adjust media queries depending on the number of menu items. It's especially useful when you're using a Headless CMS and menu items are added dynamically. Anyway, the desktop menu is needed to calculate the size for switching between the mobile and desktop menu 😄

authors: djmtype markteekman

repo: markteekman/accessible-astro-starter


text:
added fancy annotationarray indexing

Implements #112
TODO

[x] documentation
[x] unit tests

I think this is ready for CR.
@ejhumphrey ?

This lgtm. My only comment would be to add documentation somewhere that outlines exactly what kinds of indexing can be done, both generically and with the examples you already give.

Thanks for the CR.  I expanded the docs a little, should be good to go.

authors: bmcfee rabitt

repo: marl/jams

license: isc