text:
Minio crashes, looses a data bucket, we need to restart

This probably means clear the cache:
(.venv) PS C:\Users\gordo\Documents\Code\IRIS-HEP\ServiceX_frontend> python .\scripts\run_test.py
mc16_13TeV:mc16_13TeV.361106.PowhegPythia8EvtGen_AZNLOCTEQ6L1_Zee.deriv.DAOD_STDM3.e3601_e5984_s3126_r10201_r10210_p397Traceback (most recent call last):                                                                        | 0/82 [00:00]
  File ".\scripts\run_test.py", line 29, in <module>
    run_query(servicex_adaptor)
  File ".\scripts\run_test.py", line 18, in run_query
    r = ds.get_data_rootfiles("(call ResultTTree (call Select (call SelectMany (call EventDataset (list 'localds:bogus')) (lambda (list e) (call (attr e 'Jets') 'AntiKt4EMTopoJets'))) (lambda (list j) (/ (call (attr j 'pt')) 1000.0))) (list 'JetPt') 'analysis' 'junk.root')")  # NOQA
  File "C:\Users\gordo\Documents\Code\IRIS-HEP\ServiceX_frontend\.venv\lib\site-packages\make_it_sync\func_wrapper.py", line 57, in wrapped_call
    return _sync_version_of_function(v, *(args[1:]), **kwargs)
  File "C:\Users\gordo\Documents\Code\IRIS-HEP\ServiceX_frontend\.venv\lib\site-packages\make_it_sync\func_wrapper.py", line 14, in _sync_version_of_function
    return loop.run_until_complete(r)
  File "C:\Users\gordo\AppData\Local\Programs\Python\Python37\lib\asyncio\base_events.py", line 587, in run_until_complete
    return future.result()
  File "c:\users\gordo\documents\code\iris-hep\servicex_frontend\servicex\servicex_utils.py", line 49, in cached_version_of_fn
    result = await fn(*args, **kwargs)
  File "c:\users\gordo\documents\code\iris-hep\servicex_frontend\servicex\servicex.py", line 118, in get_data_rootfiles_async
    return await self._file_return(selection_query, 'root-file')
  File "c:\users\gordo\documents\code\iris-hep\servicex_frontend\servicex\servicex.py", line 161, in _file_return
    return await self._data_return(selection_query, convert_to_file, data_format)
  File "C:\Users\gordo\Documents\Code\IRIS-HEP\ServiceX_frontend\.venv\lib\site-packages\backoff\_async.py", line 133, in retry
    ret = await target(*args, **kwargs)
  File "c:\users\gordo\documents\code\iris-hep\servicex_frontend\servicex\servicex.py", line 200, in _data_return
    all_data = {f[0]: await f[1] async for f in as_data}
  File "c:\users\gordo\documents\code\iris-hep\servicex_frontend\servicex\servicex.py", line 200, in <dictcomp>
    all_data = {f[0]: await f[1] async for f in as_data}
  File "c:\users\gordo\documents\code\iris-hep\servicex_frontend\servicex\servicex.py", line 195, in <genexpr>
    as_data = ((f[0], asyncio.ensure_future(converter(await f[1])))
  File "c:\users\gordo\documents\code\iris-hep\servicex_frontend\servicex\servicex.py", line 191, in <genexpr>
    (f async for f in
  File "c:\users\gordo\documents\code\iris-hep\servicex_frontend\servicex\servicex.py", line 252, in _get_files
    async for r in stream_local_files:
  File "c:\users\gordo\documents\code\iris-hep\servicex_frontend\servicex\servicex.py", line 364, in _get_files_from_servicex
    async for info in stream_downloaded:
  File "c:\users\gordo\documents\code\iris-hep\servicex_frontend\servicex\servicex.py", line 330, in _download_a_file
    async for f in stream:
  File "c:\users\gordo\documents\code\iris-hep\servicex_frontend\servicex\minio_adaptor.py", line 191, in find_new_bucket_files
    files = adaptor.get_files(request_id)
  File "C:\Users\gordo\Documents\Code\IRIS-HEP\ServiceX_frontend\.venv\lib\site-packages\backoff\_sync.py", line 94, in retry
    ret = target(*args, **kwargs)
  File "c:\users\gordo\documents\code\iris-hep\servicex_frontend\servicex\minio_adaptor.py", line 61, in get_files
    return [f.object_name for f in self._client.list_objects(request_id)]
  File "c:\users\gordo\documents\code\iris-hep\servicex_frontend\servicex\minio_adaptor.py", line 61, in <listcomp>
    return [f.object_name for f in self._client.list_objects(request_id)]
  File "C:\Users\gordo\Documents\Code\IRIS-HEP\ServiceX_frontend\.venv\lib\site-packages\minio\api.py", line 1036, in list_objects
    headers=headers)
  File "C:\Users\gordo\Documents\Code\IRIS-HEP\ServiceX_frontend\.venv\lib\site-packages\minio\api.py", line 1984, in _url_open
    region = self._get_bucket_region(bucket_name)
  File "C:\Users\gordo\Documents\Code\IRIS-HEP\ServiceX_frontend\.venv\lib\site-packages\minio\api.py", line 1919, in _get_bucket_region
    region = self._get_bucket_location(bucket_name)
  File "C:\Users\gordo\Documents\Code\IRIS-HEP\ServiceX_frontend\.venv\lib\site-packages\minio\api.py", line 1957, in _get_bucket_location
    raise ResponseError(response, method, bucket_name).get_exception()
minio.error.NoSuchBucket: NoSuchBucket: message: The specified bucket does not exist.

Also, see https://github.com/iris-hep/opendata-higgs-discovery/issues/9, whcih I think is the same thing.

Turns out the reason for this is on_exception does not work for async iterators, though it does work fine for async functions!

In fact, the way I've implemented on_exception makes no sense - you can't really do this - because items will have already been passed out; if you restart the stream then potentially some items will have passed - so in general, this does not work.
However - for us - what we are talking about here is the first item only - these exceptions will happen "early".
Still, I think we need to move where we have the exceptions happen - so a more reasonable place that does the re-try.


text:
Fix issues with revalidateTag/revalidatePath

Fix revalidateTag for next 15+
Fix revalidatePath not clearing the fetch cache ( When doing a revalidatePath('/whatever'), all the fetch or unstable_cache inside this route would return the cached value instead of refetching )

There is a few things that we need to think about:
Right now the fetch cache in OpenNext works in a different way than in next start to take full advantage of DynamoDB.
In next start for every get to the incremental cache, they check for every tag used in this get ( and this include layout, page and fetch cache tags ), we only check given the path which entry in DDB is newer, and if so consider the cache entry stale.  This mean we can make one single optimized query to DDB instead of either multiple get or an expensive scan/query.
On the other hand the current DDB solution requires a lot more write than the default cache included in next ( They only write on revalidateTag )
I think in the future we should probably support the 2 type of cache ( The next cache could be easily implemented in SQL for example, and it's way better to do it that way in SQL than the DDB way ). Even in DDB, someone barely using on demand revalidation would benefit from a next type of cache.
The other thing is, we may want to allow the revalidatePath to not clear the fetch cache, this gives a lot more flexibility and would allow to invalidate only what's really needed ( But that's not how next works right now ). Not sure if that's something that people may want. We could introduce an env variable that if set would make it work like right now  ( it's still possible to clear the fetch cache individually using revalidateTag and some custom tag )

wow @conico974 did you really just fix this today aswell :clap:
you are such an inspiration!

source: gharchive/pull-request

repo: sst/open-next

license: MIT

license_type: permissive

license_source: github-api


text:
Upstream support for Django 3+

Hi! Just spotted this on pypi - thanks for plugging the gap, but just to let you know this project is no longer needed as Tagulous has supported Django 3+ since Dec 2020

Thanks richard.  I really like using the original.  I will switch over
later this month.
On Sat, Feb 5, 2022 at 1:46 PM Richard Terry @.***>
wrote:

Hi! Just spotted this on pypi - thanks for plugging the gap, but just to
let you know this project is no longer needed as Tagulous has supported
Django 3+ since Dec 2020
—
Reply to this email directly, view it on GitHub
https://github.com/sstacha/django-docrootcms-tagulous/issues/1, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ABIV5X5ZNGNW4TTYUFRZNVTUZV5ATANCNFSM5NULK32A
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

source: gharchive/issue

authors: radiac sstacha

repo: sstacha/django-docrootcms-tagulous


text:
Issue installing Ruby 2.1.2 with rbenv ruby-build on Mac OSX Yosemite (10.10.1)

Hi, I'm trying to install 2.1.2 (required for an assignment) and am having issues. I searched existing issues similar to this and tried to prefix the "rbenv install 2.1.2" command with "CC=clang" or "CC=/usr/bin/gcc", and also tried installing version 2.1.3, but I still have problems. I also installed XCode command line tools and restarting computer/terminal but doing those didn't help either.
The issues all seem to be related to the make command and the files miniinit.o, dmydln.o, and main.o
Here are the full logs for each of the commands I tried.
rbenv install 2.1.2: https://gist.github.com/shibbi/170f5cb3ef71ac24a08d#file-log1
CC=/usr/bin/gcc rbenv install -f 2.1.2: https://gist.github.com/shibbi/170f5cb3ef71ac24a08d#file-log2
CC=/usr/bin/gcc rbenv install -f 2.1.3: https://gist.github.com/shibbi/170f5cb3ef71ac24a08d#file-log3
CC=clang rbenv install -f 2.1.2: https://gist.github.com/shibbi/170f5cb3ef71ac24a08d#file-log4
Any help is appreciated and I will provide additional information if it will help.

Hi, sorry you're having trouble. The best thing you could do is try one of the newer Ruby 2.1.x versions, such as 2.1.5. Some of the build problems were fixed in those version, and there are no feature differences between Ruby in 2.1.2 and 2.1.5, so it should be safe to use in your assignmnent. Let us know how it goes.

@shibbi Have you tried more recent Ruby versions, like 2.1.6? It should be safe to use in your assignment. Are you still getting errors?
The error messages "echo: no such file or directory" are worrisome. echo is a command that should exist on the system. Try command echo yes to see if it works.
I have no other suggestions right now how to help. Sorry :bow:

@mislav Hi! Thanks for checking. I was able to fix this a few months ago, but I don't remember exactly what I did. I'll close the issue now.

authors: mislav shibbi

repo: sstephenson/ruby-build

license: mit

license_source: bigquery


text:
Make check for lists in bulk translation/detection include numpy ndarray

Googletrans version:

[ x ] 3.x
[ ] 2.x

I'm submitting a ...

[ ] bug report
[ x ] feature request

Current behavior:

When inputting a numpy ndarray into the translate and detect functions, the following exception is raised:
TypeError: ord() expected a character, but string of length 149 found.
Upon digging into the code, I found that the function only checks if the given array is an instance of python's list.
Expected behavior:

The functions should accept ndarrays as they are subscriptable, iterable just like lists, and ubiquitous.
Steps to reproduce:

As an argument to translate or detect use an ndarray rather than a list.
Related code:

import numpy as np

from googletrans import Translator
translator = Translator()

example_strings = np.array(['¡Hola Mundo!', 'El significado de la vida es 42.'])
translator.translate(example_strings)

A suggestion that I have to fix it would be to

move the check over to a utility function that can be used by the translate and detect methods.
include ndarrays in the check.

Also, I know that it's easy to convert the ndarray to a list, and that the example I gave above is a little contrived. This is more of a usability nitpick than anything. I just expect ndarrays to work identically to lists in most cases.

We currently don't want to add more customized features since most of them can be fulfilled by simply adding some code along with this library.

repo: ssut/py-googletrans


text:
同一个插件内定义两个类会导致启动时不导入包

这里我定义了两个类（类名没有重复）

下面显示不导入包了

下面是正常的样子

正常建议是一个文件内只定义一个Plugin的子类(

正常建议是一个文件内只定义一个Plugin的子类(

Emmmmm......没有别的办法了吗，这是两个比较相似的功能，我想放在一个插件内，或者同一个目录内

可以放在同一目录内   或者整合在一起(当然不建议这么干)
放在同一目录里单独导入就行了 或者你等等  看开发者怎么说

可以放在同一目录内 或者整合在一起(当然不建议这么干)
放在同一目录里单独导入就行了 或者你等等 看开发者怎么说

好的谢谢你，我看看作者怎么说先

目前还不允许在一个 Python 模块中定义多个插件，这主要是因为目前 插件配置 会检测 Python 模块中的 Config 类作为插件的配置类，如果允许在一个 Python 模块中定义多个插件，则会无法区分配置类是用于哪个插件的。此外，还会影响到插件的 热重载 功能。但是，我目前打算在未来的版本更改插件配置的加载方式，目前的设计还不够好，这将会是一个 breaking change，将会解除对此的限制。

请保持此 issue 开启以追踪此问题。

目前还不允许在一个 Python 模块中定义多个插件，这主要是因为目前 插件配置 会检测 Python 模块中的 Config 类作为插件的配置类，如果允许在一个 Python 模块中定义多个插件，则会无法区分配置类是用于哪个插件的。此外，还会影响到插件的 热重载 功能。但是，我目前打算在未来的版本更改插件配置的加载方式，目前的设计还不够好，这将会是一个 breaking change，将会解除对此的限制。

好的明白了！谢谢作者，这个机器人说实话我还挺喜欢的，让我感受到了写插件的乐趣hhhh : )

已经在 commit https://github.com/st1020/alicebot/commit/759216a856caed514ee221ec474c18467d826e00 中修改此行为，并在 v0.6.0 以上版本生效

authors: Adsicmes coferry st1020


text:
[python] in prologue, read robot model from ros parameter.

build reduced model by detecting and removing mimic joints,
checked by comparing Jcom on initial configuration for both methods,
difference is below 1e-17.

Requires https://gepgitlab.laas.fr/pyrene-dev/talos_data/merge_requests/8 and https://github.com/stack-of-tasks/talos_metapkg_ros_control_sot/pull/5.

Successfully checked through geometric_simu.

Thanks for the nice contribution.

authors: florent-lamiraux olivier-stasse

repo: stack-of-tasks/sot-talos


text:
K3s: specify versions w/o using channel API

The K3s installation script uses a REST API (https://update.k3s.io/v1-release/channels) to determine the version to be installed based on "channels" (e.g. '1.24', '1.23', 'latest', 'stable', 'testing', ...).
Unfortunately, this REST API is not as highly available as we wish, so we see K3s installations fail from time to time.
Therefore, we should check if we could work our way around the API if we pin the version to a specific value (e.g. 'v1.24.3+k3s1') instead of using a channel.
T2 should offer both options, one relying on the API, the other working without it.

We mirror the K3s repo on our own Nexus, but later dropped updating that because K3s was no longer used. This issue should be no longer needed (@Jimvin )

T2 is discontinued


text:
Can't see my work

Describe the bug
Hi, even if bolt is telling me that every thing is ok, I can't see he work and know if what I'm doing is good. I'm using all me credits don do the same thing again and again.
Can you please help?
Link to the Bolt URL that caused the error
https://bolt.new/~/sb1-udn3wy
Steps to reproduce
see error
Expected behavior
I would like to see a preview of my work
Screen Recording / Screenshot

Platform
Browser name = Safari
Full version = 17.5
Major version = 17
navigator.appName = Netscape
navigator.userAgent = Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.5 Safari/605.1.15
performance.memory = undefined
Username = Zico
Chat ID = b8eb118ea177

Additional context
No response

I'm a new, so sorry for bordering you.

Hi, can you try opening or running a project in Chrome or Firefox? Bolt works best in these browsers. Thanks!

Hi thanks for answering. Just trying on chrome and it has more errors.
Envoyé à partir de Outlook pour iOShttps://aka.ms/o0ukef

De : Brian @.>
Envoyé : Monday, November 18, 2024 7:33:16 PM
À : stackblitz/bolt.new @.>
Cc : STANISLAS-CORP @.>; Author @.>
Objet : Re: [stackblitz/bolt.new] Can't see my work (Issue #2659)
Hi, can you try opening or running a project in Chrome or Firefox? Bolt works best in these browsers. Thanks!
—
Reply to this email directly, view it on GitHubhttps://github.com/stackblitz/bolt.new/issues/2659#issuecomment-2483820508, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BNAC2A7COI6YNGEIZ5UEACD2BIXGZAVCNFSM6AAAAABR7RBC4SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIOBTHAZDANJQHA.
You are receiving this because you authored the thread.Message ID: @.***>

@STANISLAS-CORP  Bolt.new does not currently support Safari due to limitations in the browser that do not support WebContainers (the core technology that powers Bolt). We are adding a banner to indicate this soon, but in the meantime, please switch to Google Chrome or another Chromium based browser.
Since this did not resolve your issue, please subscribe to #2021 for additional troubleshooting steps and updates as we are investigating additional causes of this error there!

authors: STANISLAS-CORP endocytosis kc0tlh


text:
Parse configuration file from current directory for additional flags

This is tackling #160
I added a separate record Flags to hold the flags that can be parsed from a configuration file, tentatively dotenv.config in the current directory.
At first, I tried to reuse the Options record, but this became messy when dealing with the program argument. I could not find a non-hacky way to deal with that and thought that it would be best to have a separate parser for the flags.
Having said that, I extracted the option parsers to separate definitions to reuse as much code as possible and also so that the parsers for flags and options keep in sync.
applyFlags takes care of combining the flags from command line arguments and the configuration file. <> for list arguments is a natural combination, and I believe || for booleans also works correctly.
Some execution examples:
# dotenv.config
-x .env.example
-f .env

# .env.example
API_URL=

# .env

Command:
dotenv echo hello

Output:
dotenv: The following variables are present in .env.example, but not set in the current environment, or .env: API_URL
CallStack (from HasCallStack):
  error, called at src/Configuration/Dotenv.hs:82:16 in dotenv-0.12.0.0-inplace:Configuration.Dotenv

Another example:
# dotenv.config
echo hello

Command:
dotenv echo hello

Output:
There were errors while parsing the configuration file
Invalid argument `echo'

Usage: dotenv [-v|--version] [-f|--dotenv DOTENV] [-x|--example DOTENV_EXAMPLE]
              [-o|--overload] [--verbose] [--dry-run] [-D|--no-dups]

  Runs PROGRAM after loading options from FILE

I print a special message when errors come from the config file so the user knows where to look.
I might be missing something, what do you think?
Also, I had to add directory as a dependency to check for the file existence, but if there is a better way to do this without adding an extra dependency that would be great.

Hi @CristhianMotoche , fixed the CI issue. Let me know if you need anything else :)

@all-contributors please add @aloussase for code

authors: CristhianMotoche aloussase

repo: stackbuilders/dotenv-hs


text:
fix: default telemetry settings for helm

Description
A detailed explanation of the changes in your PR.
Feel free to remove this section if it is overkill for your PR, and the title of your PR is sufficiently descriptive.
Checklist

[ ] Investigated and inspected CI test results
[ ] Unit test and regression tests added
[ ] Evaluated and added CHANGELOG entry if required
[ ] Determined and documented upgrade steps
[ ] Documented user facing changes (create PR based on openshift/openshift-docs and merge into rhacs-docs)

If any of these don't apply, please comment below.
Testing Performed
TODO(replace-me)
Use this space to explain how you tested your PR, or, if you didn't test it, why
you did not do so. Valid reasons include, for example, "CI is sufficient",
"No testable changes". Feel free to attach JSON snippets, curl commands,
screenshots.
In addition to reviewing your code, reviewers must also review your testing
instructions and make sure they are sufficient.

Current dependencies on/for this PR:

master

PR #6420

PR #6453

PR #6501

PR #6542

PR #6693   👈

This comment was auto-generated by Graphite.

repo: stackrox/stackrox


text:
chore(grpc): move metrics singletons to pkg/

Description
As part of the scanner go module migration into rox, scanner code cannot directly call functions defined under central. This PR moves the gRPC metrics endpoint into the pkg/ directory, so it'll be visible to Scanner as well.
Checklist

[x] Investigated and inspected CI test results
~[ ] Unit test and regression tests added~
~[ ] Evaluated and added CHANGELOG entry if required~
~[ ] Determined and documented upgrade steps~
~[ ] Documented user facing changes (create PR based on openshift/openshift-docs and merge into rhacs-docs)~

Testing Performed
If it builds, it builds

See comments about singletons

I thought about that, but also didn't want to copy the singleton files over to Scanner since it will be exactly the same. Is that preferred over moving it into pkg?

So generally I would say it is preferred, but also I'm not sure these even need to be singletons. Typically the servers can be started from a single place so at that point why would we need to protect it with a once

Going to close this and just keep the singleton in Central. Will just not use the Central singleton in Scanner

authors: RTann connorgorman


text:
New api function: Rename a container

The latest API allows containers to be renamed.
http://docs.docker.com/reference/api/docker_remote_api_v1.17/#rename-a-container
Example usage:
$container = $manager->find('mycontainer');
$ret = $manager->rename($container, 'mynewcontainer');

:+1:

LGTM, just missing unit test and documentation :)

Test added and runs fine. However, it leaves a container lying around on the system and does not cleanup. (So added second commit to delete the test container)
In fact it looks like running the tests leave many containers around, why is there no cleanup after tests??

About tests not cleaning up: that can be considered a bug if anyone wants to work on it :)

Bump, why has this not been merged, could it be done soon please?
It works and the tests are clean?

Sorry about that, merged now thanks!

authors: Boran hacfi ubermuda


text:
🛑 STAKR.space site is down

In 5b74fe1, STAKR.space site (https://stakr.space) was down:

HTTP code: 0
Response time: 0 ms

Resolved: STAKR.space site is back up in 1ba83c3 after 10 minutes.

repo: stakrspace/upptime


text:
Strange JVM crash with WebSocket Client

I've been trying for a couple days to track down why the entire JVM is crashing when I use this library sometimes (but not all times). I get error logs that start like this:
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (sharedRuntime.cpp:834), pid=4715, tid=4103
#  fatal error: exception happened outside interpreter, nmethods and vtable stubs at pc 0x000000011e6b736f
#
# JRE version: Java(TM) SE Runtime Environment (8.0_45-b14) (build 1.8.0_45-b14)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.45-b02 mixed mode bsd-amd64 compressed oops)
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
#

---------------  T H R E A D  ---------------

Current thread (0x00007f887cce4800):  JavaThread "WebSocketClient@931427653-45" [_thread_in_Java, id=4103, stack(0x000070000fcd4000,0x000070000fdd4000)]

Stack: [0x000070000fcd4000,0x000070000fdd4000],  sp=0x000070000fdd2130,  free space=1016k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [libjvm.dylib+0x58e7ba]  VMError::report_and_die()+0x3f8
V  [libjvm.dylib+0x1e037f]  report_vm_error(char const*, int, char const*, char const*)+0x54
V  [libjvm.dylib+0x4c923f]  SharedRuntime::continuation_for_implicit_exception(JavaThread*, unsigned char*, SharedRuntime::ImplicitExceptionKind)+0x195
V  [libjvm.dylib+0x46fd57]  JVM_handle_bsd_signal+0x368
V  [libjvm.dylib+0x46c137]  signalHandler(int, __siginfo*, void*)+0x2f
C  [libsystem_platform.dylib+0x2b3a]  _sigtramp+0x1a
C  0x0000000136c7fd80
J 6250 C2 com.sun.crypto.provider.GaloisCounterMode.decryptFinal([BII[BI)I (256 bytes) @ 0x000000011f4c968f [0x000000011f4c8c00+0xa8f]

---------------  P R O C E S S  ---------------

Java Threads: ( => current thread )
  0x00007f887db85800 JavaThread "clojure-agent-send-pool-3" daemon [_thread_blocked, id=4363, stack(0x000070000cbb8000,0x000070000ccb8000)]
  0x00007f887def1000 JavaThread "clojure-agent-send-pool-2" daemon [_thread_blocked, id=71951, stack(0x00007000104ec000,0x00007000105ec000)]
  0x00007f8879154800 JavaThread "async-dispatch-8" daemon [_thread_blocked, id=72451, stack(0x00007000105ef000,0x00007000106ef000)]
  0x00007f887ea00800 JavaThread "async-dispatch-7" daemon [_thread_blocked, id=71427, stack(0x00007000103e9000,0x00007000104e9000)]
  0x00007f887ed69800 JavaThread "async-dispatch-6" daemon [_thread_blocked, id=70915, stack(0x00007000102e6000,0x00007000103e6000)]
 0x00007f887c93f800 JavaThread "clojure-agent-send-pool-1" daemon [_thread_blocked, id=70403, stack(0x00007000101e3000,0x00007000102e3000)]
  0x00007f887d82b000 JavaThread "WebSocketClient@931427653-scheduler" [_thread_blocked, id=69891, stack(0x00007000100e0000,0x00007000101e0000)]
  0x00007f8879384000 JavaThread "WebSocketClient@931427653-48" [_thread_in_native, id=69379, stack(0x000070000ffdd000,0x00007000100dd000)]
  0x00007f8879383000 JavaThread "WebSocketClient@931427653-47" [_thread_blocked, id=41223, stack(0x000070000feda000,0x000070000ffda000)]
  0x00007f887e94a800 JavaThread "WebSocketClient@931427653-46" [_thread_blocked, id=40975, stack(0x000070000fdd7000,0x000070000fed7000)]
=>0x00007f887cce4800 JavaThread "WebSocketClient@931427653-45" [_thread_in_Java, id=4103, stack(0x000070000fcd4000,0x000070000fdd4000)]
  0x00007f887cce4000 JavaThread "WebSocketClient@931427653-44" [_thread_in_native, id=47627, stack(0x000070000fbd1000,0x000070000fcd1000)]
  0x00007f887f10e000 JavaThread "WebSocketClient@931427653-43" [_thread_in_native, id=62483, stack(0x000070000face000,0x000070000fbce000)]
  0x00007f887e969800 JavaThread "WebSocketClient@931427653-42" [_thread_in_native, id=60963, stack(0x000070000f9cb000,0x000070000facb000)]
  0x00007f88794ac000 JavaThread "WebSocketClient@931427653-41" [_thread_blocked, id=62727, stack(0x000070000e280000,0x000070000e380000)]
  0x00007f887ed13800 JavaThread "async-dispatch-5" daemon [_thread_in_Java, id=68615, stack(0x000070000f8c8000,0x000070000f9c8000)]
  0x00007f887e8c9800 JavaThread "clojure-agent-send-pool-0" daemon [_thread_blocked, id=68099, stack(0x000070000f7c5000,0x000070000f8c5000)]
  0x00007f887b078000 JavaThread "XNIO-1 Accept" daemon [_thread_in_native, id=67587, stack(0x000070000f6c2000,0x000070000f7c2000)]
  0x00007f887b077000 JavaThread "XNIO-1 I/O-8" daemon [_thread_in_native, id=67075, stack(0x000070000f5bf000,0x000070000f6bf000)]
  0x00007f887deeb000 JavaThread "XNIO-1 I/O-7" daemon [_thread_in_native, id=66563, stack(0x000070000f4bc000,0x000070000f5bc000)]
  0x00007f887e86b000 JavaThread "XNIO-1 I/O-6" daemon [_thread_in_native, id=66051, stack(0x000070000f3b9000,0x000070000f4b9000)]
  0x00007f887971d000 JavaThread "XNIO-1 I/O-5" daemon [_thread_in_native, id=65539, stack(0x000070000f2b6000,0x000070000f3b6000)]
  0x00007f887e8af800 JavaThread "XNIO-1 I/O-4" daemon [_thread_in_native, id=65027, stack(0x000070000f1b3000,0x000070000f2b3000)]
  0x00007f887e818800 JavaThread "XNIO-1 I/O-3" daemon [_thread_in_native, id=64515, stack(0x000070000f0b0000,0x000070000f1b0000)]
  0x00007f887924b800 JavaThread "XNIO-1 I/O-2" daemon [_thread_in_native, id=64003, stack(0x000070000efad000,0x000070000f0ad000)]
  0x00007f887ecbd000 JavaThread "XNIO-1 I/O-1" daemon [_thread_in_native, id=63491, stack(0x000070000eeaa000,0x000070000efaa000)]
  0x00007f8878c11800 JavaThread "async-dispatch-4" daemon [_thread_blocked, id=5639, stack(0x000070000eda7000,0x000070000eea7000)]
  0x00007f88787ba800 JavaThread "async-dispatch-3" daemon [_thread_blocked, id=45083, stack(0x000070000eca4000,0x000070000eda4000)]
  0x00007f887e080000 JavaThread "async-dispatch-2" daemon [_thread_blocked, id=28939, stack(0x000070000eba1000,0x000070000eca1000)]
  0x00007f887e32f800 JavaThread "async-dispatch-1" daemon [_thread_blocked, id=61195, stack(0x000070000ea9e000,0x000070000eb9e000)]
  0x00007f887f05c800 JavaThread "clojure-agent-send-off-pool-4" [_thread_in_native, id=59395, stack(0x000070000e795000,0x000070000e895000)]
  0x00007f887f10b800 JavaThread "clojure-agent-send-off-pool-3" [_thread_blocked, id=58883, stack(0x000070000e692000,0x000070000e792000)]
  0x00007f887a8e3000 JavaThread "clojure-agent-send-off-pool-2" [_thread_in_native, id=58371, stack(0x000070000e58f000,0x000070000e68f000)]
  0x00007f887dbe0000 JavaThread "AWT-AppKit" daemon [_thread_in_native, id=775, stack(0x00007fff506ee180,0x00007fff50f3f000)]
  0x00007f8879e3c800 JavaThread "clojure.core.async.timers/timeout-daemon" daemon [_thread_blocked, id=22275, stack(0x000070000dff7000,0x000070000e0f7000)]
  0x00007f8879812800 JavaThread "Service Thread" daemon [_thread_blocked, id=21251, stack(0x000070000ddf1000,0x000070000def1000)]
  0x00007f8878031800 JavaThread "C1 CompilerThread3" daemon [_thread_blocked, id=20739, stack(0x000070000dcee000,0x000070000ddee000)]
  0x00007f8879826800 JavaThread "C2 CompilerThread2" daemon [_thread_blocked, id=20227, stack(0x000070000dbeb000,0x000070000dceb000)]

I thought I'd post this here in case you've seen this before using gniazdo or can advise where I might look?

Hi!
I haven't seen this bug before. From your error report it seems you're using a pretty old JRE: http://www.oracle.com/technetwork/java/javase/8u45-relnotes-2494160.html
Could you please try updating to a current version (1.8.0_181-b13 seems to most recent version of JDK8) and see if the crashes still happen?
cheers,
-Maxi

I updated the JRE to the latest and even restarted the machine for good measure, but the crash immediately occurred next time I received some WebSocket messages.
I did some further googling and found mention of this particular bug in a few places on the JIRA tracker for the JVM and it appears this is a "rare" bug that doesn't yet have a fix. It's not so rare for me, but nonetheless, the information suggested some JVM options to help mitigate it:
"-XX:-TieredCompilation"
and
"-XX:-UseAESIntrinsics"
I have been using the first one only for now and so far the crash appears to have been avoided. I have little understanding of JVM internals so it's not clear which of these would be the better to use, but I mention them here in case anyone else has this problem.

authors: mknoszlig stoeckley

repo: stalefruits/gniazdo


text:
⚠ GitLab Server has degraded performance

In d7358ae, GitLab Server (https://gitlab01.its-telekom.eu) experienced degraded performance:

HTTP code: 200
Response time: 11696 ms

Resolved: GitLab Server performance has improved in 7239de8.

repo: stamateas/upptime


text:
🛑 Proxima/DNS Server is down

In 87632b5, Proxima/DNS Server (http://proxima01.its-telekom.eu/livewatch.php) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Proxima/DNS Server is back up in e735b07.


text:
⚠ GitLab Server has degraded performance

In eab7838, GitLab Server (https://gitlab01.its-telekom.eu) experienced degraded performance:

HTTP code: 200
Response time: 11636 ms

Resolved: GitLab Server performance has improved in 8945cf7.


text:
Fiji in zoom level 4

In zoom level 4, the Fiji label appears in the South Atlantic ocean around -17 S, 0 E, instead of at the right location -17 S, 180 E.

Also reported via email today:
Also perhaps related to some spelling issues tracked here, which are also probably in the same dataset: https://github.com/stamen/maps.stamen.com/issues/106
I'm not sure yet about the source of this problem, but I know that the Terrain map uses some very old versions of the Natural Earth dataset for its labels, and it's likely that this problem will automatically fix itself if we use a more recent version of Natural Earth. Unfortunately, we don't have any timeline for when we will be able to update the data for our maps. It's certainly going to be many months or perhaps years before we do another update.

authors: Simon-van-Diepen almccon

repo: stamen/terrain-classic

license: isc


text:
Add alternative inv_logit parameterization to prevent underflow

Summary:
Current implementation of inv_logit will underflow with large negative numbers, need to add alternative parameterization to prevent this.
Description:
Inverse logit currently implemented as:
inline double inv_logit(double a) {
  using std::exp;
  return 1.0 / (1.0 + exp(-a));
}

Which will underflow when a is large and negative. Can be addressed with an if statement (as is done in log_inv_logit:
inline double inv_logit(double a) {
  using std::exp;
  if (a < 0.0)
    return exp(a) / (1.0 + exp(a));
  return 1.0 / (1.0 + exp(-a));
}

Current Version:
v2.18.0

Cool!  This took me a while to wrap my head around, but it was worth it.

Expensive subcomputations like exp(a) should only be done once.

Make sure that reverse and forward mode autodiff call the double version

Also, if a is large magnitude and negative, 1 + exp(a) will also round to 1, so that only exp(a) is needed.  Which raises two points:

is there  a better Taylor expansion around zero we could use?

are the derivatives stable?

Which brings up the issue of whether there's a better Taylor series expansion.  I'd have to do too much math homework to figure that out, but maybe someone will know.  We should be able to get good precision around zero with the right expansion as there's a lot of representational latitude there (the smallest number greater than 0 is roughly 1e-300 whereas the smallest less than 1 is around 1 - 1e-16 or so).
The 0.0 and 1.0 can just be 0 and 1.  The exp() returns a double and will cause everything else to be automatically promoted (at compile time).

Also, if a is large magnitude and negative, 1 + exp(a) will also round to 1, so that only exp(a) is needed

That's a good point! What we could do is define a constant: LOG_EPSILON = log(EPSILON) and then add a(nother) conditional so that we don't bother with the denominator if it's going to round down to 1:
if (a < LOG_EPSILON)    \\implies exp(a) < EPSILON
  return exp(a)

Are the derivatives stable in the given formulation?

We don't need to worry as much about the derivatives. The derivative for the inverse logit is:
d/da inv_logit(a) = inv_logit(a)*(1-inv_logit(a))

So as long as the function itself can handle extreme values, the derivative won't be a problem

authors: andrjohns bob-carpenter

repo: stan-dev/math


text:
Integer arguments to integrate 1d invoking wrong version

Summary:
Trying to call the prim version of integrate_1d with integer arguments invokes the wrong version of the function.
Description:
Because the reverse mode integrate_1d is most templated, if the limits are not doubles (but are not vars and theta is not vars), the compiler tries to use the reverse mode version of integrate_1d anyway.
Reproducible Steps:
Add the code:
TEST(StanMath_integrate_1d, test_integer_arguments) {
  double out = stan::math::integrate_1d(f2{}, 0, 1, std::vector<double>(),
                                        {}, {}, msgs, 1e-6);
}

To test/unit/math/prim/arr/functor/integrate_1d_test.cpp
And run ./runTests.py test/unit/math/prim/arr/functor/integrate_1d_test.cpp
Current Output:
Fails at compile:
test/unit/math/prim/arr/functor/integrate_1d_test.cpp:288:10: error: no viable conversion from 'stan::math::var' to 'double'
  double out = stan::math::integrate_1d(f2{}, 0, 1, std::vector<double>(),

Expected Output:
Passes
Current Version:
v2.17.0

Closed via #936

I'm guessing this may be a problem for a lot of our code.  It would be nice if int to double were a cheaper promotion than int to var, but it's not.
I'm guessing a lot of our functions suffer this problem.  I'm going to open a discussion on Discourse.

authors: andrjohns bbbales2 bob-carpenter


text:
Feature/issue 686 map rect serial

Submission Checklist

[ ] Run unit tests: ./runTests.py test/unit
[X] Run cpplint: make cpplint
[X] Declare copyright holder and open-source license: see below

Summary:
Add the serial version of map_rect
Intended Effect:
Add serial map_rect function to stan-math. A MPI parallelized version will follow.
How to Verify:
Run tests:

test/unit/math/prim/mat/functor/map_rect_test.cpp
test/unit/math/prim/mat/functor/map_rect_serial_test.cpp
test/unit/math/rev/mat/functor/map_rect_serial_test.cpp

Side Effects:
Documentation:
Please refer to doxygen documentation in stan/math/prim/mat/functor/map_rect.hpp.
The design follows a map-reduce-combine design. The map step is effectively done by the use by passing in the data in a rectangular format. That is, the first index of the input data structures is used to define what is a job. The reduce is to calculate results and the the combine operation inserts results in the AD tree in a pre-computed form. The gradient pre-calculation is performed to ensure that the MPI version will give exactly the same results (and this scheme is in addition faster for large problems when compared to build a big AD graph instead).
Copyright and Licensing
Please list the copyright holder for the work you are submitting (this will be you or your assignee, such as a university or company):
By submitting this pull request, the copyright holder is agreeing to license the submitted work under the following licenses:

Code: BSD 3-clause (https://opensource.org/licenses/BSD-3-Clause)
Documentation: CC-BY 4.0 (https://creativecommons.org/licenses/by/4.0/)

OK, I hope I addressed your comments adequately.
Thanks for the quick review (on a Sunday).

Sorry---you're right.  That's an Eigen type.  Eigen doesn't automatically call the constructors, so you can size and then set without overallocating on the autodiff stack.  But it also doesn't let you do an emplace constructor.  So yes, to_var is probably easiest here.

This is really clear and well organized.  Thanks!
It's ready to merge as soon as the tests pass.


text:
WIP Fixes #2364 - add C++11 support by including it from math's makefiles.

Submisison Checklist

[x] Run unit tests: ./runTests.py src/test/unit
[x] Declare copyright holder and open-source license: see below

Summary
Copyright and Licensing
Please list the copyright holder for the work you are submitting (this will be you or your assignee, such as a university or company): Columbia University
By submitting this pull request, the copyright holder is agreeing to license the submitted work under the following licenses:

Code: BSD 3-clause (https://opensource.org/licenses/BSD-3-Clause)
Documentation: CC-BY 4.0 (https://creativecommons.org/licenses/by/4.0/)

@seantalts, this isn't high priority, right? It looks like it breaks the Windows tests. I'll need to log in to get to the bottom of it, I think.

It's not high priority from my perspective.
Interesting error message... Don't immediately see the connection. Hm.

Oh wait, I thought this was the one on the Math repo. This needs the math repo one first! I'll mark it WIP while it's waiting on that.

Jenkins, retest this please.

So this appears to be failing on g++ on Travis because the compiler runs out of memory (in the Travis logs it just says it hit an internal compiler bug, but when testing on my local Trusty VM it tells me that it's because it ran out of memory).
Anyone know what to do about this? This has seemingly only changed with the addition of the --std=c++1y flag.

@syclik I think this is ready for review (will trigger Jenkins tests again - was focusing on fixing travis the past few times so I'd been killing the Jenkins ones). The one worrying thing is that I had to turn down the parallelism on a bunch of these tests because GCC was taking more memory than the Travis VMs had available.
Jenkins, retest this please.

All the changes look straightforward.
Thanks for dealing with Travis. It's tricky and time-consuming. Glad you worked it out.

authors: seantalts syclik

repo: stan-dev/stan


text:
[P1] Compatibility with tooling that expects a HF transformer model

I'm raising the issue that in terms of "production readyness" (statet goal) pyreft, designed as a very thoughtful  library, will need to work together with tooling that expects a loadable vanilla transformer model. A real world reproducible example is loading a pyvene trained model with https://github.com/outlines-dev/outlines in order to create structured json/ schema following outputs.
While the model can be accessed via pyref_model.model - it is not loadable, and in any case one tool would miss the other's functionality when loaded this way. What would be a advisable strategy to integrate with other tooling? May I suggest also different backend engines (e.g. vllm, ollama, llama.cpp)  will need to have have interfaces to pyreft. Maybe I'm overseeing some documentation here but I'm unsure how to proceed.
Is merging a pyvene intervention into the base model possible or is pyvene/pyreft more of an active component that will require code changes in any case?

Hey! So:

We got similar questions on Twitter about accelerating inference with different backends (vllm, mlx, etc.) Currently, pyvene is a major dependency for which no alternative exists: it manages the torch hooks that are used to intervene on hidden representations at the token-level in pyreft. To enable support for non-HF and/or non-torch models, we would need to replicate some pyvene functionality. We have thought about how to do this simply without needing to port pyvene entirely[^thoughts], but it's a long-term software engineering task that we don't immediately have the time/resources/people for. Maybe in the summer once pyreft is known to be stable for a variety of models + tasks, we will invest time into this.
The LoReFT intervention can't be merged into the base model for two reasons. (1) It is a complex function applied directly to the hidden state, so it operates differently than existing model components (which add to the hidden state via residuals) and so can't be folded into them as far as we can tell. (2) It operates only on some tokens, not all, but model weights are the same for every token.

So overall, using LoReFT in a model requires either torch-style hooking functionality or code changes to the model to support token-level interventions.
[^thoughts]: E.g. we could just load pyvene for the KV-cache population when processing the prompt, and then use the efficient backend for generation. But in the future, we want to support intervention on decoding steps as well which is messier.

assigning with P1 since there is no blocker.

authors: aryamanarora chris-aeviator frankaging

repo: stanfordnlp/pyreft


text:
edu.stanford.nlp.pipeline.Document vs. stanfordnlp.protobuf.Document

Hi, forgive me for asking stupid question(s) but, why are these two classes named the same thing but function differently and use different naming conventions? 🙃
Why does the CoreNLP Server return  stanfordnlp.protobuf.Document while the pipeline returns edu.stanford.nlp.pipeline.Document? Are there any helper functions that can convert between the two?
Lastly, is the source of the dependency (in the protobuf.Document) the same as the governor of the dependency (in the pipeline.Document) or is it the dependent?
Appreciate your time and all the work ya'll have done!! :)

Hi Scott,
I'm a little confused -- where did you receive a class of type stanfordnlp.protobuf.Document? Is this when using the stanfordnlp Python package? This object is a serialized protobuf object which is an efficient binary representation is shared between Python and Java. The edu.stanford.nlp.pipeline.Document is a plain old Java object that is used with Stanford's CoreNLP java package; stanza (the new name for stanfordnlp) has a similar wrapper.

Hi Arun, I've been experimenting with a couple of libraries as I'm trying to do some multiprocessing with the parse command. I originally started with the standfordnlp package but found when I called the pipeline call method on a text within a worker in a Pool that it would re-load all the models and that would waste a lot of time. And then I came across a post by someone else who was attempting to do a similar thing and found a workaround using the CoreNLP server and making async request calls and using partial: https://github.com/stanfordnlp/stanza/issues/177  And then I did some experimenting on my own and found that using that means with the parse command produced stanfordnlp.protobuf.Document (which this repo is focused on protobuf stuff). Is it the case that the stanfordnlp.protobuf.Document class (which is generated by protobuf) is derived from the work in this repo? Do you know why there are differences in the attributes in each of the classes? I thought you guys might have familiarity with the stanfordnlp python package as well and could explain how the protobuf class came to be different than the one generated from pipeline. Any information about that would be awesome; appreciate your time.

Apologies; yes the protobufs in this package and the ones in stanfordnlp
(or stanza) are the same: both are derived from the protobuf definitions
in CoreNLP. If there are differences in attributes, it's probably because
this package is slightly out of date. I'll mark that as a TODO for me.
On Tue, Jun 23, 2020 at 8:39 PM Scott A notifications@github.com wrote:

Hi Arun, I've been experimenting with a couple of libraries as I'm trying
to do some multiprocessing with the parse command. I originally started
with the standfordnlp package but found when I called the pipeline call
method on a text within a worker in a Pool that it would re-load all the
models and that would waste a lot of time. And then I came across a post by
someone else who was attempting to do a similar thing and found a
workaround using the CoreNLP server and making async request calls and
using partial: stanfordnlp/stanza#177
https://github.com/stanfordnlp/stanza/issues/177 And then I did some
experimenting on my own and found that using that means with the parse
command produced stanfordnlp.protobuf.Document (which this repo is focused
on protobuf stuff). Is it the case that the stanfordnlp.protobuf.Document
class (which is generated by protobuf) is derived from the work in this
repo? Do you know why there are differences in the attributes in each of
the classes? I thought you guys might have familiarity with the stanfordnlp
python package as well and could explain how the protobuf class came to be
different than the one generated from pipeline. Any information about that
would be awesome; appreciate your time.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/stanfordnlp/python-corenlp-protobuf/issues/4#issuecomment-648563804,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAAU5SK3YFYMTFFVJSIAXG3RYFYPNANCNFSM4OGEWC4Q
.

--
Arun Tejasvi Chaganty
http://arun.chagantys.org/

Oh, okay great! Also, can you confirm— does “source” refer to the dependent and “target” refer to the governor? It seems the the Dependency objects are also different than the stanfordnlp package and I cannot find any documentation stating the comparisions/contrasts. In fact, if you, or parties you think are more relevant, could produce some comparison table for the different Document/Sentence/Dependency objects between what stanfordnlp and stanza vs. the protfobuf generated classes are, that would be very awesome and useful for many users I bet. :) Maybe post it on all the related GitHub projects / FAQ pages or something.
On Jun 25, 2020, at 1:23 PM, Arun Tejasvi Chaganty <notifications@github.commailto:notifications@github.com> wrote:
Apologies; yes the protobufs in this package and the ones in stanfordnlp
(or stanza) are the same: both are derived from the protobuf definitions
in CoreNLP. If there are differences in attributes, it's probably because
this package is slightly out of date. I'll mark that as a TODO for me.
On Tue, Jun 23, 2020 at 8:39 PM Scott A <notifications@github.commailto:notifications@github.com> wrote:

Hi Arun, I've been experimenting with a couple of libraries as I'm trying
to do some multiprocessing with the parse command. I originally started
with the standfordnlp package but found when I called the pipeline call
method on a text within a worker in a Pool that it would re-load all the
models and that would waste a lot of time. And then I came across a post by
someone else who was attempting to do a similar thing and found a
workaround using the CoreNLP server and making async request calls and
using partial: stanfordnlp/stanza#177
https://github.com/stanfordnlp/stanza/issues/177 And then I did some
experimenting on my own and found that using that means with the parse
command produced stanfordnlp.protobuf.Document (which this repo is focused
on protobuf stuff). Is it the case that the stanfordnlp.protobuf.Document
class (which is generated by protobuf) is derived from the work in this
repo? Do you know why there are differences in the attributes in each of
the classes? I thought you guys might have familiarity with the stanfordnlp
python package as well and could explain how the protobuf class came to be
different than the one generated from pipeline. Any information about that
would be awesome; appreciate your time.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/stanfordnlp/python-corenlp-protobuf/issues/4#issuecomment-648563804,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAAU5SK3YFYMTFFVJSIAXG3RYFYPNANCNFSM4OGEWC4Q
.

--
Arun Tejasvi Chaganty
http://arun.chagantys.org/
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/stanfordnlp/python-corenlp-protobuf/issues/4#issuecomment-649715196, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AGFWLUCFQQKCWTOH2ZJOJDLRYOBZ7ANCNFSM4OGEWC4Q.

authors: arunchaganty scottagt

repo: stanfordnlp/python-corenlp-protobuf


text:
Doesn't work with python3

trying to install python 3.4 and create a virtualenv for it on Ubuntu 14.04. Fails with error:
===
==> default: Error: sh: 1: virtualenv-3.4: not found
==> default: sh: 1: /srv/django-envs/pymania/bin/pip: not found
==> default: sh: 1: /srv/django-envs/pymania/bin/pip: not found
==> default:
==> default: Error: /Stage[main]/Python-env/Python::Virtualenv[/srv/django-projects/pymania]/Exec[python_virtualenv_/srv/django-envs/pymania]/returns: change from notrun to 0 failed: sh: 1: virtualenv-3.4: not found
===
This is the Puppet file:
class python-env {
class { 'python':
version    => '3.4',
pip        => true,
dev        => true,
virtualenv => true,
}
python::virtualenv { '/srv/django-projects/pymania' :
ensure       => present,
version      => '3.4',
systempkgs   => true,
distribute   => false,
venv_dir     => '/srv/django-envs/pymania',
owner        => 'root',
group        => 'root',
cwd          => '/srv/django-projects/pymania',
timeout      => 0,
require      => File['/srv/django-envs/']
}
file { "/srv/django-projects/":
ensure => "directory",
}
file { "/srv/django-envs/":
ensure => "directory",
}
}

It kinda works. Add this line at the end:
python::virtualenv { '/srv/django-projects/pymania' :
ensure => present,
~
virtualenv   => "virtualenv"
}

This part( https://github.com/stankevich/puppet-python/blob/master/manifests/virtualenv.pp#L98-L105 ) makes strange assumptions and trying to run virtualenv-$version instead of simple virtualenv for some reason.

@Faulik thanks for briefing :)

@faulik Thanks. It seems this issue occurs when I have virtualenv installed via apt. uninstalling it, and re-installing virtualenv via pip seems to solve the issue too.

authors: Faulik jeroenjacobs1205 shivapoudel

repo: stankevich/puppet-python


text:
support JWT authentication

looks like trino's python client supports JWT. An easy lift would be that a user could pass a JWT token as a target field in the user's profiles.yml.
The user below could then use some script to store the token as an environment variable.
Happy to advise on how this might work, LMK!
relevant dbt Slack thread

I'm trying to connect dbt to presto as that is one of our data stores. The only way that we are able to connect to this is through okta verification using a token that lasts only 24 hours. From the looks of the documentation on the profile setup it looks like only ldap and kerberos is supported. Is there currently a way to fetch a token or is this something that would need to be done on my end to pass over to the presto profile?

Thanks, the proposed solution looks good, we can have an extra authentication kind and allow user to pass JWT token in profiles.yml

Closed by: https://github.com/starburstdata/dbt-trino/pull/32

authors: hovaesco swanderz

repo: starburstdata/dbt-trino


text:
[WIP] chore: replace ts-lint with eslint

This PR replaces ts-lint with eslint.

reduced linting time from >13s to ~3s 🎉
there is far more support and better plugins in the eslint community
we can now lint/fix JS files, which were getting ignored before by ts-lint

Updated dependencies and unblocked PR 👍

I fixed the yarn.lock, but this caused issues with ESLint resolving the eslint config.  Once fixing the resolution, there were over 3k lint errors.  Will have to come back to this one.

Warnings

:warning:
There are no updates provided to CHANGELOG. Ensure there are no publicly visible changes introduced by this PR.

:warning:
Package (or peer) dependencies changed. Make sure you have approval before merging!

Changed dependencies in packages/internal-tooling/package.json

package
before
after

@typescript-eslint/eslint-plugin
-
^1.6.0

@typescript-eslint/parser
-
^1.6.0

eslint
-
^5.16.0

eslint-config-airbnb
-
^17.1.0

eslint-config-prettier
-
^4.1.0

eslint-plugin-import
-
^2.17.2

eslint-plugin-jest
-
^22.4.1

eslint-plugin-jsx-a11y
-
^6.2.1

eslint-plugin-prettier
-
^3.0.1

eslint-plugin-react
-
^7.12.4

eslint-plugin-react-hooks
-
^1.6.0

  Generated by :no_entry_sign: dangerJS

We decided to keep TSLint before at least important rules will work properly.

authors: DustyTheBot layershifter levithomason

repo: stardust-ui/react


text:
Remove OperationsConfig.extendError in the config file

As mentioned in issue #1666, this ticket should move the config setting and refactor related codes.

we can do this, the fix will be to remove the config and any places we were tracking if error V2 should be used.
e.g. look at the CommandResultBuilder where is tracks it, most places we have it will be configured to set the value on the builder.

Makes sense for @Hazel-Datastax  to pick this up

authors: Hazel-Datastax amorton

repo: stargate/data-api


text:
Support sort for findOne and findOneAndUpdate commands

What this PR does:
Sort support for findOne and findOneAndUpdate commands
Which issue(s) this PR fixes:
Fixes #312
Checklist

[x] Changes manually tested
[x] Automated Tests added/updated
[ ] Documentation added/updated
[x] CLA Signed: DataStax CLA

This PR has changes with respect to comments in PR #316

repo: stargate/jsonapi


text:
New Genesis Kit directories should gitignore *.tar.gz

Otherwise the tarballs get committed.

I have a local branch for this; waiting on #230 to get merged so that I don't get conflicts on release notes.

repo: starkandwayne/genesis


text:
request

Hi starkillerOG,
I have a question for you but don't know how I can best contact you. I've send an email to starkiller.og@gmail dot com, but don't know if that email adress works at all. Can you please reply.
Many thanks,
Rein

Hi Rein,
I send you a reply by mail.
Normally I do not read starkiller.og@gmail.com but do get messages from github.
Best regards,
StarkillerOG

repo: starkillerOG/motion-blinds


text:
LS: fix panic in lsp_helper and move its logic to LsSemanticGroup

Code in semantic/semantic_extension.rs is the same as in previous semantic.rs besides trait name change LsSemanticGroup -> LsSemanticGroupExtension. Code in semantic/mod.rs is code from lsp_helper.rs + some code from trait definition crates/cairo-lang-semantic/src/db.rs wrapped into new salsa query group

This change is

Closing in favour of split PRs

repo: starkware-libs/cairo


text:
Use valid category in library.properties

The previous category value caused the warning:
WARNING: Category '' in library Utf8 is not valid. Setting to 'Uncategorized'

List of valid category values:
https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.5:-Library-specification#libraryproperties-file-format

Thanks!


text:
repository:command:move:all asks for move allowance, although there are no commands

Should not ask

Fixed

repo: startwind/forrest


text:
Windows 10 22H2 OS Build 19045.3208 not Supported

Duplicate of https://github.com/stascorp/rdpwrap/issues/2257

authors: brillsense-shailesh sashaqwert

repo: stascorp/rdpwrap


text:
Windows Server 2008 R2 (and maybe Windows 7) RDPWrap killed by update 4462923

Windows Update KB4462923 renders RDPWrap inoperative. RDP is limited to the standard 2 connections. Removing the update allows RDPWrap to work again. Switching automatic updates off prevents the change occurring .... but for how long?
Who knows whether this is a bug that can be fixed, or a move by Microsoft, who apparently now own GitHub, to kill the utility.
Anyone in the RDPWrap dev team know the answer?

Are you using RDP Wrapper for the first time? RTFM!
Duplicate of #572 and #586 !

No. I've been using RDP Wrapper for over 3 years and this problem has not
occurred before.
What are you referring to in TFM?
On Thu, 11 Oct 2018 at 12:06, Stanislav Motylkov notifications@github.com
wrote:

Closed #587 https://github.com/stascorp/rdpwrap/issues/587.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/stascorp/rdpwrap/issues/587#event-1897894947, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AqA_q1G56_KdRJlw-k_Fg0u1THCACyGfks5ujyYrgaJpZM4XXQvG
.

@kevindaley I'm referring to the update procedure.

Removed the Windows Update and RDPWrap. Installed the Windows Update again
(+ all others available), then RDPWrap + update, and this time all is well.
On Thu, 11 Oct 2018 at 16:10, Stanislav Motylkov notifications@github.com
wrote:

@kevindaley https://github.com/kevindaley I'm referring to the update
procedure.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/stascorp/rdpwrap/issues/587#issuecomment-428989840,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AqA_q-trVTKYjnUFUqqL1QpOkEGcpNtuks5uj195gaJpZM4XXQvG
.

kevindaley. Can you explain your steps in deep?
I have same problems.

Sure. Windows 2008 R2 Server (based on Windows 7) installed an automatic
update KB4462923, that stopped RDPWrap from operating. Only the standard 2
remote sessions could be used.
I removed the Windows Update and RDPWrap ran fine for a day, but overnight
the update was reinstalled and the 2 session restriction came back.
So I removed both RDPWrap and the Windows Update, then manually installed
all available Windows Updates. I then reinstalled RDPWrap and its updates.
The additional sessions became available and have been fine for 2 days now.
Hope this helps
On Fri, 12 Oct 2018 at 14:43, Zeljko Manjkas notifications@github.com
wrote:

kevindaley. Can you explain your steps in deep?
I have same problems.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/stascorp/rdpwrap/issues/587#issuecomment-429330043,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AqA_qwjvJgTz6IZHgTZXOxCy1YBNTjy-ks5ukJyGgaJpZM4XXQvG
.

Thank you kevindaley.
Now works.
Uninstall RDPWrap with uninstall.bat, remove KB4462923 (restart), TermSrv.dll is still .24234, remove KB4457139 (restart), now TermSrv.dll is .18637, install KB4462923, install RDPWrap with install.bat, check third user with RDPCheck (1 console user and 2 RDP users),

Thanks a lot! Now works

authors: ZeljkoManjkas binarymaster juanjuanjo kevindaley


text:
Improve maintainability of machine configurations

Originally posted by @tomclose in https://github.com/statechannels/monorepo/pull/936

Want to keep this issue alive or opt for more specific ones? We seem to be having this discussion now with @tomclose's recent work on a separate application workflow for directly funded channels.

authors: andrewgordstewart snario

repo: statechannels/monorepo


text:
process is not defined and circular dependencies with rollup and svelte

Bug
Description:
Decided to try out use xstate with Svelte, basically porting the code you did in a recent workshop. I ran across a few bugs in setting up the build. First, I got a runtime exception for process being undefined at this line of code: var IS_PRODUCTION = process.env.NODE_ENV === 'production';. While this was easily overcome by adding a build step to the rollup config, e.g.,
   replace({
      'process.env.NODE_ENV': dev ? JSON.stringify('development') : JSON.stringify('production')
    }),

I don't think that xstate probably wants to depend on process being present. Second, the following circular dependency warning is printed when using rollup:
(!) Circular dependency: node_modules/xstate/es/utils.js -> node_modules/xstate/es/StateNode.js -> node_modules/xstate/es/utils.js
(!) Circular dependency: node_modules/xstate/es/utils.js -> node_modules/xstate/es/StateNode.js -> node_modules/xstate/es/State.js -> node_modules/xstate/es/utils.js
(!) Circular dependency: node_modules/xstate/es/utils.js -> node_modules/xstate/es/StateNode.js -> node_modules/xstate/es/actions.js -> node_modules/xstate/es/utils.js
(!) Circular dependency: node_modules/xstate/es/utils.js -> node_modules/xstate/es/StateNode.js -> node_modules/xstate/es/StateTree.js -> node_modules/xstate/es/utils.js

(Bug) Potential fix:
In first case, would it be enough to check if process is present?
var IS_PRODUCTION = process && process.env.NODE_ENV === 'production'
Link to reproduction or proof-of-concept:
https://github.com/RikuVan/svelte3-ts-starte

I don't think that xstate probably wants to depend on process being present.

Actually this is a common practice for libraries and process.env.NODE_ENV is expected to be replaced by bundlers. Many libraries are doing it (i.e. react) and it's somewhat a standard way to strip things from production builds.
Adding additional check for process is bad as it will cause i.e. webpack & browserify to include unnecessary polyfills for the process object.

I agree with @Andarist about the process thing. It’s a bug that svelte should fix in my opinion.

ok, thanks. I wonder if this is happens because of the way Svelte compiles code.

I am also getting the problem in the same app of the typings not being found for xstate (a different issue of course). So a lot of little weird build issues. Are the circular dependencies warnings a mild issue?

ok, thanks. I wonder if this is happens because of the way Svelte compiles code.

Well, this is unfortunate - we have so many bundlers/compilers right now on the market, that it's often hard to "configure" a library so it could be used by each of them without any extra config on the user's side. In this particular case I would advise for reporting this to svelte team, so they could replace process.env.NODE_ENV appropriately based on their dev option (i think they have such) - as they aim for good DX and this issue will just come around many times for many people.

Are the circular dependencies warnings a mild issue?

Yeah - it still would be kinda good to remove this from xstate, but in ESM world circular dependencies are allowed, so no the problem per se.

The circular dependencies were removed.

I think you have this covered already and I don't know if this will help, but since I've got the information handy – the TypeError: Error resolving module specifier: xstate error is also thrown when using xstate in the browser with ES Modules.
Here is a script to reproduce:
#!/usr/bin/env bash

rm -rf xstate-process-bug

mkdir xstate-process-bug

cd xstate-process-bug/

npm init -y

npm i -S xstate

echo "import { Machine, interpret } from '//unpkg.com/xstate@4.6.0/es/index.js'; // or use your own interpreter!

// Stateless machine definition
// machine.transition(...) is a pure function used by the interpreter.
const toggleMachine = Machine({
  initial: 'inactive',
  states: {
    inactive: { on: { TOGGLE: 'active' } },
    active: { on: { TOGGLE: 'inactive' } }
  }
});

// Machine instance with internal state
const toggleService = interpret(toggleMachine)
  .onTransition(state => console.log(state.value))
  .start();
// => 'inactive'

toggleService.send('TOGGLE');
// => 'active'

toggleService.send('TOGGLE');
// => 'inactive'
" > main.js

echo "<!doctype html>

See Console

" > index.html

npx http-server .

This will produce
xstate-process-bug
├── index.html
├── main.js
├── node_modules
│   └── xstate
├── package-lock.json
└── package.json

and start a web server to demonstrate.

@JamieMason if u want to consume xstate in module format directly in the browser without a build step then u have to use this file https://unpkg.com/xstate@4.6.0/dist/xstate.web.js . The one which u have used is intended to be consumed by bundlers

Ahh, thanks a lot @Andarist 👍

This is already fixed by svelte ?

@JamieMason if u want to consume xstate in module format directly in the browser without a build step then u have to use this file https://unpkg.com/xstate@4.6.0/dist/xstate.web.js . The one which u have used is intended to be consumed by bundlers

This works for me (using local import) !
Thank you very much.

This isn't a Svelte issue, it is a Rollup issue as it is the bundler in this case. The replace plugin mentioned above was the generally accepted solution to this particular issue, although, now a more robust solution for environment variables exists: https://www.npmjs.com/package/rollup-plugin-inject-process-env
Hope this helps.

EDIT: Adding the following was enough to patch this in my prototype for now:

How do you replace this script in index.html for production? I am stuck on this issue for some time now, I am using it with @web/dev-server during development I have to add this script to make the application run.
Plugin replace works on JS files but can't get it to replace or remove this script tag from HTML for production build.

authors: Andarist JamieMason RikuVan aislanmaia colinbate davidkpiano e-martin hnordt nChauhan91

repo: statelyai/xstate


text:
random-base-uniform 0.2.0 depends on random-base 0.1.1, causing installation of duplicate versions of dependencies

Description
I installed the following two packages, @stdlib/random-base-uniform and @stdlib/stats-base-dists-binomial-pmf, and ended up with both v0.2 and v0.1 versions of most dependencies.
My first guess is that package.json has the wrong version number in the dependencies of random-base:
"@stdlib/random-base": "^0.1.1",

Related Issues
Related issues #1199
Questions
No response
Demo
No response
Reproduction
I installed the following two packages:

pnpm add @stdlib/random-base-uniform @stdlib/stats-base-dists-binomial-pmf

Expected Results
v0.2 packages installed, rather than both v0.2 and v0.2

Actual Results
This results in the installation of lots of duplicates packages, e.g., here's a tiny excerpt from node_modules:

node_modules/.pnpm/@stdlib+math-base-special-sinpi@0.1.0
node_modules/.pnpm/@stdlib+math-base-special-sinpi@0.2.0
node_modules/.pnpm/@stdlib+math-base-special-sqrt@0.1.1
node_modules/.pnpm/@stdlib+math-base-special-sqrt@0.2.0
node_modules/.pnpm/@stdlib+math-base-special-tan@0.1.0
node_modules/.pnpm/@stdlib+math-base-special-trunc@0.1.1
node_modules/.pnpm/@stdlib+math-base-special-trunc@0.2.0

### Version

0.2.0

### Environments

Node.js

### Browser Version

_No response_

### Node.js / npm Version

v20.11.0

### Platform

Linux

### Checklist

- [X] Read and understood the [Code of Conduct](https://github.com/stdlib-js/stdlib/blob/develop/CODE_OF_CONDUCT.md).
- [X] Searched for existing issues and pull requests.

As mentioned in https://github.com/stdlib-js/stdlib/issues/1199#issuecomment-2010950250, I believe this issue has been resolved. Closing...
cc @Planeshifter

Thanks @kgryte , I updated the dependency and the issue is fixed on my end too.

@ellis Great! And thanks for circling back!

authors: ellis kgryte

repo: stdlib-js/stdlib


text:
[RFC]: improve README examples of stats/base/dists/chisquare namespace

Description
This RFC proposes to improve the README examples of the stats/base/dists/chisquare namespace package. Currently, namespace package READMEs only include minimal examples which are not particularly informative and do not showcase namespace functionality.
Historically, namespace examples were not given much effort due to the rapidly changing nature of the project; however, now that development and organization has settled, it would be good to revisit these packages and add proper examples to better communicate to users how to use namespace contents.
For those wanting to contribute to this issue, you can use the following steps:

Browse through the contents of the stats/base/dists/chisquare namespace and identify interesting functions and packages to showcase.
Update the example code block in the "Examples" section of the README for the stats/base/dists/chisquare namespace and open a PR.
When updating the README, examples should follow existing project conventions (e.g., ES5).
Examples may require functionality from other packages to help make examples more interesting.

Related Issues
None.
Questions
No.
Other
No.
Checklist

[X] I have read and understood the Code of Conduct.
[X] Searched for existing issues and pull requests.
[X] The issue name begins with RFC:.

Hi @Planeshifter,
Could you please assign this issue to me? I'd love to work on improving the README examples for the stats/base/dists/chisquare namespace package.

authors: Planeshifter kohantikanath


text:
[RFC]: add C implementation for @stdlib/math/base/assert/is-negative-integer

Description
This RFC proposes adding a C implementation for @stdlib/math/base/assert/is-negative-integer.
Related Issues
Related issues #649.
Questions
No.
Other
No.
Checklist

[X] I have read and understood the Code of Conduct.
[X] Searched for existing issues and pull requests.
[X] The issue name begins with RFC:.

I would like to work on this.

@Rejoan-Sardar Thank you for posting this RFC. Feel free to submit a PR implementing this feature.

If this isn't done yet, I am willing to contribute as I already understand this well. @kgryte

@Shashankss1205 almost done.I will make my PR.

Ok sure.

authors: Rejoan-Sardar Shashankss1205 kgryte


text:
Some models / types are not generated after running the generate command.

please share your schema.prisma so I can investigate further

authors: juddbaguio steebchen

repo: steebchen/prisma-client-go


text:
JS-T: Set withdraw route

resolves #97

Overall this is pretty good. The language might be cleaned up a little bit.

authors: feruzm relativityboy

repo: steemit/devportal-tutorials-js


text:
show image with AspectRatio

in my html some images are large, such as width, how can i fit image or using AspectRatio for them?
for example:
http://cdn.time.ir/App_Themes/Default-fa-IR/Images/summerHeader.jpg

What did you try?  and setting the width attribute accordingly? Or a background image?

@stefanhaustein its not background image and i would like to set custom size to show correctly on all android device resulation or automatically can use android:adjustViewBounds

If you set the desired image as a background image of a div, you should be able to set it to a fixed percentage of the width using css styles

authors: MahdiPishguy stefanhaustein

repo: stefanhaustein/nativehtml


text:
Renamed deprecated ember install:addon

Renamed deprecated ember install:addon to ember install. This feature has been deprecated since Ember CLI v0.2.3, for more information see the release notes.

Good catch, thanks

authors: jonkoops stefanpenner

repo: stefanpenner/ember-fetch


text:
Revise release-a-new-version.md to the Gitflow workflow

PR Checklist
PR Structure

[ ] This PR has reasonably narrow scope (if not, break it down into smaller PRs).
[ ] This PR avoids mixing refactoring changes with feature changes (split into two PRs
otherwise).
[ ] This PR's title starts with name of package that is most changed in the PR, ex.
paymentservice.stellar, or all or doc if the changes are broad or impact many
packages.

Thoroughness

[ ] This PR adds tests for the most critical parts of the new functionality or fixes.

What
Revised release-a-new-version.md to the Gitflow workflow.
Refer to: https://stellarfoundation.slack.com/archives/C02TPN2H65N/p1686605671225359

Reference Server Preview is available here:https://anchor-ref-pr945.previews.kube001.services.stellar-ops.com/SEP Server Preview is available here:https://anchor-sep-pr945.previews.kube001.services.stellar-ops.com/

repo: stellar/java-stellar-anchor-sdk


text:
Horizon v1.0.0 Compatibility

The upcoming Horizon release is coming, and there are multiple breaking changes plus new features 🎉🎉🎉!
The following are the list of changes required to support this new release:

[x] ➕Update /fee_stats response.

✂ Remove the following fields:
min_accepted_fee
mode_accepted_fee
p10_accepted_fee
p20_accepted_fee
p30_accepted_fee
p40_accepted_fee
p50_accepted_fee
p60_accepted_fee
p70_accepted_fee
p80_accepted_fee
p90_accepted_fee
p95_accepted_fee
p99_accepted_fee

➕Add support for max_fee and fee_charged fields. Each field contains a JSON object that looks like this:
{
  "last_ledger": "22606298",
  "last_ledger_base_fee": "100",
  "ledger_capacity_usage": "0.97",
  "fee_charged": {
    "max": "100",
    "min": "100",
    "mode": "100",
    "p10": "100",
    "p20": "100",
    "p30": "100",
    "p40": "100",
    "p50": "100",
    "p60": "100",
    "p70": "100",
    "p80": "100",
    "p90": "100",
    "p95": "100",
    "p99": "100"
  },
  "max_fee": {
    "max": "100000",
    "min": "100",
    "mode": "100",
    "p10": "100",
    "p20": "100",
    "p30": "100",
    "p40": "100",
    "p50": "100",
    "p60": "100",
    "p70": "100",
    "p80": "100",
    "p90": "15000",
    "p95": "100000",
    "p99": "100000"
  }
 }

See https://github.com/stellar/go/pull/2140 for more info.

[x] ✂ Remove deprecated fee_paid field from Transaction response (replace it with the fee_charged and max_fee fields, see #1372).

[x] 🚨Multiple fields changed from int64 to string. If your SDK has types, they need to be updated. If possible, we recommend implementing backward compatibility support, as we did here.

Attribute offer_id in manage buy offer and manage sell offer operations.

Attribute offer_id in Trade effect.

Attribute id in Offer resource.

Attribute timestamp and trade_count in Trade Aggregation resource.

See https://github.com/stellar/go/issues/1609, https://github.com/stellar/go/pull/1909, and https://github.com/stellar/go/issues/1912 for more info

[x] 🚨 Update operation types to canonical names (if needed) (see https://github.com/stellar/go/pull/2134).

[x] ➕Add support for /accounts end-point  with ?signer and ?asset filters. We recommend a method like .accounts(queryParams) (see documentation for accounts).

[x] ➕Add support for /offers end-point with query parameters. We recommend a method like .offers(queryParams) (see documentation for offers).

[x] ➕Add support for /paths/strict-send end-point.  See documentation.
We recommend a method like
strictSendPaths(sourceAsset, sourceAmount, [destinationAsset])

[x] ➕ Add support for /paths/strict-receive end-point. See documentation.
We recommend a method like:
strictReceivePaths(sourceAssets,destinationAsset, destinationAmount)

[x] ♻ Regenerate the XDR definitions to include MetaV2 support (also see #1902).

That's it! If you have any questions feel free to ping us on #dev-discussion in Keybase.

All these points have been resolved for the Ruby SDK 👍

authors: JakeUrban abuiles

repo: stellar/ruby-stellar-sdk


text:
Test events + Txns DB changes on AWS

We want to release the events changes but before doing that, need to test its robustness on AWS setup.
With the retention window increasing to 7 days, we also want to get an idea of the DB space taken by the new transactions and events tables

This is going to be validation of events+txn changes for larger retention window just fyi

Plan as of right now is:

Complete performance testing / benchmarking for 1 day of retention
Issue RPC release
Complete performance testing / benchmarking for 7 days of retention
Change configuration on SDF's instances to 7 day of retention
(with p22 changes) Change default retention window to 7 days

repo: stellar/soroban-rpc


text:
[Critical] Build-only and Sim-only should output TransactionEnvelope

What version are you using?
199a88a0be72c4caaef59c1e918e199e4e247078
What did you do?
Ran a command with the --build-only option.
What did you expect to see?
A transaction envelope to be outputted.
What did you see instead?
A transaction outputted, incompatible with other tools.
For example:

Discussion
Tools should always output, and accept as input, full envelopes because otherwise other tools that the inputs/outputs are used with won’t know what type of transaction we’ve given them.
It’s a bit confusing because tools always use the term ‘transaction’ to talk about what they accept as input, but in reality when tools like the Lab and others say they accept or build a transaction, they actually mean a transaction envelope.

This is fixed.

authors: leighmcculloch willemneal

repo: stellar/stellar-cli


text:
Display the cart with items, after API calls

When i create a new product, and then add it to the cart using THIS API :

How i can access the related cart page ? (is there like an url : https://www.mySite.com/cart?customer_id=45  ) ?
How in general, does this manipulations are traced ?  with no user account, all via simple guest API request

The api will be used by another Asp.Net mvc app to add new product each time.
Thanks

Solution : it's all based on cookies and sessions, so the 3rd party app should be working on the same nopCommerce website Or having a shared user account between the nopCommerce & 3rd party app using the api.
I'm closing this one. Thanks

repo: stepanbenes/api-for-nopcommerce


text:
Cannot compile on Windows

My steps:
# git clone https://github.com/stepancheg/rust-protobuf
...
# protobuf/regenerate.sh
++ dirname protobuf/regenerate.sh
+ cd protobuf
++ protoc --version
+ protoc_ver='libprotoc 3.7.1'
+ case "$protoc_ver" in
+ cargo build --manifest-path=../protobuf-codegen/Cargo.toml
   Compiling protobuf v3.0.0 (C:\Users\sofe2\proj\rust-protobuf\protobuf)
error[E0599]: no function or associated item named `type_id` found for type `(dyn std::any::Any + 'static)` in the current scope
   --> protobuf\src\core.rs:173:12
    |
173 |         if Any::type_id(&*self) == TypeId::of::<T>() {
    |            ^^^^^^^^^^^^ function or associated item not found in `(dyn std::any::Any + 'static)`

error[E0599]: no function or associated item named `type_id` found for type `(dyn std::any::Any + 'static)` in the current scope
   --> protobuf\src\core.rs:184:12
    |
184 |         if Any::type_id(&*self) == TypeId::of::<M>() {
    |            ^^^^^^^^^^^^ function or associated item not found in `(dyn std::any::Any + 'static)`

error[E0599]: no function or associated item named `type_id` found for type `(dyn std::any::Any + 'static)` in the current scope
   --> protobuf\src\core.rs:194:12
    |
194 |         if Any::type_id(&*self) == TypeId::of::<M>() {
    |            ^^^^^^^^^^^^ function or associated item not found in `(dyn std::any::Any + 'static)`

error[E0599]: no function or associated item named `type_id` found for type `(dyn std::any::Any + 'static)` in the current scope
  --> protobuf\src\reflect\runtime_type_dynamic.rs:34:12
   |
34 |         if Any::type_id(value) == TypeId::of::<T::Value>() {
   |            ^^^^^^^^^^^^ function or associated item not found in `(dyn std::any::Any + 'static)`

error: aborting due to 4 previous errors

For more information about this error, try `rustc --explain E0599`.
error: Could not compile `protobuf`.

To learn more, run the command again with --verbose.

System (run on git bash):
uname -a
MINGW64_NT-10.0 LAPTOP-DIQOL7N0 2.11.2(0.329/5/3) 2018-11-10 14:38 x86_64 Msys
# rustc --version
rustc 1.32.0 (9fda7c223 2019-01-16)
# cargo --version
cargo 1.32.0 (8610973aa 2019-01-02)

This problems does not look like something Windows-specific
CI is executed on Windows too, e. g. this job

So I don't know how I can help.

Well, I know it doesn't look Windows-specific, but it is just a direct clone, so I have no idea why it wouldn't compile. Unless I have some special problems with my rust setup.

I don't know how I can help, so closing the issue. Sorry.

repo: stepancheg/rust-protobuf


text:
Make codegen-pure's field defaults match protoc's

Split out from #510. @stepancheg I don't particularly care about these changes, but they directly fall out from not calling field.clear_default_value() in normalize_descriptor.
I'm quite confident that the change to quote_bytes_to is valid, as it just adds escaping for single quotes (') like in the C++ version: https://github.com/protocolbuffers/protobuf/blob/f9d8138376765d229a32635c9209061e4e4aed8c/java/core/src/main/java/com/google/protobuf/TextFormatEscaper.java#L79-L81
I'm less sure about the float change (it's hard to say exactly what snprintf will do with %g on all platforms: https://github.com/protocolbuffers/protobuf/blob/c0b79c5a398f4eec51ef92784e9d940febdccc52/src/google/protobuf/stubs/strutil.cc#L1245-L1287), but it's definitely true that google/protobuf will render a default value of 10.000 as 10, and this change matches google/protobuf on that specific case.

This required the following changes:

Suppressing trailing ".0" from rendered floats
Escaping single quotes in the text format
Normalizing escape sequences in byte-valued defaults

Great PR as usual. Thanks!

authors: benesch stepancheg


text:
fix issues #228 & #229

Addresses #228 & #229

Coverage increased (+0.08%) to 94.534% when pulling ad891e509922aad8acbfb63e3895e83ea8677894 on sni/issue-228 into abb7ad6322b9ed0e0124abc3c4f4e232f88b14f8 on master.

RTM

authors: coveralls dlemures stephanenicolas

repo: stephanenicolas/toothpick


text:
WIP rootScopes implementation prototype

Based on a discussion with @dlemures and @stephanenicolas this is an alternative to https://github.com/stephanenicolas/toothpick/pull/364
Just looking for feedback so far, still need to add docs and extend KTP.

Coverage increased (+0.02%) to 95.665% when pulling 5aba292a7d3aaf11103e7defaa494321e89cb477 on code-twister:code-twister/rootscope into eac62a02fb73fb2f73fe0800b5bf3b1021f1e613 on stephanenicolas:master.

I like the change!!!
I added a few comments about the implementation.

coveralls doesn't seem to work properly...
getScope_shouldReturnAScope_whenThisScopeByThisKeyWasCreated should cover the line it reports being missed here: https://coveralls.io/builds/25500173/source?filename=toothpick-runtime%2Fsrc%2Fmain%2Fjava%2Ftoothpick%2FToothpick.java#L171
@stephanenicolas can you take a look, and let me know if I can do something to increase coverage

@code-twister a test can't cover this line, or hardly.  It's a case of protection against multi-threading here. If the scope exists we return it, otherwise we create it and add it to the map. The line you mention would only be activated if a scope by the same name is added between [after the check to see if it existed by a different thread <--> before it is added to the map by this other thread].
We can't cover that by regular testing.

IT LOOKS AWESOME!!!
Thx @code-twister !
Releasing TP 3.1.0 with the feature!!!

authors: code-twister coveralls dlemures stephanenicolas


text:
Project will not build

This very could be my inexperience with Swift, Xcode, and/or Cocoa Pods. But I'm getting 83 build errors on SQLite.swift. Here is my Podfile.
use_frameworks!

target ‘Percent’ do
	pod 'SQLite.swift', '~> 0.10.1'
end

Is there any good way to share the errors with this community? The error that perplexes me the most is "Expected declaration" on associatedtype UnderlyingType = Void of Expression.swift. Thanks!

Try to update your Xcode. You need the latest version for 0.10.1

@julepka I'm running xcode 7.2 (7C68) which was what i updated yesterday from the app store. Is this the correct version?

@julepka saw #394. I'll update again

Using Xcode 7.3.1, I successfully built to 0.10.1 version this morning. Perhaps this issue can be closed?

Thanks for the update! Closing for now.

I Face the same issue and am in a situation, where i cannot update my xcode. So, is there any other previous version which will work in Xcode 7.2

authors: AaronBorns jakooistra julepka kumaresan-cgvak stephencelis


text:
Upgrade to TinyMCE 4.9.1

When enabling imagetools plugin for current version of TinyMCE (4.1.0) I got the error module definition dependecy not found: tinymce/util/Promise. Upgrading to TinyMCE 4.9.1 made the plugin and the editor work as expected. Tests results on OK.
PS: I followed the guidelines, let me know if there is something else required or something I missed. Thanks!

#1896 is open with a slightly older version - that PR contained some visual issues that needed to be resolved. Can you confirm these aren't present with this PR, and if they are, resolve them first?
Thanks a lot.

@stephenmcd I checked #1896.
Fullscreen issue
I wasn't able to reproduce any issue on my branch. I get the same behavior with the current tinymce version as with the new one (the expected one).
Current:

Updated:

Styling issues
I did had the same issue of the editor blowing out into the left-hand column where field names were listed. The reason behind this change was that the new default value for width was 100% and previously it had auto. I added the width option explicit on the default setup and voila...

As for the
Front-end Editing
I get the same behavior with the new version.
Current:

Updated:

authors: gual stephenmcd

repo: stephenmcd/mezzanine


text:
Use peek-stream

https://github.com/mafintosh/peek-stream
Might help the cache comparison

I don't think this is worth it for this case.

repo: stephenplusplus/gcs-resumable-upload


text:
es-exporter.py中某处api与最新版本不匹配

82-88行的api已经发生了变动。
将elasticsearch包回退到7.x最高版本时报错为
ImportError: cannot import name 'AsyncElasticsearch' from 'elasticsearch'
将elasticsearch包升级到8.0以上版本时报错为
TypeError: AsyncElasticsearch.init() got an unexpected keyword argument 'host'

麻烦确认一下 #7 是否已经修复？

repo: stevapple/elasticsearch-utils


text:
Tollbar not showing

Hi guys,
it's my first time using bootstrap-wysiwyg (which document is very poor, btw) and I'm trying to to this:

$('#editor').wysiwyg();
but toolbar is not there.
js and css files are included.
It's anything wrong?
It's my first time using it, and I didn't find any solutions in your documentation.
Thanks for now.

Good evening, this bootstrap-wysiwyg project is not like some of the other wysiwyg editors you may have seen. Some of the other editors have a toolbar built in to their js/css files. In order to keep the library small we only ship the code that creates the editor itself. You have to create your own toolbar using the documentation provided.
FYI, the documentation does mention this:

Optionally, also create a toolbar (see the source of this page for an example):

In the toolbar, execute simple commands by adding a data-edit attribute to a link.

...

Yes, it could be worded better but it does include all the information you need to get started.

Ok sorry, I thought it was like the others editors. Thanks!

Were you able to get your toolbar to show up?

I'm working on it on my system it just seems to be a bootstrap formatting issue, what version of Bootstrap is it running under in the samples?

@NotAClue I'm not sure I follow. What formatting issue are you referring to? The examples use version Bootstrap 3.3.5.

I'll go back to your examples again thanks

authors: NotAClue RandomlyKnighted jonatasdaniel

repo: steveathon/bootstrap-wysiwyg


text:
Support Cloudformation's new YAML format.

https://aws.amazon.com/blogs/aws/aws-cloudformation-update-yaml-cross-stack-references-simplified-substitution/

stevenjack/cfndsl#243

Damnit, I swear I searched for related tix first.  Thanks

authors: kidbrax kornypoet

repo: stevenjack/cfndsl


text:
cfndsl_examples

I have created a set of examples at:
https://github.com/neillturner/cfndsl_examples
using cfn2dsl
from Amazon AWS Template Snippets
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/CHAP_TemplateQuickRef.html

@neillturner These are great, just thinking of the best way of incorporating these.. @howech shall we put them in the examples folder?

Don't you can always point to them in your docs.

I am not opposed to either approach (adding a link in the dox, or adding
them to the examples).
On Wed, May 27, 2015 at 3:06 PM, Neill Turner notifications@github.com
wrote:

Don't you can always point to them in your docs.
—
Reply to this email directly or view it on GitHub
https://github.com/stevenjack/cfndsl/issues/83#issuecomment-106057449.

I'd like to see these sample files being used as part of a cfndsl test suite. The original json template snippets have many un-resolved references and would need to be tidied up so that cfn2dsl can generate files that can be used by cfndsl to 're-generate' the original json.

I have expanded https://github.com/neillturner/cfndsl_examples with more examples and organised into directories. A little disappointed that google 'cfndsl examples' doesn't show my link. if more people link to it, it will go up the rankings.

@neillturner sorry about the delay on this, I think @yumpy has a good point of these being run as part of the test suite.. I think it makes more sense for them to be part of the repo then so we can enhance the the test suite.
We can add in guidelines for when people add new fields to types that they also need to be added to the corresponding examples, would do you think?

authors: howech neillturner stevenjack yumpy


text:
Monthly income option

Hey, nice project!
There are differences among companies: some of them provide a 13th salary, whereas others, a 14th.
For this purpose, except from having to specifically update the holiday allowance (assumption without investigating the code itself) option, it should be also good to provide an option for the end-user to enter his monthly income, instead of restricting him to his annual.

@toubou91 ,
thank you for your feedback.
it would be really nice addition and I'll try to include option so set monthly income next release

@stevermeister cool, I can also help with this, if we come to an agreement, regarding which fields to hide/show/include for this purpose and also how to provide both options (monthly/annual income) in a visible way to the user.

@stevermeister cool, I can also help with this. What I foresee (and please correct me, if I'm getting any of the logistics out of consideration) as a solution for having both options enabled and not a pain for the end-user, is, providing a solution, where:

Radiobuttons (red signs in the picture below)/ckeckbox (in the same position with the current label for annual income) could be used to toggle the income's state (monthly/annual)
Income components will be updated/hidden/displayed respectively (blue crosses in the picture below are used for the use case of monthly income request; I guess this is the only affected field from a brief look at the listed ones)

If you have another implementation in mind, regarding which fields to hide/show/include for this purpose and how to also provide both options (monthly/annual income) in a visible way to the user, please let me know.

@toubou91,
I've started branch for it. The logic is pretty tricky and you are welcome to contribute ;)

Hello stevermeister
Really like your Dutch income tax calculator, so easy and useful! Thanks for this.
I have one question about it, I've been scratching my head trying to understand this: why does the "holiday allowance included" lower the taxable income and the net income?
I may be thinking about this wrong or misunderstanding this (as I'm new to the Dutch tax system, I am considering moving to the Netherlands), but I can't make sense of it. I understand the holiday allowance to be also taxable income.
To take an example:
If my employer tells me that my annual gross income is 100k
and that the holiday allowance is included in that gross income
it is taxable at the marginal rate
so I would expect the taxable income to be 100k
(and then the income tax to be 45,150 -- if under 65 years old and no 30% tax ruling)
But instead if I click the "holiday allowance included" button, it lowers the taxable income to 92,593! Why?
If the holiday allowance is not included and applies
then does it not get added to the 100k
so that the total taxable income is 108k?
Sorry if I am getting this wrong and am confused... please help me understand.
Thanks in advance for educating me on this!

@toubou91
this functionality will be included in V3, already working on it.
you can check - https://github.com/stevermeister/dutch-tax-income-calculator2 (based on Angular2)

@stevermeister Does the monthly income in the present version (when the Holiday Allowance Included radio button is enabled) tell the nett income each month for 12 months? Or 13 months?
Like have you divided the 13th month income by 12 and added it to each for the 12 months to display the monthly netto income?

12

authors: Cy-napse jimdsouza stevermeister toubou91