text:
Example for List

Hello, I'm having trouble using the List data structure.
This example fails to compile with error. It seems a class using List needs to provide conversion or inherit from Linkable?

/home/adborden/Arduino/libraries/ardukit/src/glist.h: In instantiation of 'void adk::List::append(T*) [with T = Pixel]':
/home/adborden/Arduino/circuit_playground/circuit_playground.ino:323:16:   required from here
/home/adborden/Arduino/libraries/ardukit/src/glist.h:46:44: error: no matching function for call to 'adk::List::append(Pixel*&)'
void append(T node) { Linkable::append(node); };
~~~~~~~~~~~~^~
/home/adborden/Arduino/libraries/ardukit/src/glist.h:24:10: note: candidate: void adk::Linkable::append(adk::Linkable)
void append(Linkable node);
^~~~~~
/home/adborden/Arduino/libraries/ardukit/src/glist.h:24:10: note:   no known conversion for argument 1 from 'Pixel' to 'adk::Linkable*'
exit status 1

using namespace adk;

class Pixel {};

void setup() {
  List<Pixel> list;
  Pixel *p = new Pixel();
  list.append(p);
}

Yes, the Pixel class should inherit from Linkable.
You can find general examples from https://github.com/shnam7/opengcl, which is the original library that ardukit is based on.
List example: https://github.com/shnam7/opengcl/blob/master/samples/ex-list.cpp

Thanks!
Is the list stored in reverse? The iterator reports items backwards from what I would expect:
class LinkableInt : public Linkable {
  int m_i;
public:
    LinkableInt(int i) : m_i(i) {};
    int get() { return m_i; };
};

void loop() {

  Serial.println("reset");
  List<LinkableInt> list;

  for (int i = 0; i < 10; i++) {
    list.append(new LinkableInt(i));
  }

  Serial.print("list: ");
  Serial.println(list.length());

  for (auto i = list.begin(); i != list.end(); i++) {

      Serial.print("loop1: ");
      Serial.print(list.length());
      Serial.print(" ");
      Serial.println(i->get());
  }

  Serial.println();
  Serial.println();
}

output:
reset
list: 10
loop1: 10 9
loop1: 10 8
loop1: 10 7
loop1: 10 6
loop1: 10 5
loop1: 10 4
loop1: 10 3
loop1: 10 2
loop1: 10 1
loop1: 10 0

Found error in glist::append() implementation, and v1.1.1 released with the fix.
Thank for your feedback.

Closing the issue having no further questions.


text:
Level difficulty and player speed

I need to implement different speed settings for the player movement (but not game) depending on difficulty. This will likely mean keeping the FPS constant (120) but changing movement (ex: factor of 1/2). I can do this by multiplying the player physics by 3/2n, then have n represent the difficulty (something like Easy = 3, Normal = 2, Hard = 1) as an integer counter.

An easier way would use a dictionary with the difficulty settings (easy, normal, hard) to translate into their respective physic modifiers (0.6, 0.8, 1.0)

Sounds like everything is good. I'm assuming right now based on the speed, the difficulty is now hard.

Yea, I'll implement it in the next patch

This feature has been added in dsn_class v.0.2.4 and dsn_levels v.0.3.1

source: gharchive/issue

license_type: permissive

license_source: github-api


text:
Add plugins to dist tree

Fixes a discovered problem with plugins not being added on an installed
instance of Arata.

Very minor nitpick, but my preferred usage of mv is -rfv as opposed to -vrf.

source: gharchive/pull-request

authors: Xe shockkolate

repo: shockkolate/arata

license_source: bigquery


text:
Add Jensen-Shannon kernel

Jensen-Shannon kernel is often used in computer vision classification (just as HistogramIntersectionKernel), in case the feature vectors are histograms.
Although it very much depends on your dataset, i'm getting better results on my data set with Jensen-Shannon kernel with normalized histogram features than with histogram intersection kernel

thanks for your patch - please do the minor change and I will happily merge it!

ah yeah sorry about that! just committed the change!
thnx!

repo: shogun-toolbox/shogun


text:
Added periodic kernel

An implementation of the periodic kernel as described in Kernel Cookbook

Out of curiosity, what's this kernel is good for?

All seems really well! Most of my comments are about style and some minor refactorings.
Let me know once you updated, then this is read to be merged

@lisitsyn For doing extrapolation with GPs.

@karlnapf take a look again. Most of your comments should be addressed now.

Oh, I forgot to remove the unnecessary imports. They're gone now. @karlnapf should I squash all these commits?

Changes Unknown when pulling 9eb851b9b4501ddcd0b0d7fbec051e44df29ec4a on sorig:periodic_kernel into ** on shogun-toolbox:develop**.

@lambday These things are now fixed :)

Thanks @sorig :)

Yeah squashing the commits would be good practice

Now squashed and added minor formatting changes (indentation)

Ok this is ready to go now

authors: coveralls karlnapf lambday lisitsyn sorig


text:
Display article number in Product Dropdown (Admin/CMS)

Please describe the feature you would like to see implemented.
Current Behavior
We have a hard time when assigning an Article to a CMS-ProductBox within the Layouts.
Due to there being no article number in front of the name it is difficult to find the one we want to assign.
Wished Behavior
Show the article number in front of the article name in the CMS-ProductBox ProductDropdown.

Hello,
Within our company roadmap and work capacity, we try to address each bug or improvement request but admit that not each one will be resolved. To continue our culture of honesty and openness, we are closing this issue to focus on our roadmap on behalf of all Shopware users.
If you feel like this issue is still impacting you, please create a new issue and let us know.
Thank you again for your valuable feedback.

authors: MarcelSchmaeing SimonNitzsche

repo: shopware/shopware

license: MIT


text:
Product export - CDN URL replaced with saleschannel domain URL for product images

Description:
This is very critical error that has started after change made in NEXT-31770 in ProductExportRenderer class (replaceSalesChannelDomainUrl() method). All product media URLs that should be generated with CDN domain (setted up in shopware.filesystem.public) are now replaced in all generated XML feeds to sales channel domain. This issue has caused that Google Merchant and other 3rd party integrations has stopped indexing products due to 404 on changed product images URL's.
Environment:
Steps to reproduce:
Setup CDN for shopware.filesystem.public (like AWS Cloudfront). Generate XML feed with product images, example: <g:image_link>{{ product.cover.media|sw_encode_media_url }}</g:image_link>
Expected result:
Absolute URL to product image with Cloudfront domain
Actual result:
URL to product image with sales channel domain - which is returning 404.

[public] Shopware automated response: This issue is linked to the internal issue: NEXT-33642
[created from NEXT-33642, comment 496938]


text:
HTML sanitizer on Mail template footer

PHP Version: 8.3.10   | Shopware Version: 6.6.5.1  | Affected area / extension: Platform(Default)

Expected behaviour:
Once again, the sanitization of input fields leads to errors.
In the default plaintext mail footer template, there is this line:
{{ config('core.basicInformation.address')|striptags('
')|replace({"
":"\n"}) }}
This should read in the HTML from the shop address config field, strip all tags except for
 and then replace those with newlines. Suppose you want to extend the footer while keeping this line, so you add some code or copy this line into your own footer template, you hit save, and you'd expect for this default code that comes with the Shopware installation to still work.
Actual behaviour:
However, once again, the HTML sanitizer creates problems. Since it's still enabled on the plaintext fields (after NEXT-30575, it was disabled on the HTML fields), once you hit Save, the line above gets sanitized into:
{{ config('core.basicInformation.address')|striptags('')|replace({"":"\n"}) }}
Not only has the functionality changed since striptags doesn't even preserve the
 anymore to begin with, more importantly the replace function can't handle an empty string as an argument. Because of this, if you're in dev mode, trying to send any mail now fails with errors like this:
Shopware\\Core\\Framework\\Adapter\\Twig\\Exception\\StringTemplateRenderingException: Failed rendering string template using Twig: An exception has been thrown during the rendering of a template (\"Warning: strtr(): Ignoring replacement of empty string\") in \"27a8b8cd4a10901046c914e6eeb1b9fa\" at line 10. in /var/www/html/vendor/shopware/core/Framework/Adapter/Twig/StringTemplateRenderer.php:84
Note that in production mode, the template goes through without the visible warning, but the newline-replacement simply isn't applied.
How to reproduce:
See above.
You can also trigger the same warning if you insert a simplified version of this in any storefront twig template in dev mode:
{{ "foo"|replace({"":"bar"}) }}
So as long as the sanitizer is active on these fields, this method of replacing newlines doesn't work. So either you have to ensure that the contents of the address config field already has separated lines, then simply using |striptags without the rest will work, or the sanitizer simply shouldn't be active here.

Note that this was reported three years ago for 6.4.4.1 in NEXT-17620, but didn't get addressed.

[public] Shopware automated response: This issue is linked to the internal issue: NEXT-38485
[created from NEXT-38485, comment 498373]

authors: janobi shopwareBot


text:
.githooks accessible after plugin deployment

Currently, e.g. with release/tag 3.0.2, the .githooks directory is part of the release tarball and thus it is also accessible after the deployment of the plugin. This is not directly critical given the .githooks directory does not (yet?) contain sensible information but it might make software security scanners yelling and you also never know what happens at forks. Thus my proposal is to add a .htaccess file to restrict the access for the .githooks directory simply.

hey @robert-scheck
sorry for the late response. this directory is part of every plugin of us and only installs the githook and executes it. some code style fixing, etc is going on there. so nothing security critical

authors: mitelg robert-scheck

repo: shopwareLabs/SwagGoogle

license: mit


text:
Navigation Bar is Unstable

When I click on some part of the Navigation Bar (determined by _meta.json), the other part of the bar changes to an older version. I suspect this is a cache problem of Nextra. Has anyone else had this issue?
See below for details. For example, the "Flow" page becomes "Progression", which is from an older version, when one clicks on "Fundamentals".

look at https://nextra.site/docs/docs-theme/theme-configuration#sidebar

look at https://nextra.site/docs/docs-theme/theme-configuration#sidebar

I mean the side bar on the left. All the _meta.json files are configured correctly and the localhost version is flawless. However, when it's pushed to GitHub and deployed by Vercel, the linking becomes incorrect. It's a really weird issue, and don't think the link you sent is helpful on this.

If your repo is public drop the link of repo and deployment link of the website

If your repo is public drop the link of repo and deployment link of the website

Here you go:

Repo: https://github.com/curio-research/duper-docs
Deployment link: https://docs.duper.gg

Does redeploying from within vercel without using existing build cache correct the behavior?

Does redeploying from within vercel without using existing build cache correct the behavior?

Fixed! Thank you.

authors: Mangesh636 Yijia-Chen arno-fukuda

repo: shuding/nextra


text:
fix for MDXProvider/TOC, and bump mdx version to 2.0.0-rc2

fix MDXProvider
fix TOC
bump @mdx-js/react and @mdx-js/loader

ref: https://github.com/mdx-js/mdx/issues/1831

Thank you so much for this, I’ll take a look tomorrow!

thanks for making this great tool! :D

@kanadgupta for sure, just updated

Thank you so much @ChinW @kanadgupta!

thanks @shuding again! just for check, seems the npm version hasn't been updated

authors: ChinW shuding


text:
Login not working.

Hi,
I Installed IK as a cocoapod, and tried to implement login like in the demo, with a webview, but I get a compilation error, that IKLoginScope not found.
I tried the LoginWithBlock function as well, but that takes to the browser outside the application, and after logging in on the website, it takes me to the redirect uri, but does not return control to the application.
Please help.
Thanks
MK

It shows me an error, code :403 and eeror type: Oauthforbiddenexception, error message: implicit authentication is disabled

@Raja413 If you don't use a server component, you need to enable implicit authentication at the Manage clients dashboard.
More information about this can be found at https://instagram.com/developer/authentication/. In particular, the section about Client-Side (Implicit) Authentication.

authors: MPieter Raja413 manishkungwani

repo: shyambhat/InstagramKit


text:
with window.externalTime(), not able to fetch events from stream

Description:

create configuration like below
@App:name('alarm-count-rule')
@App:description('Receive events via HTTP transport and view the output on the console')
@source(type = 'kafka', bootstrap.servers = "0.0.0.0:9092", topic.list = "event_2", group.id = "newprocessor_1", threading.option = "single.thread",
    @map(type = 'json'))
define stream FMNotification (dn string, specificProblem string, notificationType string, presentationName string, moClass string, systemNotificationTime long);
-- @sink(type = 'kafka', bootstrap.servers = "0.0.0.0:9092", topic = "alarmCountRule", is.binary.message = "False",
--  @map(type = 'json'))
-- --define stream OutputStream (dn string, specificProblem string, notificationType string, presentationName string, moClass string, systemNotificationTime long,alarmCount long);
-- define stream OutputStream (dn string, alarmCount long);
@sink(type = 'kafka', bootstrap.servers = "0.0.0.0:9092", topic = "alarmCountRule", is.binary.message = "False",
    @map(type = 'json'))
--define stream OutputStream (dn string, specificProblem string, notificationType string, presentationName string, moClass string, systemNotificationTime long,alarmCount long);
define stream ProessedEvents(dn string, specificProblem string, notificationType string, presentationName string, moClass string, systemNotificationTime long,alarmCount long);

@info(name = 'fmNotification')
from FMNotification#window.externalTime(systemNotificationTime, 5 sec)
--from FMNotification#window.time(3 sec)
select dn,specificProblem,notificationType,presentationName,moClass,systemNotificationTime,count() as alarmCount
group by dn
insert all events into TempStream;
@info(name = 'alarmCount')
from TempStream [alarmCount > 2]
select dn, specificProblem,notificationType,presentationName,moClass,systemNotificationTime, alarmCount
insert into ProessedEvents;

Expected:  once i got 3 events with in 3 seconds, we should get all the participated events.
Issue : instead the last event is printing in stream also the subsequent events satisfies the conditions
Affected Siddhi Version:
5.1.1
OS, DB, other environment details and versions:
Steps to reproduce:

Related Issues:

Could you please help on this.

Hi,
I tried using the above but this doesn't help with requirement. I get only the expired events which doesn't serve any purpose.
The use case is as follows (with an example)
When there are n events within a particular time window, this should be notified.
Example:  If and only if 3 or more events arrive within 5 seconds of each other. (one field to serve as the reference time), all 3 events should be put into an OutputStream
Say, there are these events

Event 1 with fieldTime 12:00:00
Event 2 with fieldTime 12:00:03
Event 3 with fieldTime 12:00:06
Event 4 with fieldTime 12:00:09
Event 5 with fieldTime 12:00:10

In this case, only events 3,4,5 should be forwarded to OutputStream
To achieve this, I tried a different approach
`@App:name('alarm-count-rule-1')
@app:description('Receive events via kafka and put the correlated events in kafka sink')
@source(type = 'kafka', bootstrap.servers = "0.0.0.0:9092", topic.list = "event_2", group.id = "newprocessor_1", threading.option = "single.thread",
@Map(type = 'json'))
define stream TestNotification (id string, dn string, specificProblem string, notificationType string, presentationName string, moClass string, systemNotificationTime long);
define window TestNotificationWindow (id string, dn string, specificProblem string, notificationType string, presentationName string, moClass string, systemNotificationTime long) externalTime(systemNotificationTime, 5 sec);
@sink(type = 'kafka', bootstrap.servers = "0.0.0.0:9092", topic = "alarmCountRule", is.binary.message = "False",
@Map(type = 'json'))
define stream corr_1 (corr_r string, corr1 string, corr2 string);
@info(name = "window")
from TestNotification
insert into TestNotificationWindow;
@info(name = "Event table")
partition with (dn of TestNotificationWindow)
begin
from every( e1=TestNotificationWindow)
-> e2 = TestNotificationWindow[e1.systemNotificationTime < systemNotificationTime and e1.systemNotificationTime + 5000 > systemNotificationTime and e1.id != id]< 2: >
select e1.id as corr_r, e2[0].id as corr1, e2[1].id as corr2
insert into corr_1
end;`
With this the idea is to get the ids of all the correlated events and push it to outputstream. Then it could be used to fetch the data using http query.
However, the problem with this is that this is hardcoded, if somehow the events could be looped, then that would help
select e1.id as corr_r, e2[0].id as corr1, e2[1].id as corr2

Hi @vankin09 ,
We can avoid hardcoding by merging the ids of e1 and all the e2s into a list, using functions of siddhi-execution-list. Please see an example below:
@App:name("SiddhiAppSimple")

@App:description("Description of the plan")

@sink(type='log', prefix='>>>Input')
define stream InputStream(id string, timestamp long);

@sink(type='log', prefix=">>>>>>Collected")
define stream MatchedCorrelatedIdsStream(ids object);

@sink(type='log', prefix='CORRELATED ID')
define stream CorrelatedIdsStream(id string);

from every( e1=InputStream)
         -> e2 = InputStream[e1.timestamp < timestamp and e1.timestamp + 5000 > timestamp and e1.timestamp != timestamp]< 2: >
    select list:addAll(list:create(e1.id), list:merge(e2.id)) as ids
    insert into MatchedCorrelatedIdsStream;

from MatchedCorrelatedIdsStream#list:tokenize(ids)
select value
insert into CorrelatedIdsStreamCorrelatedIdsStream;

from CorrelatedIdsStreamCorrelatedIdsStream#window.batch(1)
select convert(value, 'string') as id
insert into CorrelatedIdsStream;

Sample input simulated to InputStream:
event1,60000
event2,63000
event3,66000
event4,69000
event5,70000

event3, event4, and event5 will be published to CorrelatedIdsStream when simulating the above.
Output:
INFO {io.siddhi.core.stream.output.sink.LogSink} - >>>Input : Event{timestamp=1636459436385, data=[event1, 60000], isExpired=false} (Encoded)
INFO {io.siddhi.core.stream.output.sink.LogSink} - >>>Input : Event{timestamp=1636459437385, data=[event2, 63000], isExpired=false} (Encoded)
INFO {io.siddhi.core.stream.output.sink.LogSink} - >>>Input : Event{timestamp=1636459438385, data=[event3, 66000], isExpired=false} (Encoded)
INFO {io.siddhi.core.stream.output.sink.LogSink} - >>>Input : Event{timestamp=1636459439385, data=[event4, 69000], isExpired=false} (Encoded)
INFO {io.siddhi.core.stream.output.sink.LogSink} - CORRELATED ID : Event{timestamp=1636459440385, data=[event3], isExpired=false}
INFO {io.siddhi.core.stream.output.sink.LogSink} - CORRELATED ID : Event{timestamp=1636459440385, data=[event4], isExpired=false}
INFO {io.siddhi.core.stream.output.sink.LogSink} - CORRELATED ID : Event{timestamp=1636459440385, data=[event5], isExpired=false}
INFO {io.siddhi.core.stream.output.sink.LogSink} - >>>>>>Collected : Event{timestamp=1636459440385, data=[[event3, event4, event5]], isExpired=false} (Encoded)
INFO {io.siddhi.core.stream.output.sink.LogSink} - >>>Input : Event{timestamp=1636459440385, data=[event5, 70000], isExpired=false} (Encoded)

However, we can observe that the created lists don't seem to be getting cleared properly.
I.e, when simulating the following events after simulating event1 - event5 above:
event6,80000
event7,83000
event8,86000
event9,89000
event10,90000

the expected outcome would be just event8, event9, event10, but what we are observing is as follows (event4 and event5 are still present in the list):
INFO {io.siddhi.core.stream.output.sink.LogSink} - >>>Input : Event{timestamp=1636460007318, data=[event6, 80000], isExpired=false} (Encoded)
INFO {io.siddhi.core.stream.output.sink.LogSink} - >>>Input : Event{timestamp=1636460016239, data=[event7, 83000], isExpired=false} (Encoded)
INFO {io.siddhi.core.stream.output.sink.LogSink} - >>>Input : Event{timestamp=1636460024238, data=[event8, 86000], isExpired=false} (Encoded)
INFO {io.siddhi.core.stream.output.sink.LogSink} - >>>Input : Event{timestamp=1636460033711, data=[event9, 89000], isExpired=false} (Encoded)
INFO {io.siddhi.core.stream.output.sink.LogSink} - CORRELATED ID : Event{timestamp=1636460040519, data=[event8], isExpired=false}
INFO {io.siddhi.core.stream.output.sink.LogSink} - CORRELATED ID : Event{timestamp=1636460040519, data=[event4], isExpired=false}
INFO {io.siddhi.core.stream.output.sink.LogSink} - CORRELATED ID : Event{timestamp=1636460040519, data=[event5], isExpired=false}
INFO {io.siddhi.core.stream.output.sink.LogSink} - CORRELATED ID : Event{timestamp=1636460040519, data=[event9], isExpired=false}
INFO {io.siddhi.core.stream.output.sink.LogSink} - CORRELATED ID : Event{timestamp=1636460040519, data=[event10], isExpired=false}
INFO {io.siddhi.core.stream.output.sink.LogSink} - >>>>>>Collected : Event{timestamp=1636460040519, data=[[event8, event4, event5, event9, event10]], isExpired=false} (Encoded)
INFO {io.siddhi.core.stream.output.sink.LogSink} - >>>Input : Event{timestamp=1636460040519, data=[event10, 90000], isExpired=false} (Encoded)

We will have to look into this further, as to how to address this behaviour.

We will also try to check from our end on top of the solution you have provided.
Apart from this, we also had a query related to the out of order. The scenario is:
I have a window configured with externalTime for 5 seconds with event that match is 3 and I have the following sequence of events(external time of the event as mentioned below)

Window: 5 seconds,  number of events: 3
event1, 08000
event2, 09000
event3, 16000
event4, 10000
event5, 25000
event6, 17000
event7, 18000

The expected outcome of this is:
There are 2 different sets found as listed below

event1, event2, event4
event3, event6, event7

Can you let me know if the window used will result in expected outcome ?

Hi @vankin09 ,
Yes, the above requirement can be achieved using Siddhi Pattern. Please see the following Siddhi application that demonstrates this behaviour.
@App:name("PatternMatching")

@sink(type='log', prefix='>>>Input')
define stream InputStream(id string, timestamp long);

@sink(type='log', prefix='MATCHED')
define stream LogStream(e1Id string, e2Id string, e3Id string);

from every( e1=InputStream)
         -> e2 = InputStream[e1.timestamp < timestamp and e1.timestamp + 5000 > timestamp and e1.timestamp != timestamp]< 2: >
    select e1.id as e1Id, e2[0].id as e2Id, e2[1].id as e3Id
    insert into LogStream;

Input:
event1,8000
event2,9000
event3,16000
event4,10000
event5,25000
event6,17000
event7,18000

Output:
INFO {io.siddhi.core.stream.output.sink.LogSink} - >>>Input : Event{timestamp=1636896589549, data=[event1, 8000], isExpired=false} (Encoded)
INFO {io.siddhi.core.stream.output.sink.LogSink} - >>>Input : Event{timestamp=1636896590549, data=[event2, 9000], isExpired=false} (Encoded)
INFO {io.siddhi.core.stream.output.sink.LogSink} - >>>Input : Event{timestamp=1636896591549, data=[event3, 16000], isExpired=false} (Encoded)
INFO {io.siddhi.core.stream.output.sink.LogSink} - MATCHED : Event{timestamp=1636896592549, data=[event1, event2, event4], isExpired=false}
INFO {io.siddhi.core.stream.output.sink.LogSink} - >>>Input : Event{timestamp=1636896592549, data=[event4, 10000], isExpired=false} (Encoded)
INFO {io.siddhi.core.stream.output.sink.LogSink} - >>>Input : Event{timestamp=1636896593549, data=[event5, 25000], isExpired=false} (Encoded)
INFO {io.siddhi.core.stream.output.sink.LogSink} - >>>Input : Event{timestamp=1636896594549, data=[event6, 17000], isExpired=false} (Encoded)
INFO {io.siddhi.core.stream.output.sink.LogSink} - MATCHED : Event{timestamp=1636896595549, data=[event3, event6, event7], isExpired=false}
INFO {io.siddhi.core.stream.output.sink.LogSink} - >>>Input : Event{timestamp=1636896595549, data=[event7, 18000], isExpired=false} (Encoded)

Closing the issue since the answer is provided above

repo: siddhi-io/siddhi


text:
程序收不到事件，重启后才能收到

程序运行一段时间后会一直停在那，日志如下
time="2018-01-26T23:18:46+08:00" level=info msg="save position (mysql-bin.009700, 107712823)"
time="2018-01-26T23:18:49+08:00" level=info msg="save position (mysql-bin.009700, 108339499)"
time="2018-01-26T23:18:52+08:00" level=info msg="save position (mysql-bin.009700, 109019894)"
time="2018-01-26T23:18:55+08:00" level=info msg="save position (mysql-bin.009700, 109902231)"
time="2018-01-26T23:18:58+08:00" level=info msg="save position (mysql-bin.009700, 111015234)"
time="2018-01-26T23:19:01+08:00" level=info msg="save position (mysql-bin.009700, 112478480)"
time="2018-01-26T23:19:04+08:00" level=info msg="save position (mysql-bin.009700, 115700994)"
time="2018-01-26T23:19:07+08:00" level=info msg="save position (mysql-bin.009700, 117695437)"
time="2018-01-26T23:19:10+08:00" level=info msg="save position (mysql-bin.009700, 120735587)"
time="2018-01-26T23:19:15+08:00" level=info msg="save position (mysql-bin.009700, 123046847)"
time="2018-01-26T23:19:22+08:00" level=info msg="save position (mysql-bin.009700, 123604269)"
time="2018-01-26T23:19:25+08:00" level=info msg="save position (mysql-bin.009700, 126066019)"
time="2018-01-26T23:19:28+08:00" level=info msg="save position (mysql-bin.009700, 129723843)"
time="2018-01-27T00:15:55+08:00" level=info msg="save position (mysql-bin.009700, 129730656)"
日志可以看出，正常是每三秒左右会有一个保存位置的日志记录，到23点19分的时候就不正常了，之后一直就没有日志打印了，重启后，就会恢复正常，我想问下，这个是不是与主库的连接断了，导致收不到主库的binlow event,之前问过您，是有断线重连机制的，是那个重连机制不管用了，还是别的什么原因吗

slave_net_timeout 这个有用吗？

貌似没用，因为默认他就设置了这个参数

你用最新的版本，如果在出现了这种情况，麻烦
配置下
# Inner Http status address
stat_addr = "host:12800"

然后
curl http://host:12800/debug/pprof

然后点击 goroutine 看看

authors: itgeniusshuai siddontang

repo: siddontang/go-mysql-elasticsearch


text:
Downloading PDF in python3

Hey @ej2,
found another bug that blocks downloading PDF.

Coverage remained the same at 97.346% when pulling a83f32846e8c716faff0e803229c63e96a9e3983 on wetcoastdev:master into 9ea60a4365a81c494e9d1ff9c8b2d0daa8370ae4 on sidecars:master.

authors: coveralls porn

repo: sidecars/python-quickbooks


text:
[Hotfix] Deactivate src dest check

Hi team!
I need help with this Issue / PR.
As we are deploying calico CNI by default, we have to deactivate the src dest check.
On Master nodes is solved, just added the attribute to the ec2_instance terraform resource.
The problem is within the worker nodes.
Launch configuration resource does not provide a way to deactivate the src dest check, so we have to do it "manually".
I found some alternatives:
As a "plain script" in the cloud-init userdata:

https://stackoverflow.com/questions/57504230/source-dest-check-in-aws-launch-configuration-in-terraform
Using a unit with a docker container (with a golang sw): https://github.com/rubenv/ec2-disable-source-dest

Additional info:
I tried to create an ec2 instance with the same AMI as we are using for the auto-join feature.
Also i have used the worker-join userdata cloud-init configuration (without some attributes).
~~But i can not make it working. ~~
1st problem: The unit file is not written.
2nd problem: If you try the container, it needs EC2 permissions.
Please, i need help with this. I have create a trello card to track it: https://trello.com/c/605OYtQ6
Thanks!

What if launching the container with hostNetwork=true? This should inherits in someway the profile of the ec2 instance and everything should be ok. I know that is not the most sure approach, as long as  is in our cluster managed by us, in a vpc, could be ok imho

What if launching the container with hostNetwork=true? This should inherits in someway the profile of the ec2 instance and everything should be ok. I know that is not the most sure approach, as long as is in our cluster managed by us, in a vpc, could be ok imho

I tried with no luck. I don't know if i did correctly :(

@angelbarrera92  does the iam profile is capable to modify its ec2 attributes?

on top of the permission of putting the right permission for iam profile, can be an idea to implement internally (in the furyagent?) the src/dest host check changes instead of calling an external docker ? I saw the code and is something really easy to be done.  Let me know what do you think!

@angelbarrera92 does the iam profile is capable to modify its ec2 attributes?

I have created the IAM Role for this test but...
f**k I think i executed the instance without the iam instance profile...
the 2nd problem can be fixed ensuring the instance has permissions + running with network host.

on top of the permission of putting the right permission for iam profile, can be an idea to implement internally (in the furyagent?) the src/dest host check changes instead of calling an external docker ? I saw the code and is something really easy to be done and makes sense in the autojoin feature.
Let me know what do you think!

About this... I was thinking about it. Currently the issue is only present in our AWS installation because gke, aks are managed services and OCI does not have this kind of checks.
If you find a better approach, please suggest it ;) I didn't found the "perfect" way.
Thanks for the debug!

 src/dst check AWS

@lzecca78 , you were right. With the IAM Role associated to the instance + docker run --net=host it works.
BUT
I don't know why the file (the unit) is not created -.-
I see some warnings in the cloud-init log:
Feb  4 12:25:59 ip-10-0-1-244 50-motd-news[870]:    Mac. Supports cloud-init for fast, local, cloud devops simulation.
Feb  4 12:26:03 ip-10-0-1-244 cloud-init[1197]: /usr/lib/python3/dist-packages/requests/__init__.py:80: RequestsDependencyWarning: urllib3 (1.25.8) or chardet (3.0.4) doesn't match a supported version!
Feb  4 12:26:03 ip-10-0-1-244 cloud-init[1197]:   RequestsDependencyWarning)
Feb  4 12:26:06 ip-10-0-1-244 cloud-init[1197]: Cloud-init v. 19.3-41-gc4735dd3-0ubuntu1~18.04.1 running 'modules:config' at Tue, 04 Feb 2020 12:26:03 +0000. Up 22.66 seconds.
Feb  4 12:26:07 ip-10-0-1-244 cloud-init[1450]: /usr/lib/python3/dist-packages/requests/__init__.py:80: RequestsDependencyWarning: urllib3 (1.25.8) or chardet (3.0.4) doesn't match a supported version!
Feb  4 12:26:07 ip-10-0-1-244 cloud-init[1450]:   RequestsDependencyWarning)
Feb  4 12:26:07 ip-10-0-1-244 cloud-init[1450]: Cloud-init v. 19.3-41-gc4735dd3-0ubuntu1~18.04.1 running 'modules:final' at Tue, 04 Feb 2020 12:26:07 +0000. Up 27.11 seconds.
Feb  4 12:26:07 ip-10-0-1-244 cloud-init[1450]: Cloud-init v. 19.3-41-gc4735dd3-0ubuntu1~18.04.1 finished at Tue, 04 Feb 2020 12:26:07 +0000. Datasource DataSourceEc2Local.  Up 27.37 seconds

File:
cloud_final_modules:
- [users-groups, always]
- [scripts-user, always]
write_files:
-   content: |
        # My new /etc/sysconfig/samba file

        SMBDOPTIONS="-D"
    path: /tmp/samba
-   content: |
        [Unit]
        Description=Disable EC2 source/dest check
        Requires=docker.service
        After=docker.service

        [Service]
        Type=oneshot
        RemainAfterExit=yes
        ExecStart=/usr/bin/docker run --net=host --rm rubenv/ec2-disable-source-dest

        [Install]
        WantedBy=multi-user.target
    path: /lib/systemd/system/ec2-disable-source-dest.service
    permissions: '0644'
runcmd:
- systemctl daemon-reload
- systemctl enable ec2-disable-source-dest.service
- systemctl start ec2-disable-source-dest.service

Any idea?

Ok....
The problem was between the PC and the chair :(
I was using this file:
cloud_final_modules:
- [users-groups, always]
- [scripts-user, always]
write_files:
-   content: |
        # My new /etc/sysconfig/samba file

        SMBDOPTIONS="-D"
    path: /tmp/samba
-   content: |
        [Unit]
        Description=Disable EC2 source/dest check
        Requires=docker.service
        After=docker.service

        [Service]
        Type=oneshot
        RemainAfterExit=yes
        ExecStart=/usr/bin/docker run --net=host --rm rubenv/ec2-disable-source-dest

        [Install]
        WantedBy=multi-user.target
    path: /lib/systemd/system/ec2-disable-source-dest.service
    permissions: '0644'
runcmd:
- systemctl daemon-reload
- systemctl enable ec2-disable-source-dest.service
- systemctl start ec2-disable-source-dest.service

And the correct one is
#cloud-config
cloud_final_modules:
- [users-groups, always]
- [scripts-user, always]
write_files:
-   content: |
        # My new /etc/sysconfig/samba file

        SMBDOPTIONS="-D"
    path: /tmp/samba
-   content: |
        [Unit]
        Description=Disable EC2 source/dest check
        Requires=docker.service
        After=docker.service

        [Service]
        Type=oneshot
        RemainAfterExit=yes
        ExecStart=/usr/bin/docker run --net=host --rm rubenv/ec2-disable-source-dest

        [Install]
        WantedBy=multi-user.target
    path: /lib/systemd/system/ec2-disable-source-dest.service
    permissions: '0644'
runcmd:
- systemctl daemon-reload
- systemctl enable ec2-disable-source-dest.service
- systemctl start ec2-disable-source-dest.service

Can you find the difference? #cloud-config 🤦♂
After fixing it, it started to work

So the PR is ready to be evaluated by the team as it works ;)

Sure it needs EC2 permissions, I would avoid the docker container + systemd unit and go with the simple script

I'd prefer to have plain script rather than the docker systemd unit

I'd prefer to have plain script rather than the docker systemd unit

Uhmmmmmm.
Do you mean you don't like the "docker run" inside the unit approach or the "systemd" one?

Agree with Philippe. The container embeds 15 lines of go code that can easily be ported to a script. This is faster and avoid layers (systemd that launch a container)

So, you are suggesting to replace the unit file + systemctl commands with:
runcmd:
  - AWS_AZ="$(curl -s http://169.254.169.254/latest/meta-data/placement/availability-zone)"
  - AWS_REGION="${AWS_AZ::-1}"
  - INSTANCE_ID="$(curl -s http://169.254.169.254/latest/meta-data/instance-id)
  - aws ec2 modify-instance-attribute --no-source-dest-check --instance-id ${INSTANCE_ID} --region ${AWS_REGION}

I am almost sure that aws cli is already present in the instance, but we have to double check before going to this approach

@angelbarrera92 the change is persistent across reboots? Or you need to apply it every time?

@angelbarrera92 the change is persistent across reboots? Or you need to apply it every time?

It's a one shoot configuration so it's persistent across reboots.

$ AWS_AZ="$(curl -s http://169.254.169.254/latest/meta-data/placement/availability-zone)"
$ AWS_REGION="$(echo $AWS_AZ | sed 's/.$//')"
$ INSTANCE_ID="$(curl -s http://169.254.169.254/latest/meta-data/instance-id)"
$ aws ec2 modify-instance-attribute --no-source-dest-check --instance-id ${INSTANCE_ID} --region ${AWS_REGION}

Tested, and working. From the previous version i had to change the AWS_REGION command from:
$ AWS_REGION="${AWS_AZ::-1}"

to:
$ AWS_REGION="$(echo $AWS_AZ | sed 's/.$//')"

Because runCmd is executed with /bin/sh instead of /bin/bash 🤦♂
Now the PR is ready to be discussed again ;)

LGTM, let's merge it!

repo: sighupio/fury-kubernetes-aws


text:
Feature/update grafana fix 122

Closing this task request as completed.
Reference:

Task Request #122

 (2023-02-07)
Bug Fixes

grafana: update annotations reference to 9.3.6 (af961f7)

Features

image: update grafana and sidecard image (bb0e106)

Documentation

grafana: update README.md with the new version (e874b98)

Also, is 9.3.6 the same version used in Kube prometheus upstream project?

authors: nutellinoit smerlos

repo: sighupio/fury-kubernetes-monitoring


text:
Python 3.5 and Ubuntu 16.04

We can now update to the next available Ubuntu LTS and safely use Python 3.5.

@co1in the upgrade to Python 3 might be more involved than you think: https://docs.djangoproject.com/en/1.8/topics/python3/ (note that's documentation specifically for Django 1.8, which you're running).

@austintrose Just looked over the link.  It doesn't look like most of that will effect us.  Plus I've been using Python 3 for all my development branches and haven't run into an issue yet besides importing changing.

authors: austintrose tmwbook

repo: sigmapi-gammaiota/sigmapi-web


text:
Decrypt dotenv files

Hi, Thanks for the extension.
Is it possible to work with dotenv files?
I created a dotenv file
KEY=value
KEY2=value2

Then encryped it sops -e -i enc.env.
My .sops.yaml is
---
creation_rules:
  - path_regex: \.enc\.yaml$
    encrypted_regex: '^(data|stringData)$'
    pgp: >-
      <myGPGkeID>

  - path_regex: enc\.env$
    pgp: >-
      <myGPGkeID>

However autodecrypt doesn't work.

Hi,
I'm not sure, but the dotenv files look like an INI file format. So it should be supported by default.
The only requirement is to select right content/type (mime-type) of the currently opened encrypted file. It's usually detected based on file extension xxx.ini or maybe using file cli tool.
However, the .env extension is probably not recognized as INI file. You can change that globally somewhere in vscode settings or individually for every single file in status bar on right bottom of vscode.

.env is a key=value pairs to set environment variables. It's not an ini files. dotenv is one of supported input and output sops formats. As well as json, yaml. See:
sops --help | grep -i type

   --input-type value                       currently json, yaml, dotenv and binary are supported. If not set, sops will use the file's extension to determine the type
   --output-type value                      currently json, yaml, dotenv and binary are supported. If not set, sops will use the input file's extension to determine the output format

Hi, Thanks for the extension.
Is it possible to work with dotenv files?
I created a dotenv file
KEY=value
KEY2=value2

Then encryped it sops -e -i enc.env. My .sops.yaml is
---
creation_rules:
  - path_regex: \.enc\.yaml$
    encrypted_regex: '^(data|stringData)$'
    pgp: >-
      <myGPGkeID>

  - path_regex: enc\.env$
    pgp: >-
      <myGPGkeID>

However autodecrypt doesn't work.
This is how I solved, I hope it helps

 - path_regex: .*.env
   encrypted_regex: ^.([a-z]|[A-Z]|[0-9])*

dotenv file format is supported since version 0.5.0. Check the changelog.
Maybe the appropriate extension of dotenv file mimeType is required. Try this one
Name: DotENV
Id: mikestead.dotenv
Description: Support for dotenv file syntax
Version: 1.0.1
Publisher: mikestead
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=mikestead.dotenv

authors: albertogalan misak113 vterdunov

repo: signageos/vscode-sops


text:
Disabling internal metrics

Hi,
I would like to use otel collector to only send metrics from specific namespaces. How can I disable sending of the internal metrics, specifically otelcol?
I have setup exclude filter for containers, but these doesn't seem to have effect for internal metrics.

You are talking about our helm chart - please advise if incorrect.
This is the code we use to manage the internal metrics pipeline:
https://github.com/signalfx/splunk-otel-collector-chart/blob/main/helm-charts/splunk-otel-collector/templates/config/_otel-collector.tpl#L248
We don't support shutting off internal collector metrics as they are useful to measure the health of the ingest pipeline. If you'd like to turn those off, please change the helm chart to reflect your needs, and please feel free to contribute the changes back.

authors: Jylhis atoulme

repo: signalfx/splunk-otel-collector


text:
Transfer of ownership of cosign-gatekeeper-provider

Description
As you might see from the Tweets[^1], we (w/@sozercan @dentrax) developed a new provider[^2] to adapt cosign to OPA Gatekeeper's new feature called ExternalData to make cosign available to Gatekeeper users to verify container image signatures. Furthermore, @LachlanEvenson already wrote a blog post[^3] about this provider 🤩
Let's move and maintain this repository under the sigstore organization if you accept this, WDYT @cpanato @hectorj2f @dlorenc?
[^1]: 🐦 https://twitter.com/developerguyba/status/1463403309394497537?s=20
[^2]: 🐙 https://github.com/developer-guy/cosign-gatekeeper-provider
[^3]: ✍ https://medium.com/@LachlanEvenson/verifying-container-signatures-on-kubernetes-with-gatekeeper-19a4519c3016

+1! Do you need your own repo for this or do you want it to be in the same repo here?

let me try to move this to the sigstore foundation because maybe I've enough permissions to do that, is that ok for you?

I think you probably have to request it and then someone on the org approves.

I couldn't find any request page for it, I just hit the transfer ownership button, and it happened. Can you please remove it unless you accept this, I couldn't re-transfer it to me. @dlorenc
https://github.com/sigstore/cosign-gatekeeper-provider

The next thing is that maybe we could improve its CI/CD maintenance with @cpanato, would you mind helping me to figure this out 🤩🥳 But, I really want to do the hard work to learn more about maintaining an opensource project😋🙏

authors: developer-guy dlorenc

repo: sigstore/cosign


text:
Unable to load KMS public key using the signature package

*** Background ***
I am writing an AWS lambda function that will act as handler for AWS EventBridge events.
The EventBridge rule is triggered when images are pushed to ECR.
Inside the lambda handler, I am basically loading the KMS public key, and using that key to check if the image pushed has a valid cosign signature.
The problem is that I am not able to load the KMS key.
Relevant code:
import
	sigs "github.com/sigstore/cosign/pkg/signature"
	sigstoresigs "github.com/sigstore/sigstore/pkg/signature"

<...>

func getPublicKey(ctx context.Context, accountID, region string) (sigstoresigs.Verifier, error) {
	<...>
	keyARN := "alias/kms-key-name"
	return sigs.LoadPublicKey(ctx, fmt.Sprintf("awskms:///%s", keyARN))
	<...>
}

func HandleRequest(ctx context.Context, event ECRPushEvent) {
	pubKey, err := getPublicKey(ctx, event.Account, event.Region)
	if err != nil {
		log.Printf("[ERROR] Getting key: %v", err)
		return

<...>

}

*** Error I am getting ***
[ERROR] Getting key: loading URL: unrecognized scheme: awskms://

It looks like the signature package doesn't think it is a valid kms key reference, and attempts to load it via file system or URL.
*** Things I have tried ***

I tried multiple format for declaring the kms key (alias, etc), and nothing worked
The lambda seem to have proper execution rules that allows it to access the kms key (GetPublicKey and Verify Permissions)

*** Content of my go.mod ***
module main

go 1.18

require (
	github.com/aws/aws-lambda-go v1.34.1
	github.com/google/go-containerregistry v0.11.0
	github.com/pkg/errors v0.9.1
	github.com/sigstore/cosign v1.10.1
	github.com/sigstore/sigstore v1.3.1
)

What am I doing wrong?

I was able to resolve the issue by adding this to my import section:
import (
	_ "github.com/sigstore/sigstore/pkg/signature/kms/aws"
)


text:
Pro polskou účetní je odesílání upomínek moc pracné

Odeslání jedné upomínky z InsERTu zabere 4-5 kliků. Upomínky by se měly odesílat automaticky.

Upomínky by se měly odesílat zákazníkovi, když má alespoň jednu nezaplacenou fakturu 5 dnů po termínu splatnosti.
Jedna upomínka, by měla obsahovat všechny nezaplacené faktury pokud jich je víc.

Příklad upomínky
Crystal Reports ActiveX Designer - {A3EE9F5D-8A1F-44DD-8F88-C36642117DCF}.pdf

Existuje komerční modul za 300 PLN který to řeší
http://www.soft-help.pl/index.php/zewntrzne-dodatki-insertgt/38-emailersgt-monity


text:
invite users to join LD when invited as a project member

right when a user adds a project member, if there's no user matching that email address then nothing happens. We would like to send that user an email so they can create an account.

we don't want to store any PII in our database before the user has signed up. To achieve that we will create a jwt with the signup details, including the project that the user should be added too once they have signed up an account. This is secure because we validate the jwt was signed by us.

After discussion with Kevin, we'll reuse the VerifyEmail endpoint from LoginController. The email we generate will link to the verification URL, and we'll just tweak VerifyEmail so that if user == null, instead of returning 404, we create the user.

authors: hahn-kev rmunn

repo: sillsdev/languageforge-lexbox


text:
Support individual paratext project files, not just a zip

USFM, settings.xml and custom.vrs.  This will allow just the delta to be sent to the API and not require as much zipping/unzipping.

This will also be needed for AQUA integration - making the large text file aligned with vref.txt.

Related to this: https://github.com/sillsdev/serval/issues/174

The zipped files work just fine for now.  No need to rush this.

Given the related issue in Serval was closed, I'm closing this.

repo: sillsdev/machine


text:
Clean up - Remove obsolete, duplicate and unused code

Is your feature request related to a problem? Please describe.
Modules within Monkey365 were designed to work independently from each other and currently some internal modules have the same logic code to perform tasks. The following are some examples of duplicate code:
https://github.com/silverhack/monkey365/blob/main/core/modules/monkeyhtml/private/utils/Update-PsObject.ps1
https://github.com/silverhack/monkey365/blob/main/core/modules/monkeyutils/public/Update-PsObject.ps1
https://github.com/silverhack/monkey365/blob/main/core/modules/monkeyjob/private/Get-CommandInfo.ps1
https://github.com/silverhack/monkey365/blob/main/core/modules/monkeyast/public/Get-CommandInfo.ps1
Additionally, PSScriptAnalyzer generate some warnings that should be addressed in order to publish the module to PowerShell Gallery #112.
Describe the solution you'd like
Add new helpers functions so each module can call the helper functions with parameters instead. Additionally, consider to remove some packages and internal funcions that are not used anymore.

The main branch was updated. Duplicate code was removed, as well as some modules that were not used anymore.
Cheers,


text:
Installation crashes SS 4-alpha5

Fatal error: Uncaught exception 'MJS\TopSort\CircularDependencyException' with message 'Circular dependency found: modelascontrollerroutes->mysite->modelascontrollerroutes' in /project.dev/vendor/marcj/topsort/src/CircularDependencyException.php:34 Stack trace: #0 /project.dev/vendor/marcj/topsort/src/Implementations/BaseImplementation.php(57): MJS\TopSort\CircularDependencyException::create(Array) #1 /project.dev/vendor/marcj/topsort/src/Implementations/ArraySort.php(63): MJS\TopSort\Implementations\BaseImplementation->throwCircularExceptionIfNeeded(Object(stdClass), Array) #2 /project.dev/vendor/marcj/topsort/src/Implementations/ArraySort.php(75): MJS\TopSort\Implementations\ArraySort->visit(Object(stdClass), Array) #3 /project.dev/vendor/marcj/topsort/src/Implementations/ArraySort.php(75): MJS\TopSort\Implementations\ArraySort->visit(Object(stdClass), Array) #4 /project.dev/vendor/marcj/topsort/src/Implementation in /project.dev/vendor/marcj/topsort/src/CircularDependencyException.php on line 34

Thanks for reporting, this has already been resolved in https://github.com/silverstripe/silverstripe-framework/pull/6684.
Please remove the before/after block in mysite/_config.yml, thanks!

hi
i got an error when dev/build run
Stack trace:
#0 /var/www/html/straynew/vendor/marcj/topsort/src/Implementations/BaseImplementation.php(57): MJS\TopSort\CircularDependencyException::create(Array)
#1 /var/www/html/straynew/vendor/marcj/topsort/src/Implementations/ArraySort.php(63): MJS\TopSort\Implementations\BaseImplementation->throwCircularExceptionIfNeeded(Object(stdClass), Array)
#2 /var/www/html/straynew/vendor/marcj/topsort/src/Implementations/ArraySort.php(75): MJS\TopSort\Implementations\ArraySort->visit(Object(stdClass), Array)
#3 /var/www/html/straynew/vendor/marcj/topsort/src/Implementations/ArraySort.php(75): MJS\TopSort\Implementations\ArraySort->visit(Object(stdClass), Array)
#4 /var/www/html/straynew/vendor/marcj/topsort/src/Implementations/ArraySort.php(115): MJS\TopSort\Imple in /var/www/html/straynew/vendor/marcj/topsort/src/CircularDependencyException.php on line 34

with
"silverstripe/cms": "4.0.0-alpha5",
"silverstripe/framework": "4.0.0-alpha5",

nn

repo: silverstripe/silverstripe-framework


text:
TLN Update translations

Automated translations update generated using silverstripe/tx-translator

Needs to be rerun


text:
BUGFIX: check token and UID before member autologin

Don't assume that the cookie is correct before trying to log in a member
Fixes #5565

thanks

authors: dhensby stevie-mayhew


text:
FIX: Redirect loop with multiple URL tokens (fixes #8607)

3.x port of https://github.com/silverstripe/silverstripe-framework/pull/8610

Merged up to 3

authors: kinglozzer robbieaverill


text:
Not working with DateTime

I try to insert a row in the table:

However, I get this error.
E/flutter (14884): [ERROR:flutter/lib/ui/ui_dart_state.cc(148)] Unhandled Exception: type 'DateTime' is not a subtype of type 'int' in type cast
E/flutter (14884): #0      _DefaultValueSerializer.fromJson (package:moor/src/runtime/data_class.dart:53:55)
E/flutter (14884): #1      new Person.fromJson (package:moor_example/model/model.g.dart:77:29)

Why does the library try to convert the DateTime into an int?

The default serialization behavior will represent DateTimes as a unix timestamps and hence convert them to an int, so you will get ints from .toJson(). Because toJson and fromJson are compatible, moor expects a DateTime value to be encoded as an int.
If you're working with json maps not generated from moor, you can still customize the serialization behavior by passing the serializer parameter.
class CustomSerializer extends ValueSerializer {
  const CustomSerializer();
  @override
  T fromJson<T>(json) => json;

  @override
  toJson<T>(T value) => value;
}

You can then use this serializer with new Person.fromJson($yourData, serializer: const CustomSerializer()) and $person.toJson(serializer: const CustomSerializer()).

So that's it. I noticed that, when using person.toJson(), the field birthdate returns an int with the Unix time in millis. I can use it.

The default serialization behavior will represent DateTimes as a unix timestamps and hence convert them to an int, so you will get ints from .toJson(). Because toJson and fromJson are compatible, moor expects a DateTime value to be encoded as an int.
If you're working with json maps not generated from moor, you can still customize the serialization behavior by passing the serializer parameter.
class CustomSerializer extends ValueSerializer {
  const CustomSerializer();
  @override
  T fromJson<T>(json) => json;

  @override
  toJson<T>(T value) => value;
}

You can then use this serializer with new Person.fromJson($yourData, serializer: const CustomSerializer()) and $person.toJson(serializer: const CustomSerializer()).

How to implement this while declaring the table definition?


text:
Build Breaker don't see SonarCloud scans

We have CI/CD, built on AzureDevops. Quality Gate Job with SonarCloud scan.
Everything was OK and it was working. Here is example of output:
==============================================================================
Task         : SonarCloud build breaker
Description  : Break the build when the quality gate fails.
Version      : 2.1.2
Author       : Simon de Lang
Help         :
==============================================================================
Number of analyses in this build: 1
Summary of statusses: "ERROR"
##[error]The analysis did not pass the quality gate because because at least one analysis has has the status 'ERROR'. Attempting to fail the build!
Finishing: Break build on quality gate failure

Then 12.06.2023 I turned off build breaker (needed for testing)
And the problem is that when I turned it on back yesterday (14.06.2023), SonarCloud Build Breaker stopped to break builds when Sonar scan find something. So I checked the out put of the build breaker step and found that it cannot see the scan. result is following:
==============================================================================
Task         : SonarCloud build breaker
Description  : Break the build when the quality gate fails.
Version      : 2.1.2
Author       : Simon de Lang
Help         :
==============================================================================
Number of analyses in this build: 0
Summary of statusses:
Finishing: Break build on quality gate failure

What that could be?
The only difference I see is that version of SonarCloud task is different. In scans few days ago, SonarCloud Publish  task version was 1.11.3. Now - it is 1.13.0
Here is also part of YAML used in our pipeline:
- task: SonarCloudAnalyze@1
  displayName: 'SonarCloud: Code Analysis'

- task: SonarCloudPublish@1
  displayName: 'SonarCloud: Publish Result'

- task: SimondeLang.sonarcloud-buildbreaker.sonar-buildbreaker.sonarcloud-buildbreaker@2
  displayName: 'SonarCloud: Break build on quality gate failure'
  condition: eq(variables['Build.Reason'], 'PullRequest')
  inputs:
    SonarCloud: 'SonarCloud'
    organization: 'XXXXXXXXXXXXX'

After some investigation found following:

Build Breaker task trying to find report-task.txt using following path pattern: $(Agent.TempDirectory)/sonar/$(Build.BuildNumber)/test/report-task.txt
SonarCloud tasks by default saving report-task.txt file in $(Agent.TempDirectory)/sonar/$(Build.Id)/<XXXXXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXX>/report-task.txt.

After adding following extraProperties for for SonarCloud Prepare task sonar.scanner.metadataFilePath=$(Agent.TempDirectory)/sonar/$(Build.BuildNumber)/test/report-task.txt , Build Breaker found report-task.txt and again started to work as expected.
My assumption is that newest version of SonarCloud tasks changed default folder for report-task.txt file which Build Breaker task was referenced to. By adding extra property in SonarCloud Prepare task with explicit path to report-task.txt file, Build Breaker able to find the file and work as expected:
- task: SonarCloudPrepare@1
  displayName: 'SonarCloud: Prepare for Analysis'
  inputs:
    SonarCloud: XXXXXXX
    organization: 'XXXXXXXXXXXXXXX'
    projectKey: '$(Build.Repository.Name)'
    projectName: $(Build.Repository.Name)
    extraProperties: |
      sonar.scanner.metadataFilePath=$(Agent.TempDirectory)/sonar/$(Build.BuildNumber)/test/report-task.txt

repo: simondel/sonar-buildbreaker-vsts


text:
Installing on Linux (in GitHub Actions) results in no entities command

Split from:

https://github.com/simonw/simonwillisonblog/issues/273#issuecomment-1180749682

runner@fv-az371-321:~/work/datasette/datasette$ pip install sqlite-comprehend
Collecting sqlite-comprehend
  Downloading sqlite_comprehend-0.2-py3-none-any.whl (12 kB)
Requirement already satisfied: click in /usr/lib/python3/dist-packages (from sqlite-comprehend) (7.0)
Collecting boto3
  Downloading boto3-1.24.27-py3-none-any.whl (132 kB)
     |████████████████████████████████| 132 kB 34.8 MB/s
Collecting sqlite-utils
  Downloading sqlite_utils-3.27-py3-none-any.whl (61 kB)
     |████████████████████████████████| 61 kB 13.9 MB/s
Collecting s3transfer<0.7.0,>=0.6.0
  Downloading s3transfer-0.6.0-py3-none-any.whl (79 kB)
     |████████████████████████████████| 79 kB 20.2 MB/s
Collecting botocore<1.28.0,>=1.27.27
  Downloading botocore-1.27.27-py3-none-any.whl (9.0 MB)
     |████████████████████████████████| 9.0 MB 71.5 MB/s
Collecting jmespath<2.0.0,>=0.7.1
  Downloading jmespath-1.0.1-py3-none-any.whl (20 kB)
Collecting python-dateutil
  Downloading python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
     |████████████████████████████████| 247 kB 97.5 MB/s
Collecting sqlite-fts4
  Downloading sqlite_fts4-1.0.1-py3-none-any.whl (10.0 kB)
Collecting click-default-group-wheel
  Downloading click_default_group_wheel-1.2.2-py3-none-any.whl (3.9 kB)
Collecting tabulate
  Downloading tabulate-0.8.10-py3-none-any.whl (29 kB)
Requirement already satisfied: urllib3<1.27,>=1.25.4 in /usr/lib/python3/dist-packages (from botocore<1.28.0,>=1.27.27->boto3->sqlite-comprehend) (1.25.8)
Requirement already satisfied: six>=1.5 in /usr/lib/python3/dist-packages (from python-dateutil->sqlite-utils->sqlite-comprehend) (1.14.0)
Installing collected packages: python-dateutil, jmespath, botocore, s3transfer, boto3, sqlite-fts4, click-default-group-wheel, tabulate, sqlite-utils, sqlite-comprehend
Successfully installed boto3-1.24.27 botocore-1.27.27 click-default-group-wheel-1.2.2 jmespath-1.0.1 python-dateutil-2.8.2 s3transfer-0.6.0 sqlite-comprehend-0.2 sqlite-fts4-1.0.1 sqlite-utils-3.27 tabulate-0.8.10
runner@fv-az371-321:~/work/datasette/datasette$ sqlite-comprehend --help
Usage: sqlite-comprehend [OPTIONS] COMMAND [ARGS]...

  Tools for running data in a SQLite database through AWS Comprehend

Options:
  --version  Show the version and exit.
  --help     Show this message and exit.
runner@fv-az371-321:~/work/datasette/datasette$ sqlite-comprehend entities --help
Usage: sqlite-comprehend [OPTIONS] COMMAND [ARGS]...
Try "sqlite-comprehend --help" for help.

Error: No such command "entities".

From experimenting it looks like this line is at fault: https://github.com/simonw/sqlite-comprehend/blob/8eae623c46a642d26d9a903d3799461f3a8b1800/sqlite_comprehend/cli.py#L14-L18
It should be:
 @cli.command()`

No idea why the tests passed or why it worked on my laptop though!

repo: simonw/sqlite-comprehend


text:
Different result using annotate_OT or annotate

Dear author,
I test the annotate and the annotate_OT, but their results were very different. The annotate_OT result is better according to the priori knowledge. So I want to known why they are different and how to choose the better method.
tc.tl.annotate(adata, ref, method='OT',result_key='TACCO',annotation_key='cell_type',assume_valid_counts=True)
df = tc.tl.annotate_OT(adata, ref,annotation_key='cell_type')
Looking forward to your reply, and thank you in advance.
quanlong

Hi,
the tc.tl.annotate with method='OT' indeed calls tc.tl.annotate_OT internally (actually with an internal version of it). But before it does so, it does extra things, like wrapping it with additional functionality.
You can disable most that explicitly, e.g., by adding bisections = 0, platform_iterations = -1, remove_constant_genes = False to the arguments of tc.tl.annotate.
What choice of parameters is the best is depending on your use case. If you have strong reason to believe that the prior knowledge is correct, then a choice of parameters that reproduces this more might make sense. For that you might want to tune the lamb parameter of tc.tl.annotate_OT (which is also understood by tc.tl.annotate with method='OT').
Another difference between the two function call is in the priors:
tc.tl.annotate_OT uses a flat prior over celltypes, while tc.tl.annotate uses a prior that takes the cell type proportions of the reference into account.
So in order to produce the same output as tc.tl.annotate_OT with tc.tl.annotate, you would have to create a flat prior for annotate, e.g., with
prior = pd.Series({ct:1 for ct in adata_ref.obs['celltype'].unique()}) and then call annotate like
df = tc.tl.annotate(adata, adata_ref, annotation_key='celltype', method='OT', bisections = 0, platform_iterations = -1, remove_constant_genes = False, annotation_prior = prior)
In general, we recommend to use tc.tl.annotate with appropriate parameters as it is more flexible. In our experience the default behavior works quite well in many cases, but in most cases the performance can be further improved by tuning parameters.
I hope this helps!

authors: JWatter QuanlongJiang

repo: simonwm/tacco


text:
Framework for building mth5 from IRIS via network and station IDs

The operate_aurora.ipynb explicitly constructs a dataframe specifying the times that network, station, channel and time intervals, but this is not a practical workflow in general.
Rather, we would like a tool by which a user can specify an iterable of (network_id, station_id) pairs, and then, using the obspy FDSN inventory tools, returns a request dataframe (df).  This df can then be sent to make_mth5 or editted manually before the make call.
Several tools are already available for this, they just need to be stitched together.

aurora/sandbox/io_helpers/fdsn_dataset_config.py has a get_inventory_from_client method, that can be used per station network
The inventory can then be converted to experiment using XMLInventoryMTExperiment(), example in io_helpers/make_mth5_helpers.py
Then make an mth5 from the experiment
invoke the channel summary method of mth5
request_df = channel_summary_to_make_mth5(summary_df, network=network)

Of course, while making this method there is plenty of tidying, factoring, and deprecation of old methods that can be done as well

This is partly addressed on the easrthscope_tests branch, but still needs formalizing, especially w.r.t. wildcards and very long time intervals.

repo: simpeg/aurora


text:
setting crossOriginWhiteList resulting in error

TypeError: undefined is not a function
    at ajaxPrefilter (simple-auth.amd.js:1278)
    at Function.<anonymous> (jquery.js:8670)
    at Function.jQuery.extend.each (jquery.js:384)
    at inspect (jquery.js:8669)
    at inspectPrefiltersOrTransports (jquery.js:8682)
    at Function.jQuery.extend.ajax (jquery.js:9098)
    at __exports__.default.Base.extend.makeRequest (simple-auth-oauth2.amd.js:234)
    at __exports__.default.Base.extend.authenticate (simple-auth-oauth2.amd.js:167)
    at initializePromise (ember.debug.js:46984)
    at new Promise (ember.debug.js:48612)`

I get the above error when i set crossOrigingWhitelist to authorise API calls. Below is the code where I am setting the authoriser and whitelist in environment.js
ENV['simple-auth'] = {
      authenticationRoute: 'sign_in',
      authorizer: 'simple-auth-authenticator:oauth2-password-grant',
     crossOriginWhitelist: ['http://localhost.dev']
    };
    ENV['simple-auth-oauth2'] = {
        serverTokenEndpoint: 'http://localhost.dev/oauth/token'
    };

The above code is in the if (environment ==='development') but have tried moving it outside as well
EDIT: The above error occurs on sign in, When i have crossOriginWhitelist set in the environment.js file I can't even log in

After a bit more investigation, there error occurs on the line
ajaxPrefilter.authorizer.authorize(jqXHR, options);

in simple-auth.amd.js. It seems that ajaxPrefilter.authorizer is defined, but authorize is not. When the crossOriginWhitelist property is not set this breakpoint is never reached

Fixed it. The authroizer option was incorrect, needed to be 'simple-auth-authorizer:oauth2-bearer'

repo: simplabs/ember-simple-auth


text:
Propagate IsProductPriceIncludeTax in CartService.MigrateCart (#886)

Please check benevolently ...

The code looks nice. Thanks!

@thiennn: Sorry about the 7a223f1 commit. I didn't think it would make it into the pull request ...

@fhebel no problem. I have revert it back.
Thank you again for your great work

authors: fhebel thiennn

repo: simplcommerce/SimplCommerce


text:
How to specify which objects to manipulate in pick and move tasks

Hi,
I was wondering how can I specify which object(s) to manipulate in the pick objects and move A to B tasks? Based on my understanding of the code, the candidate set of possible objects are defined like here. Then I should change the options input to the reset function to specify which object(s) to use in the environment. Is my understanding correct? Thanks!

The two envs have different initialization mechanisms. move A to B uses episode-based randomization, so you can do so by passing in episode_id like https://github.com/simpler-env/SimplerEnv/blob/0b13b698138576c449f8853c99b04202e3c04952/simpler_env/evaluation/maniskill2_evaluator.py#L82 . For pick objects , you can do so by passing in different seeds in the options

Thanks a lot! A further question is that it seems that only a subset of objects or triplets of objects are used for the pick and move tasks (like here and here). I was wondering that how are these task configurations chosen? Are they chosen to reflect the objects that are seen in the OXE demos? If that's the case, can I add more configurations to test out-of-distribution generalization to unseen objects or triplets in OXE? Thanks!

These are not necessarily seen by OXE demos; they are just randomly chosen.

Where can I find a full list of all the possible objects supported in simpler for picking and moving tasks then?

Checkout these json files at https://github.com/simpler-env/ManiSkill2_real2sim/tree/cd45dd27dc6bb26d048cb6570cdab4e3f935cc37/data/custom which are loaded in the envs

repo: simpler-env/SimplerEnv


text:
highlight not works

how to debug it?

I am observing the same behaviour.

@simrat39 you should perhaps also use the new treesitter highlight groups (e.g. @namespace) I think (from the readme), that the old ones are used

I confirm that using @<...> works: for the lazy, these are the correct settings now:
{
		File = {hl = "@text.uri" },
		Module = {hl = "@namespace" },
		Namespace = {hl = "@namespace" },
		Package = {hl = "@namespace" },
		Class = {hl = "@type" },
		Method = {hl = "@method" },
		Property = {hl = "@method" },
		Field = {hl = "@field" },
		Constructor = {hl = "@constructor" },
		Enum = {hl = "@type" },
		Interface = {hl = "@type" },
		Function = {hl = "@function" },
		Variable = {hl = "@constant" },
		Constant = {hl = "@constant" },
		String = {hl = "@string" },
		Number = {hl = "@number" },
		Boolean = {hl = "@boolean" },
		Array = {hl = "@constant" },
		Object = {hl = "@type" },
		Key = {hl = "@type" },
		Null = {hl = "@type" },
		EnumMember = {hl = "@field" },
		Struct = {hl = "@type" },
		Event = {hl = "@type" },
		Operator = {hl = "@operator" },
		TypeParameter = {hl = "@parameter" },
	}

This is an error caused by the tree-sitter updated, back to addc129a4f272aba0834bd0a7b6bd4ad5d8c801b will wok again.

I'm facing the same issue and this isn't working for me:
require("symbols-outline").setup({
            symbols = {
                File = {hl = "@text.uri" },
                Module = {hl = "@namespace" },
                Namespace = {hl = "@namespace" },
                Package = {hl = "@namespace" },
                Class = {hl = "@type" },
                Method = {hl = "@method" },
                Property = {hl = "@method" },
                Field = {hl = "@field" },
                Constructor = {hl = "@constructor" },
                Enum = {hl = "@type" },
                Interface = {hl = "@type" },
                Function = {hl = "@function" },
                Variable = {hl = "@constant" },
                Constant = {hl = "@constant" },
                String = {hl = "@string" },
                Number = {hl = "@number" },
                Boolean = {hl = "@boolean" },
                Array = {hl = "@constant" },
                Object = {hl = "@type" },
                Key = {hl = "@type" },
                Null = {hl = "@type" },
                EnumMember = {hl = "@field" },
                Struct = {hl = "@type" },
                Event = {hl = "@type" },
                Operator = {hl = "@operator" },
                TypeParameter = {hl = "@parameter" },
            },
        })

Does anyone have any pointers?

colorscheme issue probably (the highlights used there aren't defined)

How would I define the highlights there? Would it be through treesitter's configs?

Never mind, I just had to update my nvim version to 0.8

I confirm that using @<...> works: for the lazy, these are the correct settings now to copy and paste:
symbols = {
	File = {hl = "@text.uri" },
	Module = {hl = "@namespace" },
	Namespace = {hl = "@namespace" },
	Package = {hl = "@namespace" },
	Class = {hl = "@type" },
	Method = {hl = "@method" },
	Property = {hl = "@method" },
	Field = {hl = "@field" },
	Constructor = {hl = "@constructor" },
	Enum = {hl = "@type" },
	Interface = {hl = "@type" },
	Function = {hl = "@function" },
	Variable = {hl = "@constant" },
	Constant = {hl = "@constant" },
	String = {hl = "@string" },
	Number = {hl = "@number" },
	Boolean = {hl = "@boolean" },
	Array = {hl = "@constant" },
	Object = {hl = "@type" },
	Key = {hl = "@type" },
	Null = {hl = "@type" },
	EnumMember = {hl = "@field" },
	Struct = {hl = "@type" },
	Event = {hl = "@type" },
	Operator = {hl = "@operator" },
	TypeParameter = {hl = "@parameter" },

Same issue. this one fixed for me


text:
unite dark and light syntax

I would like to request the union of the light a dark syntax duotone in a single syntax thta matches the theme (light or dark). Similar to atom-monokai (https://atom.io/themes/atom-monokai).
Thank you

I see.. a united duotone theme would adapt to if the UI theme is light or dark.
One issue is that syntax themes should include a styles/syntax-variables.less file so that other packages can use the colors. Some themes override that file on disk. I tried to add different color schemes a while back https://github.com/simurai/duotone-dark-syntax/pull/4, but after closed it later again.
Is the reason so you only have to switch one theme and not both UI and Syntax theme? Using a package like https://atom.io/packages/theme-toggler could help. Then in the settings you can set between which themes it should toggle.

Yes the idea is the syntax following the ui between dark and light, again like atom-monokai. But your explanation and suggestion are spot on, thank you.

On 30 Dec 2015, at 03:37, simurai notifications@github.com wrote:
I see.. a united duotone theme would adapt to if the UI theme is light or dark.
One issue is that syntax themes should include a styles/syntax-variables.less file so that other packages can use the colors. Some themes override that file on disk. I tried to add different color schemes a while back simurai/duotone-dark-syntax#4, but after closed it later again.
Is the reason so you only have to switch one theme and not both UI and Syntax theme? Using a package like https://atom.io/packages/theme-toggler could help. Then in the settings you can set between which themes it should toggle.
—
Reply to this email directly or view it on GitHub.

authors: pbraga simurai

repo: simurai/duotone-syntax


text:
Watch when is online or offline

Is there a watcher that I can use when the connection is down or up? I thought it would be good to ask you before implementing the setTimeout() to manually send request on every second.

Polling this module is certainly not the right approach, and I'd wager your IP will get blocked sooner or later if you start polling every second, because that's just a waste of resources.
A low-overhead method might be to set up a Web Socket and transfer ping frames regularily, but I suggest you handle network error conditions as they arise when you transfer application data.

Thank you @silverwind . You got my point and that's why I don't want to use the setTimeout(). Do you got any doc or resource like about the Web socket and transfer ping that I can take a look to get some ideas?

No real example, but for Node.js, you could use https://github.com/websockets/ws for example and use the ping/pong methods and events, but that will take a bit of a setup.

In the browser you could subscribe to do the following events and run this module then:
window.addEventListener('offline', () => {});
window.addEventListener('online', () => {});

Thanks @silverwind . This is very clever. So, I came up with the following solution:
window.addEventListener('offline', () => {
  isOnline({timeout: 1000}).then(online => {
    if (!online) {
      this.online = false
    }
  })
})

window.addEventListener('online', () => {
  isOnline({timeout: 1000}).then(online => {
    if (online) {
      this.online = true
    }
  })
})
isOnline({timeout: 1000}).then(online => {
  if (!online) {
    this.online = false
  }
})

The isOnline() method on the last part was used because once the Electron app starts and if there is no Lan or Wifi connection, the window. addEventListener('offline') doesn't fire. I added the event under the Vue mounted() method. So, I had to use the isOnline() method again outside of the window.addEventListener() event.

window.addEventListener('offline') will use browser's navigator.onLine under the hood. Which is useless because it only detect if LAN connection is available or not. If you have multiple connection for VMs then this will not work.

authors: iamazik marufmax silverwind sindresorhus

repo: sindresorhus/is-online


text:
Add Windows support

Check that the current user is the administrator user.
It makes use of https://github.com/coreybutler/node-windows, which sets the os property to win32, therefore npm install --force is needed to run the tests in UNIX based operating systems (configurable in Travis CI somehow I guess) (at runtime, the dependency is only loaded if os.platform() === 'win32').
Addresses https://github.com/sindresorhus/is-root/issues/1 and https://github.com/sindresorhus/is-root/issues/2.

It's a workaround, yes, but from what I can remember the admin user isn't the same as a root user. And in fact, there is no equivalent for a root user on windows, so I'd prefer to not support it in the module this way.

What I mean is that I'd rather see someone pulling this in is-admin and then code could do something like
if (isRoot() || isAdmin()) {

What @arthurvr said. Though I've made a new module for you for what you ask: https://github.com/sindresorhus/is-elevated

@sindresorhus Great, thanks for the new module!

authors: arthurvr jviotti sindresorhus

repo: sindresorhus/is-root


text:
Not an issue but a code-maintainability warning

One of our developers used this plugin to auto-wire-up the npm packages to our gruntfile.
The problem is now that we want to clean-up the gruntfile and prune no-longer-used npm dependencies.
Alas we can no longer explicitly see which ones we are using from our gruntfile. I now have to manually trace them back.

Run $ grunt --verbose | grep 'local Npm module tasks' to see which external tasks grunt loads.
Does that help?

authors: lukepuplett sindresorhus

repo: sindresorhus/load-grunt-tasks


text:
Upload link in comment fields

In my opinion, adding 'remove-upload-files-button' to the whitelist is supposed to bring that line back:

It does not. (Firefox, Linux)
What should I trigger instead?

Duplication: https://github.com/sindresorhus/refined-github/issues/1242

That line is hidden via CSS and you can undo it via custom CSS.
The feature you named actually removes the upload button on the repo file listing.

I saw your other comment. Perhaps you’re just missing this feature: https://github.com/sindresorhus/refined-github/issues/1242
The upload button is there but isn’t currently working.

Some documentation might be helpful.

authors: ShalokShalom bfred-it

repo: sindresorhus/refined-github


text:
Deployment builds are failing

https://travis-ci.org/sindresorhus/refined-github/builds/253917298
> webpack
Hash: 7efb917c088b33fefd28
Version: webpack 3.2.0
Time: 436ms
        Asset     Size  Chunks             Chunk Names
   options.js  4.09 kB       0  [emitted]  options
   content.js  4.08 kB       1  [emitted]  content
background.js  4.09 kB       2  [emitted]  background
   [0] ./src/content.js 1.61 kB {1} [built] [failed] [1 error]
   [1] ./src/background.js 1.61 kB {2} [built] [failed] [1 error]
   [2] ./src/options.js 1.61 kB {0} [built] [failed] [1 error]
ERROR in ./src/content.js
Module build failed: Error: Couldn't find preset "babili" relative to directory "/home/travis/build/sindresorhus/refined-github"
    at /home/travis/build/sindresorhus/refined-github/node_modules/babel-core/lib/transformation/file/options/option-manager.js:293:19
    at Array.map (native)
    at OptionManager.resolvePresets (/home/travis/build/sindresorhus/refined-github/node_modules/babel-core/lib/transformation/file/options/option-manager.js:275:20)
    at OptionManager.mergePresets (/home/travis/build/sindresorhus/refined-github/node_modules/babel-core/lib/transformation/file/options/option-manager.js:264:10)
    at OptionManager.mergeOptions (/home/travis/build/sindresorhus/refined-github/node_modules/babel-core/lib/transformation/file/options/option-manager.js:249:14)
    at OptionManager.init (/home/travis/build/sindresorhus/refined-github/node_modules/babel-core/lib/transformation/file/options/option-manager.js:368:12)
    at File.initOptions (/home/travis/build/sindresorhus/refined-github/node_modules/babel-core/lib/transformation/file/index.js:212:65)
    at new File (/home/travis/build/sindresorhus/refined-github/node_modules/babel-core/lib/transformation/file/index.js:135:24)
    at Pipeline.transform (/home/travis/build/sindresorhus/refined-github/node_modules/babel-core/lib/transformation/pipeline.js:46:16)
    at transpile (/home/travis/build/sindresorhus/refined-github/node_modules/babel-loader/lib/index.js:49:20)
    at Object.module.exports (/home/travis/build/sindresorhus/refined-github/node_modules/babel-loader/lib/index.js:174:20)
ERROR in ./src/background.js
Module build failed: Error: Couldn't find preset "babili" relative to directory "/home/travis/build/sindresorhus/refined-github"
    at /home/travis/build/sindresorhus/refined-github/node_modules/babel-core/lib/transformation/file/options/option-manager.js:293:19
    at Array.map (native)
    at OptionManager.resolvePresets (/home/travis/build/sindresorhus/refined-github/node_modules/babel-core/lib/transformation/file/options/option-manager.js:275:20)
    at OptionManager.mergePresets (/home/travis/build/sindresorhus/refined-github/node_modules/babel-core/lib/transformation/file/options/option-manager.js:264:10)
    at OptionManager.mergeOptions (/home/travis/build/sindresorhus/refined-github/node_modules/babel-core/lib/transformation/file/options/option-manager.js:249:14)
    at OptionManager.init (/home/travis/build/sindresorhus/refined-github/node_modules/babel-core/lib/transformation/file/options/option-manager.js:368:12)
    at File.initOptions (/home/travis/build/sindresorhus/refined-github/node_modules/babel-core/lib/transformation/file/index.js:212:65)
    at new File (/home/travis/build/sindresorhus/refined-github/node_modules/babel-core/lib/transformation/file/index.js:135:24)
    at Pipeline.transform (/home/travis/build/sindresorhus/refined-github/node_modules/babel-core/lib/transformation/pipeline.js:46:16)
    at transpile (/home/travis/build/sindresorhus/refined-github/node_modules/babel-loader/lib/index.js:49:20)
    at Object.module.exports (/home/travis/build/sindresorhus/refined-github/node_modules/babel-loader/lib/index.js:174:20)
ERROR in ./src/options.js
Module build failed: Error: Couldn't find preset "babili" relative to directory "/home/travis/build/sindresorhus/refined-github"
    at /home/travis/build/sindresorhus/refined-github/node_modules/babel-core/lib/transformation/file/options/option-manager.js:293:19
    at Array.map (native)
    at OptionManager.resolvePresets (/home/travis/build/sindresorhus/refined-github/node_modules/babel-core/lib/transformation/file/options/option-manager.js:275:20)
    at OptionManager.mergePresets (/home/travis/build/sindresorhus/refined-github/node_modules/babel-core/lib/transformation/file/options/option-manager.js:264:10)
    at OptionManager.mergeOptions (/home/travis/build/sindresorhus/refined-github/node_modules/babel-core/lib/transformation/file/options/option-manager.js:249:14)
    at OptionManager.init (/home/travis/build/sindresorhus/refined-github/node_modules/babel-core/lib/transformation/file/options/option-manager.js:368:12)
    at File.initOptions (/home/travis/build/sindresorhus/refined-github/node_modules/babel-core/lib/transformation/file/index.js:212:65)
    at new File (/home/travis/build/sindresorhus/refined-github/node_modules/babel-core/lib/transformation/file/index.js:135:24)
    at Pipeline.transform (/home/travis/build/sindresorhus/refined-github/node_modules/babel-core/lib/transformation/pipeline.js:46:16)
    at transpile (/home/travis/build/sindresorhus/refined-github/node_modules/babel-loader/lib/index.js:49:20)
    at Object.module.exports (/home/travis/build/sindresorhus/refined-github/node_modules/babel-loader/lib/index.js:174:20)

Nevermind, I see this referenced in #617

babel-preset-babili is missing, it'd great if someone can add it and test npm run reduce-size because I don't have time right now.

authors: bfred-it brycekahle


text:
Open file finder with current branch/tag when possible

The repo wide file finder was always loading the finder for the repo's default branch, even if a different branch/tag was selected. This updates the logic to try to get the current branch from the URL before falling back to the default.
Test URLs
https://github.com/optics-dev/Monocle/tree/v3.0.0-RC2
https://github.com/optics-dev/monocle/commits/v3.0.0-RC2
Screenshot
Before
Note master in the find URL

expand GIF

After
Note v3.0.0-RC2, the selected tag, in the find URL

expand GIF

@fregante I thought that was the case too but as the GIFs I posted demonstrate, this change does affect the first URL. Is there a possibility this feature is running on pages it shouldn’t?

Oh you may be right. From your gifs I can see that the tag page does not have the “Find files” button, so it’s possible that GitHub only adds that shortcut on the main branch. What a weird limitation.

authors: fregante mrdziuban


text:
Implement Undo/Redo feature

Ability to do undo/redo on almost all operations like: adding/editing/deleting/moving a task.

The progress of this issue can be tracked here - https://github.com/singalhimanshu/taskgo/pull/21

The progress of this issue can be tracked here - https://github.com/singalhimanshu/taskgo/pull/21

repo: singalhimanshu/taskgo


text:
feat(storage): sync shared buffer based on threshold

What's changed and what's your intention?
Add a threshold size to hummock shared buffer and sync batches to S3 if there is no enough space for incoming batches

add shared_buffer_cur_size and shared_buffer_threshold_size to SharedBufferManager
write_batch() will first allocate space for the incoming batch
if there is no enough space, we will trigger a sync(None) to flush the shared buffer
use tokio watch channel to prevent sending multiple messages for flush

Checklist

[x] I have written necessary docs and comments
[x] I have added necessary unit tests and integration tests

Refer to a related PR or issue link (optional)
close #990

Benchmark results of two compute nodes on a single EC2 instance.
Workload: select * from lineitem;
Setup: shared_buffer_threshold_size 128MB

Can we have more complicated test setups, like TPC-H with joins? I'd like to see if barrier can successfully pass through the system compared with the status before this PR.

Can we have more complicated test setups, like TPC-H with joins? I'd like to see if barrier can successfully pass through the system compared with the status before this PR.

Sure, but the tpch-bench cannot run against risingwave now. The java frontend complains "could not find source catalog for x". It seems that the support of kafka source is broken now (maybe under refactoring).

Rust frontend should have supported it. May join #proj-connector for more information.

authors: StrikeW skyzh

repo: singularity-data/risingwave


text:
🛑 Daily Language Dev API is down

In 6a8e58d, Daily Language Dev API (https://dl-api-dev.app-dev.my.id/api/v1/ping) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Daily Language Dev API is back up in 6af88f9 after 32 minutes.

repo: sipamungkas/upptime-stats


text:
Added a method to remove similar points up to a given absolute tolerance

Proposed changes
As discussed with @imacocco I added a simple method to check for duplicate up to a given atol distance.
The method loops in order over all points, and removes points at distance below threshold from each.
If a given point "i" has not been removed, but all its neighbours below tolerance have been already removed, then "i" is also removed since presumably there is another point "j" that is very close to the neighbours of "i" but did not have "i" in its neighbours.
The "transitivity" property described above is only strictly valid for zero distances.
Types of changes
What types of changes does your code introduce?
Put an x in the boxes that apply

[ ] Bugfix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist
Put an x in the boxes that apply.

[x] Lint and unit tests pass locally with my changes
[x] I have added tests that prove my fix is effective or that my feature works

Codecov Report

Merging #52 (3dba556) into main (bbe67d9) will increase coverage by 1.03%.
The diff coverage is 93.54%.

@@            Coverage Diff             @@
##             main      #52      +/-   ##
==========================================
+ Coverage   75.50%   76.53%   +1.03%
==========================================
  Files          10       10
  Lines        1135     1155      +20
==========================================
+ Hits          857      884      +27
+ Misses        278      271       -7

Impacted Files
Coverage Δ

dadapy/base.py
80.00% <93.54%> (+11.57%)
:arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bbe67d9...3dba556. Read the comment docs.

authors: AldoGl codecov-commenter

repo: sissa-data-science/DADApy


text:
Complementando instalação do ambiente com o Docker

Relacionado com a Issue #22
Esse Pull Request é para executar o ambiente completo de desenvolvimento no Docker. Assim, adicionei um Dockerfile para fazer a build do projeto, adicionei esse novo container ao docker-compose.yml e adicionei dois scripts para facilitar o desenvolvimento com o docker.
Dessa forma, é possível subir todo o ambiente de desenvolvimento com Docker, conforme descrevo no README.md, sendo esse um passo importante para configurar futuramente o ambiente para o implantação em produção via Docker.

@arthurmde muito obrigado. Amanha vou instalar em um ambiente de testes e, se tudo correr normalmente (e com certeza vai), 'mergiarei' seu PR.
Obrigado e Best Resgart

authors: arthurmde luizpicolo

repo: sistemacode/code


text:
Convert sitemesh website to offline web site

Currently the decorators are being applied by a Servlet container. The entire site is static, so it can be build offline with the SM offline generator.
Benefits:

Site can be included as a directory in the SM distribution.
Will be served more efficiently by AppEngine's replicated static content service.
Offers a lot more options of where we can host it in the future.

completed.

authors: codeconsole sitemesh


text:
Using six library

I was going through the code and found this . Any specific reason for not using six library. I know it will add external dependency but it'll make the code cleaner and easily maintainable.

Exactly, I want no external dependencies.

But due to that, we're doing EAFP which is making it unclean. Six would make the code look clean and beautiful.

repo: sivel/speedtest-cli


text:
Can't apply any token for a component instance

It's not possible to apply different tokens for component instances (Color in my case), the plugin returns "No nodes Updated".
Expected result: Apply different tokens for a component instance.

I think this is related to issue Allow setting more data on each Token #11

Currently we're limited by Figma regarding being unable to set relaunchData on component instances (the data that's shown on the right bottom), we can however set pluginData on instances - the user would not be able to see that tokens were set though.
I'd suggest we move forward by

allowing to set tokens on component instances
not setting relaunchData on those instances (user is only able to see that tokens were set in Inspector)

I wonder why you would want to assign tokens to an instance instead of applying it to the master component.

Oh, imagine you have a button master component(Button/NormalButton), with blue bg. Now you want a Warning button with orange bg. You can make another master component (Button/WarningButton) with an instance from the original button nested in it. Like this:
◆ Button/NormalButton
--- [Button elements]
◆ Button/WarningButton
--- ◇ Button/NormalButton (instance, changing bg color)
That can be made with color styles, but unfortunately can't be made with Figma Tokens.

Fixed in newest version. Restart Figma for it to take effect.
Note: We can't show tokens on the relaunchData panel (bottom right when selecting a layer in Figmas properties panel) - however, the tokens are there.

authors: evgeny-kh exclama six7


text:
Latest version on website out of date

https://mailcatcher.me/

Thanks, covered by https://github.com/sj26/mailcatcher/issues/404

(Also manually fixed, now.)


text:
code|php>>><? print "Hello, world"不响应

我查了下源码，里面这个地址 https://glot.io/run/php?version=latest 不存在了，run变成了new。我改了也不行，麻烦灰灰大佬看一下哈。另外，建议改成在本地服务器运行其他code就完美啦。多谢！

抓包看了下仍然存在，glot.io网站调用的这个接口没变过
不响应有可能是你网络问题？我的网络环境下访问glot.io也是比较慢的


text:
How can I manually delete 2 or three entries from the database

This is not really an issue, but a request for some advice.
I'm writing some hooks that run when new entries arrive.
How can I manually remove some entries from the database, so that when I press "G"
two or three new entries are downloaded and hooks are run.

It sounds like your goal is testing a new entry hook function? Hmm,
that's a good question. You could pass a dummy entry manually to your
function to see how it reacts. There's also a test harness (under
tests/) for running things on a virtual, temporary database.
More generally, Elfeed's philosophy is that you don't delete entries, so
there's nothing exposed to do so. After deleting an entry, Elfeed would
still need to keep track of these deleted entries to prevent them from
appearing again if they're still available from the original feed
(though this doesn't really apply when testing). Rather than track
deleted entries in a different "deleted entries" index, the simpler
solution is to build on top of the existing tagging system, hiding
entries with, say, a "junk" tag on them.
That being said, I do think it would be reasonable for a function on the
new entry hook to be able to reject an entry on the spot based on
whatever criteria it wants. This isn't something Elfeed would need to
track  — that being the hook's responsibility — so the usual issues with
deleting entries doesn't apply. It's sort of on my mental TODO list.

repo: skeeto/elfeed

license: unlicense


text:
Add vertical sliders and background color.

Describe what feature you'd like. Pseudo-code, mockups, or screenshots of similar solutions are encouraged!
It would be nice to support more features in the range slider, such as changing the background colour (the part of the bar that is not coloured by the accent-colour) and supporting vertical range sliders.
Unfortunately due lack of cross compatibility these two features  (in special the combination) are hard to archive as the HTML specification is (flawed and) not implemented in any browser (for vertical sliders) and firefox and webkit have very different approaches.
I didn't manage to do a vertical range slider using tailwinds with these specs as I didn't find any reference to these things in tailwinds, but with normal css. ( Of course I could just rotate a horizontal one, but then it will mess up the size of the box )
I pasted a code example that I did in normal css, but maybe anyone can orientate me a bit how to make this contribution compatible with the tailwinds and skeleton project.
Thanks in advance.
What type of pull request would this be?
Enhancement
Any links to similar examples or other references we should review?
This is the code I did  which works in firefox and chromium, but is still not depurated.

<script lang="ts">
    export let value: number
    let min = -100
    let max = 100
</script>
<input bind:value={value}
    min={min}
    max={max}
    type="range"
    orient="vertical"
  />

<style>

    input[type=range][orient=vertical]
    {
        writing-mode: bt-lr; /* IE */
        -webkit-appearance: slider-vertical; /* Chromium */
        width: 10px;
        accent-color: white;
        background: black;
    }

    /** FF*/
    input[type="range"]::-moz-range-progress {
        background-color: #ffffff;
        width: 10px;
    }
    input[type="range"]::-moz-range-track {
        background-color: #000000;
    }

</style>

Hey Pablo, I'll look into the solutions you mentioned, but you put it best here:

Unfortunately due lack of cross compatibility these two features (in special the combination) are hard to archive as the HTML specification is (flawed and) not implemented in any browser (for vertical sliders) and firefox and webkit have very different approaches.

Emphasis mine.
We rely on native inputs to provided maximum accessibility. If a feature either doesn't exist in all browsers or has limited support then it means we will most likely not include it at a this time.
Again you CSS solutions above seem interesting, I've not used these methods personally, but I'll if it works well across OS and desktiop/mobile then we'll consider supporting this. Thanks

ok thanks, I may come back with some test.

@PabloRuizCuevas For sure, we would welcome a draft PR. I can open that up to everyone on Discord so we can get some broad results cross OS, etc. Folks will typically help if asked!

As mentioned above we will welcome a draft or further testing of this. I'll keep an eye out for that. In the meantime I'm closing this issue. Thanks

repo: skeletonlabs/skeleton


text:
Correction of the lightswitches src-code link

Linked Issue
Closes #{issueNumber}
Description
{description}
Changsets
Changesets automate our changelog. If you modify files in /package/skeleton, run pnpm changeset, follow the prompts, then commit the markdown file. Changes that add features should be minor while chores and bugfixes should be patch. Please prefix the changeset message with feat:, bugfix: or chore:.
Checklist
Please read and apply all contribution requirements.

[ ] This PR targets the dev branch (NEVER master)
[ ] Documentation reflects all relevant changes
[ ] Branch is prefixed with: docs/, feat/, chore/, bugfix/
[ ] Ensure code linting is current - run pnpm format
[ ] All test cases are passing - run pnpm test
[ ] Includes a changeset (if relevant; see above)

@JungoQuentin good change, but you've failed to follow a number of the items in the PR checklist and contribution guidelines above. Please resubmit with all corrections in place. Thanks.


text:
Svelte 4 and SvelteKit 2 update for Doc Site

Linked Issue
Closes #2312
Description
Upgrade the doc site to Svelte 4 and SvelteKIt 2.
Note the current issues listed here:
https://github.com/skeletonlabs/skeleton/issues/2312#issuecomment-1863208255
Changsets
Instructions: Changesets automate our changelog. If you modify files in /packages, run pnpm changeset in the root of the monorepo, follow the prompts, then commit the markdown file. Changes that add features should be minor while chores and bugfixes should be patch. Please prefix the changeset message with feat:, bugfix: or chore:.
Checklist
Please read and apply all contribution requirements.

[x] This PR targets the dev branch (NEVER master)
[x] Documentation reflects all relevant changes
[x] Branch is prefixed with: docs/, feat/, chore/, bugfix/
[ ] Ensure Svelte and Typescript linting is current - run pnpm ci:check
[ ] Ensure Prettier linting is current - run pnpm format
[ ] All test cases are passing - run pnpm test
[x] Includes a changeset (if relevant; see above)

See: https://github.com/skeletonlabs/skeleton/issues/2312#issuecomment-1875679706


text:
Store newly generated key pair in Terraform Cloud

Automatically store newly generated key pair in Terraform Cloud

not required anymore because terraform cloud added support for assuming IAM role

repo: skildops/aws-iam-key-rotator