text:
Project deletion currently not working when there is an associated workflow job

When I press the delete button on a project, I get this in the console:
Acess to fetch at 'http://localhost:8011/api/v1/project/1' from origin 'http://localhost:5173' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

http://localhost:8011/api/v1/project/1 net::ERR_FAILED 500 (Internal Server Error)
window.fetch @ fetcher.js?v=53bac609:54
deleteProject @ project_api.js:87
handleDeleteProject @ ProjectsList.svelte:42
handleCallbackAction @ ConfirmActionButton.svelte:14
ProjectsList.svelte:47 TypeError: Failed to fetch
    at window.fetch (fetcher.js?v=53bac609:54:10)
    at deleteProject (project_api.js:87:26)
    at handleDeleteProject (ProjectsList.svelte:42:11)
    at HTMLButtonElement.handleCallbackAction (ConfirmActionButton.svelte:14:38)
(

I see nothing on the Svelte server or Fractal server though.
Regarding the CORS: All other calls (creating projects, new datasets, submitting workflows etc.) appears to be working, so not sure why this call fails.
I'm running fractal server 1.2.4, current main fractal web.
Deployment-wise, I'm using a postgres backend, gunicorn and an httpd proxy server in front of fractal-web
(on sqlite, project deletion leads to database issues on the fractal server side)

Removing a project doesn't appear to work if there is an associated workflow job, gets this error on the server side:
Traceback (most recent call last):
  File "/data/homes/fractal/deployment_joel/fractal-demos/examples/server/fractal-server-1.2.4/lib/python3.9/site-packages/uvicorn/protocols/http/h11_impl.py", line 407, in run_asgi
    result = await app(  # type: ignore[func-returns-value]
  File "/data/homes/fractal/deployment_joel/fractal-demos/examples/server/fractal-server-1.2.4/lib/python3.9/site-packages/uvicorn/middleware/proxy_headers.py", line 78, in __call__
    return await self.app(scope, receive, send)
  File "/data/homes/fractal/deployment_joel/fractal-demos/examples/server/fractal-server-1.2.4/lib/python3.9/site-packages/fastapi/applications.py", line 276, in __call__
    await super().__call__(scope, receive, send)
  File "/data/homes/fractal/deployment_joel/fractal-demos/examples/server/fractal-server-1.2.4/lib/python3.9/site-packages/starlette/applications.py", line 122, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/data/homes/fractal/deployment_joel/fractal-demos/examples/server/fractal-server-1.2.4/lib/python3.9/site-packages/starlette/middleware/errors.py", line 184, in __call__
    raise exc
  File "/data/homes/fractal/deployment_joel/fractal-demos/examples/server/fractal-server-1.2.4/lib/python3.9/site-packages/starlette/middleware/errors.py", line 162, in __call__
    await self.app(scope, receive, _send)
  File "/data/homes/fractal/deployment_joel/fractal-demos/examples/server/fractal-server-1.2.4/lib/python3.9/site-packages/starlette/middleware/cors.py", line 84, in __call__
    await self.app(scope, receive, send)
  File "/data/homes/fractal/deployment_joel/fractal-demos/examples/server/fractal-server-1.2.4/lib/python3.9/site-packages/starlette/middleware/exceptions.py", line 79, in __call__
    raise exc
  File "/data/homes/fractal/deployment_joel/fractal-demos/examples/server/fractal-server-1.2.4/lib/python3.9/site-packages/starlette/middleware/exceptions.py", line 68, in __call__
    await self.app(scope, receive, sender)
  File "/data/homes/fractal/deployment_joel/fractal-demos/examples/server/fractal-server-1.2.4/lib/python3.9/site-packages/fastapi/middleware/asyncexitstack.py", line 21, in __call__
    raise e
  File "/data/homes/fractal/deployment_joel/fractal-demos/examples/server/fractal-server-1.2.4/lib/python3.9/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
    await self.app(scope, receive, send)
  File "/data/homes/fractal/deployment_joel/fractal-demos/examples/server/fractal-server-1.2.4/lib/python3.9/site-packages/starlette/routing.py", line 718, in __call__
    await route.handle(scope, receive, send)
  File "/data/homes/fractal/deployment_joel/fractal-demos/examples/server/fractal-server-1.2.4/lib/python3.9/site-packages/starlette/routing.py", line 276, in handle
    await self.app(scope, receive, send)
  File "/data/homes/fractal/deployment_joel/fractal-demos/examples/server/fractal-server-1.2.4/lib/python3.9/site-packages/starlette/routing.py", line 66, in app
    response = await func(request)
  File "/data/homes/fractal/deployment_joel/fractal-demos/examples/server/fractal-server-1.2.4/lib/python3.9/site-packages/fastapi/routing.py", line 237, in app
    raw_response = await run_endpoint_function(
  File "/data/homes/fractal/deployment_joel/fractal-demos/examples/server/fractal-server-1.2.4/lib/python3.9/site-packages/fastapi/routing.py", line 163, in run_endpoint_function
    return await dependant.call(**values)
  File "/data/homes/fractal/deployment_joel/fractal-demos/examples/server/fractal-server-1.2.4/lib/python3.9/site-packages/fractal_server/app/api/v1/project.py", line 347, in delete_project
    await db.commit()
  File "/data/homes/fractal/deployment_joel/fractal-demos/examples/server/fractal-server-1.2.4/lib/python3.9/site-packages/sqlalchemy/ext/asyncio/session.py", line 578, in commit
    return await greenlet_spawn(self.sync_session.commit)
  File "/data/homes/fractal/deployment_joel/fractal-demos/examples/server/fractal-server-1.2.4/lib/python3.9/site-packages/sqlalchemy/util/_concurrency_py3k.py", line 136, in greenlet_spawn
    result = context.switch(value)
  File "/data/homes/fractal/deployment_joel/fractal-demos/examples/server/fractal-server-1.2.4/lib/python3.9/site-packages/sqlalchemy/orm/session.py", line 1431, in commit
    self._transaction.commit(_to_root=self.future)
  File "/data/homes/fractal/deployment_joel/fractal-demos/examples/server/fractal-server-1.2.4/lib/python3.9/site-packages/sqlalchemy/orm/session.py", line 829, in commit
    self._prepare_impl()
  File "/data/homes/fractal/deployment_joel/fractal-demos/examples/server/fractal-server-1.2.4/lib/python3.9/site-packages/sqlalchemy/orm/session.py", line 808, in _prepare_impl
    self.session.flush()
  File "/data/homes/fractal/deployment_joel/fractal-demos/examples/server/fractal-server-1.2.4/lib/python3.9/site-packages/sqlalchemy/orm/session.py", line 3363, in flush
    self._flush(objects)
  File "/data/homes/fractal/deployment_joel/fractal-demos/examples/server/fractal-server-1.2.4/lib/python3.9/site-packages/sqlalchemy/orm/session.py", line 3503, in _flush
    transaction.rollback(_capture_exception=True)
  File "/data/homes/fractal/deployment_joel/fractal-demos/examples/server/fractal-server-1.2.4/lib/python3.9/site-packages/sqlalchemy/util/langhelpers.py", line 70, in __exit__
    compat.raise_(
  File "/data/homes/fractal/deployment_joel/fractal-demos/examples/server/fractal-server-1.2.4/lib/python3.9/site-packages/sqlalchemy/util/compat.py", line 207, in raise_
    raise exception
  File "/data/homes/fractal/deployment_joel/fractal-demos/examples/server/fractal-server-1.2.4/lib/python3.9/site-packages/sqlalchemy/orm/session.py", line 3463, in _flush
    flush_context.execute()
  File "/data/homes/fractal/deployment_joel/fractal-demos/examples/server/fractal-server-1.2.4/lib/python3.9/site-packages/sqlalchemy/orm/unitofwork.py", line 456, in execute
    rec.execute(self)
  File "/data/homes/fractal/deployment_joel/fractal-demos/examples/server/fractal-server-1.2.4/lib/python3.9/site-packages/sqlalchemy/orm/unitofwork.py", line 667, in execute
    util.preloaded.orm_persistence.delete_obj(
  File "/data/homes/fractal/deployment_joel/fractal-demos/examples/server/fractal-server-1.2.4/lib/python3.9/site-packages/sqlalchemy/orm/persistence.py", line 343, in delete_obj
    _emit_delete_statements(
  File "/data/homes/fractal/deployment_joel/fractal-demos/examples/server/fractal-server-1.2.4/lib/python3.9/site-packages/sqlalchemy/orm/persistence.py", line 1468, in _emit_delete_statements
    c = connection._execute_20(
  File "/data/homes/fractal/deployment_joel/fractal-demos/examples/server/fractal-server-1.2.4/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 1631, in _execute_20
    return meth(self, args_10style, kwargs_10style, execution_options)
  File "/data/homes/fractal/deployment_joel/fractal-demos/examples/server/fractal-server-1.2.4/lib/python3.9/site-packages/sqlalchemy/sql/elements.py", line 325, in _execute_on_connection
    return connection._execute_clauseelement(
  File "/data/homes/fractal/deployment_joel/fractal-demos/examples/server/fractal-server-1.2.4/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 1498, in _execute_clauseelement
    ret = self._execute_context(
  File "/data/homes/fractal/deployment_joel/fractal-demos/examples/server/fractal-server-1.2.4/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 1862, in _execute_context
    self._handle_dbapi_exception(
  File "/data/homes/fractal/deployment_joel/fractal-demos/examples/server/fractal-server-1.2.4/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 2043, in _handle_dbapi_exception
    util.raise_(
  File "/data/homes/fractal/deployment_joel/fractal-demos/examples/server/fractal-server-1.2.4/lib/python3.9/site-packages/sqlalchemy/util/compat.py", line 207, in raise_
    raise exception
  File "/data/homes/fractal/deployment_joel/fractal-demos/examples/server/fractal-server-1.2.4/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 1799, in _execute_context
    self.dialect.do_executemany(
  File "/data/homes/fractal/deployment_joel/fractal-demos/examples/server/fractal-server-1.2.4/lib/python3.9/site-packages/sqlalchemy/engine/default.py", line 729, in do_executemany
    cursor.executemany(statement, parameters)
  File "/data/homes/fractal/deployment_joel/fractal-demos/examples/server/fractal-server-1.2.4/lib/python3.9/site-packages/sqlalchemy/dialects/postgresql/asyncpg.py", line 484, in executemany
    return self._adapt_connection.await_(
  File "/data/homes/fractal/deployment_joel/fractal-demos/examples/server/fractal-server-1.2.4/lib/python3.9/site-packages/sqlalchemy/util/_concurrency_py3k.py", line 76, in await_only
    return current.driver.switch(awaitable)
  File "/data/homes/fractal/deployment_joel/fractal-demos/examples/server/fractal-server-1.2.4/lib/python3.9/site-packages/sqlalchemy/util/_concurrency_py3k.py", line 129, in greenlet_spawn
    value = await result
  File "/data/homes/fractal/deployment_joel/fractal-demos/examples/server/fractal-server-1.2.4/lib/python3.9/site-packages/sqlalchemy/dialects/postgresql/asyncpg.py", line 476, in _executemany
    self._handle_exception(error)
  File "/data/homes/fractal/deployment_joel/fractal-demos/examples/server/fractal-server-1.2.4/lib/python3.9/site-packages/sqlalchemy/dialects/postgresql/asyncpg.py", line 389, in _handle_exception
    self._adapt_connection._handle_exception(error)
  File "/data/homes/fractal/deployment_joel/fractal-demos/examples/server/fractal-server-1.2.4/lib/python3.9/site-packages/sqlalchemy/dialects/postgresql/asyncpg.py", line 682, in _handle_exception
    raise translated_error from error
sqlalchemy.exc.IntegrityError: (sqlalchemy.dialects.postgresql.asyncpg.IntegrityError) <class 'asyncpg.exceptions.ForeignKeyViolationError'>: update or delete on table "dataset" violates foreign key constraint "applyworkflow_input_dataset_id_fkey" on table "applyworkflow"
DETAIL:  Key (id)=(1) is still referenced from table "applyworkflow".

A job is in relationship with

a project
a workflow
one or two datasets

Removing the project already removes the dataset(s), and in principle also the workflow (to be checked). The configuration for the job/project relationship is not correct.

authors: jluethi tcompa


text:
Parsing Yokogawa data with pandas table as metadata inputs

There are 3 main ways to parse the metadata for a Yokogawa dataset:

The dataset has the MeasurementData.mlf and MeasurementDetail.mrf, it's being parsed to define ROIs. (our current implementation)
The user creates their own pandas table that follows the same specification (very useful to allow users with special cases a path into Fractal)
The somewhat simple case of full rectangular wells (like most of our test cases so far). Based on very few parameters (pixel sizes, bit depth, grid dimensions & image sizes), we can calculate all the metadata parameters for this simple case without needing metadata files or dataframes. => https://github.com/fractal-analytics-platform/fractal-tasks-core/issues/47

This issue describes case 2

Our current parsing method for the yokogawa relies on the MeasurementData.mlf & the MeasurementDetail.mrf file. Those are parsed to define the ROIs (see here: https://github.com/fractal-analytics-platform/fractal-tasks-core/issues/25) and we generate a table like this:

From that table, the relevant metadata is then assigned to each ROI and ROIs get coordinates assigned (that are saved to the AnnData table per well).
We should create a second parsing function (/an alternative input to the parsing function) that allow users to pass a pandas dataframe (either pass a dataframe or pass a path to a csv file) directly to the parsing function, such that it takes this table & assigns ROIs based on the table.
Testcase TBD. I will create a test case for the single-well, 2x2 scenario

Let's reassess this based on how the table may change. One idea is to parse filenames from the metadata file as well to make parsing more robust. This would make this idea harder to implement.

[ ] Allow two usage modes: either reading mlf/mrf files or passing a csv path to site_metadata.
[ ] Fail otherwise

Note: this is not related to https://github.com/fractal-analytics-platform/fractal-tasks-core/issues/47.

source: gharchive/issue

license_type: permissive

license_source: github-api


text:
Sponsor Badge

Put a sponsor badge on your GitHub page ;)

It is as easy as adding .github/FUNDING.yml to the project with this content:
patreon: vladimirkharlampidi

This should make it easy to discover how to support you :)

Thanks for the tip :)

And thank you for your support! 🙌

Sure, your work is awesome! It is the foundation of the iOS version of https://onepile.app/ and works perfectly. I'm usually doing native UI, but your framework is so production ready that I decided to switch: https://holtwick.de/blog/2019-03-14-hybrid-apps And instead of Cordova I use my own wrapper both on iOS and macOS and so far it worked great https://holtwick.de/blog/2018-12-20-web-technologies. Finally, I can leave some more of the unsexy Objective-C and Swift code behind ;)  Thanks for all the work you have put into it!

Awesome, congrats! I believe you need to post it on Framework7 showcase. By the way, i see you also have desktop and web version. So just wondering what UI do you use there? Framework7 didn't fit there?

Awesome, congrats! I believe you need to post it on Framework7 showcase.

I did under the former name "Collect". I will update the entry in a minute.

By the way, i see you also have desktop and web version.

I'm using Buefy/Bulma for it with some custom CSS. It works great with Vue.js and saves some work there. Since I'm sharing a lot of code and modules, I might change that in future to not have to implement stuff twice. But I'm not yet sure how to do that.

So just wondering what UI do you use there? Framework7 didn't fit there?

At that time you didn't have the Aurora theme yet. And the UI was quite mobile specific. For the UI on desktop I wanted something lighter and more flexible. While it was a work in progress, I didn't know where to place everything on the screen. I might revisit the decision in the future.
By the way, for the rich text editor I use TipTap. I read you are going to implement something like this for Framework7 as well. Probably you want to keep it much simpler and agnostic of Vue.js etc. But this would probably most high-end component in general to use for such a purpose. I implemented a lot of contentEditable editors myself and I'm afraid you are opening the box of Pandora 😉

license: MIT


text:
fix(types): add missing params to notification and toast open/close methods

These types are not documented on the website, but are supported in code. Both these extend the Modal base class, which implements this support for this param.
It's very helpful especially on close to safely and immediately dispose the toast without waiting for the animation to complete.
See:

https://github.com/framework7io/framework7/blob/master/src/core/components/notification/notification-class.js#L7
https://github.com/framework7io/framework7/blob/master/src/core/components/toast/toast-class.js#L8
https://github.com/framework7io/framework7/blob/master/src/core/components/modal/modal-class.js#L73
https://github.com/framework7io/framework7/blob/master/src/core/components/modal/modal-class.js#L159

Merged, thanks!

source: gharchive/pull-request


text:
Strange energy sensors results using integration/utility_meter

He everyone, did you try to create energy sensors from the thermostat power entity ?  First, you need to create an energy sensor with the integration platform wich will transform raw power in W to kWh, it integrates the power over a time lapse to give kWh. Here is how I did it :
Here is the raw Hilo sensor data in graph :

https://www.home-assistant.io/integrations/integration/
1st step is to use sensor - platform: integration (takes a sensor in W) to create kWh
sensor:

platform: integration
source: sensor.chambre_d_emilie
name: energy_chambre_d_emilie
unit_time: h
round: 2
unit_prefix: k
method: trapezoidal

It creates the entity sensor.energy_chambre_d_emilie with the following attibutes :
state_class: total
source: sensor.chambre_d_emilie
unit_of_measurement: kWh
friendly_name: energy_chambre_d_emilie
icon: mdi:chart-histogram
device_class: energy
Here is the graph of the energy sensor created and it keep increasing over time as his job is just that : always increase over time and never reset.  It does go to 0 when you reboot HA just fyi.  Just look at the strange increase, it should not be that high and just start to rise from the same level as before...

https://www.home-assistant.io/integrations/utility_meter/
2nd step is to use this integration sensor to feed the utility meter
utility_meter:
energy_chambre_d_emilie_daily:
source:  sensor.energy_chambre_d_emilie
cycle: daily
It creates the entity sensor.energy_chambre_d_emilie_daily with the following attibutes :
state_class: total_increasing
last_reset: 2021-10-21T04:00:00.034194+00:00
source: sensor.energy_chambre_d_emilie
status: collecting
last_period: 5.11
meter_period: daily
unit_of_measurement: kWh
friendly_name: energy_chambre_d_emilie_daily
icon: mdi:counter
device_class: energy
Be aware that you need to switch the thermostat in heating mode and it need to apply power to change status to collecting.
Great seems to work, also in energy dashboard.
Unfortunately, I see the utility meter does the job to reset the sensor at midnight but for an unknow reason the power consumption is not beginning at 0, but at another number like if the last value was used by the integration sensor and is cummulating overt time ...

I did use the same method before on tuya smart plug with power measurement capability and it is working fine.
I use the same method for my main entry, with the sensor.smartenergy that creates sensor.enregy_smartenergy but since it always increase and never stop consumming, it is almost invisible!

Do you have the same behavior ?
Any idea is welcome!

It is confirmed.  You need to use the method: left

Trapezoidal is going to give you those strange results way too high cause it continue to increase even at 0.

repo: francispoisson/hilo

license: Unlicense


text:
[issue] "authorize" button (/docs) doesn't work as expected

Problem
Full examples "authorize" button (/docs) doesn't work as expected (e.g. input of a username/password -> authorized)
Solution
Change the default tokenUrl of JWTAuthentication of files in the session Full example
Pull Request (https://github.com/frankie567/fastapi-users/pull/210)


text:
fix: check authorized status of response from razorpay

#13
Fixes bug in checking response from razorpay

@phot0n , please review & merge asap.

authors: jigneshpshah vr-greycube

repo: frappe/payments


text:
Error in Anchor Link Generation for Headings (H1-H5)

A problem has been detected in the process of creating anchor links for headings (H1-H5) that contain characters other than Latin letters and digits. Anchor links should be correctly processed for all characters, but in the current implementation, headings consisting of Cyrillic or other alphabetic characters generate incorrect or non-functional links. It is necessary to fix the anchor link generation function to account for characters from non-Latin alphabets by correctly converting them.

Will look into this.

Thank you!

Hello! The links in the right sidebar for quick navigation in an article by section title are no longer being formed correctly.

authors: AyshaHakeem aidemkin

repo: frappe/wiki


text:
NoMallocThreadPool: include pthread if using pthread

Using clang with libc++ does not include pthread.h implicitly through  by default, so using pthread_t will cause a compilation error.
[1/41] Building CXX object source/Lib/vvenc/CMakeFiles/vvenc.dir/__/CommonLib/MCTF.cpp.o
FAILED: source/Lib/vvenc/CMakeFiles/vvenc.dir/__/CommonLib/MCTF.cpp.o
ccache D:\clang\msys64\clang64\bin\ccache.exe  clang++ -DHAVE_PTHREADS -DTARGET_SIMD_X86 -DVVENC_SOURCE -D_WIN32_WINNT=0x0600 -ID:/clang/build/vvenc-git/source/Lib/vvenc/../../../include -ID:/clang/build/vvenc-git/build-64bit -ID:/clang/build/vvenc-git/source/Lib/vvenc/. -ID:/clang/build/vvenc-git/source/Lib/vvenc/.. -ID:/clang/build/vvenc-git/source/Lib/vvenc/../DecoderLib -ID:/clang/build/vvenc-git/source/Lib/vvenc/../EncoderLib -ID:/clang/build/vvenc-git/source/Lib/vvenc/../CommonLib -ID:/clang/build/vvenc-git/source/Lib/vvenc/../CommonLib/x86 -ID:/clang/build/vvenc-git/source/Lib/vvenc/../CommonLib/arm -ID:/clang/build/vvenc-git/source/Lib/vvenc/../apputils -ID:/clang/build/vvenc-git/source/Lib/vvenc/../../../thirdparty/nlohmann_json/single_include -isystem D:/clang/build/vvenc-git/source/Lib/vvenc/../../../thirdparty -D_FORTIFY_SOURCE=2 -fstack-protector-strong -mtune=generic -O2 -pipe -D__USE_MINGW_ANSI_STDIO=1 -DVVENC_ENABLE_THIRDPARTY_JSON -DVVENC_ENABLE_THIRDPARTY_JSON -O3 -DNDEBUG -std=gnu++14 -fvisibility=hidden -fvisibility-inlines-hidden -msse4.1 -Wall -Werror -Wno-deprecated-register -Wno-unused-const-variable -Wno-unknown-attributes -MD -MT source/Lib/vvenc/CMakeFiles/vvenc.dir/__/CommonLib/MCTF.cpp.o -MF source\Lib\vvenc\CMakeFiles\vvenc.dir\__\CommonLib\MCTF.cpp.o.d -o source/Lib/vvenc/CMakeFiles/vvenc.dir/__/CommonLib/MCTF.cpp.o -c D:/clang/build/vvenc-git/source/Lib/CommonLib/MCTF.cpp
In file included from D:/clang/build/vvenc-git/source/Lib/CommonLib/MCTF.cpp:52:
D:/clang/build/vvenc-git/source/Lib/vvenc/../Utilities/NoMallocThreadPool.h:505:5: error: unknown type name 'pthread_t'
  505 |     pthread_t m_id       = 0;
      |     ^
1 error generated.

Thanks!

repo: fraunhoferhhi/vvenc


text:
Add junit formatter, bump resolvers, add nix flake

Miscellaneous updates

It seems that adding a spec file is necessary to prevent weeder from complaining that SpecHook is unused.

repo: freckle/haskell-library-template


text:
SASS course 'While loop' challenge auto-update crashes browser

First time reporting an issue, and it doesn't seem to be brought up yet, if it was then I apologize.
Describe your problem and - if possible - how to reproduce it
New SASS course on FCC - 'Apply A Style Until a Condition is Met With While' -
The auto-update feature on the editor executed the while loop as I typed, thereby crashing the window.
Add a Link to the page with the problem
https://learn.freecodecamp.org/front-end-libraries/sass/apply-a-style-until-a-condition-is-met-with-while
Tell us about your browser and operating system

Browser Name: Google Chrome
Browser Version: 66.0.3359.181
Operating System: macOS Sierra 10.12.6

If possible, add a screenshot here

Confirmed infinite loop on ChromeOS.
Makes tab unresponsive. Have to refresh page.

One solution I found is not to close the final   "  } "  after the sass code until you write the iterator condition.
It still doesn't pass the test but at least it doesn't crash the browser tab.

Experienced same issue in Chrome. I had to add the @while last to my code to avoid it crashing before I could increment x.

Crash on Chrome 68.x when typing.
But if I copying the code from example to the practice editor and edit, it will not be crashed.

This will always crash as the code is automatically evaluated. The instructions should be changed to be more specific. Maybe the challenge should be simpler so the while loop is already part written.

Try writing the code in notepad and copy paste it in the editor. It worked for me that way.

Just finished the "while" loop challenge after a lot of timeoutss..
you can simply undestand the code mentioned below and just try writing "while" after your entire code is written..
worked for me that way.
// Setup
var myArray = [];
// Only change code below this line.
var i = 5;
while(i > -1) {
myArray.push(i);
i--;
}

repo: freeCodeCamp/freeCodeCamp


text:
Typo/Bug in For Loop iteration example of Basic Javascript lesson

Describe your problem and how to reproduce it:
When iterating any array normally (from the first to the last element), the loop counter equals the length of the array minus one during its last iteration. The lesson docs incorrectly say

In this case the last iteration is i === 4 i.e. when i becomes equal to arr.length and outputs 6 to the console.

Add a Link to the page with the problem:
Iterate Through an Array with a For Loop lesson
Recommended fix, suggestions (how would you update it?):
The lesson docs should say

In this case the last iteration is i === 4 i.e. when i becomes equal to arr.length - 1 and outputs 6 to the console.

If possible, add a screenshot here (you can drag and drop, png, jpg, gif, etc. in this box):

@RaviOnline , I am interested to work on this issue.

Yes, you are correct Ravi. Could you add the "first timers" label also.

Thanks for opening this issue.
This looks something that can be fixed by "first time" code contributors to this repository. Here are the files that you should be looking at to work on a fix:
List of files:

https://github.com/freeCodeCamp/freeCodeCamp/blob/main/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/iterate-through-an-array-with-a-for-loop.md

Please make sure you read our guidelines for contributing, we prioritize contributors following the instructions in our guides. Join us in our chat room or the forum if you need help contributing, our moderators will guide you through this.
Sometimes we may get more than one pull-requests. We typically accept the most quality contribution followed by the one that is made first.
Happy contributing.

I will Really love to work on this!!

@PeroHub thank you! this issue has already a linked PR. If you have not done so yet check the contributing guidelines at contribute.freecodecamp.org, and look at other issues tagged with "first timers only" or "help wanted" and note that issues generally are not assigned, but the first comprehensive PR is reviewed

Thank you @ieahleen for the prompt feedback.
I will definitely look out for other "first timers only" issues to fix

Deleting github issue or pr content is really disruptive

authors: Nirajn2311 PeroHub RaviOnline gikf ieahleen jeremylt raunak6662


text:
fix(challenges): Fix Ctrl + Enter hotkey for projects

Pre-Submission Checklist

[x] Your pull request targets the staging branch of freeCodeCamp.
[x] Branch starts with either fix/, feature/, or translate/ (e.g. fix/signin-issue)
[x] You have only one commit (if not, squash them into one commit).
[ ] All new and existing tests pass the command npm test. Use git commit --amend to amend any fixes.

Type of Change

[x] Small bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds new functionality)
[ ] Breaking change (fix or feature that would change existing functionality)
[ ] Add new translation (feature adding new translations)

Checklist:

[x] Tested changes locally.
[x] Addressed currently open issue (replace XXXXX with an issue no in next line)

Closes #16769
Description

Add a keydown event listener to all project forms.
Show and focus on the solution input field when the hotkey combination is detected (same behaviour as clicking on the submit button).
Display OS-specific hotkey hint (unfortunately I have to setState() inside componentDidMount() because the navigator object is not available during server rendering).
Split Form.jsx because ESLint complains about two class components in one file.

Changes do not affect non-project challenges. Tested in Chrome, Firefox, and Safari.

npm test failed with the following message:
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! freecodecamp@0.1.0 test-challenges: `babel-node seed/test-challenges.js | tap-spec`
npm ERR! Exit status 1

Since I didn't touch any files under seed/, I assumed it wasn't my fault. Let me know if it's otherwise.

@Bouncey Please take a look at this PR - does this code fix the issue?
@leonfeng Not sure why you're getting an error with npm test

@Bouncey Thank you so much for the pointers! Turns out I don't need a ref to the forms after all since I'm no longer messing with the side panel.
I discovered another form (Back-End.jsx) that's used in the microservice and infosec projects. Its behaviour is different from the other two forms in that the solution input is initially visible and not cleared when a new challenge arrives. I'm not sure if that's by design, so all I did was select the text in the input. This way the user can still easily paste in a new solution.
To communicate to Mac users that Cmd + Enter is now supported, I decided to update the submit button's label. The only way I know how is via navigator.userAgent, which has to be accessed after the app is finished rendering. Maybe you know a better way?
I have updated the issue description to reflect the latest code changes. Please let me know if further changes are required.

Updated all the buttons I could find to say Cmd + Enter for Mac users.

Hi @leonfeng,
Thanks a lot for the pull-request and making the changes, as you may have noticed that we are moving our learning platform to https://github.com/freeCodeCamp/learn which is an effort to break the monolith, and keep the platform fast and easy to contribute to.
The new platform is based of Gatsby and is highly performant.
A few of the issues that you have worked on and fixed are probably on the learn repo. We would request you to take a look at https://learn.freecodecamp.org and give us feedback and fix them there.
Once again thanks a lot for your efforts, and apologies for closing this. This re-architecture is inevitable.
We hope you will understand the keep sending us PRs in future. Please hit us up on the https://forum.freecodecamp.org/t/quick-update-on-beta/186418/20 or the Contributors Chat room if you have any questions. We will be happy to answer all your queries.
Happy contributing!
/cc @QuincyLarson @Bouncey

authors: QuincyLarson leonfeng raisedadead


text:
Update index.md

A little language enhancement
Hope it works

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the master branch of freeCodeCamp.
[x] None of my changes are plagiarized from another source without proper attribution.
[x] My article does not contain shortened URLs or affiliate links.

If your pull request closes a GitHub issue, replace the XXXXX below with the issue number.
Closes #XXXXX

Thank you for your contribution to the page! 👍
We're happy to accept these changes, and look forward to future contributions. 🎉

authors: HatemSadallah RandellDawson


text:
Major changes and some translation corrections

This texts seemed to be directly translated from English. There were some errors, as well as, bad concepts and malformed sentences. I fixed all of them.

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the master branch of freeCodeCamp.
[x] None of my changes are plagiarized from another source without proper attribution.
[x] My article does not contain shortened URLs or affiliate links.

If your pull request closes a GitHub issue, replace the XXXXX below with the issue number.
Closes #XXXXX

Thank you for your contribution to the page! 👍
We're happy to accept these changes, and look forward to future contributions. 🎉

authors: RandellDawson mauricioharley


text:
Fixed translation and added examples

No examples were provided, and text was not translated.

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the master branch of freeCodeCamp.
[x] None of my changes are plagiarized from another source without proper attribution.
[x] My article does not contain shortened URLs or affiliate links.

If your pull request closes a GitHub issue, replace the XXXXX below with the issue number.
Closes #XXXXX

@javisenberg Thank you for  creating this PR.  However, since it was created, the underlying document has changed.  Can you please review and resolve the current merge conflicts?  It could be the changes to the underlying document are so significant that your changes are no longer relevant.  If the latter is the case, it might be easier to just close this PR and create a new PR with any changes you still feel are important to make.
If you need any assistance or have questions about resolving the merge conflicts, please reply back or contact someone in the Contributors Room on Gitter.
Thank you.

Thank you for your contribution to the page! 👍
We're happy to accept these changes, and look forward to future contributions. 🎉

authors: RandellDawson javisenberg


text:
fix: Update test for ES6 challenge

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the master branch of freeCodeCamp.
[x] None of my changes are plagiarized from another source without proper attribution.
[x] My article does not contain shortened URLs or affiliate links.

If your pull request closes a GitHub issue, replace the XXXXX below with the issue number.
Closes #34009

@HugoLiconV Can you explain how your changes fixes the challenge?

@RandellDawson Sure, the problem was one function that was passed as a parameter to the assert needed to be inside an IIFE in order to execute it:
// this won't work. It will never execute that function
testString: assert(() => {
  const t = new Thermostat(32);
  // you can even put return false and the test won't fail
  return typeof t === 'object' && t.temperature === 0;
}, 'Thermostat can be instantiated.');

So I put it inside an IIFE and I also added a solution to the challenge.

Is the added console.log necessary in any way???

@RandellDawson Any update?

@ezioda004 What are your thoughts on this PR?

@RandellDawson LGTM.

@ezioda004 Another question, if I use the new solution code provided by the OP and just remove the setter, shouldn't the first test and third test still pass based on the test description?
With respect to the 3rd test, I think the verbiage should be changed to something different, because you can still initiate Thermostat even if it does not have a setter or getter class for that matter.   Maybe a 4th test for validating setter and getter are actual functions also?

Randell, how about opening a new issue to address these extra questions? This PR already solves a problem and is just stagnating now.

maybe lynx has a point, but ...
@RandellDawson I agree with you it should pass without a setter.
Also seems odd that it fails if the temperature property isn't prefixed with an underscore.
I thought we were removing IIFE's, so the last test could be rewritten:
testString: () => { const t = new Thermostat(32); assert(typeof t === 'object' && t.temperature === 0, 'Thermostat can be instantiated.')};

Merge it if it makes an improvement.

This actually looks better to me. @lynxlynxlynx Merge if you find it fine

authors: ChrisBrownie55 HugoLiconV RandellDawson ezioda004 lynxlynxlynx nikrb thecodingaviator


text:
Update 'subset' from 'union' in Tests

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the master branch of freeCodeCamp.
[x] None of my changes are plagiarized from another source without proper attribution.
[x] All the files I changed are in the same world language (for example: only English changes, or only Chinese changes, etc.)
[x] My changes do not use shortened URLs or affiliate links.

Closes #XXXXX

Thank you @Manish-Giri  :smile:


text:
fix(client): increment cert. month adding sharing to LinkedIn

Checklist:

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the main branch of freeCodeCamp.
[x] All the files I changed are in the same world language, for example: only English changes, or only Chinese changes, etc.

Closes #40971

@raisedadead , I agree. Thanks for the input. I'll check and update.


text:
Add Missing full stops/periods in Registration Form project instructi…

Checklist:

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the main branch of freeCodeCamp.
[x] I have tested these changes either locally on my machine, or GitPod.

Closes #46195

As was mentioned in the issue, you need to update all occurrences, so as not to create more confusion for learners.

As @ieahleen mentioned, the tests need changing, along with the seed code for all the steps after each of these two that are changed here. I really don't think these changes are necessary, they seem pretty inconsequential to me and, I think, not as the designer intended - so I would vote not to make this change.

Thanks for taking the time everyone, I checked the issue and we can close this.


text:
fix: adjust grid map css

Checklist:

[X] I have read freeCodeCamp's contribution guidelines.
[X] My pull request has a descriptive title (not a vague title like Update index.md)
[X] My pull request targets the main branch of freeCodeCamp.
[X] I have tested these changes either locally on my machine, or GitPod.

Closes #47158

Makes the grid items square, and spaces them evenly.
Before:

After:

Hey @naomi-lgbt,
This is already looking better IMO. I am not sure about the bottom row which is not aligned with the other challenge steps.
Also it might be worth lining up the steps so that they have the same amount of padding as the block description.

Thanks for taking a look at this @naomi-lgbt. Like Sem mentioned, I think the updates here already look a lot better, though I do agree that the bottom row would probably look better if it was aligned with the rest of the grid.
I'll leave a couple of review comments with some suggestions.

I guess I didn't leave my original comment correctly and only I could see it? Anyhoo, my suggestion was:
.map-challenges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 3.4rem);
  grid-gap: 3px;
  justify-content: space-between;
  margin: 0 auto;
  width: calc(100% - 50px);
}

Thanks @bbsmooth that seems to have done the trick!

Here's how we're looking now:

Thanks @naomi-lgbt for working on this. The reason that I had the rows connected initially was to give a sense of continuation. That being said the current state looks pretty good. LGMT

authors: Sembauke ahmadabdolsaheb bbsmooth naomi-lgbt scissorsneedfoodtoo


text:
Update intro.json

Checklist:

[x] I have read and followed the contribution guidelines.
[x] I have read and followed the how to open a pull request guide.
[x] My pull request targets the main branch of freeCodeCamp.
[x] I have tested these changes either locally on my machine, or GitPod.

Closes #56862

updated the intro for travel agency page . please merge my pull request .

I have read and followed the how to open a pull request guide.

you have not followed this guide, we can't accept the PR as is. Please update the title of the PR.

Updated the title . Please  review it once .
On Sun, 27 Oct, 2024, 16:12 Ilenia, @.***> wrote:

I have read and followed the how to open a pull request guide
https://contribute.freecodecamp.org/how-to-open-a-pull-request/.

you have not followed this guide, we can't accept the PR as is. Please
update the title of the PR.
—
Reply to this email directly, view it on GitHub
https://github.com/freeCodeCamp/freeCodeCamp/pull/56917#issuecomment-2439962349,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BLSVRBK5XAURQFLVPSA6YZDZ5SYRXAVCNFSM6AAAAABQVV7CVSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMZZHE3DEMZUHE
.
You are receiving this because you authored the thread.Message ID:
@.***>

@charu1110 you can't approve your own PR, you will need to wait for a maintainer to make the second approval

Hi @charu1110. Congrats on your first pull request (PR)! 🎉
Thank you for your contribution to the page! 👍
We are happy to accept these changes and look forward to future contributions. 📝

authors: charu1110 gikf ilenia-magoni


text:
Crash on didChangeConfiguration with empty settings

The latest nvim language client is sending a 'workspace/didChangeConfiguration' with the settings parameter set to {}. This causes the server to crash:
/usr/lib/node_modules/ocaml-language-server/bin/server/processes/merlin.js:14
                if (this.session.settings.reason.diagnostics.merlinPerfLogging) {
                                                 ^

TypeError: Cannot read property 'diagnostics' of undefined
    at logMessage (/usr/lib/node_modules/ocaml-language-server/bin/server/processes/merlin.js:14:50)
    at /usr/lib/node_modules/ocaml-language-server/node_modules/lodash/lodash.js:5157:35
    at Interface._onLine (readline.js:280:5)
    at Interface._normalWrite (readline.js:424:12)
    at Socket.ondata (readline.js:141:10)
    at emitOne (events.js:116:13)
    at Socket.emit (events.js:211:7)
    at addChunk (_stream_readable.js:263:12)
    at readableAddChunk (_stream_readable.js:250:11)
    at Socket.Readable.push (_stream_readable.js:208:10)

See this issue for more details: https://github.com/autozimu/LanguageClient-neovim/issues/183

I had the same bug as well on mac.

I have the same problem in neovim in linux. Any workaround for this?

I just uploaded a new release (1.0.15) which should fix this issue.

authors: abs-zero freebroccolo rseymour rymdhund

repo: freebroccolo/ocaml-language-server

license_source: bigquery


text:
Switch statements should not point to "Conditional.scala" in generated verilog

Type of issue:  feature request

Impact: no functional change

Development Phase: request
Other information

Example: https://scastie.scala-lang.org/vXpOaKjuQmmj91AUXLYGHQ
module Foo(
  input        clock,
  input        reset,
  input  [1:0] io_in,
  output [1:0] io_out
);
  wire  _T = 2'h0 == io_in; // @[Conditional.scala 37:30]
  wire  _T_1 = 2'h1 == io_in; // @[Conditional.scala 37:30]
  wire  _T_2 = 2'h2 == io_in; // @[Conditional.scala 37:30]
  wire  _T_3 = 2'h3 == io_in; // @[Conditional.scala 37:30]
  wire [1:0] _GEN_0 = _T_3 ? 2'h3 : 2'h0; // @[Conditional.scala 39:67]
  wire [1:0] _GEN_1 = _T_2 ? 2'h1 : _GEN_0; // @[Conditional.scala 39:67]
  wire [1:0] _GEN_2 = _T_1 ? 2'h0 : _GEN_1; // @[Conditional.scala 39:67]
  assign io_out = _T ? 2'h3 : _GEN_2; // @[main.scala 13:10 main.scala 16:14 main.scala 20:14 main.scala 24:14 main.scala 28:14]
endmodule

What is the current behavior?
Verilog lines generated from switch statement refer back to Conditional.scala.
What is the expected behavior?
These lines should instead refer back to the source line of the is statement..
What is the use case for changing the behavior?
It would make it easier to cross-reference the generated Verilog and the Scala source.
I ran into this because one of my modules fails formal verification due to unreachable cases in a switch.

Thank you for the bug report! I believe this was fixed by #1618 (to be released in 3.4.1), but will verify before closing this issue.

I just tried this on e6192ea75ce0d840b4b51a376921c2feecaa3b46 and I am still getting similar output.

Ah yes, I misread the issue originally. This is a limitation that needs to be addressed, thank you for checking!

authors: danielkasza jackkoenig


text:
Number all code examples & add specification build to Makefile

This PR is the first step of work identified in issue #890 - namely that the specification is out-of-date with respect to what the current FIRRTL implementation accepts as valid input.

Added spec/Makefile which uses pdflatex to build the specification document in place.
Added a top-level Makefile target: specification
Added spec/Makefile clean target to the top level Makefile clean target.
Changed all code example verbatim environments into lstlisting environments to allow for automatic numbering. This is present in the compiled spec.pdf file to be merged.
Added basic keyword hilighting for all code examples.

This commit allows all code examples to be referred too numerically and unambiguously. This is essential in any subsequent work relating to updating the specification of FIRRTL syntax to match the current implementation.
Side note 1: Going forward is it sensible to keep the spec/spec.pdf file under version control? Would it be better as some sort of artifact in a CI pipeline like the other Travis stuff?
Side note 2: I hope this PR is useful as a standalone. If I (or anyone else for that matter) try and make any further updates to the spec, do the maintainers prefer more smaller pull requests or fewer larger ones? What's the best / easiest way to contribute?
Thanks,
Ben

Hello and thank you for your contribution! In general smaller contributions are better and I think you've done a great job of that here.
In general I think this is good. Being able to refer to code examples is very important. I think this represents a great starting point for future improvements!

Going forward is it sensible to keep the spec/spec.pdf file under version control? Would it be better as some sort of artifact in a CI pipeline like the other Travis stuff?

I think it probably would be better not no longer keep the .pdf file under version control. I also wonder if we maybe shouldn't just move the spec to another repo entirely and then host the pdf version on a website. (perhaps https://chisel.eecs.berkeley.edu/documentation.html, soon to be renamed to chisel-lang.org)
I have a few other thoughts/questions as well:

I'm happy to merge this as is, but should we perhaps make a spec-0.3 branch where we can collaborate on a new spec that we can then merge more changes to master in one go?
As mentioned above, should we make a new repo for the spec?

Hello and thank you for your contribution! In general smaller contributions are better

I'll continue this way in the future then! :)

I think it probably would be better not no longer keep the .pdf file under version control. I also wonder if we maybe shouldn't just move the spec to another repo entirely and then host the pdf version on a website

That sounds like a good idea. Splitting specification from implementation is important because you don't want the implementation becoming the spec, especially for something like this. I think it really helps people separate them conceptually as well, even it one has to be a bit more careful synchronizing changes across the two.

I'm happy to merge this as is, but should we perhaps make a spec-0.3 branch

Okay. Given this is essentially a non-invasive change that doesn't affect any syntax or semantics, this PR can be merged, and then all future work wrt the spec I/we do can be on a new branch you create? I think you're right to create a new branch, otherwise the master branch spec (in this or some new repo) will be changing unhelpfully frequently.

As mentioned above, should we make a new repo for the spec?

For what it's worth, I'd say that's a good idea for maintaining the spec long term.

Re keeping the pdf in the repo - I agree its best to build it off of master and host it on the website. I included it in the repo because it is convenient to point to, so as long as we have a serviceable replacement, I'm game. Thanks for the PR!

After much grief, I managed to get the RISC-V ISA spec repo to auto-generate a new PDF on every merge, without polluting the repo with the PDF. The scheme isn’t perfect, because it automatically creates a new unique tag on every merge, so it’s best to separate the doc into its own repo. But it’s working well for us, so you might consider it here, too.

Alright I'm going to merge this as it's a nice first step and then look into spinning the spec off to a different repo, thanks!

@ben-marshall I see these are both clean commits, do you want to rebase your fork to remove the master merge commit or should I just squash and merge this?

Squash and merge is fine with me.

authors: aswaterman azidar ben-marshall jackkoenig

repo: freechipsproject/firrtl


text:
Handle new bankruptcy attachment page format

Seems there was some sort of update which changed the attachment page format for bankruptcy cases.

@mlissner I reviewed this one, and it looks good to be merged.

Wonderful, thank you both!

authors: albertisfu mlissner ttys0dev

repo: freelawproject/juriscraper


text:
Button (mobile)

Knappene er for små når det gjelder touch-område på mobil/tablet. Knappene er 40px høye, men anbefalt høyde på knapper er 45px eller høyere for å få et tilstrekkelig touchområde. Kan relatere flere artikler på dette, men fant denne i farten: https://www.smashingmagazine.com/2012/02/finger-friendly-design-ideal-mobile-touchscreen-target-sizes/
Jeg foreslår at man øker høyden på knappen til 45px eller større for å virkelig gi et godt inntrykk av enkel navigasjon.

label:"🎨 design"

Når jeg har sett på knappene våre i forbindelse med autolayout så har jeg sett at kompaktknappen ikke har samme proposjoner som desktopknappen. En mer proposjonal størrelse hadde vært en høyde på 48px.
Kan dette være tilstrekkelig til at vi bør skille mobil & kompaktkomponentene i dette tilfellet?

48px er vel en fin størrelse som også går opp i 8px-skalaen vår 😊

authors: Mikkelinski mariusthedesigner piofinn

repo: fremtind/jokul


text:
Add Python 3.12, Drop Python 3.10

Proposed Changes
SSIA

Codecov Report

Merging #575 (d44dfbf) into main (f4ee17d) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main     #575   +/-   ##
=======================================
  Coverage   93.73%   93.73%
=======================================
  Files           6        6
  Lines         383      383
  Branches       30       35    +5
=======================================
  Hits          359      359
  Misses         22       22
  Partials        2        2

Files
Coverage Δ

src/demetriek/cloud.py
98.18% <100.00%> (ø)

src/demetriek/device.py
86.44% <100.00%> (ø)

authors: codecov-commenter frenck

repo: frenck/python-demetriek


text:
CC0 license and CLA for translations

What version of Spook are you using?
1
What version of Home Assistant are you using?
1
The problem

By contributing translations to the Spook project, you agree that your translations are published under the CC0 (Creative Commons Zero v1.0 Universal) license, meaning you wave copyright (and any other right); making your contributed translations public domain.

That is not what CC0 does in all jurisdictions, and it isn't compatible with the previously committed work under MIT because it has a required part that isn't part of the CC0 license.
Adding a CoC to the project without asking contributors after taking contributions is also egregious, but legal.
Anything in the logs? Paste it here!
No response

Would like like me to revert your contributions? I am happy to do that if that makes you feel more comfortable?
Also, please note, this project was never MIT licensed. As a matter of fact, by using this code you've been in violation of the license already.

It is not about comfort, but the copyright of any of the contributors.
https://hosted.weblate.org/changes/?component=integration&project=spook&lang=&action=55&user=&start_date=&end_date=
It was MIT
and the bottom of https://github.com/frenck/spook is MIT
and 6.2 of https://hosted.weblate.org/legal/terms/ would make it MIT too.

It is not and has never been MIT. As a matter of fact, this repo never carried any OSI-approved license.

The message in Weblate has been adjusted.
../Frenck

Right, so you took the MIT license, filled in
Copyright <YEAR> <COPYRIGHT HOLDER>
and replaced
and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
with:
but NOT including the right to run, execute or use the Software or any executable binaries built from the source code.
Actually selecting the MIT license for the translations is what made me miss that.
The same reason why nobody ever tries to pull a fast one with the project license is why people are more likely to contribute to it in error.
Please do remove my contributions.

Right, so you took the MIT license

No, I did not. I choose the passive aggressive license for this project source code, which is an existing license. A small Google search would have learned you that.
The reason is that, I wanted to keep this open as much as possible, yet, using this is a bad idea. This is also documented extensively in the documentation along with this repository.

Actually selecting the MIT license for the translations is what made me miss that.

I don’t think that statement is correct. The translations are published now under the CC0 license. This to comply with the requirements of Weblate Libre that explicitly states the translations need to be published under an OSI approved license.

Please do remove my contributions.

Sure, no problem. I am currently traveling, but will pick this up when I return in a little over a week 👍

authors: comradekingu frenck

repo: frenck/spook


text:
Can't make html flashcards

Hello when I make html flashcards the code gets executed, how to show html code please?

Hi. HTML gets rendered natively in Markdown. If you want to keep it as source code, you need to surround it in backtick quotes. For more details see https://daringfireball.net/projects/markdown/syntax#code

authors: ModelNaoe frenya

repo: frenya/vscode-recall


text:
Distinguish assets and devices in glossary

What's needed?
The glossary is not distinguishing devices and assets in the component section. Follow up on https://github.com/frequenz-floss/frequenz-sdk-python/pull/647#discussion_r1318691630
Proposed solution
No response
Use cases
No response
Alternatives and workarounds
No response
Additional context
No response

What do you suggest is having different section for each type of those types or to have a definition for Asset? A more concrete proposal would be helpful.

Assigned it to myself and create a proposal PR after your one is merged.

@cwasicki is this done?

Started drafting it here: https://github.com/cwasicki/frequenz-sdk-python/pull/1. Will create a PR for this to upstream and ping again.

https://github.com/frequenz-floss/frequenz-sdk-python/pull/952

authors: cwasicki llucax

repo: frequenz-floss/frequenz-sdk-python


text:
FM1125

FM1125_Protocols_v0.0.7 how to received data to nodejs server

I do not know the details of that protocol. You can implement it and send the new adapter on a PR.

repo: freshworkstudio/gps-tracking-nodejs

license: mit


text:
Yelp Crawler (Easy)

get initial data from Yelp using their api
can be in any language
get information depending on our schemas

This is the Database Schema we would like to follow
// PINS
{
"_id":
"rating": ,
"pinType": ,
"name": ,
"description": ,
"likes" : ,
"duration": ,
"coordinate": {
"latitude": ,
"longitude":
},
"linkedAccount": ,
"reviews": [{"linkedAccount":,"text":,"createDate":}...]
}
//REVIEWS
{
"_id":
"linkedPin": ,
"linkedAccount": ,
"text":
"linkedAccount": ,
"reviews": [ {
"linkedAccount": ,
"text": ,
"date":
},
{
"linkedAccount": ,
"text": ,
"date":
} ...
]
}

authors: alixvoor james-woo

repo: fridayideas/daytomatoserver


text:
[PF-558] show workspace structure

Running a job will now show

@ktaebum Does the exempted files at .pfignore be excluded from the file tree?

Yes they are exempted

authors: kooyunmo ktaebum

repo: friendliai/periflow-cli


text:
Explain better how to add a NPM package to a theme/package

Related to this:

https://community.frontity.org/t/detect-node-modules-under-packages-folder-remove-them-and-launch-reinstall-from-root/4238
https://community.frontity.org/t/i-am-started-getting-error-typeerror-cannot-read-property-add-of-undefined/1975/18?u=juanma

This explanation should be covered as part of the packages sub-section planned as part the section "Core Concepts" (as part of the Learning Curriculum implementation) https://github.com/frontity/docs/issues/265

repo: frontity/docs


text:
Link Architecture url to Architecture page in README

This is my first PR into Frontity stuff.

Good catch @RyanHarrigan!
Approved & merged 👍

authors: RyanHarrigan juanmaguitar


text:
WpSource: Add state.source.url to the state index

Super small fix to add state.source.url to the state index of the wp-source page :)

@luisherranz Thanks for the fix! 👍

authors: juanmaguitar luisherranz


text:
Compile time errors

Today I downloaded the ;latest source code for frostwire-common  repository and set up in Eclipse IDE. with other dependent jar files. But I am getting compile time errors as. One such file is
com.frostwire.bittorrent.BTDownload.java ->
private void serializeResumeData(SaveResumeDataAlert alert) {
try {
if (th.isValid()) {
String infoHash = th.getInfoHash().toString();
File file = engine.resumeDataFile(infoHash);
            Entry e = alert.resumeData(); // getting compile time error as this method is not available

            e.getSwig().dict().set(EXTRA_DATA_KEY, Entry.fromMap(extra).getSwig());

            FileUtils.writeByteArrayToFile(file, e.bencode());
        }
    } catch (Throwable e) {
        LOG.warn("Error saving resume data", e);
    }
}

Please let me know if I need to download any other jar files
Thanks
Unni

frostwire-common has been phased out, it is now in this repository under the /common/
folder.
are you trying to build for desktop or for android?
Have you tried to build from the command line using gradle build from the root folder?

Hello Angel,
I am building for Desktop and added just now other dependencies (like
jaudiotagger, commons etc).
I am not building through Gradle. I have ported all the source code to my
Eclipse project folder. I have taken the latest jlib-torrent jar file as
well.
Is it mandatory to build it using "Gradle" ?
Now I have 3 compile time errors in my IDE.
Yours Sincerely,
Unni M
On Wed, Dec 23, 2015 at 9:16 PM, Angel Leon notifications@github.com
wrote:

frostwire-common has been phased out, it is now in this repository under
the /common/
folder.
are you trying to build for desktop or for android?
Have you tried to build from the command line using gradle build from the
root folder?
—
Reply to this email directly or view it on GitHub
https://github.com/frostwire/frostwire/issues/29#issuecomment-166927244.

--
If not played, Free Sudoku Android Game
https://play.google.com/store/apps/details?id=com.gamerfan.sudoku

I suggest you use an eclipse/gradle plugin to simplify your development
process, otherwise you'll have to read how we've set up the build and
libpath on the gradle script and add all these dependencies manually in
eclipse.
http://twitter.com/gubatron
On Wed, Dec 23, 2015 at 10:55 AM, unnivm notifications@github.com wrote:

Hello Angel,
I am building for Desktop and added just now other dependencies (like
jaudiotagger, commons etc).
I am not building through Gradle. I have ported all the source code to my
Eclipse project folder. I have taken the latest jlib-torrent jar file as
well.
Is it mandatory to build it using "Gradle" ?
Now I have 3 compile time errors in my IDE.
Yours Sincerely,
Unni M
On Wed, Dec 23, 2015 at 9:16 PM, Angel Leon notifications@github.com
wrote:

frostwire-common has been phased out, it is now in this repository under
the /common/
folder.
are you trying to build for desktop or for android?
Have you tried to build from the command line using gradle build from the
root folder?
—
Reply to this email directly or view it on GitHub
<https://github.com/frostwire/frostwire/issues/29#issuecomment-166927244
.

--
If not played, Free Sudoku Android Game
https://play.google.com/store/apps/details?id=com.gamerfan.sudoku
—
Reply to this email directly or view it on GitHub
https://github.com/frostwire/frostwire/issues/29#issuecomment-166929899.

The only error I am getting from jlibtorrent as couple of methods are not
matching. Btw, could you please tell me what are the jar files are required
for in Gradle other than the one mentioned in front page of
https://github.com/frostwire/frostwire/tree/master/desktop
Yours Sincerely,
Unni M
On Wed, Dec 23, 2015 at 9:36 PM, Angel Leon notifications@github.com
wrote:

I suggest you use an eclipse/gradle plugin to simplify your development
process, otherwise you'll have to read how we've set up the build and
libpath on the gradle script and add all these dependencies manually in
eclipse.
http://twitter.com/gubatron
On Wed, Dec 23, 2015 at 10:55 AM, unnivm notifications@github.com wrote:

Hello Angel,
I am building for Desktop and added just now other dependencies (like
jaudiotagger, commons etc).
I am not building through Gradle. I have ported all the source code to my
Eclipse project folder. I have taken the latest jlib-torrent jar file as
well.
Is it mandatory to build it using "Gradle" ?
Now I have 3 compile time errors in my IDE.
Yours Sincerely,
Unni M
On Wed, Dec 23, 2015 at 9:16 PM, Angel Leon notifications@github.com
wrote:

frostwire-common has been phased out, it is now in this repository
under
the /common/
folder.
are you trying to build for desktop or for android?
Have you tried to build from the command line using gradle build from
the
root folder?
—
Reply to this email directly or view it on GitHub
<
https://github.com/frostwire/frostwire/issues/29#issuecomment-166927244
.

--
If not played, Free Sudoku Android Game
https://play.google.com/store/apps/details?id=com.gamerfan.sudoku
—
Reply to this email directly or view it on GitHub
<https://github.com/frostwire/frostwire/issues/29#issuecomment-166929899
.

—
Reply to this email directly or view it on GitHub
https://github.com/frostwire/frostwire/issues/29#issuecomment-166932484.

--
If not played, Free Sudoku Android Game
https://play.google.com/store/apps/details?id=com.gamerfan.sudoku

@unnivm what version of jlibtorrent did you copy

Hello Alden,
The version I am using is jlibtorrent-1.1.0.15.jar
Yours Sincerely,
Unni M
On Wed, Dec 23, 2015 at 9:53 PM, Alden Torres notifications@github.com
wrote:

@unnivm https://github.com/unnivm what version of jlibtorrent did you
copy
—
Reply to this email directly or view it on GitHub
https://github.com/frostwire/frostwire/issues/29#issuecomment-166935904.

--
If not played, Free Sudoku Android Game
https://play.google.com/store/apps/details?id=com.gamerfan.sudoku

that's the one I was going to suggest
http://search.maven.org/remotecontent?filepath=com/frostwire/jlibtorrent/1.1.0.15/jlibtorrent-1.1.0.15.jar

Let me try with this and shall update you.
Yours Sincerely,
Unni M
On Wed, Dec 23, 2015 at 9:56 PM, Angel Leon notifications@github.com
wrote:

that's the one I was going to suggest
http://search.maven.org/remotecontent?filepath=com/frostwire/jlibtorrent/1.1.0.15/jlibtorrent-1.1.0.15.jar
—
Reply to this email directly or view it on GitHub
https://github.com/frostwire/frostwire/issues/29#issuecomment-166936517.

--
If not played, Free Sudoku Android Game
https://play.google.com/store/apps/details?id=com.gamerfan.sudoku

I am still getting the same error with this version of jar file.
Yours Sincerely,
Unni M
On Wed, Dec 23, 2015 at 10:04 PM, unni mana unnivm@gmail.com wrote:

Let me try with this and shall update you.
Yours Sincerely,
Unni M
On Wed, Dec 23, 2015 at 9:56 PM, Angel Leon notifications@github.com
wrote:

that's the one I was going to suggest
http://search.maven.org/remotecontent?filepath=com/frostwire/jlibtorrent/1.1.0.15/jlibtorrent-1.1.0.15.jar
—
Reply to this email directly or view it on GitHub
https://github.com/frostwire/frostwire/issues/29#issuecomment-166936517
.

--
If not played, Free Sudoku Android Game
https://play.google.com/store/apps/details?id=com.gamerfan.sudoku

--
If not played, Free Sudoku Android Game
https://play.google.com/store/apps/details?id=com.gamerfan.sudoku

you should have another version of jlibtorrent in your classpath. Can you post the classpath of your eclipse project (.classpath file)?

Yes that was right, there was a different version of jlibtorrent was there.
The previous one, Now this issue can be closed,
Thank you for your timely help and cooperation.
Yours Sincerely,
Unni M
On Wed, Dec 23, 2015 at 10:28 PM, Alden Torres notifications@github.com
wrote:

you should have another version of jlibtorrent in your classpath. Can you
post the classpath of your eclipse project (.classpath file)?
—
Reply to this email directly or view it on GitHub
https://github.com/frostwire/frostwire/issues/29#issuecomment-166944400.

--
If not played, Free Sudoku Android Game
https://play.google.com/store/apps/details?id=com.gamerfan.sudoku

authors: aldenml gubatron unnivm

repo: frostwire/frostwire


text:
Preferences design update

@aldenml - Update to the layout of preferences as discussed with @gubatron, added toolbar to SettingsActivity and its nested screens, added material theme, and adjusted padding/dividers/text sizes of layouts used according to guidelines.
All preferences are working as before, no functionality changes made.
Next step: add/replace talked about preferences ('Download on WiFi only' etc.), change number picker dialog as per discussion with grzesiek... Clean up settings code - a lot of it is deprecated already.

Can this PR be divided in two? I'm thinking of:
1- Switching to the use of toolbar and new theme, with a less assumption of the layout structure.
2- Making all the styles and xml changes.
What do you think?

authors: aldenml marcelinkaaa


text:
The Dockhand's Assistant shows EM as 5000% instead of 50 when viewing equations.

Ahh, that's the wrong image. Hopefully this one is correct

repo: frzyc/genshin-optimizer


text:
artist explorer not working when searching with artist name

curl 'https://artist-explorer.glitch.me/spotify/search?limit=50&market=US&q=nancy+*&type=artist' -H 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0' -H 'Accept: /' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'X-Requested-With: XMLHttpRequest' -H 'Connection: keep-alive' -H 'Referer: https://artist-explorer.glitch.me/' -H 'Cookie: _ga=GA1.3.1305526916.1591360844; _gid=GA1.3.2016024663.1594916955' -H 'TE: Trailers'
It makes a request to the above endpoint but the request never returns.

Works for me. Is this still an issue @agiratech-vigneshm ?

Interestingly, some months later, this has stopped working for me and I see the same kind of behaviour as OP.

authors: agiratech-vigneshm robinmalik

repo: fsahin/artist-explorer


text:
🛑 FS - GitLab is down

In 6007225, FS - GitLab (https://fs.physik.kit.edu/gitlab/) was down:

HTTP code: 404
Response time: 525 ms

Resolved: FS - GitLab is back up in 56dcfe7.


text:
Regression: VCProj failed with "Unable to parse ProjectReference"

Description
Please provide a succinct description of your issue.
We updated to 2.63.2.0  from 2.54.0.0 and our vcproj with references to boost is failing to parse.
Paket failed with:
unable to parse ProjectReference
StackTrace:
at Paket.ProjectFileModule.forceGetInnerText@1061-5.Invoke(String message)
at Paket.ProjectFileModule.getInterProjectDependencies@1063.GenerateNext(IEnumerable1& next)    at Microsoft.FSharp.Core.CompilerServices.GeneratedSequenceBase1.MoveNextImpl()
at Microsoft.FSharp.Collections.SeqModule.ToList[T](IEnumerable1 source)    at Paket.InstallProcess.dependencies@206-11[a](GroupName groupName, FSharpFunc2 findDependencies, Dictionary2 projectCache, Dictionary2 dependencyGraph, Dictionary2 referenceFiles, ProjectFile projectFile)    at Paket.InstallProcess.applyBindingRedirects@223-3.Invoke(ProjectFile projectFile)    at Paket.BindingRedirects.applyBindingRedirectsToFolder@166.Invoke(ProjectFile projectFile)    at Microsoft.FSharp.Collections.SeqModule.Iterate[T](FSharpFunc2 action, IEnumerable1 source)    at Paket.InstallProcess.InstallIntoProjects(InstallerOptions options, Boolean forceTouch, DependenciesFile dependenciesFile, LockFile lockFile, FSharpList1 projectsAndReferences)
at Paket.UpdateProcess.SmartInstall(DependenciesFile dependenciesFile, UpdateMode updateMode, UpdaterOptions options)
at <StartupCode$Paket-Core>.$PublicAPI.Install@170.Invoke(Unit unitVar0)
at Paket.Utils.RunInLockedAccessMode[a](String rootFolder, FSharpFunc2 action)    at Paket.Program.handler@340-11.Invoke(ParseResults1 results)
at Paket.Program.processWithValidation[T](FSharpFunc2 validateF, FSharpFunc2 commandF, Command command, String[] args)
at Paket.Program.processCommand@61-1.Invoke(Command command, String[] args)
at Paket.Program.main()
Repro steps
Please provide the steps required to reproduce the problem

Create a vcproj with 2.54..0.0 with native project reference to Boost

run paket install

Build

Upgrade to 2.63.2.0

run paket install

Expected behavior
paket install to run correctly
Actual behavior
Error on paket install that "Unable to parse ProjectReference"
Known workarounds
Go back to the older version
Related information

Operating system
Windows 10
Branch
.NET Runtime, CoreCLR or Mono Version
.net 4.6
Performance information, links to performance testing scripts

can you send me such a csproj file?

Hi it's not necessary c# project. Seems that paket cannot parse the project reference. Here is a sample repo.
TestPaket.zip

I can't reproduce with the zip. What do I need to do exactly?

Typically "Paker Install" was crashing. We figured undocumented (?) --Verbose option, and it gives us call stack at the time of the crash. What else can we do to get more specific information about the caus of the problem?

How can I reproduce that with the zip? install works for me

New repro created (attached). I think the culprit is that referenced project is a static library.
UnableToParseProjectReference.zip

I don't know what Paket is trying to do with the Project reference, but in this case it is used solely to establish project build order and I believe may be safely ignored by paket. Just don't crash on it.

I can reproduce. thanks

authors: acmore forki konste tommysu

repo: fsprojects/Paket


text:
Running auto-restore on twice removes paket target from proj file.

Description
Running paket.exe auto-restore on a second time removes the line <Import Project="..\.paket\paket.targets" /> from the project file.
Repro steps

paket.exe auto-restore on

git commit

paket.exe auto-restore on

check the diff

Project I used: AutoRestoreTwice.zip
Expected behavior
Expected auto-restore to be enabled after the second run.
Actual behavior
Removes the line <Import Project="..\.paket\paket.targets" /> from the project file.
Known workarounds
Run auto-restore on again.

Fixed with


text:
feat: introduce tests

[ ] I have added automatic tests where applicable
[ ] The PR title is suitable as a release note
[ ] The PR contains a description of what has been changed
[ ] The description contains manual test instructions

Changes

Test

Hey @gismya here's my plan for this PR and upcoming ones.

Introducing tests.
I'll be switching to TS-SDK for emitting (fixing #8).
I'll be introducing support for types and object types, and having a list of those available at runtime.

This is the first PR. In that regard, I have some questions:

Is it correct you want to use vitest for tests still?
Can you elaborate on why QuerySchemasResponse[] is used? So in essence, there's an array of arrays of schemas? What does this structure mean?

Hey @gismya here's my plan for this PR and upcoming ones.

Introducing tests.
I'll be switching to TS-SDK for emitting (fixing feat: use TypeScript's emit SDK #8).
I'll be introducing support for types and object types, and having a list of those available at runtime.

Tests are always good. With only a cursory look, utilizing the TS-SDK seems a bit more complicated to use and maintain than just string concatenation. What are the main benefits of doing it? I wouldn't want you spending time and effort on something we later find too complex to merge or something like that. The complicated of the current code, in my mind, is the handling of the schemas, not the actual creation of the TS file?
Could you elaborate on point 3?

This is the first PR. In that regard, I have some questions:

Is it correct you want to use vitest for tests still?
Can you elaborate on why QuerySchemasResponse[] is used? So in essence, there's an array of arrays of schemas? What does this structure mean?

Yes, vitest is the preferred testing solution.
QuerySchemasResponse[] is because that's what's returned from the session call in getSchemas, since session.call can take multiple calls at the same time. Then that first layer of array should have been flattened, but I missed that when writing the initial implementation and didn't really see it until you asked now :)

Thanks for elaborating! 😍
As for the tssdk, I wouldn't be worried. Get what you mean, but I don't think it'll be too bad. And I'll make it as a separate PR afterwards 😊🙏

As for the benefits of it, the main benefit is higher readability 😊

As for point 3, I'd love if the object types and types in ftrack were emitted as a string union type.

This is now ready for review! I ended up going for snapshot testing in vitest. I think this is a good match for types of tests like these.
Not sure if you've used it before, but if a snapshot fails, it shows a diff, and then provides you with an option to accept the new shapshot.
That way, it becomes clear what effects a change had. Works well with watch mode too.

As for the benefits of it, the main benefit is higher readability 😊

If you manage to make it more readable I'm all for it. But I think the parsing part is the confusing part, not the actual writing to the schema. But I'd love to be wrong :)

As for the benefits of it, the main benefit is higher readability 😊

If you manage to make it more readable I'm all for it. But I think the parsing part is the confusing part, not the actual writing to the schema. But I'd love to be wrong :)

Yeah on that front I am also hoping for contributions.
But either way, I know it's opinionated and risky, and there'll be no hard feelings if the PR is rejected. I'm having fun working on it either way.
What do you think about the PR from a review perspective?

What do you think about the PR from a review perspective?

I don't know. :) I'll try to make time for reviewing it later today.

Thanks! I corrected everything now.
Do we merge now, or do we wait until that Ftrack schema bug is fixed, so the tests pass?

You can merge now

Cool! Do I have permissions to merge it? Doesn't look like it 🫣

Right,  forgot about that detail

authors: ffMathy gismya

repo: ftrackhq/ftrack-ts-schema-generator


text:
Canonicalize nulls in dictionary encoding

We should make sure nulls map to the same dictionary value. This is the case for varbin but likely not the case for primitives.

This happened in #138

repo: fulcrum-so/vortex


text:
Debugging in Chrome waits until the window is active before loading

If you're debugging an app (via Chrome debugger) with Firestack initialized, the start up process of the app will hang until the Chrome debugger is active. Once it is active, the logs come through and the app successfully boots.

Seeing the same issue with react-native version 0.35.0

same with RN 0.37.0

authors: Ehesp florianbepunkt vyshakhparakkat

repo: fullstackreact/react-native-firestack


text:
Build Fail - Framework not found DCTAuth

I have followed the steps in the README.md up to and including the Handle Deep Linking > Adding URL Schemes.
Upon running the build in XCode I get the following build error:
ld: warning: directory not found for option '-F/Users/<myuser>/Library/Developer/Xcode/DerivedData/MyProject-dbvhqacaurmqvphbjpokfiwipcsy/Build/Products/Debug-iphonesimulator/DCTAuth'
ld: framework not found DCTAuth
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Edit: Running Xcode 7.3.1, React Native v0.37.0, CocoaPods v1.1.1 on Mac OSX 10.11.5
Any ideas on how to resolve?

Hey, yes... did you use cocoapods?
Make sure you:

run (cd iOS && pod install)
Open the .xcworkspace file, not the .xproj

Ok that was not clear from the README, I wasn't aware that I needed to cd into iOS directory when running pod install, and the instructions didn't explain what .xcworkspace was for (remember, your target audience for react-native are going to JS engineers who aren't necessarily familiar with Xcode and iOS native development).
I am now getting the same build errors as detailed in #8

Are you using the master branch or npm ?

I am using npm, looking at my package.json I have react-native-oauth v2.0.0.
Looking at my ios/Podfile I can see the following line:
pod 'DCTAuth', :git => 'https://github.com/danielctull/DCTAuth.git'

Can you try the README now. I've updated it to show a bit more setup.

@auser im seeing the same issue as @matt-d-rat. I see:
pod 'DCTAuth', :git => 'https://github.com/danielctull/DCTAuth.git'

in my Podfile and am using npm as well:
"react-native-oauth": "^2.0.1"

More info on my versions: XCode 8.1 (8B62) / RN 0.33.0. @auser is totally correct. I'm primarily a JS dev and not very savvy with the xcode/ios setup so debugging this is probably going to take me a while. Here's the warning I'm seeing from the linker:
ld: warning: directory not found for option '-F/Users/nitindhar/Library/Developer/Xcode/DerivedData/MyApp-ewldymzoxxhwhsbcizsogekbdaat/Build/Products/Debug-iphonesimulator/DCTAuth'
ld: framework not found DCTAuth
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Any help would be much appreciated. Thanks!

@nitindhar7 or @matt-d-rat Either one of you have ScreenHero -- I can invite you if you need an invitation? I'd be glad to hop on and help in real-time. I'd love to get this closed.

Closing due to inactivity. Feel free to reopen if you're still having trouble.

I'm trying to build my app for TestFlight but am getting this similar error. It's working great in dev mode but when I'm building for app store (using fastlane) I'm getting: ld: framework not found DCTAuth
I've tried linking the DCTAuth framework in the Link Binary with Libraries section and it still didn't work.
Thoughts?

Hm... not sure... my guess is it has to do with the Pods not being installed for the archive version of the app. Can you check to make sure they are set for the environment?

Hmm - what exactly do you mean by that? The only pod we have is the the one from this lib. What would be the easiest way to check?

I have this issue too. The app works fine in dev mode (react-native run-ios), but when I build it to run on my phone, I get this error. I've run pod install. This is my error in xcode:
 ld: warning: directory not found for option '-F/Users/tomas/Library/Developer/Xcode/DerivedData/iGotBerries-gzlorpnjltitifawgcvsybydcaiq/Build/Products/Debug-iphoneos/DCTAuth'
I don't see DCTAuth in the Debug-iphoneos folder.

I had same problem, pod install somehow did not recognize DCTAuth dependency and update works for me.
try pod repo update && pod install

repo: fullstackreact/react-native-oauth


text:
PC端网页缺失翻译按钮

To Reproduce
1、开启i18n为true

2、PC端（电脑）主页Home看不到选择翻译按钮，文档左下角可以看到翻译按钮

3、在移除gobal.css后，主页Home看到选择翻译语言按钮

4、移动端（手机）可以看到选择语言按钮
Current vs. Expected behavior
开启i18n为true，PC端（电脑）主页Home看不到选择翻译按钮
Provide environment information
Operating System:
  Platform: win32
  Arch: x64
  Version: Windows 11 Pro
  Available memory (MB): 32478
  Available CPU cores: 12
Binaries:
  Node: 20.9.0
  npm: N/A
  Yarn: N/A
  pnpm: 9.11.0
Relevant Packages:
  next: 14.2.13 // Latest available version is detected (14.2.13).
  eslint-config-next: N/A
  react: 18.3.1
  react-dom: 18.3.1
  typescript: 5.6.2
Next.js Config:
  output: N/A

Which area(s) are affected? (Select all that apply)
UI
Additional context
No response

Will be supported on v14

authors: fuma-nama inrhor

repo: fuma-nama/fumadocs


text:
Added demo of stateful usage

Fix for long forgotten #28

nice, thanks

authors: EPashkin fumieval

repo: fumieval/free-game


text:
ZarrSource doesn't support Stores

Current Gunpowder ask for Zarr path in order to get the data. Which limite the use cases.
E.g:

Remote data
A new Zarr Store

I think it will be more useful to have Zarr Store input instead of Zarr Path https://github.com/funkey/gunpowder/blob/773b5578b01d16d34ef3cc466904ab876bba8bf1/gunpowder/ext/zarr_file.py#L11
And relay on Zarr to provide the data
@funkey

it does now, thanks Marwan :)

authors: mzouink pattonw

repo: funkelab/gunpowder


text:
请教解码

我看了一下代码，你这个编码器的解码编码是直接挂接到Connection上的，这个时候session的Recive函数做解码处理的时候
msg, err := session.codec.Receive()
if err != nil {
session.Close()
}
这个直接从Connection中获取数据解码，你这个不处理粘包问题？始终能够保证，你这个Con读取出来的都是完整的Json包么？这个无法保证吧，而我去看了Json的，解码代码，他是读取，然后解码失败，就返回了，所以感觉，你这个地方直接绑定，对于粘包的处理，好像没做考虑？

JSON自动会分，你可以单独做下测试

太久了，关了

authors: bg5sbk idada suiyunonghen

repo: funny/link

license: WTFPL


text:
7/17 基礎演習 フィールドワーク課題「表参道探し」提出先

この Issue に、課題を提出してください。

フルスクリーン表示

フィールドワークを実施しました。
•Mission1:Mapillary
http://www.mapillary.com/map/im/6b-cyzn7niM3cd2auN2d1A/photo
•Mission2:PokemonGO

•Mission3: uMap
https://umap.openstreetmap.fr/ja/map/map_158623#19/35.56915/-220.59151

・Mission1
・Mission2:PokemonGO

・Mission3: uMap
https://umap.openstreetmap.fr/ja/map/map_159716#18/35.68074/139.44487

フィールドワークを実施しました by Eguchi
＊Mission 1 : Mapillary
https://www.mapillary.com/app/?lat=35.54831804710955&lng=139.57329955896319&z=17&pKey=4r80SILCeVMXGdYi7ZYERg
*Mission 2 : PokemonGO

*Mission 3 : Umap
https://umap.openstreetmap.fr/ja/map/map_159771#20/35.54846/139.57306

*Mission 1 : Mapillary
https://www.mapillary.com/app/user/imachan0224?lat=35.66520817115497&lng=139.71252121044301&z=17&pKey=bH96WHjOiEZ7rviGHW9B0Q&focus=photo&menu=false&username[]=imachan0224
*Mission 2 :Pokemon Go

*Mission 3 : umap
https://umap.openstreetmap.fr/ja/map/map_159829#17/35.66839/139.70745

Mission1: Mapillary
https://www.mapillary.com/app/user/toshiaki?lat=35.56454243607406&lng=139.40157112678457&z=17&pKey=cBfvEq2sZ2v3ogmVqQdnHg

Mission2: PokemonGO

Mission 3 : umap
http://umap.fluv.io/ja/map/map_4782#18/35.56477/-220.59848

Misson1: Mapirally
https://www.mapillary.com/app/user/シュートm?lat=35.887329988215015&lng=139.64732081642342&z=17&pKey=ybkWxylNMxygbvUvGu6Hcw&focus=map

Mission2: Pokemon GO

Mission3: uMap
https://umap.openstreetmap.fr/ja/map/map_159905#18/35.88845/139.64737

authors: Toshiakimaki YOSHINOZAKI hikarihagiwara imachan0224 mapconcierge matsumotoshu wdolphin

repo: furuhashilab/mapping


text:
Add unit to mig migration metric

Follow best practice of including unit on metrics per https://prometheus.io/docs/practices/naming/#metric-names

Requested review on metrics naming from @LiliC and @smarterclayton, arrived at cam_app_workload_migration_total for this metric name.
All future metrics for this project should be prefixed with cam_* and have some type of informative unit postfixed per the doc linked above.

repo: fusor/mig-controller


text:
Cannot use command helper virtletctl

Cannot use command "virtletctl" on this.
virtletctl command executed failed, for example, virtletctl vnc or ssh, but diag works:
root@arktos:~/work/yaml# virtletctl ssh cirros@virtcirros
Error: vm pod "virtcirros" is expected to have just one container but it has 0 containers instead
root@arktos:~/work/yaml# virtletctl vnc virtcirros
Error: can't get VM pod info for "virtcirros": vm pod "virtcirros" is expected to have just one container but it has 0 containers instead
root@arktos:~/work/yaml# virtletctl diag dump virtcirros
root@arktos:~/work/yaml# ll virtcirros/nodes/arktos/
criproxy.log             ip-r.txt                 libvirt-xml/             netns.txt                stack.log                virtlet-pod-virtlet.log
ip-a.txt                 libvirt-logs/            metadata.txt             psaux.txt                virtlet-pod-libvirt.log
root@arktos:~/work/yaml# ll virtcirros/nodes/arktos/
total 1108
drwxr-xr-x 4 root root   4096 May 25 03:31 ./
drwxr-xr-x 3 root root   4096 May 25 03:31 ../
-rwxr-xr-x 1 root root    102 May 25 03:31 criproxy.log*
-rwxr-xr-x 1 root root   4846 May 25 03:31 ip-a.txt*
-rwxr-xr-x 1 root root    335 May 25 03:31 ip-r.txt*
drwxr-xr-x 2 root root   4096 May 25 03:31 libvirt-logs/
drwxr-xr-x 2 root root   4096 May 25 03:31 libvirt-xml/
-rwxr-xr-x 1 root root  12671 May 25 03:31 metadata.txt*
-rwxr-xr-x 1 root root  13736 May 25 03:31 netns.txt*
-rwxr-xr-x 1 root root  32295 May 25 03:31 psaux.txt*
-rwxr-xr-x 1 root root  25414 May 25 03:31 stack.log*
-rwxr-xr-x 1 root root  67575 May 25 03:31 virtlet-pod-libvirt.log*
-rwxr-xr-x 1 root root 937964 May 25 03:31 virtlet-pod-virtlet.log*

root@arktos:~/work/yaml# kubectl describe po virtcirros
Name:         virtcirros
Namespace:    default
Tenant:       system
Priority:     0
Node:         arktos/192.168.10.239
Start Time:   Mon, 25 May 2020 02:57:51 +0000
Labels:       <none>
Annotations:  kubernetes.io/target-runtime: virtlet.cloud
Status:       Running
IP:           10.88.0.55
Containers: <none>
Conditions:
  Type           Status
  Ready          True
  PodScheduled   True
Volumes:         <none>
QoS Class:       Guaranteed
Node-Selectors:  <none>
Tolerations:     node.kubernetes.io/not-ready:NoExecute for 300s
                 node.kubernetes.io/unreachable:NoExecute for 300s
Events:          <none>

Need to decide if we keep this tool for Arktos.

as discussed in the open source meeting. won't fix this.

repo: futurewei-cloud/arktos-vm-runtime


text:
Add RemainingBytes utility to streaming decoder

Description
In many of our use cases, we have a CBOR header in front of content that is not CBOR (e.g. ciphertext). It is convenient to be able to parse the "first item" using CBOR without having additional framing (such as an out-of-band length prefix in front of the CBOR header). This functionality exists in some other serialization libraries, usually in the form of a "remaining bytes" return value. E.g.
// From "encoding/pem"
// Decode will find the next PEM formatted block (certificate, private key
// etc) in the input. It returns that block and the remainder of the input. If
// no PEM data is found, p is nil and the whole of the input is returned in
// rest.
func Decode(data []byte) (p *Block, rest []byte)

// From "encoding/asn1"
// [...] After parsing b, any bytes that were leftover and not used to fill
// val will be returned in rest. [...]
func Unmarshal(b []byte, val any) (rest []byte, err error)

A recent PR (#380) clarifies that Unmarshal and Valid are really intended for just one object, so the above APIs are not quite a good fit. Instead, I propose that we add a function to the Decoder that lets you "stop early" and return a reader that points to the remaining bytes. If there is nothing buffered, that's just the upstream reader. But in the case where we have some buffered data we read ahead, then we need to prepend that onto the resulting stream.
The implementation was relatively minor, so was I skipped proposing in an issue, but please feel free to request that the problem is solved in a different way and I will happily reimplement.
Checklist (for code PR only, ignore for docs PR)

[X] Include unit tests that cover the new code
[X] Pass all unit tests
[x] Pass all 18 ci linters (golint, gosec, staticcheck, etc.)
[X] Sign each commit with your real name and email.
Last line of each commit message should be in this format:
Signed-off-by: Firstname Lastname firstname.lastname@example.com
[X] Certify the Developer's Certificate of Origin 1.1
(see next section).

Certify the Developer's Certificate of Origin 1.1

[X] By marking this item as completed, I certify
the Developer Certificate of Origin 1.1.

Developer Certificate of Origin
Version 1.1

Copyright (C) 2004, 2006 The Linux Foundation and its contributors.
660 York Street, Suite 102,
San Francisco, CA 94110 USA

Everyone is permitted to copy and distribute verbatim copies of this
license document, but changing it is not allowed.

Developer's Certificate of Origin 1.1

By making a contribution to this project, I certify that:

(a) The contribution was created in whole or in part by me and I
    have the right to submit it under the open source license
    indicated in the file; or

(b) The contribution is based upon previous work that, to the best
    of my knowledge, is covered under an appropriate open source
    license and I have the right under that license to submit that
    work with modifications, whether created in whole or in part
    by me, under the same open source license (unless I am
    permitted to submit under a different license), as indicated
    in the file; or

(c) The contribution was provided directly to me by some other
    person who certified (a), (b) or (c) and I have not modified
    it.

(d) I understand and agree that this project and the contribution
    are public and that a record of the contribution (including all
    personal information I submit with it, including my sign-off) is
    maintained indefinitely and may be redistributed consistent with
    this project or the open source license(s) involved.

Hi @immesys Thanks!  I'll take a look this weekend.

Hmm. I think you are right that we should not make it easy for someone to accidentally shoot themselves in the foot. I think adding Buffered() would allow the caller to solve the problem, but it would be a little more complex on their side.
There are probably two solutions we can pick from:

Change RemainingBytes to explicitly invalidate the decoder (removing the buffer and reader), so the caller "takes ownership" of the reader. We might want to pick a better name than RemainingBytes in that case as we are effectively "closing" the decoder. A subsequent call to Decode will return an error, rather than undefined behavior
Implement Buffered(), as you suggest, which would return just the data that has been read but not consumed, as a slice or a reader.

I think I am more in favor of the first option. In the second option, we would expect the caller to make their own MultiReader that prepends the result of Buffered onto the upstream reader, but it feels odd to make the caller use the reader they passed to the decoder again. The decoder still "owns" it and the caller would still get undefined behavior if they call decode again after using the upstream reader. This time it is as a result of their own code, so I agree it is better than the original proposal, but still doesn't feel very clean.
How would you feel if I changed the RemainingBytes to "close" the decoder, so that you can't get undefined behavior? If you are ok with it, do you have a preference for what you would want to call that function? I would propose Close() except the signature wouldn't match that of io.Closer, so something like End() or Stop() might be more friendly.

I'd like to keep this PR open (as option 1) for more consideration after v2.5.0 release.
I agree with your reasoning for option 1 (and would like to give it more consideration) even though I prefer option 2 at this time.
Each new function needs to be supported, maintained, and backwards compatible.  So, more time and long-term consideration is required for alternative APIs that don't match encoding/json, especially if it closes or changes ownership.  Adding MarshalFirst() in PR #398 (thanks!) was needed because it fills a gap created by fixes (in v2.5.0-beta) to error handling in Marshal for ExtraneousDataError.
If you'd like to open a new PR to add Buffered(), then I can probably add it to v2.5.0 (if time allows).  Adding Buffered()  wouldn't close the door on option 1.
For v2.5.0 release, I need to first finish reviewing and merge PR #386.
Please let me know if this works for you or if I've missed anything.  Really appreciate your insights!

I am back from vacation, and ready to pick this back up. Sorry for the delayed response.
I'm happy to implement either option (or another alternative), whichever you feel comfortable with. I understand that picking up functionality is not "free" in that it must be maintained going forward, so I will defer to your decision in which API you think is the best when weighing how easy/safe it is to use, how maintainable it is, and how familiar it might be to users of other encoding libraries.
It sounds like implementing Buffered() is your preference. Do you think returning a slice or a reader makes the most sense? Json returns a reader, but I believe our internal buffer is a slice that would be safe to return as long as the caller does not call decode again. I think my preference would be a reader.
FWIW I took a look at a few other libraries that I consider "similar" in their IO pattern (xml, gzip, json, vmihailenco/msgpack and tar) and this pattern of returning a reader for the remaining bytes (as opposed to just the buffered bytes) isn't present anywhere else. Thus I think you are probably right to avoid making up a new pattern that users won't find familiar. What some of them do (xml, gzip) is detect if the upstream reader supports io.ByteReader and if it does, they don't read ahead. Msgpack has the same behavior but requires io.ByteScanner. Thus, for users that care about content after the decoded items, they can buffer it themselves, which implements ByteReader and ByteScanner. That way the upstream reader is always safe to use directly for any "remaining bytes" use cases. That sounds like it would impact performance to me, but I haven't tested.
Buffered() matches json and msgpack, and as you note, does not preclude a different solution. Perhaps I can implement that, and also do some testing to see how expensive the "if reader is a ByteReader don't read-ahead" ends up being. I'll come back with my results and we can see if it's worth doing future work on it or advising users to use Buffered()?
Thank you

Hi @immesys, welcome back!  Hope you had a nice vacation!
Thank you for looking into this and your insights.  :+1:

Do you think returning a slice or a reader makes the most sense? Json returns a reader, but I believe our internal buffer is a slice that would be safe to return as long as the caller does not call decode again. I think my preference would be a reader.

Yeah, my preference is also io.reader because it would prevent modification to underlying data.  Having same signature as encoding/json is a nice added bonus.
func (*Decoder) Buffered() io.Reader

Perhaps I can implement that, and also do some testing to see how expensive the "if reader is a ByteReader don't read-ahead" ends up being. I'll come back with my results and we can see if it's worth doing future work on it or advising users to use Buffered()?

That sounds great!  I think Buffered() is useful and would like to include it in v2.5.0 release if possible.  I am also curious about ByteReader and ByteScanner approach and its impact.  Thanks again for looking into this.

Hi @immesys, I went ahead and implemented func (*Decoder) Buffered() io.Reader in PR #412 which basically matches  encoding/json.
PR #412 doesn't preclude a different solution and it can be useful.  Thanks again for your insights and discussions!

Closing this for now (#412 solves the immediate problem).

authors: fxamacker immesys

repo: fxamacker/cbor


text:
标点符号和空格的切分现在解决了吗？

我的词典里有一些词是包含标点符号和空格的，比如“宝马(进口)”, "奥迪 A4L"需要连在一起切分，jieba现在解决这个问题了吗？

@cdj0311  http://www.wid.org.cn/data/science/player/competition/detail/description/237(基于视角的领域情感分析)?哈哈

@cdj0311 , @fxsjy , 請問您有找到解決方式嗎?

@vkjuju 修改__init__里面的正则表达式就可以了

@cdj0311 但兩個英文字中間有空白的还是不行

repo: fxsjy/jieba


text:
Compiling for Windows doesn't set the Icon correctly

Describe the bug:
When using fyne-cross to compile for Windows, the Icon specified only gets set for the File in the Explorer but does not show on the Application when running it.
To Reproduce:
Steps to reproduce the behaviour:

Create a basic Fyne Application
Create a FyneApp.toml and specify an Icon (or specify the Icon in the fyne-cross command)

Device and debug info (please complete the following information):
Device info

OS: Windows 11
Version: 22H2
Go version: 1.19.2
fyne-cross version: 1.3.0
Fyne version: 2.3.0

I think this is because we are not using fyne build to build the application, so we are missing some metadata being set. I should look into it in the coming days as I think it would be great to get all the metadata working with fyne-cross too.

This is now fixed in develop.

authors: Bluebugs EinsKatze

repo: fyne-io/fyne-cross


text:
e164PhoneNumber Generates Invalid Numbers

The E.164 phone number generator (and probably others?) sometimes generates invalid phone number which is problematic while using in unit tests.
Examples:

https://libphonenumber.appspot.com/phonenumberparser?number=%2B3840285337938&country=US
https://libphonenumber.appspot.com/phonenumberparser?number=%2B2969380332191&country=US
https://libphonenumber.appspot.com/phonenumberparser?number=%2B2952890379705&country=US

Also it seems some numbers while not totally invalid they're not following locale specific rules:

https://libphonenumber.appspot.com/phonenumberparser?number=%2B3068203433313&country=US
https://libphonenumber.appspot.com/phonenumberparser?number=%2B7547960956891&country=US
https://libphonenumber.appspot.com/phonenumberparser?number=%2B7126293569845&country=US

I cannot say it's not a bug in Google's libphonenumber, but the library is very old, robust and used by Android phones all over the world ;)

See my reply in #1488

Duplicate of #1488

authors: fzaninotto kiler129 ppelgrims

repo: fzaninotto/Faker


text:
fix return type of year from string to int

this is just a possible fix, because year field is a int property but the return type of method year() is string

Sorry, that's a breaking change, I won't merge it into master.

authors: JordiCabezudo fzaninotto