text:
Config is not loaded when file is a symbolik link

My config is symlinked to the etc/keyd directory. Today I upgraded to the 2.2.6-beta and noticed
that my config would not be loaded.
After a short debugging session I noticed that my config file was not found. I then removed the
symlink and copied the config file into the etc/keyd directory. With a copy of the file keyd finds my config.
I checked if this behavior occurred in the 2.2.5-beta and there symlinks still work without issue.
Then I checked each commit after the 2.2.5-beta and found out that 23d16a8 is the cause.
More specifically, It is this code:
// src/config.c
const char *config_find_path(const char *dir, uint16_t vendor, uint16_t product)
{
	// ...

	while ((ent = readdir(dh))) {
		char path[1024];
		int len;

		// This if checks for regular files. Symlinks are not regular files.
		if (ent->d_type != DT_REG)
			continue;

		len = snprintf(path, sizeof path, "%s/%s", dir, ent->d_name);
		if (len >= 5 && !strcmp(path+len-5, ".conf")) {
			int ret = config_check_match(path, vendor, product);
			if (ret && ret > priority) {
				priority = ret;
				strcpy(result, path);
			}
		}
	}
	// ...
}

Simply changing the if to include symlinks fixes the problem.
if (ent->d_type != DT_REG && != ent->d_type != DT_LNK)
	continue;

Is this an intentional change or an oversight?

Thanks, this was indeed a regression. It should be fixed in the latest commit. I will probably do a version bump layer today.

authors: Compile-Time rvaiya

repo: rvaiya/keyd


text:
External keyboard on FreeBSD

Keyd doesn't detect nothing from external keyboard on FreeBSD. It works fine on linux.
Even keyd --monitor shows nothing.

The command should officially be keyd monitor, but currently keyd is only supported on linux, and FreeBSD should not be supported.
@rvaiya Please consider whether FreeBSD can be made eligible for support.

So, to add some notes here, the latest stable version in freebsd is the 2.4.2, which is what i'm using, so the command line for that should be keyd --monitor.
The problem with external key boards is that keyd doesn't detect them at all as you can see the output below
$ keyd --monitor
 device added: 0000:0000 (System mouse)
device added: 0000:0000 (System keyboard multiplexer)
device added: 0001:0001 (AT keyboard)
device added: 0fac:0ade (keyd virtual device)
device added: 0fac:1ade (keyd virtual pointer)

and it is missing the
$ sysctl -a | grep evdev
kern.evdev.input.7.phys: ukbd0
kern.evdev.input.7.id: { bustype = 0x0003, vendor = 0x1c4f, product = 0x0026, version = 0x0000 }
kern.evdev.input.7.name: SIGMACHIP USB Keyboard, class 0/0, rev 1.10/1.10, addr 8

I then tried to put the ids manually and again, it worked with laptop's key board but not the external one.
The last thing i tried to do was building it manually from source with gmake. but it  was complaining about the absence of the bind package, so i didn't bother to use it afterwards.

Indeed, the package seems to exist on FreeBSD.

https://pkgs.org/search/?q=keyd
https://freebsd.pkgs.org/13/freebsd-amd64/keyd-2.4.2.pkg.html

Maybe the package definition does not specify the appropriate dependent package, etc.?
I feel it would be appropriate to discuss this with the package maintainer first, not here.

Duplicate of #261. Applied downstream as it isn't part of any tag yet.

It worked! thanks yall
btw, when will the next version hit?

source: gharchive/issue

authors: ItsNilDev jbeich tkna91

license: MIT

license_type: permissive

license_source: github-api


text:
Error when make dsn.String() as connect string

AdwordsID:v201806:false:false:false|DeveloperToken|AccessToken|ClientID|ClientSecret|RefreshToken
panic: driver: bad connection

When i use
dsn := awql.NewDsn("AdwordsID")
dsn.AdwordsID = "AdwordsID"
  dsn.APIVersion = "v201806"
  dsn.DeveloperToken = "DeveloperToken"
  dsn.ClientID = "ClientID"
  dsn.ClientSecret = "ClientSecret"
  dsn.RefreshToken = "RefreshToken"
 dsn.AccessToken = "AccessToken"

i recieve this message:
panic: driver: bad connection
When i print the dsn.String()
AdwordsID:v201806:false:false:false|DeveloperToken|AccessToken|ClientID|ClientSecret|RefreshToken

what is :false:false:false ???
if remove it, my project will run ok.?
Can you help me?

Hi @kokorolee,
It's normal, all given inputs are wrong (fake token, wrong Adwords ID format, etc.).
Try for example with valid data in a DSN's struct with just these fields: AdwordsID, DeveloperToken and AccessToken.
If you do not have a valid AccessToken yet, use valid data for AdwordsID, DeveloperToken, ClientID, ClientSecret and RefreshToken (keep empty the other struct fields).
Regarding your last question, the 3 booleans refer to the value of these fields in the DSN's struct : SkipColumnHeader, SupportsZeroImpressions and UseRawEnumValues.

authors: kokorolee rvflash

repo: rvflash/awql-driver


text:
Can choose date or year even icon is hidden

Our design doesnt have that calendar icon at the top, so maybe a good solution is when we hide that calendar icon there is also an option to tap the Text(month and year) at the top and it will open a date or year picker.

I think, the date picker should have an icon. Otherwise users won't be able to discover it. What if you could set the appropriate icon as a property of the calendar class?

You can hide the icon. But I do not plan to add a text button or custom style button as an alternative at this moment.

authors: KeithBacalso rwbr


text:
[enhancement] slicing with right-open interval

Context
The PfLine and PfState classes have the .loc[] property, which is inherited from pandas. It allows us to select from/until a certain row. E.g., if df is a pandas DataFrame, we can do df.loc['2020':'2022'].
This is inclusive-inclusive, meaning, both the left and the right limit are included in the selection. Let's say df has hourly values:

df.loc['2020-01-01':'2022-01-01'] -> The first row has timestamp '2020-01-01 00:00' and the final row has '2022-01-01 23:00'.
df.loc['2020':'2022'] -> The first row has timestamp '2020-01-01 00:00' and the final row has '2022-12-31 23:00'.

Problem
This goes contrary to common slicing operations in python, which do not include the endpoint.
It is unpractical too. Let's say we have a price-pfline pfl1 spanning the whole 2020, 2021, and 2022, and pfl2 spanning the whole 2022, 2023 and 2024. And we want to combine them into 1 pfline spanning 2020, 2021, 2022, 2023 and 2024. Here we focus on slicing the portfolio lines so that they have no overlap but also no gap between them. (How we combine them into a new pfline is a different issue.) Let's say we want the split to be so, that everything before 2022 must be from pfl1, and everything during/after 2022 from pfl2. Using .loc[], we must use:

pfls_to_concat = [pfl1.loc[:'2021'], pfl2.loc['2022':]]. Notice how we cannot use the same timestamp to make the selection in both.
Or we can do pfls_to_concat = [pfl1.loc[:'2021-12-31 23:00'], pfl2.loc['2022-01-01 00:00':]]. This is even worse, because we have to know the frequency of the pflines and stay one unit away from the limit. We cannot use pfl1.loc[:'2022-01-01 00:00'], because this timestamp would be included twice in the resulting list.

Solution
Add a property (maybe called .slice[]?), which uses the more common slicing convention, where .slice[a:b] includes a but excludes b. The same issue as above then becomes:

pfls_to_concat = [pfl1.slice[:'2022'], pfl2.slice['2022':]].
Or we can do pfls_to_concat = [pfl1.slice[:'2022-01-01 00:00'], pfl2.slice['2022-01-01 00:00':]].

Much better.
Notes

The method should interpret both a and b as timestamps, and not as time periods. So, specifying '2022', this is not the entirety of 2022, but actually the start of 2022. It should turn it into '2022-01-01 00:00'.
We can probably just use a mask under the hood, i.e., mask = a <= self.index < b and then return a PfLine(self.df[mask]).
In pandas, pd.DataFrame[] accepts many arguments. E.g., a column name selects that series. But it also accepts a slice - df['2021':'2023'] is the same as df.loc['2021':'2023']. We don't want to do this, because we will have 2 slicing methods: .loc[] (inclusive-inclusive) and .slice[] (inclusive-exclusive). But it would be good for the user if we can detect it if a slice is passed into pfl[...], and give a useful Exception ("to make a slice, use .slice[] (recommended) or .loc[]. slice[] uses the common python convention and excludes the right timestamp; loc[] uses the pandas-convention and includes the right timestamp.")
Don't forget tests and to add a section to the documentation ;)

merged :)

repo: rwijtvliet/portfolyo


text:
special_functions.rst: typo: excepts → accepts

Was skimming the docs and noticed this.

Thanks!

source: gharchive/pull-request

authors: michaelhelmick wjt

repo: ryanmcgrath/twython

license: mit

license_source: bigquery


text:
Is fn.cloneNode = fn line still relevant?

https://github.com/ryansolid/dom-expressions/blob/a1d24a1a4fb07c3a63919c978ec4180896de9248/packages/dom-expressions/src/client.js#L67-L84

Backwards compat

authors: MrFoxPro ryansolid

repo: ryansolid/dom-expressions


text:
Tests that come out of the box fail

Hi,
I started my project with npm init solid app my-app.
When I run npm test, I get:
Test suite failed to run

    ReferenceError: globalThis is not defined

    > 1 | import { render } from 'solid-js/dom';
        | ^
      2 | import App from './App';

....

Known issue?
Thanks!
Jon

Hmmm.. what version of Node are you on? I just added that in the last release earlier this week. But I suspect it is a Node version thing.
Yeah.. they only added support in Node 12. I didn't realize it was that recent. Atleast Node 12 is LTS, and Node 10 is already in maintenance on the way out. But it's technically supported for another year I guess. Decent browser support: https://caniuse.com/#search=globalThis. That's a shame. This solves the global versus window issues for code that runs on client and the server. Polyfilling seems awkward: https://mathiasbynens.be/notes/globalthis. Ok I will have to make a call on this.

I've tried on Node 10. It didn't work, I read about it a bit and came to the same conclusion that 12 should work. So I tried on 12 as well and it still didn't work. I'll check the links you mentioned.

If it didn't work in 12 something else may be going.
I am using 12 and haven't had any issues running local tests. I haven't tried the tests in create-solid since then though so I will give it a shot as well. I was hoping the upgrade to 12 would just handle it. For once it looks like TS isn't the culprit. Let me know if you make any progress. I will give it a shot in a few hours when I can get back on my computer and do a clean install and test.

Ok, yeah clean install of both standard and typescript versions. Tests seem to be working. I'm on Node 12.11.1. Not sure if there is something more specific version wise. Node command might require you to re-open the terminal if you use a node version manager like nvm. So node --version right before you run the tests to make sure it's the right version. Not really sure what else the issue could be.

I did what you've suggested and I have node version v12.16.3 running right now. Indeed I do use NVM, so restarting the terminal instance helped.
However, now I'm getting the following error:
FAIL  src/App.test.tsx
  ● Test suite failed to run

    Jest encountered an unexpected token

    This usually means that you are trying to import a file which Jest cannot parse, e.g. it's not plain JavaScript.

    By default, if Jest sees a Babel config, it will use that to transform your files, ignoring "node_modules".

    Here's what you can do:
     • To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config.
     • If you need a custom transformation specify a "transform" option in your config.
     • If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the "moduleNameMapper" config option.
....

It looks like parts of the configuration aren't aware that I'm running TypeScript...

Are you using the TypeScript template? Ie. created via npm init solid ts-app my-app. The original issue lead me to believe this was the js template you were having issues with. Technically speaking it's in the config so it should work either way. But maybe the tsconfig.json differs if this started as a js project?

Any progress? I don't think I will be much help without more information.

Closing due to lack of activity.

authors: cannahum ryansolid

repo: ryansolid/solid


text:
Draft Streamlit

@ryansurf
https://github.com/ryansurf/cli-surf/issues/35#issuecomment-2144156493
This is regarding the Streamlit discussion above. (This is Draft PR.)
To make it easy to try out Streamlit's features, we have implemented some basic functionality.
Check out this branch and execute the following commands to start the server.
poetry install
poetry shell
streamlit run src/dev_streamlit.py

Then, access http://localhost:8501.
For example, if you want to display sea data in a graph, you would pass the response from an API that provides ocean data(Data now retrieved by cli.py) to the Streamlit code.
There are many other things you can do with Streamlit, so check out the official documentation for more information :)
I would love to help you with the front end implementation, but I don't know what you want to show your users, Let's just leave it at that for now, in terms of your help (lol).

I think this might be perfect for our use case.
I think it would be cool to show users a graph of the forecasted surf heights. The forecast goes up to a week, so we can use a line graph to plot this, perhaps along with the swell period.
Eventually, I want to also gather ocean temperature and tides. These would also work well on some sort of chart/graph.
This looks great. I'm gonna mess around with the code now and see what I can come up with

Since the Streamlit matter is progressing in https://github.com/ryansurf/cli-surf/pull/44, I'll close this Draft PR.

authors: K-dash ryansurf

repo: ryansurf/cli-surf


text:
Unable to detect EMU-2 device

After installing HACS (1.25.1) and Rainforest-emu-2 integration (1.2.0), the emu-2 device is never actually detected by HA.
Setup:
HA (2022.5.5) docker container on Ubuntu VM under proxmox
conbee and rainforest USB passthru to VM and mapped to docker container
EMU-2 connected to power meter and showing live values on-device.
Rainforest integration shows up in HACS menu, but no device ever detected by HA (so port selection dialog never shows)
(Tried with multiple USB cables and with/without batteries in EMU.  Conbee functions properly on passthru with 8 sensors in HA)

Hey @masta-bhawk,
I'm a bit confused, so you installed v1.2.0 from HACS, anId then restarted Home Assistant.
Next you added the integration from the Integrations page in Home Assistant, but are you saying that you arent getting the dialog to choose the device like this one below?

If this dialog isnt showing up, then I believe that means the setup flow is throwing an error. If thats the case, I think you would see something in the home_assistant.log file with error details.

The other thing to test, is make sure you can see output from the EMU-2 device within the VM. You could use a serial monitor like minicom to open the device and confirm you are seeing output.
Also make sure that Home Assistant has permissions to access the device.

It is working now!
In case it helps someone else, the root cause was that the USB emulation in proxmox was set to use USB3 mode.  Once I disabled that and rebooted the Ubuntu VM, when HA started backup the emu-2 was detected, the dialog above showed correctly, and now all is well, even plugging in to the energy dashboard just fine.
Thanks for a great integration!
PS: Just to close the loop on the original observation and what was tried.  You are correct that the dialog never showed because the emu-2 device was never detected by HA discovery.  HA Logs showed nothing useful (other than a warning about the custom integrations that weren't tested).  Minicom actually wouldn't connect because the /dev/serial/by-id/...[rainforest]... string was too long.  Setting a symbolic link to point to that did allow minicom to connect.  But in the end, once the usb3 emulation in prox was turned off, HA ended up detecting it just fine (on /dev/ttyACM0 ) and now all seems to be functioning great.

Thanks for the update, looking at the logic I think there are two issues:

I'm using "serial.tools.list_ports.comports", and it looks like this method isn't find the serial port. Not sure if there is much I can do here.
If no com ports are detected, then it should prompt the user to enter the com port. This flow appears to be failing.

I'm going to at least attempt to fix 2, so that if the com port isnt detected you can still manually enter the port.

@ryanwinter I'm having the same issue.  I don't see the dialog during install.  I'm using a virtual serial port in virtualbox running haos.
I can get data on the serial port, just need to work out how to get the port configured and I'm off and going.

I don't see anything relevant in the logs.  Perhaps you can add a bunch of logging in the config flow and I can re-install to gather the info you need to fix this?
2022-06-19 06:13:07 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-06-19 06:13:07 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration rainforest_emu_2 which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-06-19 06:13:07 WARNING (Recorder) [homeassistant.components.recorder.util] The system could not validate that the sqlite3 database at //config/home-assistant_v2.db was shutdown cleanly
2022-06-19 06:13:07 WARNING (Recorder) [homeassistant.components.recorder.util] Ended unfinished session (id=12 from 2022-06-19 13:12:49.809033)
2022-06-19 06:13:12 INFO (Thread-3) [homeassistant.components.mqtt.client] Connected to MQTT server core-mosquitto:1883 (0)
2022-06-19 06:13:12 DEBUG (MainThread) [homeassistant.components.mqtt.client] Subscribing to homeassistant/+/+/config, mid: 1
2022-06-19 06:13:13 DEBUG (MainThread) [homeassistant.components.mqtt.client] Subscribing to homeassistant/+/+/+/config, mid: 2
2022-06-19 06:13:13 DEBUG (MainThread) [homeassistant.components.mqtt.client] Subscribing to tasmota/discovery/#, mid: 3
2022-06-19 06:13:16 WARNING (MainThread) [aioesphomeapi.reconnect_logic] Can't connect to ESPHome API for plug3 @ 192.168.101.13: Error connecting to ('192.168.101.13', 6053): [Errno 113] Connect call failed ('192.168.101.13', 6053)
2022-06-19 06:13:21 DEBUG (MainThread) [homeassistant.components.mqtt.trigger] Attaching MQTT trigger for topic: 'home/attic/workshop/button', payload: '1'
2022-06-19 06:13:21 DEBUG (MainThread) [homeassistant.components.mqtt.trigger] Attaching MQTT trigger for topic: 'home/attic/workshop/button', payload: '2'
2022-06-19 06:13:21 DEBUG (MainThread) [homeassistant.components.mqtt.trigger] Attaching MQTT trigger for topic: 'home/attic/workshop/button', payload: '3'
2022-06-19 06:13:21 DEBUG (MainThread) [homeassistant.components.mqtt.client] Subscribing to home/attic/workshop/button, mid: 4
2022-06-19 06:13:21 DEBUG (MainThread) [homeassistant.components.mqtt.client] Subscribing to home/attic/workshop/button, mid: 5
2022-06-19 06:13:21 DEBUG (MainThread) [homeassistant.components.mqtt.client] Subscribing to home/attic/workshop/button, mid: 6
2022-06-19 06:13:23 DEBUG (MainThread) [homeassistant.components.mqtt.client] Transmitting message on homeassistant/status: 'online', mid: 7```

I switched to usb passthrough (from serial port forwarding) and the plugin found the device vid/pid just fine and works well.  Let me know if you want to debug the serial config path some more.

I have an open work item to replicate the problem when no usb ports are found, looks like its crashing out. Just havent had time to look at this yet :(

authors: TomKeddie masta-bhawk ryanwinter


text:
Nickname already taken

In the event the nick is already taken then there's a visual collision in the client. Our concept of the nick doesn't change to the new nick and instead display the nick defined in the config.

Document ;;nick

Should create a new input box in the config for an alt-nick

repo: ryanwohara/irc-plugin


text:
🛑 dVishper is down

In 392959e, dVishper (https://vishper.rzlamrr.my.id) was down:

HTTP code: 520
Response time: 299 ms

Resolved: dVishper is back up in 1e09716 after 7 minutes.

repo: rzlamrr/status


text:
[BUG] Lombok @Builder not producing builder class in submodule of multi-module Gradle project

Describe the bug
Lombok won´t produce the builder class with the @builder annotation in the library module, but it works as expected in the application module
Caused by: java.lang.ClassNotFoundException: com.demo.common.model.SharedModel$SharedModelBuilder at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:583) at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521) ... 22 more
This is the original issue that I´ve created in Quarkus with a Demo Project attached: https://github.com/quarkusio/quarkus/issues/7367

This doesn't sound like an issue with lombok; if annotation processors are not invoked there isn't a thing we can do about it; that means we don't run, at all.

authors: mklueh rzwitserloot

repo: rzwitserloot/lombok


text:
How to make this work with local dependency packages ?

Thank you for this wonderful solution - It saves hell a lot of time in development. This should really be included in the framework itself.
We have been using Library component for sharing code. And because of lot of problems we are having with using "npm link" we are using the below pattern to install the library in the solutions

"sp-fx-library": "file:../SPFx-Library"

Sometimes we would need to work on both webpart and library solutions at the same time, and hence we have changed the port number of library packages and do gulp serve on both solutions simultaneously. This had been working well for us.
Now we have added the fast serve changes for both the solutions and have changed the port number in the webpack.js file of library solution. If we give "npm run serve" on both solutions, the changes in library solution is not getting reflected after reloading or after making changes in webpart.
For now we are able to use gulp serve on library and npm run serve on webpart, which is working. Is there any way to get "npm run serve" working in both library and webpart solutions at the same time?
Sample project (It was originally created for some other issue, but I have modified it to include fast serve changes)

Good question, I will take a look later today and come back with available options.

It looks like it's not possible to have an easy solution with library components and

"sp-fx-library": "file:../SPFx-Library"

library reference.
What I can recommend is using Lerna tool with library components.
The flow is simple:

you scaffold library component and your web part
add spfx-fast-serve to every project
add lerna and run lerna bootsrap
then run lerna run --parallel serve

The only difference is, that you should add writeToDisk: true for the devServer settings in webpack.js for your library component project and change a port.

Thank you for the quick reply. All of webpack and stuffs around it are very new for me, and probably for a lot of people who had been in microsoft world. I will give your suggestion a try. Lerna also got me interested with the dependencies management as well. For now we will work with gulp serve on library, as it is already a huge improvement over what we had earlier.
By my understanding from the link you have provided, I believe this is a limitation with webpack itself. Please correct me if I am wrong. If the limitation is with SPFx, then I hope one day Microsoft will do something about it in longer run.

It looks like it's not possible to have an easy solution with library components and

"sp-fx-library": "file:../SPFx-Library"

library reference.

Just for understanding purpose, does this mean fast-serve works with npm-link?

It's possible to configure spfx-fast-serve with library components using two approaches:

With npm link (read official docs on this method):
a. After you performed all steps from the docs to scaffold the projects - corporate-library and corporate-webparts. Run
npm link

inside corporate-library and
npm link corporate-library

inside corporate-webparts project root.
It's very important, that in npm link corporate-library command, corporate-library is a package name from package.json (and not a folder name!)
b. Install spfx-fast-serve in both projects. In a library component project open webpack.js and modify:

port variable - use any other value different from the default one, for example 4320
for devServer config set open: false and writeToDisk: true

c. Inside corporate-webparts project modify package.json and add dependency "corporate-library": "<version>", where corporate-library is your package name
d. Run npm run serve from library component, then from corporate-webparts project (the order of run is important)
e. Enjoy the incredible speed of both library component and web parts, an automatic refresh of a browser, when you change anything inside library component!

Another approach is using Lerna tool. I recommend this approach because it simplifies a lot of things and it's easy. In the past, I created a detailed post on how to use Lerna with library components.
Here are the steps to make it work with spfx-fast-serve:
a. Assuming you configured corporate-library and corporate-webparts with Lerna, add spfx-fast-serve in every project.
b. In a library component project open webpack.js and modify:

port variable - use any other value different from the default one, for example 4320
for devServer config set open: false and writeToDisk: true

c. Run lerna bootstrap
d. Run lerna run --parallel serve
e. Enjoy the incredible speed of both library component and web parts, an automatic refresh of a browser, when you change anything inside library component!

You see, with Lerna, you don't care about sym links and dependencies in different projects, Lerna resolves it under the hood.

@kmprasad4u If you want to test it with any of the options above, I recommend you to update spfx-fast-serve to the latest version:
npm install spfx-fast-serve -g

And then run it on library component project again, since I added some fixes in the latest version related to library component.

By my understanding from the link you have provided, I believe this is a limitation with webpack itself. Please correct me if I am wrong. If the limitation is with SPFx, then I hope one day Microsoft will do something about it in longer run.

Mostly that's issue of webpack and npm.

Thank you for the intructions, its very clear.
I was also looking into workarounds yesterday and the closest I have got (though not related to SPFx) is this. I learnt that fast-serve doesn't update lib folder, and processes every request from src folder, but webpack is looking into the lib folder of library and hence the updates in library are not reflecting in the webpart. So I was trying the below things

to see if I could use proxy to redirect library requests to the src folder in another port at which the library is being served. But I was not able to get it to working. Do you think this approach is worth exploring more ?
using alias to map the library to relative path of src folder from node modules. This kind of works with some warning, but it defeats the purpose of having a separate library package. Also not sure how the dependencies will be handled for the libraries. So just skipped over this option.

The below note in the link you have provided is one of the major problems and the reason we got into relative package approach. I will definitely give lerna a try some time later as it looks very interesting and will definitely helps us in other ways as well.

If you want to run npm install, you will have to temporarily remove the reference to the corporate library and re-establish the reference by running npm link corporate-library and update the reference in package.json.

to see if I could use proxy to redirect library requests to the src folder in another port at which the library is being served

Actually, that's a brilliant idea. After some trials, I was able to configure everything without "npm link" approach.
So this is the third option, without npm link (assuming you have library components and "corporate web parts" projects scaffolded and added spfx-fast-serve):

In your "corporate web parts" project add dependency on library component:
npm install ../spfx-library --save

where spfx-library is a folder name with library component (not a module name from package.json)

In a library component project open webpack.js and modify:

port variable - use any other value different from the default one, for example 4320
for devServer config set open: false and writeToDisk: true

Inside the "corporate web parts" project, modify webpack.js, under devServer.proxy add a new entry:
"/node_modules/corporate-library/**/*.*": {
  target: "https://localhost:4320",
  pathRewrite: { "^/node_modules/corporate-library": "/" },
  secure: false
}

where corporate-library is you package name from library components projects (taken from package.json) and target is your library components url (you should use the same port you configured on step 2)

Now we've configured everything, the only issue is that in our "corporate web parts" we don't have the most recent intellisense from library components. In other workds, if we add a new method in the library component, we won't see it in "corporate web parts" projects, because fast-serve doesn't output anything to lib folder.
However, the fix is quite simple. You should either run regular "gulp serve" in parallel to "npm run serve", but it's slow. The better idea is just running additional TS compilation using "tsc -p tsconfig.json" command.
To make it work, add concurrently dependency to your library components project:
npm install concurrently --save-dev

and update "serve" command in package.json to be:

"serve": "cross-env NODE_OPTIONS=--max_old_space_size=4096 gulp bundle --custom-serve && cross-env NODE_OPTIONS=--max_old_space_size=4096 concurrently "webpack-dev-server --mode development --config ./webpack.js --env.env=dev" "tsc -p tsconfig.json -w --preserveWatchOutput""

If you don't want to use concurrently, then simply run "tsc -p tsconfig.json -w --preserveWatchOutput" in separate process.

Finally, run npm run serve inside library components and then inside "corporate web parts" project (the order of run is important).

@s-KaiNet
Excellent... thank you :)... I was trying those exact things that you have mentioned.. not sure where I got wrong... (May be I was trying them without the recent changes in spfx-fast-serve)...  Anyways glad there is some solution... I got some other priority work right now.. I will try out your suggestions may be tomorrow and see if there is any issues with it...
It would also be great if this setting can be automated and probably have arguments as well, so we don't have to do it manually in the webpack.js. (Not sure how much is possible) Say if I have an npm script "servewithlib",  it will automatically serve my library as well and pass in arguments to the webpart's webpack.js to add these additional proxies. That way if i just want to work in webpart, I will use npm run serve, otherwise i will use npm run servewithlib. This will also make the webpack generic. I will also try out this once I verify if your suggestions are working fine.
Thanks once again

Yeah, I also thought about something more generic, however, depending on the library component approach you use (Lerna or npm install ../, for example for lerna you don't need concurrently and proxy map), the resulting configuration file is slightly different. Also, in some cases, webpack.js should accept library component name as parameter.
All above makes it quite complicated to make good generic solution. That's why for now I prefer to have good documentation on "spfx-fast-serve with library component", which describes all options and steps, rather than spend time on implementing a complicated generic solution. Of course, there are some manual steps, but you have to do it once, also you don't create new library components too often.

@s-KaiNet
Your suggestion works excellently in my example project. I will have to test it in an actual project and see if everything goes well.
The below has been my issue originally, the changes were not reflected, but the library was working.

I learnt that fast-serve doesn't update lib folder, and processes every request from src folder, but webpack is looking into the lib folder of library and hence the updates in library are not reflecting in the webpart.

After you suggested the concurrently change, I thought whether that alone could fix the issue I had originally. Looks like it works with these settings...

writeToDisk is true
del.sync(["dist/."]); // this line should be as it was before
Proxy settings to redirect to library host is not required

Now I have below questions

can you please confirm if there is any issues that you may foresee
is del.sync(["dist/."]); right to use ? (Before the change you did recently, the library component was loading from a path like webpack:/// and after the change you did, it was loading from https://localhost:4322/node_modules and thats the reason I was not able to make a proxy change properly as it was loading differently before)
whats the right way to stop the server ? ctrl + c is sufficient ? Just asking since there are two processes running

Yeah, I also thought about something more generic, however, depending on the library component approach you use (Lerna or npm install ../, for example for lerna you don't need concurrently and proxy map), the resulting configuration file is slightly different. Also, in some cases, webpack.js should accept library component name as parameter.
All above makes it quite complicated to make good generic solution. That's why for now I prefer to have good documentation on "spfx-fast-serve with library component", which describes all options and steps, rather than spend time on implementing a complicated generic solution. Of course, there are some manual steps, but you have to do it once, also you don't create new library components too often.

Completely agree. We are already adding the extra build condigurations again in webpack.js as well. So no trouble in making additional changes in webpack for one solution and as you say its one time.

del.sync(["dist/."]);

this line should be changed to del.sync(["dist/*.js", "dist/*.map"]);, otherwise "dist/*.* removes some important files (.manifest.json in particular).

can you please confirm if there is any issues that you may foresee

I don't see any issues with this approach. Also, spfx-fast-serve doesn't destroy default SPFx "gulp serve" pipeline. You can always switch back in case if you have issues.

is del.sync(["dist/."]); right to use ?

del.sync(["dist/*.js", "dist/*.map"]); is right to use.

(Before the change you did recently, the library component was loading from a path like webpack:///

And that was wrong.
A bit of theory - when you use regular "serve", it creates a library package inside /dist folder. When you run "serve" in "webparts" project, "serve" process detects library component and marks it as an external dependency for webpack. Later on, in runtime, SPFx loads library component package from /node_modules/<library component name>/dist/lib.js.. This is the default "serve" behavior and "fast-serve" should do exactly that, otherwise the files are bundles directly from "lib" folder and included into the "webparts" project, which is wrong and might leads to additional problems.
When using npm link solution, link to the library component is inside "webparts" node_modules folder, thus request https://localhost:4321/node_modules/<library component name>/dist/lib.js works just fine thankfully to sym link. But without npm link, we should remap url to tell the right location, i.e. https://localhost:4320/dist/lib.js (the port and path are different). That's why proxy is required

whats the right way to stop the server ? ctrl + c is sufficient ? Just asking since there are two processes running

With concurrently, you have to press ctrl + c three or even four times to stop all processes.

Nice explanation.. I will use the proxy settings and check if everything works fine..
Thanks for taking your time to explain in detail.. Much appreciated

I made changes

Added -k switch to kill all processes
I was not able to execute the webpart project alone without library, so I made adding the proxies dynamic by checking if the port is in use or not. If there are better ways let me know. If this fine, you may include it in your templates, and put a placeholder so others can use it if required.

Thanks! I will take a look.
One question - why do you need to execute webpart project alone without library, if it depends on a library?

@kmprasad4u you were right that proxy is not required. I've just found out, that when you install a dependency this way:
npm install ../folder-name

npm itself creates an OS symlink to the folder. It means that the http path https://localhost:4321/node_modules/<library component name>/dist/lib.js will be always available thankfully to symlink. I don't know why, but somehow it didn't work for me when I initially did experiments, thus I started thinking that proxy is the only way.
Sorry for misleading you, but you can safely remove proxy things and it should work as before (with writeToDisk: true of course). The key thing was to have this line - del.sync(["dist/*.js", "dist/*.map"]); instead of deleting everything.

Thanks! I will take a look.
One question - why do you need to execute webpart project alone without library, if it depends on a library?

Say I have data coming from Library already, and I want changes in UI alone in the webpart. There is no need for me to change the library to make changes in Webpart. So just doing serve on webpart is sufficient.

you can safely remove proxy things and it should work as before (with writeToDisk: true of course). The key thing was to have this line - del.sync(["dist/.js", "dist/.map"])

I think I tried this as well, but didn;t work. Thats why I asked whether . is ok. But anyways I will give another try.
No issues. Lesser the complexities.. the better it is :).. Let me try and get back...

It is working for me as well... 😕
Still don't get why my library src files is showing up here, Probably I need to see how it looks when I am doing gulp serve in both..

I am also seeing requests being made periodically like this in network tab which is failing with

https://localhost:4322/sockjs-node/info?t=1588330376707

One more thing off the list.. I am also not requiring the concurrent process as well. It looks fine even without that. 😕
I think I should have tested the different combinations properly. Probably the mistake I did was to use *.* from the beginning. could have saved both of us some time. So key things are

writeToDisk : true
del.sync(["dist/.js", "dist/.map"]);

Its good learning for me as well...

I think the concurrent process is still required. Try to rename any method inside the library component without a concurrent process. Next time when you make an update in your webpart project's source code and save, no errors will be thrown (because webpart's webpack build consider all library component as externals and don't include into the bundle), but in vscode you will see the error and you will see an error in runtime in a browser.

U r right,, it was not working.. my bad... Sorry for the confusion...

Thank you for your input here! You helped a lot.
I added separate docs for library components.
I'm closing the issue, in case if you have some other troubles, please create a new one.

repo: s-KaiNet/spfx-fast-serve


text:
flow attribute fall back to msg

When specifying flow as array attribute it fall back to msg even if specified attribue as flow.get("value") or existing flow.value.
Regards
julien

Thank you for your reporting.
I can reproduce the trouble phenomenon in key variable and array field of array-loop node.
I will fix it soon.


text:
Flashlight Decoder --> Flashlight Text

Hey all — I maintain the Flashlight beam search decoder. Wanted to flag that it has been moved from the Flashlight repo to Flashlight Text. I'm working on getting wheels shipped to PyPI so it can be depended on directly by other libs.
A few users have been confused/have opened issues in Flashlight re installing the decoder bindings; if you want to link to the Flashlight Text quickstart here and list that as a dependency, that might help. Let me know if you have any questions.

Cool! Thanks for the information, we will take a look into it.


text:
swift 3.0 release?

Any plans to provide a swift 3.0 release soon?

+1 on that issue

Hey guys, I'm out today but it's very probable that this will be available tomorrow night :)

amen!

Hi guys I just worked on latest swift3 migration and it's tricker than expected so it's not production ready yet. Indeed operator overloading changed a bit :  https://github.com/apple/swift-evolution/blob/master/proposals/0077-operator-precedence.md, and as you know, Stevia uses operator overloading heavily.
59/60 tests pass though so you can give a try to the swift 3 branch which compiles :)

Hey guys, happy to announce that the pre release is here -> https://github.com/s4cha/Stevia/releases/tag/3.0.0
Please let me know how it goes :)

@navisingh @KarlHarnois can we close this ?

authors: KarlHarnois navisingh s4cha


text:
add transition to glossy button

added transition all .2s to glossy button

Hi @shahednasser I see, sorry for the clumsiness, I changed it!

No problem and thank you for the great work!
@all-contributors please add @3n1k0 for code

repo: sButtons/sbuttons


text:
Keyboard Handling bypasses CMD + key shortcuts

Example: CMD + Back Arrow no longer allows user to go back to previous page in browser

fixed with 5ea94106588e95f13f1f4720b871f6d6d3d46416

@erin-dot-io update should be on Chrome Store soon.

repo: sabjorn/BandcampEnhancementSuite


text:
Small readability improvement in README

Thanks for this amazing codemod!
I almost missed the --import option because the text was weirdly formatted.
This line break helps.
Before:

After:

Thanks!

authors: larskarbo sachinraja


text:
Update README.md - phrack link

WebArchive of http://www.phrack.org/issues/70/3.html#article

Ah thanks, this is because the article has moved out of the "paper feed" and into the real release. The new URL is http://www.phrack.org/issues/70/3.html#article do you want to update this PR? Otherwise I can also change the URL. Let me know!

authors: irwincong saelo

repo: saelo/jscpwn


text:
Add Block Explorer as a required field to the add chain form

After a discussion with @tanay1337, we realized that the guide on how to add a new network to Safe mentions the block explorer, while the form does not have a field for it.  So we propose to add a required field to for the block explorer.

Not all chains for which we have deployments have block explorers though - can we make it optional?

After discussion with @gjeanmart this can be closed. It is fine to exclude the block explorer from this form.

authors: nlordell valle-xyz

repo: safe-global/safe-singleton-factory


text:
How to change a directory's name

Feature Description
I have no idea about how to change a directory's name.

It seem's like mv will move the source directory into the target directory.
glob_cp source/* target/*  is not available too.
And I tried to use for to mv every entry in source to target. However,
I have no idea about how to get the entry list in source. ls will return a bool value and no the entry in source.

So if there's some way to change the directory's name directly?

@Dirreke looking at the code, i see indeed i didn't add support for that. woops.
you want maybe to PR that? the code is here:
https://github.com/sagiegurari/duckscript/blob/23958684d9568741c0f20486c581f9dd710c8f07/duckscript_sdk/src/sdk/std/fs/mv/mod.rs#L64

@Dirreke this is now supported.
mv ./dir1 ./dir2
should work

Thanks! And I want to make PR later to support ls to return the array of the list content but not print them.

@Dirreke sure. maybe add some --quite flag....
PRs are always welcome

authors: Dirreke sagiegurari

repo: sagiegurari/duckscript


text:
msp.py 'unicode' object has no attribute  Error

$ python main.py
Traceback (most recent call last):
  File "main.py", line 44, in <module>
    main()
  File "main.py", line 31, in main
    ctxt = cpabe.encrypt(pk, msg, policy_str)
  File "/Users/apple/Competion/Cryptology2018/ABE/ac17.py", line 152, in encrypt
    policy = self.util.createPolicy(policy_str)
  File "/Users/apple/Competion/Cryptology2018/ABE/msp.py", line 32, in createPolicy
    policy_obj = parser.parse(policy_string)
  File "/Library/Python/2.7/site-packages/charm/toolbox/policytree.py", line 83, in parse
    self.finalPol.parseString(string)
  File "/Library/Python/2.7/site-packages/pyparsing.py", line 1622, in parseString
    loc, tokens = self._parse( instring, 0 )
  File "/Library/Python/2.7/site-packages/pyparsing.py", line 1379, in _parseNoCache
    loc,tokens = self.parseImpl( instring, preloc, doActions )
  File "/Library/Python/2.7/site-packages/pyparsing.py", line 3717, in parseImpl
    return self.expr._parse( instring, loc, doActions, callPreParse=False )
  File "/Library/Python/2.7/site-packages/pyparsing.py", line 1379, in _parseNoCache
    loc,tokens = self.parseImpl( instring, preloc, doActions )
  File "/Library/Python/2.7/site-packages/pyparsing.py", line 3378, in parseImpl
    loc, resultlist = self.exprs[0]._parse( instring, loc, doActions, callPreParse=False )
  File "/Library/Python/2.7/site-packages/pyparsing.py", line 1379, in _parseNoCache
    loc,tokens = self.parseImpl( instring, preloc, doActions )
  File "/Library/Python/2.7/site-packages/pyparsing.py", line 3530, in parseImpl
    ret = e._parse( instring, loc, doActions )
  File "/Library/Python/2.7/site-packages/pyparsing.py", line 1379, in _parseNoCache
    loc,tokens = self.parseImpl( instring, preloc, doActions )
  File "/Library/Python/2.7/site-packages/pyparsing.py", line 3395, in parseImpl
    loc, exprtokens = e._parse( instring, loc, doActions )
  File "/Library/Python/2.7/site-packages/pyparsing.py", line 1379, in _parseNoCache
    loc,tokens = self.parseImpl( instring, preloc, doActions )
  File "/Library/Python/2.7/site-packages/pyparsing.py", line 3717, in parseImpl
    return self.expr._parse( instring, loc, doActions, callPreParse=False )
  File "/Library/Python/2.7/site-packages/pyparsing.py", line 1379, in _parseNoCache
    loc,tokens = self.parseImpl( instring, preloc, doActions )
  File "/Library/Python/2.7/site-packages/pyparsing.py", line 3378, in parseImpl
    loc, resultlist = self.exprs[0]._parse( instring, loc, doActions, callPreParse=False )
  File "/Library/Python/2.7/site-packages/pyparsing.py", line 1379, in _parseNoCache
    loc,tokens = self.parseImpl( instring, preloc, doActions )
  File "/Library/Python/2.7/site-packages/pyparsing.py", line 3530, in parseImpl
    ret = e._parse( instring, loc, doActions )
  File "/Library/Python/2.7/site-packages/pyparsing.py", line 1379, in _parseNoCache
    loc,tokens = self.parseImpl( instring, preloc, doActions )
  File "/Library/Python/2.7/site-packages/pyparsing.py", line 3395, in parseImpl
    loc, exprtokens = e._parse( instring, loc, doActions )
  File "/Library/Python/2.7/site-packages/pyparsing.py", line 1379, in _parseNoCache
    loc,tokens = self.parseImpl( instring, preloc, doActions )
  File "/Library/Python/2.7/site-packages/pyparsing.py", line 3717, in parseImpl
    return self.expr._parse( instring, loc, doActions, callPreParse=False )
  File "/Library/Python/2.7/site-packages/pyparsing.py", line 1379, in _parseNoCache
    loc,tokens = self.parseImpl( instring, preloc, doActions )
  File "/Library/Python/2.7/site-packages/pyparsing.py", line 3378, in parseImpl
    loc, resultlist = self.exprs[0]._parse( instring, loc, doActions, callPreParse=False )
  File "/Library/Python/2.7/site-packages/pyparsing.py", line 1379, in _parseNoCache
    loc,tokens = self.parseImpl( instring, preloc, doActions )
  File "/Library/Python/2.7/site-packages/pyparsing.py", line 3530, in parseImpl
    ret = e._parse( instring, loc, doActions )
  File "/Library/Python/2.7/site-packages/pyparsing.py", line 1379, in _parseNoCache
    loc,tokens = self.parseImpl( instring, preloc, doActions )
  File "/Library/Python/2.7/site-packages/pyparsing.py", line 3530, in parseImpl
    ret = e._parse( instring, loc, doActions )
  File "/Library/Python/2.7/site-packages/pyparsing.py", line 1405, in _parseNoCache
    tokens = fn( instring, tokensStart, retTokens )
  File "/Library/Python/2.7/site-packages/pyparsing.py", line 1049, in wrapper
    ret = func(*args[limit[0]:])
  File "/Library/Python/2.7/site-packages/charm/toolbox/policytree.py", line 15, in createAttribute
    return BinNode(toks[0]) # create
  File "/Library/Python/2.7/site-packages/charm/toolbox/node.py", line 26, in __init__
    elif(value >= OpType.OR and value < OpType.NONE):
  File "/Library/Python/2.7/site-packages/charm/toolbox/enum.py", line 29, in __le__
    return (self.__value <= other.__value)
AttributeError: 'unicode' object has no attribute '_EnumValue__value'

I follow your advice to install Charm in my MacOs, python is the system's default python 2.7.10 ，But meet this Error，Please Help......

@sagrawal87

Hi @TacXingXing, Were you able to resolve this issue?

Did you resolve the issue @0xTac? I just commented those lines (unicode is equivalent to str in python3)


text:
Memory error

(rwkv) C:\Users\micro\Downloads\rwkv.cpp>python rwkv\chat_with_bot.py C:\Users\micro\Downloads\raven7B_q.bin
Loading 20B tokenizer
System info: AVX = 1 | AVX2 = 1 | AVX512 = 0 | FMA = 1 | NEON = 0 | ARM_FMA = 0 | F16C = 1 | FP16_VA = 0 | WASM_SIMD = 0 | BLAS = 0 | SSE3 = 1 | VSX = 0 |
Loading RWKV model
ggml_new_tensor_impl: not enough space in the context's memory pool (needed 5589895568, available 5589886801)
Traceback (most recent call last):
  File "C:\Users\micro\Downloads\rwkv.cpp\rwkv\chat_with_bot.py", line 45, in <module>
    model = rwkv_cpp_model.RWKVModel(library, args.model_path)
  File "C:\Users\micro\Downloads\rwkv.cpp\rwkv\rwkv_cpp_model.py", line 37, in __init__
    self.ctx = self.library.rwkv_init_from_file(model_path, thread_count)
  File "C:\Users\micro\Downloads\rwkv.cpp\rwkv\rwkv_cpp_shared_library.py", line 74, in rwkv_init_from_file
    ptr = self.library.rwkv_init_from_file(model_file_path.encode('utf-8'), ctypes.c_uint32(thread_count))
OSError: exception: access violation writing 0x0000000000000038

same issue for me, i suspect the tokenizer needs some sort of conversion too(?)

Hi! Known issue: https://github.com/saharNooby/rwkv.cpp/issues/8

authors: bennmann dillfrescott saharNooby


text:
Mandrill no longer allows programmatic emails

Might want to remove the reference to Mandrill. They're merging Mandrill into MailChimp and are shutting it off as it currently exists.
http://blog.mailchimp.com/important-changes-to-mandrill/

SparkPost has offered to take on any departing Mandrill users and to honor Mandrill’s pricing for those users.
So, moving to SparkPost might be an option
https://github.com/SparkPost/nodemailer-sparkpost-transport

Well, this sucks, all my accounts have been disabled with Sendgrid (3 accounts), Mailgun (2 accounts) and Mandrill. Each one of them has also made it increasingly more difficult to create a new account with their domain verification process. Sparkpost, I believe only allows sending emails from a valid verified domain name, i.e. localhost:3000 is not a valid domain.
I am going to close this as wontfix because you should be using your own account anyway, even if I create a new fake account with Mailgun or Sparkpost, it will be banned again because anyone is free to abuse these API keys as soon as they are publicly available on GitHub.

I am going to remove all the references to Mandrill at least.

@sahat - developers should just use the dotenv library/module/etc for whatever project they're using to hide those keys. Those baddies.

authors: KevinBusse code-for-coffee sahat

repo: sahat/hackathon-starter


text:
🛑 Rüfenacht Elektro AG is down

In 7ebc800, Rüfenacht Elektro AG (https://www.ruefenacht-elektro.ch) was down:

HTTP code: 500
Response time: 3189 ms

Resolved: Rüfenacht Elektro AG is back up in 85bb159.


text:
Client always typed as never[]

While using this schema:
// project.ts
import {
  defineArrayMember,
  defineField,
  defineType,
} from '@sanity-typed/types';

const projectSchema = defineType({
  name: 'project',
  type: 'document',
  title: 'Project',
  preview: {
    select: {
      title: 'title.en',
    },
  },
  fields: [
    defineField({
      name: 'title',
      type: 'localizedString',
      title: 'Title',
    }),
    defineField({
      name: 'description',
      type: 'localizedString',
      title: 'Description',
    }),
    defineField({
      name: 'slug',
      title: 'Slug',
      type: 'localizedSlug',
    }),
    defineField({
      name: 'executedAt',
      type: 'localizedString',
      title: 'Executed at',
    }),
    defineField({
      name: 'read_time',
      type: 'localizedString',
      title: 'Read Time',
    }),
    defineField({
      name: 'link',
      type: 'string',
      title: 'Link',
    }),
    defineField({
      name: 'body',
      title: 'Body',
      type: 'localizedBody',
    }),
    defineField({
      title: 'First column of images',
      name: 'image_column_1',
      type: 'array',
      of: [defineArrayMember({ type: 'image' })],
    }),
    defineField({
      title: 'Second column of images',
      name: 'image_column_2',
      type: 'array',
      of: [defineArrayMember({ type: 'image' })],
    }),
    defineField({
      title: 'Tags',
      name: 'tags',
      type: 'array',
      of: [defineArrayMember({ type: 'string' })],
    }),
  ],
});

export default projectSchema;

// schema.ts
import localizedBody from '@/sanity/schemaTypes/objects/localizedBody';
import localizedSlug from '@/sanity/schemaTypes/objects/localizedSlug';
import localizedString from '@/sanity/schemaTypes/objects/localizedString';
import project from '@/sanity/schemaTypes/project';

export const schema = {
  types: [localizedString, localizedBody, localizedSlug, project],
};

import type { SanityValues } from '@/sanity.config';
import { createClient } from '@sanity-typed/client';

// Import using ESM URL imports in environments that supports it:
// import {createClient} from 'https://esm.sh/@sanity/client'

export const client = createClient<SanityValues>({
  projectId: '--------',
  dataset: 'production',
  useCdn: false, // set to `false` to bypass the edge cache
  apiVersion: '2023-05-03', // use current date (YYYY-MM-DD) to target the latest API version
  // token: process.env.SANITY_SECRET_TOKEN // Only if you want to update content with the client
});

// uses GROQ to query content: https://www.sanity.io/docs/groq
export async function getProejects() {
  const posts = await client.fetch('*[_type == "project"]');
  return posts;
}

export async function getSpecificProeject({ slug }: { slug: string }) {
  const post = await client.fetch(
    `*[_type == "project" && slug.current == "${slug}"]`,
  );

  return post;
}

I'm always getting the client typed as never[]

Have you tried providing the slug as a query param?
https://www.npmjs.com/package/@sanity/client#performing-queries
I think using template strings as you're doing would make it difficult (impossible?) for typescript to derive the type from the string.

Got you. That's just me not using it correctly.

authors: Pedromigacz saiichihashimoto

repo: saiichihashimoto/sanity-typed


text:
how to change wallhack color?

im not very smart so how does one convert rgba to a float

https://doc.instantreality.org/tools/color_calculator/
Pick a color, and have a look at the "RGB Normalized decimal" for R,G,B parts. The last part is Alpha. Just use 1.0 if you have no clue about it.

authors: MihaiTheAwsm sailro

repo: sailro/EscapeFromTarkov-Trainer


text:
https://www.youtube.com/yt/img/logo_1x.png が正しく表示されない。

OS: Ubuntu 14.04.1 (amd64)
hotfix-issue-29 ブランチ( https://github.com/saitoha/libsixel/commit/b6748d1a49477200a7dfb93c767207d96aec53d5 ) で下記のコマンドを実行すると、
$ wget -O - "https://www.youtube.com/yt/img/logo_1x.png" | img2sixel

下記のような画像が表示されます。

問題視しているのは赤と黒の境界が汚い点です。
（2015-02-16 07:40 追記）画像を添付しようとして Submit してしまったので後から追加しました。

書き方がちょっとまずかったかもしれませんが、他のブランチでも発生していますので hotfix-issue-29 ブランチだから問題というわけではありません。
今回は -I オプション等では問題を回避できなかったのですが、確認した中では唯一、develop ブランチで -B "#000000" を指定した時だけ下記のような画像が出力されました。

libpngの実装を軽く眺めた限りでは、アルファチャネルを抜く操作(png_strip_alpha)を指定することによって、

背景色が指定され、いくつかの追加条件を満たすとアルファを考慮して背景色とブレンド
背景色が指定されない場合はアルファによるマスキング処理

となるようです。
この場合はマスキング処理になってしまっていました。
そこで、背景色が引数で指定されず、画像のヘッダ中に背景色も無い場合は、黒を背景色としてセットすることにしました。
なお、hotfix-issue-29 はlibsixel-1.4系にマージされる予定ですが、1.4系には背景色関係の修正を入れる予定はありません。
なので、fix-issue-25からブランチを生やしてfix-issue-31を作りました。
この修正は、1.5系でリリースされると思います。

マスキング処理になるので色の境界が汚くなっただけなのでしょうか？
マスキング処理の詳細は分かりませんが、
黒黒黒黒赤赤赤赤
ではなく、
黒黒黒赤黒赤赤赤
になっている箇所がありましたので、何らかの要因で意図していない結果になっているのでは？と疑っています。

気になったのでちゃんと検証してみると、以下のような感じです。
上は赤成分、下はアルファ成分(それぞれ0以外の部分を2桁の16進数で)です。

アルファ値が1-4のピクセルが輪郭を縁取るように存在しています。
0の部分だけがマスクされているので境界がおかしいのだと思います。

元画像のデータがそのようになっているので、マスキング処理をした場合はあの画像にならざるを得ないということですね。
こちらの確認不足で、お手数をおかけしました。m(__)m

1488be8 が入ったv1.5リリースされたので閉じます。

authors: msmhrt saitoha

repo: saitoha/libsixel


text:
When invalid score is entered, keep score in field and direct users to refresh page to see last saved

From @kyleblythe on October 1, 2015 16:0
When an invalid score is saved (resulting in the triangle "warning" message), retain the invalid score in the field along with the warning message. This allows the user to see what score is causing the error message. Within the possible warning messages, provide additional text notifying the user to refresh the tool in order to see the last saved score.
Copied from original issue: steveswinsburg/gradebookNG#252

Confirmed this is still a problem.

Add'l requirements for this:

Change this from a yellow "warning" to a red "error."
Retain invalid score in cell.
Rework wording of error. Also create an option to “revert to last saved value”

Discussed 18/3/2016:
May need to add more exceptions to the gradebook service to split up any errors that occur in the backend so they can be handled individually.

I've just implemented revert-score in #2110. This PR doesn't touch the service errors and is purely on the GradebookNG side. It looks like this:

@steveswinsburg, regarding the more granular validation errors, as I see it there's no quick way to split up the errors in the current service code without refactoring how isGradeValid interacts with identifyStudentsWithInvalidGrades and saveGradesAndComments.  I'm happy to have a go at this, but given dependencies with old Gradebook and other things (imports? Gradebook2? etc) I'm a little hesitant to jump in.  Any tips?

Yeah this probably requires careful thought, a bunch of other places may need to be updated to handle these new exceptions. Maybe we should raise a separate issue to track this particular change.

Raised #2119 for the exceptions. Lets test this one as is.

Looks gorgeous. Confirmed.

Re-opening this issue, as we want to consolidate the yellow "warning" and red "error" in-cell notification types (see comment from 2/18). That way, yellow is reserved exclusively for EC.

authors: kyleblythe payten steveswinsburg

repo: sakaiproject/sakai


text:
KNL-1364 Allow deploy of the MySQL Connector/J JAR

If you activate the mysql maven profile (mvn -P mysql install sakai:deploy) when deploying Sakai into Tomcat the MySQL JAR will be copied into place. This makes it easier for new developers as there’s one less step to get a working copy of Sakai up.
It’s disabled by default as we can’t bind or distribute the JAR due to license conflicts.

Okay +1 on this
Any thoughts on just using the Maria connector instead by default?  If it survives an entire QA cycle, it would seem okay to me.....

Yeah, I'd also be for including the mariadb driver by default. Locally I've switched my dev db to maria (and this driver) and it works well and can switch QA over (which uses Mysql 5.6). I believe they have different packages so the driverClassName would be different if people wanted to download both (org.mariadb.jdbc.Driver and com.mysql.jdbc.Driver).

Ok, I'll switch to Maria being in there as well, as the classes don't overlap there's no need to put the maria one in a profile. Thanks.

I feel like I'd read somewhere that the MariaDB jdbc was only compatible with MySQL server 5.1+, but I feel like people running MySQL with Sakai are at least on 5.5 and we'd recommend on MySQL 5.6 (since that's what's on QA) or whatever the latest Maria is at this point anyway.

Updated to include MariaDB by default and MySQL with the -P mysql option.

Cool, looks good to me, thanks!

Awesome. Thanks @buckett

authors: buckett jonespm ottenhoff


text:
Extract bubble-related code to standalone ActivityWatcher

Extract bubble-related code from ActivityWatcherForCallVisualizer to a standalone ActivityWatcher
Purpose of doing this is to reduce complexity when maintaining bubble scenarios and when adding new.

Do not show bubble on Chat screen when getting back from File Preview screen

!merge

!squash

!merge

repo: salemove/android-sdk-widgets


text:
Bug: The shipping webhook payload fails when there is no channel listing

What are you trying to achieve?
The situation when the channel listing is not available anymore should be handled.
Steps to reproduce the problem

Create the order with an assigned valid shipping method
Remove the channel listings from chosen shipping method
Change something that will call order_updated method.

What did you expect to happen?
The error shouldn't be raised.
The normalized shipping price should be returned.
For draft orders, the price from channel listings should be returned. The shipping method should be unassigned from the draft order when the channel listing is removed.
Logs
Sentry error: https://sentry.io/organizations/saleor/issues/3700777086/?project=6417854&referrer=slack
Environment
Saleor version: 3.5

Fixed in https://github.com/saleor/saleor/pull/12184

repo: saleor/saleor


text:
Breadcrumbs: Ability to add overflow menu

Mentioned in #1500 by @interactivellama, ability to add overflow menu to the breadcrumbs is currently missing in DSR while it is present in SLDS.
I would like to work on this issue and will submit a PR soon.

I shall get this merged

repo: salesforce/design-system-react


text:
opt in via a css property or an HTML attribute?

Have you considered that instead of an appearance:base property in css (or another css property if we want to avoid adding to the complicated history of appearance), opting into the "base" structure and style might better be achieved with an HTML attribute? I have not thought about this excessively deeply, so I might be completely off the mark, but I find the idea interesting.
<input type=checkbox base>

(This almost certainly needs bikeshedding. I'm keeping the name base for now just because it's the name this feature has had so far, not because I think the attribute ought to be called that)
Maybe you have thought about this already, and if so, it would be good to list in the explainer why that's a bad idea.
Here are some thoughts as to why it might be a good one:

it's not worse that appearance:base when it comes to the behavior in browsers that do not yet support it. In both cases, the attribute / property gets ignored, and you get the traditional behavior

Maybe it helps with the styling / selection circularity discussed in #4. Without a need for impossible selectors or magic origins, and you can write:
input[base][type=checkbox] {
    …
}

and there's no circularity. That said, this is weak with regards to graceful degratation in UAs that do not support it, so maybe there should be a pseudo class instead:
input[type=checkbox]:base {
    …
}

That's not possible if we're using appearance:base as the opt in, but it is if we're using a markup attribute as the opt-in.

Given how css properties are applied, when we introduce appearance:base, it needs to work at once on all the elements where it will eventually need to work, otherwise people might apply it via overly broad selectors, and then create compat traps when we later try to enable in on elements where it previously had no effect. The css-wg has suggested maybe having a series of appearance:base-checkbox, appearance:base-radio etc to work around that, but it feels clunky. Introducing the base attribute on elements one by one doesn't seem to suffer from that problem, as it gets applied in a more targeted way, and as you'd have the :base pseudo (which wouldn't match on elements where this isn't supported yet) to progressively enhance your stylesheets as support improves

@frivoal I've referenced this issue in CSSUI issue regarding the base solution. Let's take the convo over there, so I'll close this issue out but made sure to link to your proposal. Feel free to duplicate it if you'd prefer for it to be inline in the issue.

authors: frivoal gregwhitworth

repo: salesforce/standards-explainers


text:
How to handle position of Polygon over the image ?

Hi,
I'm currently trying to use this module for adding polygons overlay on image.
I'm having coordinates of the polygons in this format :
{'0004-0053': {'type': 'polygon', 'x': [633, 430, 426, 426, 430, 433, 434, 440, 441, 444, 444, 446, 449, 450, 457, 458, 463, 465, 475, 478, 503, 513, 542, 546, 570, 577, 579, 582, 583, 585, 591, 593, 600, 601, 604, 605, 614, 618, 625, 629, 633], 'y': [0, -1, 0, 8, 19, 21, 26, 33, 47, 54, 58, 59, 67, 76, 85, 89, 93, 101, 106, 104, 104, 100, 103, 101, 99, 91, 85, 83, 75, 71, 66, 57, 51, 41, 39, 35, 27, 16, 9, 8, 4], 'n': 41, 'width': 1, 'name': '0004-0053', 'position': 0}}
So I can draw the polygon properly it seems using the JSON "upload" function, but I cannot get it to adjust the position properly over the image ? Those X and Y coordinates should be enough ?

Willing to remunerate/pay for any help on this !
Thank you very much

If you want to change it on your own: the possibility to move the points of a polygon is shown here
http://fabricjs.com/custom-controls-polygon
the editor just needs some modification


text:
🛑 Blog is down

In 01b0ad9, Blog (https://saltbo.cn) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Blog is back up in 5b1a201.

repo: saltbo/status


text:
how to create a join field?

@glutamate how do I make the color field show options for join fields? like if someone had a table of event types, and each one had a color field, and the events are children of the event types

Exactly this scenario done in the new gantt chart @kevin8181
First, make the array of field names the user can choose the color field from. I start with an array of all the color fields on the  associated table: https://github.com/saltcorn/svelte-gantt/blob/c70268d16e0043ec8bf357720cafea732b6a1f95/index.js#L35-L37
then loop through the key fields: https://github.com/saltcorn/svelte-gantt/blob/c70268d16e0043ec8bf357720cafea732b6a1f95/index.js#L38-L39
get the parent table, its fields, and append to the array of options, a string with a dot separating the key field from the field on the joined table: https://github.com/saltcorn/svelte-gantt/blob/c70268d16e0043ec8bf357720cafea732b6a1f95/index.js#L44-L46
cfg form field as normal: https://github.com/saltcorn/svelte-gantt/blob/c70268d16e0043ec8bf357720cafea732b6a1f95/index.js#L138-L145
in the run method, figure out if it is a join field i.e. has a dot: https://github.com/saltcorn/svelte-gantt/blob/c70268d16e0043ec8bf357720cafea732b6a1f95/index.js#L230
if yes, add a join field to the joinFields argument to getJoinedRows:  https://github.com/saltcorn/svelte-gantt/blob/c70268d16e0043ec8bf357720cafea732b6a1f95/index.js#L231-L234
key in joinFields object is the variable name in the fetched rows, ref is the key field name and target is the name of the field on the join table which will hold the data.
used here https://github.com/saltcorn/svelte-gantt/blob/c70268d16e0043ec8bf357720cafea732b6a1f95/index.js#L238
The use of the color variable here which is very idiosyncratic according to the underlying library, hopefully you don't have to create the CSS classes as I do. to retrieve the color you still have to keep track of its name though like this: https://github.com/saltcorn/svelte-gantt/blob/c70268d16e0043ec8bf357720cafea732b6a1f95/index.js#L292-L293

for more examples of getJoinedRows and its joinFields argument, see this test file https://github.com/saltcorn/saltcorn/blob/master/packages/saltcorn-data/tests/table.test.ts

maybe there should be a function for this? like pass a table, array of data types, parent depth, child depth, and get the fields back? seems like something used often enough to make a standardized system
either way I'll give this a try

Hello. I agree Full calendar should use the joined fields. I have a table "_actions" with all the informations about a project, like the title ; and a table "_dates" with a join field "action" on _actions (relation type: one action to many dates). I use the view Calendar on the _dates table. I would like the title show on the calendar but the extension only propose the _dates fields for "Event title field". (Sorry for my english). Thanks for your answer. Aurélie

authors: Lulubel glutamate kevin8181

repo: saltcorn/fullcalendar


text:
Update to work with CS2

CS2 slightly changed which fields are present in the requests.
This breaks the current implementation, because there are some fields missing.

#2 is one proposed way to fix this issue for cs2.

Are there better ways to fix this?
Using Option means that we break all implementations that depend on the fields being u8.
Which means we need to update to a new major version.
Another possibility might be replacing missing fields with 0 during parsing, which might be a better idea.

Yes, it is possible to use #[serde(default)] for fields, then they would have 0 even if such a field does not exist.
But I think Valve removed some fields in the payload for cs2. And it would be better to remove them.

And there are many such errors with Option in my library. My bad.

Sorry I can't accept the commit. I wanted to archive this repository. I'd probably rather make a fork for cs2. Because I'm sure that Valve didn't change the gsi significantly, but some fields have definitely changed. And I'll fix the mistakes with Options.


text:
No Win x64 support?

At least that's what PowerShell 7 tells me
➜ gh extension install https://github.com/samcoe/gh-repo-explore
gh-repo-explore unsupported for windows-amd64. Open an issue: gh issue create -R samcoe/gh-repo-explore -t'Support windows-amd64'

I updated the latest release, the naming of the windows binaries did not include the exe extension so gh failed to recognize that they exist. Can you try again to install the extension?

Worked, cheers!

authors: ryanruby samcoe

repo: samcoe/gh-repo-explore


text:
Fix PEP8 Violations/Minor Warnings

Removed tk from requirements since tkinter comes bundled with Python v3 by default and tk is related to Tensorflow, plus a few minor changes.

Thanks for the contribution ♥

repo: sameera-madushan/SubtitleBOX


text:
sameersbn/redmine:3.0.1's  Initialization failed in OS X

the command is
docker run -it --rm --name=redmine --link mysql-redmine:mysql \
-v ~/var/docker/redmine/redmine/:/home/redmine/data \
--entrypoint= sameersbn/redmine:3.0.1

the output is
cp: cannot create regular file '/home/redmine/data/tmp/bundle/ruby/2.1.0/gems/rmagick-2.13.4/lib/RMagick.rb': File exists

no more output.

It is a problem with case-insensitive filesystem. rmagick gem contains both rmagick.rb and RMagick.rb in the same directory. You can use disk image formatted with Mac OS Extended (Case-sensitive, Journaled) for storing redmine data.

Closing due to old age

authors: ddiachkov jcormier redtankd

repo: sameersbn/docker-redmine


text:
[Bug]: username and password always wrong

What happened?
Cannot login, always showed Wrong username and password, while the login info has been verified via official app.
Device Type
Contact Sensor (Supported)
Plugin Version
v1.0.x (Supported)
HomeBridge Version
v1.4.x (Supported)
NodeJS Version
v14 (Supported)
Operating System
Raspbian 10+ (Supported)
Relevant log output
Code: 100032
Msg: Failed to request

Did you check this Common Issues pages ?

Yes, reinstalled and disabled two-factor authentication.

@kisonho, this has to do with the mandatory country selection upon logging in the eufy platform. If you switch to the beta (plugin config -> install previous version -> select the latest beta) you should be able to login :).

this has to do with the mandatory country selection upon logging in the eufy platform. If you switch to the beta (plugin config -> install previous version -> select the latest beta) you should be able to login :).

yeah, I got hit by this yesterday... strange thing is that the eufy security app (plugin) on Homey is not having this problem, but I prefer this plugin over HomeBridge.
Issue though is: okay, I can log in, but my two Floodlight Cam Pro 2 and it seems (still) incompatible with this plugin even though it has been out for awhile and the underlying comms plugin says it supports the Floodlight Cam Pro 2's.
I'm stuck on the beta, because it's the only thing that will connect at all, but... I'm offering again - how can I help move the plugin forward??? what's should I do? logfiles? dumps? just let me know the official route.

this is what is getting thrown up in the logfile - Wireless Doorbell also raising error and warning messages:
[3/29/2022, 11:38:17 AM] [Meross] ✓ Setup complete. This plugin has been made with ♥ by bwp91 from the UK!
[3/29/2022, 11:38:20 AM] [homebridge-eufy-security] Exterior North looks station but it's not could imply some errors Type: 38
[3/29/2022, 11:38:20 AM] [homebridge-eufy-security] Exterior North has no battery
[3/29/2022, 11:38:20 AM] [homebridge-eufy-security] Exterior North Looks like not compatible with isEnabled or this has been disabled within configuration
[3/29/2022, 11:38:20 AM] [homebridge-eufy-security] Exterior North Looks like not compatible with isMotionDetectionEnabled or this has been disabled within configuration
[3/29/2022, 11:38:20 AM] [homebridge-eufy-security] Exterior North Looks like not compatible with DeviceLight
[3/29/2022, 11:38:20 AM] [homebridge-eufy-security] Exterior West looks station but it's not could imply some errors Type: 38
[3/29/2022, 11:38:20 AM] [homebridge-eufy-security] Exterior West has no battery
[3/29/2022, 11:38:20 AM] [homebridge-eufy-security] Exterior West Looks like not compatible with isEnabled or this has been disabled within configuration
[3/29/2022, 11:38:20 AM] [homebridge-eufy-security] Exterior West Looks like not compatible with isMotionDetectionEnabled or this has been disabled within configuration
[3/29/2022, 11:38:20 AM] [homebridge-eufy-security] Exterior West Looks like not compatible with DeviceLight
[3/29/2022, 11:38:20 AM] [homebridge-eufy-security] Doorbell raise error to check and attach livestream function. TypeError: Cannot read properties of undefined (reading 'map')
at DoorbellCameraAccessory.getCameraConfig (/homebridge/node_modules/homebridge-eufy-security/src/accessories/CameraAccessory.ts:159:44)
at new CameraAccessory (/homebridge/node_modules/homebridge-eufy-security/src/accessories/CameraAccessory.ts:48:34)
at new DoorbellCameraAccessory (/homebridge/node_modules/homebridge-eufy-security/src/accessories/DoorbellCameraAccessory.ts:29:5)
at EufySecurityPlatform.register_accessory (/homebridge/node_modules/homebridge-eufy-security/src/platform.ts:393:13)
at EufySecurityPlatform.discoverDevices (/homebridge/node_modules/homebridge-eufy-security/src/platform.ts:300:14)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at HomebridgeAPI. (/homebridge/node_modules/homebridge-eufy-security/src/platform.ts:150:7)
[3/29/2022, 11:38:20 AM] [homebridge-eufy-security] Doorbell Looks like not compatible with isEnabled or this has been disabled within configuration
[3/29/2022, 11:38:20 AM] [homebridge-eufy-security] Doorbell Looks like not compatible with isMotionDetectionEnabled or this has been disabled within configuration
[3/29/2022, 11:38:20 AM] [homebridge-eufy-security] Doorbell Looks like not compatible with DeviceLight
[3/29/2022, 11:38:20 AM] [homebridge-eufy-security] Terrace Doorbell  raise error to check and attach livestream function. TypeError: Cannot read properties of undefined (reading 'map')
at DoorbellCameraAccessory.getCameraConfig (/homebridge/node_modules/homebridge-eufy-security/src/accessories/CameraAccessory.ts:159:44)
at new CameraAccessory (/homebridge/node_modules/homebridge-eufy-security/src/accessories/CameraAccessory.ts:48:34)
at new DoorbellCameraAccessory (/homebridge/node_modules/homebridge-eufy-security/src/accessories/DoorbellCameraAccessory.ts:29:5)
at EufySecurityPlatform.register_accessory (/homebridge/node_modules/homebridge-eufy-security/src/platform.ts:393:13)
at EufySecurityPlatform.discoverDevices (/homebridge/node_modules/homebridge-eufy-security/src/platform.ts:300:14)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at HomebridgeAPI. (/homebridge/node_modules/homebridge-eufy-security/src/platform.ts:150:7)
[3/29/2022, 11:38:20 AM] [homebridge-eufy-security] Terrace Doorbell  Looks like not compatible with isEnabled or this has been disabled within configuration
[3/29/2022, 11:38:20 AM] [homebridge-eufy-security] Terrace Doorbell  Looks like not compatible with isMotionDetectionEnabled or this has been disabled within configuration
[3/29/2022, 11:38:20 AM] [homebridge-eufy-security] Terrace Doorbell  Looks like not compatible with DeviceLight
[3/29/2022, 11:38:20 AM] [homebridge-eufy-security] Exterior North has no battery
[3/29/2022, 11:38:20 AM] [homebridge-eufy-security] Exterior North Looks like not compatible with isEnabled or this has been disabled within configuration
[3/29/2022, 11:38:20 AM] [homebridge-eufy-security] Exterior North Looks like not compatible with isMotionDetectionEnabled or this has been disabled within configuration
[3/29/2022, 11:38:20 AM] [homebridge-eufy-security] Exterior West has no battery
[3/29/2022, 11:38:20 AM] [homebridge-eufy-security] Exterior West Looks like not compatible with isEnabled or this has been disabled within configuration
[3/29/2022, 11:38:20 AM] [homebridge-eufy-security] Exterior West Looks like not compatible with isMotionDetectionEnabled or this has been disabled within configuration
[3/29/2022, 11:39:36 AM] [homebridge-eufy-security] Exterior North handleMotionDetectedGet Wrong return value
[3/29/2022, 11:39:36 AM] [homebridge-eufy-security] Exterior West handleMotionDetectedGet Wrong return value
[3/29/2022, 11:40:56 AM] [homebridge-eufy-security] Exterior North handleMotionDetectedGet Wrong return value
[3/29/2022, 11:40:56 AM] [homebridge-eufy-security] Exterior West handleMotionDetectedGet Wrong return value
[3/29/2022, 1:51:46 PM] [homebridge-eufy-security] Exterior North handleMotionDetectedGet Wrong return value
[3/29/2022, 1:51:46 PM] [homebridge-eufy-security] Exterior West handleMotionDetectedGet Wrong return value

I got the same problems again. I checked the detailed message, and found that this actually caused by capture verification since there was another message followed by the Failed to request error saying Captcha verification received.

Click on plug-in setting you will be prompted for the captcha.

Click on plug-in setting you will be prompted for the captcha.

I opened the settings and reentered the password, but got the reply message Failed to request along with Captcha verification received. There is no captcha verification popped out. Instead, the UI still shows a Wrong username and password warning.

With the latest beta ?

authors: DolmensDude alternativ kisonho lenoxys

repo: samemory/homebridge-eufy-security


text:
Telefunc Collab

Author of Telefunc here.
Nice work on Samen, congrats 👌.
If you guys are up for some kind of collaboration, let me know!

Thanks man, you too! Let's schedule a meet soon to discuss this. Will get back to you asap 👍

@brillout I've sent you an email about this 😊

Yes I've seen :-).
I think the biggest blocker for this is whether we want to focus on Samen or Telefunc.
I'm obviously biased, but so far I believe Telefunc to be the "superior" approach. I don't mean any offense, and I'm more than happy to be shown wrong!
I know it's very tough but I think it's very well worth it if we somehow manage to align ourselves. It'd tremendously amplify our collective impact.
How do you see this?

We feel the same, but the other way around 😄 What do you think about having a call, where you can do a demo of telefunc and tell us what's better about it, and we do the same to you?

Closing this issue for now, feel free to contact us at hi@samen.io!

authors: Jpunt brillout

repo: samen-io/samen


text:
GPU rendering

I was wondering using LunaSVG in Godot and have it create editable 2d shapes in Godot Editor via plutovg output.
Any thoughts?

I will try to take a look at Godot Editor

Here was a previous attempt.
https://github.com/godot-extended-libraries/godot_vector_graphics

Here's the path to mesh code.
https://github.com/godot-extended-libraries/godot_vector_graphics/blob/master/tove2d/src/cpp/mesh/meshifier.cpp#L232

I have to replace plutovg in canvas.cpp with the hardware accelerated renderer.

Maybe I will try to add tove2d to lunasvg backends

Now I get your points.. let's talk privately sammycageagle@gmail.com

authors: fire sammycage

repo: sammycage/plutovg


text:
weights and loss become nan in the training

Hello sir,
First of all, thank you very much for your codes which helped me a lot to understand FlowNet2, but when I try to train your model, I found often that the weights and loss become nan. Have you ever encountered this strange problem and if so, how did you solve this problem ? Thank you very much for your attention.
Yours sincerely,
Jinglei SHI

Hello,
I think in the loss function, a very little term should be added in the sqrt() function for example sqrt(loss+1e-4), then nan problem is solved.


text:
Invoking with no arguments causes an exception instead of a help message

  $ beet --version
beets version 1.3.10
no plugins loaded

  $ beet
Traceback (most recent call last):
  File "/usr/local/bin/beet", line 9, in <module>
    load_entry_point('beets==1.3.10', 'console_scripts', 'beet')()
  File "/usr/local/lib/python2.7/site-packages/beets/ui/__init__.py", line 945, in main
    _raw_main(args)
  File "/usr/local/lib/python2.7/site-packages/beets/ui/__init__.py", line 927, in _raw_main
    if subargs[0] == 'config' and ('-e' in subargs or '--edit' in subargs):
IndexError: list index out of range

Please see #1205.

authors: DanielHeath sampsyo

repo: sampsyo/beets


text:
Minor improvements

It's been a while since you've touched this project, and I have no idea what I'm doing (terrible code quality), but as someone messing with favicons, I thought your project looked interesting. So I made some changes:
d87bfd3116d0539b21116cdf51d61517391ee8b6 - Update dependencies
Does what it says on the tin. to-ico should probably be replaced… but it works, so who cares.
9195693cf4b146b245083830fd47e861214963b2 - ✨ Automatically set density for sharp
https://github.com/12beesinatrenchcoat/favicon-cli/commit/7c5ea0cffb7029e0993bd0e003340bc86c9ff912#commitcomment-73713917
Had issues with images being too large, modified a code snippet I found (linked in the commit message) to hopefully fix it. Tested with a Twemoji (32x32) and an icon of my own (1024x1024) and it seems to work fine. Hopefully resolves #1.
5ee0731eed74f3a59d860395f207ed282e89595f - ✨ Add some compression
The article recommended a palette of 64 colors and svgo, so I added both. It also recommended using Squoosh, but I don't feel like trying to figure that out.
This repo also doesn't have a LICENSE so I'm not sure if I'm actually allowed to do this… but oh well.

This is great thanks very much!


text:
hacked version of kraken-lib for ubuntu support on AWS

there is a short-term need for getting kraken running on aws on ubuntu.  This will result in a PR that has DO-NOT-MERGE and some instructions for how to use.  the imediate use-case is a platform for software defined storage systems.

WIP branch:  https://github.com/coffeepac/kraken-lib/tree/ubuntu-hack

going whole hog on this branch never being merged:  adding some docker-install specifics.

okay, back to where I was last week:  node name discrepencies.

was able to work around the node name discrepancy by changing the %H value in both the kraken-ssl unit file and the kubelet unit file to be the full hostname hostname -f.  will now try and do that in the unit file.

attempted a reboot of the node and it did not fix the glitch.  I am feeling very confident that the aws cloudprovider is overriding the hostname.

trying to tackle the docker startup step:

when adding docker.service to existing runcmd for restarting services there was a bad race condition
when I added it to its own runcmd, kubelet didn't come up but manually issuing systemctl start kubelet resolved the issue
next attempt is to add kubelet to the solo docker restart runcmd.   I think its a timing issue.

Node registration issue:

issue is that systemd and the aws cloud-provider disagree on what the host's name is.  systemd uses the short name (ip-10-x-x-x) and the cloud provider uses the fqdn (ip-10-x-x-x.internal.ec2).  these values need to agree
if I manually set the value in the kraken-ssl unit file to be the fqdn, the cluster forms correctly

I am unable, so far, to figure out how to get systemd to use the fqdn in the unit file

I am unable to tell kubelet to use anything but the fqdn, aws cloud provider seems to be hardcoding this value although I haven't gone and checked the code.  I feel like I checked this ages ago
I attempted to remove the NodeRestriction admission controller and api-server wouldn't start.  I couldn't find any logs as the docker container was cycling really fast but I am going to back off from this for now

Next step:  update the networking container code to provide the fqdn as an environment variable and use that in the kraken-ssl unit file

PRs are up:
https://github.com/samsung-cnct/maas-ansible-playbook/pull/3
https://github.com/samsung-cnct/kraken-lib/pull/1022

repo: samsung-cnct/kraken-lib


text:
Getting/setting current page number

Hi,
I would like to know the current page number, so if a user clicks on the detail page of an item and then goes back, I can set him on the page he/she was instead of the first.
¿How can I do this?

Start to read the other issues and found the currentPage config. You should add the info in the examples to avoid more of this kind of questions :P
Great directive!

repo: samu/angular-table


text:
fix save_story endpoint

I got the following error when trying to save a story using the bookmarklet:
[Aug 27 05:16:33] Internal Server Error: /api/save_story/b76604da989d
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/django/core/handlers/exception.py", line 47, in inner
    response = get_response(request)
  File "/usr/local/lib/python3.9/site-packages/django/core/handlers/base.py", line 181, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/local/lib/python3.9/site-packages/sentry_sdk/integrations/django/views.py", line 67, in sentry_wrapped_callback
    return callback(request, *args, **kwargs)
  File "/srv/newsblur/utils/view_functions.py", line 54, in wrapper
    return self.view_wrapper(request, fn, *args, **kwargs)
  File "/srv/newsblur/utils/view_functions.py", line 82, in view_wrapper
    return fn(request, *args, **kwargs)
  File "/srv/newsblur/apps/api/views.py", line 413, in save_story
    if request.user.is_authenticated():
TypeError: 'bool' object is not callable

Thanks for finding this. We attempted to change them all during the django 2 -> 3 launch a few months ago.

authors: louis-pre samuelclay

repo: samuelclay/NewsBlur


text:
Fix for pytest 5.4.X

Change Summary
PyTest 5.4.0 changed a couple things that break current tests.

The first, noted with https://github.com/samuelcolvin/pydantic/pull/1308#issuecomment-599005987 , is that Pytest flipped the plus/minus signs for it's extended diffs,
The second, is that it changed the API slightly, which means running pytest-sugar 0.9.2 (Released 2018-11-08!) results in an AttributeError:

❯ pytest
INTERNALERROR> Traceback (most recent call last):
...
INTERNALERROR>   File "/Users/step7212/.pyenv/versions/pydantic-test/lib/python3.8/site-packages/pytest_sugar.py", line 214, in __init__
INTERNALERROR>     self.writer = self._tw
INTERNALERROR> AttributeError: can't set attribute

The open PR #188 fixes that, so the reference has been updated.
Related issue number
Supersedes #1308/Closes #1314
Checklist

[x] Unit tests for the changes exist
[x] Tests pass on CI and coverage remains at 100%
[ ] Documentation reflects the changes where applicable
[ ] changes/<pull request or issue id>-<github username>.md file added describing change
(see changes/README.md for details)

let's wait for pytest-sugar update to be released.

pytest-sugar 0.9.3 has been released which fixes pytest compatibility, so this uses that version for pinning.

🎉 thanks.

repo: samuelcolvin/pydantic


text:
Changes on CIFS/SMB mount is not detected

Changes on CIFS/SMB mount is not detected. It seems it is not even detected by rust notify (no output from debug).
Watching the following systemd mount (/mnt/foo_bar):
[Mount]
What=//192.168.1.34/foo/bar/
Where=/mnt/foo_bar
Options=username=user1,password=pass1,workgroup=AD,noexec,rw,uid=1000,gid=1000,forceuid,forcegid
Type=cifs

Modifications of files on the host that is doing the mounting gets registered, but changes that another host that has the same mount does not get registered.
My guess is that allowing/forcing the PollWatcher would solve it?

Change for creating the issue.
Any chance you could either:

implement a PR for this library that forces PollWatcher, then use that to verify that it solves the problem, or
verify that using PollWatcher works with your own rust code

I've never heard of "CIFS/SMB" and don't think i've used it, so I'm probably not the best person to investigate this.

authors: andersoverb samuelcolvin

repo: samuelcolvin/watchfiles


text:
🛑 LDAP website is down

In 81ed949, LDAP website (https://ldap.students.cs.unibo.it) was down:

HTTP code: 0
Response time: 0 ms

Resolved: LDAP website is back up in f7b886d after 13 hours, 41 minutes.


text:
[Feature] 可以同时选择http和https

产品版本
1.3.7
版本类型

[X] 社区版

⭐ 需求描述

支持泛域名
后端IP支持域名，以解决DDNS公网IP经常变动问题
增加功能可以同时选择http和https，这样用户可以同时使用http和https访问

补充信息
No response

感谢反馈。
第三个，现有一个80跳转443的能否满足需求了？

第二个，能否举个示例

第二个，能否举个示例

第二个，比如我在内网中搭建了一套web，因为公网IP经常变动，所以采用动态域名的方式来解析，
第三个，在没有勾选强制跳转https时，访问http://a.com，代理到http://b.com:123，访问https://a.com，代理到https://b.com:345，也就是http转http，https转https

第二个描述的问题：
比如在SamWaf上创建了一个域名 ddns.samwaf.com，实际公网用户访问的就是ddns.samwaf.com
1.内网直接访问ip的情况吧，
2.还是说场景是有两个动态域名 ，用户访问的是 ddns1.samwaf.com，后端又访问了ddns2.samwaf.com ?

第二个描述的问题： 比如在SamWaf上创建了一个域名 ddns.samwaf.com，实际公网用户访问的就是ddns.samwaf.com 1.内网直接访问ip的情况吧， 2.还是说场景是有两个动态域名 ，用户访问的是 ddns1.samwaf.com，后端又访问了ddns2.samwaf.com ?

用户访问的就是ddns.samwaf.com，但是根据http或者https的两种情况转发到不同的网址。
动态域名这个是另一个问题，我代理到一个网址，网址不变，但这个网址的对应的ip有可能是变化的

明白了

用户访问的就是ddns.samwaf.com，但是根据http或者https的两种情况转发到不同的网址。

第三种情况, 如果端口相同，而请求协议不同 ，go 自带库底层暂时实现不了，这个暂时没有比较好的解决办法。暂时和 https://github.com/samwafgo/SamWaf/issues/36 合并，等有好办法，统一实现

1 和2 ，可以下载 v1.3.8-beta.4版本进行测试了

authors: Omoinemie samwafgo

repo: samwafgo/SamWaf


text:
question with the include files used in ESP32SJA1000.cpp file

Hello,
I dont understand how you are using functions like "DPORT_CLEAR_PERI_REG_MASK" in ESP32SJA1000.cpp which is defined in "dport_access.h" without even including this library.
Sorry about my silly question,
Thanks in advance
Regards,
Ajay

never mind I found the answer,
"dport_access.h" is called by "dport_reg.h" which is called in ESP32SJA1000.cpp.
Incase anyone else has the same question

repo: sandeepmistry/arduino-CAN