text:
com.marklogic.client.test.SPARQLManagerTest.testConstrainingQueries fails

Please take a look at Jenkins today's run (11/04/2016) for the failures.
java.lang.AssertionError: expected:<1> but was:<2>
	at org.junit.Assert.fail(Assert.java:88)
	at org.junit.Assert.failNotEquals(Assert.java:743)
	at org.junit.Assert.assertEquals(Assert.java:118)
	at org.junit.Assert.assertEquals(Assert.java:555)
	at org.junit.Assert.assertEquals(Assert.java:542)
	at com.marklogic.client.test.SPARQLManagerTest.testConstrainingQueries(SPARQLManagerTest.java:263)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
	at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)

Standard Output

18:09:34.724 [main] DEBUG c.m.client.impl.JerseyServices - Putting graphs
18:09:34.738 [main] INFO  c.m.client.impl.DocumentManagerImpl - Writing content for SPARQLManagerTest.testConstrainingQueries/embededTriple.xml
18:09:34.738 [main] DEBUG c.m.client.impl.JerseyServices - Sending SPARQLManagerTest.testConstrainingQueries/embededTriple.xml multipart document in transaction null
18:09:34.748 [main] DEBUG c.m.client.impl.JerseyServices - Posting /graphs/sparql
18:09:34.761 [main] DEBUG c.m.client.impl.JerseyServices - Posting /graphs/sparql
18:09:34.773 [main] DEBUG c.m.client.impl.JerseyServices - Posting /graphs/sparql
18:09:34.782 [main] DEBUG c.m.client.impl.JerseyServices - Posting /graphs/sparql

The test runs fine after the fix

authors: georgeajit srinathgit

repo: marklogic/java-client-api


text:
Document metadata read with stream is failing

MarkLogic Build : 20150105
Issue : When we try to read the patch  metadata of a document via stream it is throwing out error that outputStream is not defined.
Code:

it('should read the applied patch on metadata', function(done){
this.timeout(3000);
var uri1 = '/test/query/matchList/doc5.json';
db.documents.read({uris: uri1, categories: ['metadata']}).
stream().
on('data', function(data) {
//console.log(data);
data.properties.prop2.should.equal('world');
}).
on('end', function() {
done();
}, done);
});

Error:

ReferenceError: outputStream is not defined
    at collectStreamBodyObject (/space/builder/builds/linux64/HEAD/qa/node-client-api/lib/mlrest.js:622:7)
    at ConcatStream.<anonymous> (/space/builder/builds/linux64/HEAD/qa/node-client-api/node_modules/concat-stream/index.js:32:43)
    at ConcatStream.emit (events.js:117:20)
    at finishMaybe (/space/builder/builds/linux64/HEAD/qa/node-client-api/node_modules/concat-stream/node_modules/readable-stream/lib/_stream_writable.js:460:14)
    at afterWrite (/space/builder/builds/linux64/HEAD/qa/node-client-api/node_modules/concat-stream/node_modules/readable-stream/lib/_stream_writable.js:340:3)
    at /space/builder/builds/linux64/HEAD/qa/node-client-api/node_modules/concat-stream/node_modules/readable-stream/lib/_stream_writable.js:327:9
    at process._tickCallback (node.js:419:13)

The regression should be gone now.

Issue resolved and the check in test: nodejs-documents-patch-stream.js  also modified as per the output.

source: gharchive/issue

repo: marklogic/node-client-api

license_type: permissive

license_source: github-api


text:
Fixes build issues against Xcode 8GM

Adds @escaping keyword to the apply closure to resolve compilation errors against Xcode 8.0 GM.

Thanks @min !

source: gharchive/pull-request

authors: marmelroy min

repo: marmelroy/Interpolate

license: mit

license_source: bigquery


text:
🛑 Yn 'e Mar is down

In f5e1dcc, Yn 'e Mar (https://ynemar.nl) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Yn 'e Mar is back up in 0ad9d0b after 13 minutes.

repo: marnick-s/status

license: MIT


text:
Not Supported Protokoll

Add a description
Hi, thanks for your work, but unforcenly the protocol of my meter is not supported yet.
Here is the output which i get when i call:
[BRIDGE_PASSWORD]@[YOUR_IP]/data.json?node_id=2
data.json

Also attached the Datasheet of my meter. But it is unforcenly in German.
D000028915_E350_c_de1.pdf
Best regards

Sorry, i uploaded the file i got first. After I reloaded the browser some times, i got this output.
data.json

I suggest to try to rotate the reading head a little bit... (and German is no issue here)... When rotating the head, watch the "last update" info [that might help to find the best position]...

cause of lack of feedback I'll close this


text:
Better check for symbol presence than NULL comparison

At the moment, there are two ways to check whether a library contains a symbol: Trying to get_xxxx it - which may throw, and requires the type; or get_symbol(), which doesn't throw, and may return NULL.
I'm not sure the user should even have to know about NULL in order to check for symbol presence.
There are different ways to approach this. One would be returning an optional; another - a contains() or has() method which returns a boolean.

I'm not sure the user should even have to know about NULL in order to check for symbol presence.

get_symbol() is a private member function

There are different ways to approach this. One would be returning an optional; another - a contains() or has() method which returns a boolean.

i made has_symbol() function is order to do that

Sorry, I missed that.

authors: eyalroz martin-olivier

repo: martin-olivier/dylib


text:
re. issue when computer wakes the wifi does not get reenabled

Hi thanks for your wonderful program for modernstandbyfix. its amazingly helpful.  i am just having one issue when the laptop wakes up the wifi adapter stays off. i downloaded the four files,
ModernStandbyFix.deps.json
ModernStandbyFix.dll
ModernStandbyFix.exe
ModernStandbyFix.runtimeconfig.json
and put them in a folder. ran as administrator. laptop is dell 7706 win 10.
downloaded .NET Desktop Runtime 6.0.16
so not sure what i am doing wrong.  please let me know
thanks so much

I'm seeing the same issue. Like the app gets stopped when sleep is initiated and doesn't turn off the adapters. Then when the computer wakes it tries to enabled then does the disabling which it wasn't able to do before sleep.

i am not sure how to fix it but i did do another solution.  it doesn't always work but most times it works.
i use task scheduler and set a vbs to stop wifi adapter upon sleep and then when it wakes to enable it
see my questions here
https://answers.microsoft.com/en-us/windows/forum/all/event-viewer-event-triggered-task-scheduler-task/71055eed-1d8b-48e1-8482-587f50138c90
if you need more info then reply or email me

repo: martinchrzan/ModernStandbyFix


text:
Spellchecking for target names

It would be cool if ninja would do simple 1-edit-distance spell checking of target names, like so:
$ ninja fo.o
ninja: error: unknown target 'fo.o', did you mean 'foo.o'?

I tried to send out a pull request that adds an EditDistance() function which can be used for this issue: https://github.com/martine/ninja/pull/130

https://github.com/martine/ninja/pull/132

repo: martine/ninja


text:
Webserver image

Some updates to models.py as well as main.py were necessary to fix a bug for having empty process duration.

dont need this


text:
feat: add State to transform API

This allows to access a ring buffer to push and pop values during transformation. One use case is to insert values found in a certain place in the tree in a different location.
For example, this:
dts -t 'each_key(push_front).each_value(insert("key", pop_back)).values'

converts this:
{
  "foo": {
    "bar": "baz"
  },
  "one": {
    "two": "three"
  }
}

into this:
[
  {
    "bar": "baz",
    "key": "foo"
  },
  {
    "two": "three",
    "key": "one"
  }
]

Not going to do this

repo: martinohmann/dts


text:
different Request/Command/Query

where and for what to use a specific interface IRequest/ICommand/IQuery ?
maybe there is documentation or another article for understanding
May be: as rest
IQuery - get
ICommand - post/put/deleted

Per the README, the ICommand and IQuery interfaces were added for semantic "correctness", because the original MediatR by Jimmy Bogard only uses IRequest.
What do I mean by semantic correctness? Mediator libs are typically used in applications that apply a CQRS style or approach (command/query responsibility segregation) that, as the name implies, strives to separate the use-cases, models, services, and even at times the data storage, for operations/use-cases that query data only to display/return out to the caller vs. those operations which are commanding the app to create/update/delete some data.
The original MediatR lib calls both of those "requests", as it's trying to be agnostic of CQRS.
This lib provides synonymous interfaces to the "request", but which are more semantically close to CQRS commands and queries.
TL;DR; - they all do the same thing, but if you are doing CQRS, you could/should be more specific and use command and queries instead of requests for all things.

Indeed, great answer! And I've sometimes used that distinction to have some IPipelineBehavior execute only for queries, with a generic contraint (caching behavior for example, which doesn't really make sense for commands)

authors: KANekT martinothamar tafs7

repo: martinothamar/Mediator


text:
Save to file and load from file

we suggest adding save and load functions, this would make it much easier to work with large amounts of data

Serialization is highly specific to whatever data types you have, so I don't think it makes sense to implement this as part of the map.
I have an API though to give you raw access to the underlying container, so when you implement save/load for an std::vector, you are all good; you can e.g. use values() and replace()


text:
Sanitize dehydrated state to avoid XSS

Fixes martyjs/marty#370
You can't safely escape the stuff that goes into the script tag, so I just tossed the fully-escaped JSON into an attribute.
It's a little annoying to see " everywhere - we could throw the dehydrated state into the body of some other invisible component and just escape <, >, and & ourselves, but this seems cleaner and nicer.

:+1:

released in v0.10.5

authors: jhollingworth taion tenorviol

repo: martyjs/marty-lib


text:
Upgrade Next.js from Version 12.3 to 13.5

Description
We need to upgrade our Next.js application from version 12.3 to 13.5 to leverage the latest features, optimizations, and improvements in local development experience. The focus will be on client-side rendering as server-side rendering is not required for our application.
Tasks

Update Next.js Version:

Update the Next.js version in package.json to 13.5.
Run npm install to install the latest version.

Review Breaking Changes:

Review the Next.js migration guide for any breaking changes between versions 12.3 and 13.5.
Make necessary code adjustments based on the migration guide.

Optimize Client-Side Rendering:

Ensure that all client-side rendering functionalities are working correctly with the new version.
Optimize the application for improved performance with Next.js 13.5.

Improve Local Development Experience:

Test and verify that the local development server runs smoothly with the new version.
Ensure that hot-reloading and other development features are functioning as expected.

Testing:
Thoroughly test the application to ensure all functionalities are working correctly post-upgrade.
Conduct performance tests to confirm optimizations.
Files and Locations

package.json: Update the Next.js version.
Application Code: Review and adjust any code that may be affected by the upgrade.

Acceptance Criteria

[ ]   Next.js is upgraded to version 13.5.
[ ]  All client-side rendering functionalities are verified and optimized.
[ ]  Local development experience is improved and running smoothly.
[ ]  Application functionalities are tested and working correctly post-upgrade.
[ ]  Performance tests confirm optimizations.

Additional Information

Dependencies: Ensure all necessary dependencies are compatible with Next.js 13.5 as listed in package.json.
Style Guidelines: Follow existing code style guidelines and patterns as used in the project.
Migration Guide: Refer to the official Next.js migration guide for version-specific changes.

References

Current Next.js Version: Check package.json for the current version and dependencies.
Next.js Migration Guide: Next.js 13.5 Migration Guide
Material UI V5 Next JS Integration:  Material UI Next JS Integration

can I tackle this issue? Thanks

can I tackle this issue? Thanks

@ndubs18 are you working on this still?

I am did you want to work on it?

Hey guys, anyone can work on this issue, and you guys are both welcome to work together! Let me know if you guys have any questions :)

repo: marvelai-org/marvel-platform


text:
Correct way for adding config.json by SPIFFS

Hi!
I am new to Homie and Platformio. I read the documents and what I do for adding the config.json file is running:

platformio run --target uploadfs
platformio run --target upload

Is the order correct? Does it matter? Do I have to do them both? I am asking this because sometimes even after doing the uploadfs I get the error config.json doesn't exist, but sometimes it works. Sometimes everything is working but suddenly it reboots and the configuration is gone/erased. So I thought maybe I am doing something wrong.
Thanks

This is the log:
Flagged for reset by pin

Device is idle
Configuration erased
Setting next boot mode to 2
Triggering ABOUT_TO_RESET event...
↻ Rebooting into config mode...
✖ MQTT disconnected
Triggering MQTT_DISCONNECTED event...
✖ Wi-Fi disconnected
Triggering WIFI_DISCONNECTED event...

 ets Jan  8 2013,rst cause:2, boot mode:(1,6)

 ets Jan  8 2013,rst cause:4, boot mode:(1,6)

wdt reset

Is some pin reserved for config erase?

Yes, pressing Pin 0 (named D3 on Wemos D1 Mini) for 5 seconds deletes the configuration.
You can disable this function with (see http://marvinroger.github.io/homie-esp8266/docs/2.0.0-beta.3/advanced-usage/resetting/)
void setup() {
  Homie.disableResetTrigger(); // before Homie.setup()
  // ...
}

Thanks! And does the order matter? Is the way I put config.json correct?
On Tue, Mar 27, 2018, 11:47 PM Ian Hubbertz notifications@github.com
wrote:

Yes, pressing Pin 0 (named D3 on Wemos D1 Mini) for 5 seconds deletes the
configuration.
You can disable this function with (see
http://marvinroger.github.io/homie-esp8266/docs/2.0.0-beta.3/advanced-usage/resetting/
)
void setup() {
Homie.disableResetTrigger(); // before Homie.setup()
// ...
}
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/marvinroger/homie-esp8266/issues/509#issuecomment-376642845,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AByDh8iWcUkqYqNmq13QYzNhVICfaHBpks5tipBQgaJpZM4S9QUL
.

The order doesn't matter, so the way you upload it is correct.
However, please be careful with the flash size, because this has impact on the layout ("partitioning") of the program segment and SPIFFS.
For some boards (ESP-07, Wemos D1 Mini) the actual flash size differs from what is pre-configured in platformio, so you need to configure it manually with build_flags in platformio.ini. See http://docs.platformio.org/en/latest/platforms/espressif8266.html#custom-flash-size
If configured flash size does not match the actual flash size you may be stuck in a reset loop or the config.json cannot be found (I think, what happens then is related to flashing the application binary or the SPIFFS image first....)

authors: euphi psamim


text:
Permission information, bottom button is not aligned

权限信息，底部按钮没对齐


text:
一个上下文同时跟踪两个相同的实体

Description
在更新前将实体的状态设置为Detached再更新，不报错，但是数据库没有更新。另说明还有一种情况，当结合Masa blazor时，在前端页面同时更新同一条记录也是会报同样的错误。但是单纯使用swagger测试并不会。
参考代码如下：
public async Task GetGenerateCodeAsync(AllMapTable mapTable)
{
Guid? tid = null;
//自动插入mapTable表
var table = await _mapTableRepository.FindAsync(t => t.EnTableName.Equals(mapTable));
if (table == null)
{
var description = EnumDescription.GetDescriptionAttribute(mapTable);
if (description == null)
{
throw new UserFriendlyException("获取枚举上的Description失败");
}
var command = new CreateMapTableCommand(description, mapTable.ToString());
await _eventBus.PublishAsync(command);
tid = command.Id;
}
await _codingRuleInfoRepository.GenerateCode(mapTable);
    var tt = await _codingRuleInfoRepository.FindAsync(t => t.MapTableId == (Guid)tid);

    tt.CurrentValue = 5;

    await _codingRuleInfoRepository.UpdateAsync(tt);

    return "111";

}
报错如下：System.InvalidOperationException: The instance of entity type 'CodingRuleInfo' cannot be tracked because another instance with the same key value for {'Id'} is already being tracked. When attaching existing entities, ensure that only one entity instance with a given key value is attached. Consider using 'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see the conflicting key values.

at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.IdentityMap1.ThrowIdentityConflict(InternalEntityEntry entry)    at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.IdentityMap1.Add(TKey key, InternalEntityEntry entry, Boolean updateDuplicate)···
.NET version
No response
MASA Framework version
No response

你好：
1、 你附加的源码尽量完整些，异常信息页尽量完整的贴出来；
2、 _在更新前将实体的状态设置为Detached再更新，不报错，但是数据库没有更新_这个问题，在代码里面没有反馈，也不好判断是哪里的问题；
3、_在前端页面同时更新同一条记录也是会报同样的错误。但是单纯使用swagger测试并不会_据此分析，应该跟你的服务对象周期使用有关，通过依赖关系注入进行参数绑定，IEventBus对象必须在接口方法上进行绑定（每次调用改接口，就会创建一次新的类型对象），不能在controller的构造方法里面绑定（此时绑定，该对象为应用程序存在期间一直存在的对象）。
这里得IEventBus对象注入，可以这么用
`
...
public Task AddAsync([FromServices] IEventBus eventBus, Dto dto)
{
var command=new AddCommand(dto);
return eventBus.PublishAsync(command);
}
...
`

十分感谢您的解答！！
好的，下面是简化业务逻辑举个示例
[Route("/API/[controller]/[action]")]
[ApiController]
[Authorize]
public class CodingRuleInfoService : ControllerBase
{
private readonly IEventBus _eventBus;
private readonly ICodingRuleInfoRepository _codingRuleInfoRepository;
private readonly IMapTableRepository _mapTableRepository;
public CodingRuleInfoService(ICodingRuleInfoRepository codingRuleInfoRepository, IMapTableRepository mapTableRepository, IEventBus eventBus)
{
_codingRuleInfoRepository = codingRuleInfoRepository;
_mapTableRepository = mapTableRepository;
_eventBus = eventBus;
}
[HttpGet]
[AllowAnonymous]
public async Task GetGenerateCodeAsync([FromServices] IEventBus eventBus, AllMapTable mapTable)
{
    var description = EnumDescription.GetDescriptionAttribute(mapTable);
    var command = new CreateMapTableCommand(description, mapTable.ToString());
    await eventBus.PublishAsync(command);

    await _codingRuleInfoRepository.GenerateCode(mapTable);

    return "1111";
}

}
一开始使用的是_eventBus，后来听了您的建议使用[FromServices] IEventBus eventBus，结果是一样的；
仓储接口层
public interface ICodingRuleInfoRepository : IRepository
{
///
/// 生成编码
///
///
///
Task GenerateCode(AllMapTable table);
}
仓储实现层
public class CodingRuleInfoRepository : Repository<PlatformDbContext, CodingRuleInfo>, ICodingRuleInfoRepository
{
private readonly PlatformDbContext _PlatformDbContext;
public CodingRuleInfoRepository(PlatformDbContext PlatformDbContext, IUnitOfWork unitOfWork, IRepository mapTableRepository) : base(PlatformDbContext, unitOfWork)
{
_PlatformDbContext = PlatformDbContext;
}
public async Task<string> GenerateCode(AllMapTable table)
{

    var entity = await _PlatformDbContext.Set<MapTable>().FirstOrDefaultAsync(t => t.EnTableName.Equals(table.ToString()));

    //var entityKey = entity.GetKeys().First();
    //var existingEntity = _PlatformDbContext.ChangeTracker.Entries<MapTable>().FirstOrDefault(e =>
    //{
    //    var entity = e.Entity.GetKeys().First();
    //    return entity.Name.Equals(entityKey.Name) && entity.Value.Equals(entity.Value);

    //})?.Entity;
    //if (existingEntity != null)
    //{
    //    _PlatformDbContext.Entry(existingEntity).State = Microsoft.EntityFrameworkCore.EntityState.Detached;
    //}

    entity.Remark = "2222";
    _PlatformDbContext.Set<MapTable>().Update(entity);

    return "2222";
}

}
仓储实现层注释的代码放开，不会报错，但是数据库没有更新Remark字段
报错如下：
System.InvalidOperationException: The instance of entity type 'MapTable' cannot be tracked because another instance with the same key value for {'Id'} is already being tracked. When attaching existing entities, ensure that only one entity instance with a given key value is attached. Consider using 'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see the conflicting key values.
at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.IdentityMap1.ThrowIdentityConflict(InternalEntityEntry entry)    at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.IdentityMap1.Add(TKey key, InternalEntityEntry entry, Boolean updateDuplicate)
at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.IdentityMap1.Add(InternalEntityEntry entry)    at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.StartTracking(InternalEntityEntry entry)    at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.InternalEntityEntry.SetEntityState(EntityState oldState, EntityState newState, Boolean acceptChanges, Boolean modifyProperties)    at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.EntityGraphAttacher.PaintAction(EntityEntryGraphNode1 node)
at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.EntityEntryGraphIterator.TraverseGraph[TState](EntityEntryGraphNode1 node, Func2 handleNode)
at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.EntityGraphAttacher.AttachGraph(InternalEntityEntry rootEntry, EntityState targetState, EntityState storeGeneratedWithKeySetTargetState, Boolean forceStateWhenUnknownKey)
at Microsoft.EntityFrameworkCore.Internal.InternalDbSet1.Update(TEntity entity)    at MOM.Services.Platform.Infrastructure.Repositories.CodingModel.CodingRuleInfoRepository.GenerateCode(AllMapTable table) in D:\MyCC\codes\asuneast\MOM20241029\src\Services\MOM.Services.Platform\Infrastructure\Repositories\CodingModel\CodingRuleInfoRepository.cs:line 35    at MOM.Services.Platform.Controllers.Setting.CodingRuleInfoService.GetGenerateCodeAsync(IEventBus eventBus, AllMapTable mapTable) in D:\MyCC\codes\asuneast\MOM20241029\src\Services\MOM.Services.Platform\Controllers\Setting\CodingRuleInfoService.cs:line 81    at lambda_method112(Closure , Object )    at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)    at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask1 actionResultValueTask)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|20_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
at Microsoft.AspNetCore.Routing.EndpointMiddleware.g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
at Microsoft.AspNetCore.Localization.RequestLocalizationMiddleware.Invoke(HttpContext context)
at Masa.Contrib.Isolation.Middleware.IsolationMiddleware.InvokeAsync(HttpContext httpContext, IEnumerable`1 middlewares)
at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext)
at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider)
at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)
HEADERS
Accept: text/plain
Connection: keep-alive
Host: localhost:5259
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36
Accept-Encoding: gzip, deflate, br, zstd
Accept-Language: zh-CN,zh;q=0.9
Referer: http://localhost:5259/swagger/index.html
sec-ch-ua: "Not)A;Brand";v="99", "Google Chrome";v="127", "Chromium";v="127"
sec-ch-ua-mobile: ?0
sec-ch-ua-platform: "Windows"
Sec-Fetch-Site: same-origin
Sec-Fetch-Mode: cors
Sec-Fetch-Dest: empty


text:
🛑 POH events bot from render hosting is down

In ea74f9d, POH events bot from render hosting (https://poh-events-bot.onrender.com/ping) was down:

HTTP code: 0
Response time: 0 ms

Resolved: POH events bot from render hosting is back up in 44d0bf2 after 13 minutes.

repo: masch/poh-events-uptime


text:
🛑 POH events bot from render hosting is down

In c8f520f, POH events bot from render hosting (https://poh-events-bot.onrender.com/ping) was down:

HTTP code: 0
Response time: 0 ms

Resolved: POH events bot from render hosting is back up in 7acf003 after 18 minutes.


text:
🛑 POH events bot from render hosting is down

In 1fbbe76, POH events bot from render hosting (https://poh-events-bot.onrender.com/ping) was down:

HTTP code: 0
Response time: 0 ms

Resolved: POH events bot from render hosting is back up in f9d7802 after 8 minutes.


text:
Geekbench 5 fail causes corrupt JSON

When the Geekbench 5 test fails (not enough ram)

Geekbench 5 test failed. Run manually to determine cause.

The JSON becomes corrupted at the geekbench section:
,"geekbench":]
instead of being
,"geekbench":[]
The output
{"version":"v2022-08-20","time":"20220827-073833","os":{"arch":"x64","distro":"Ubuntu 22.04 LTS","kernel":"5.15.0-1004-kvm","uptime":1876106.72},"net":{"ipv4":true,"ipv6":true},"cpu":{"model":"Intel(R) Xeon(R) CPU E5-2690 0 @ 2.90GHz","cores":1,"freq":"2899.996 MHz","aes":true,"virt":false},"mem":{"ram":1008484,"swap":0,"disk":9617654},"fio":[{"bs":"4k","speed_r":109145,"iops_r":27286,"speed_w":109433,"iops_w":27358,"speed_rw":218578,"iops_rw":54644},{"bs":"64k","speed_r":219411,"iops_r":3428,"speed_w":220566,"iops_w":3446,"speed_rw":439977,"iops_rw":6874},{"bs":"512k","speed_r":235707,"iops_r":460,"speed_w":248231,"iops_w":484,"speed_rw":483938,"iops_rw":944},{"bs":"1m","speed_r":239053,"iops_r":233,"speed_w":254974,"iops_w":248,"speed_rw":494027,"iops_rw":481}],"iperf":[{"mode":"IPv4","provider":"Clouvider","loc":"London, UK (10G)","send":"1.02 Gbits/sec","recv":"1.37 Gbits/sec"},{"mode":"IPv4","provider":"Online.net","loc":"Paris, FR (10G)","send":"658 Mbits/sec","recv":"1.16 Gbits/sec"},{"mode":"IPv4","provider":"Clouvider","loc":"NYC, NY, US (10G)","send":"1.98 Gbits/sec","recv":"2.25 Gbits/sec"},{"mode":"IPv6","provider":"Clouvider","loc":"London, UK (10G)","send":"1.30 Gbits/sec","recv":"1.45 Gbits/sec"},{"mode":"IPv6","provider":"Online.net","loc":"Paris, FR (10G)","send":"1.61 Gbits/sec","recv":"1.34 Gbits/sec"},{"mode":"IPv6","provider":"Clouvider","loc":"NYC, NY, US (10G)","send":"3.25 Gbits/sec","recv":"3.19 Gbits/sec"}],"geekbench":]}

Good catch! I'll get that patched up soon.
Thanks!

Just patched this up, sorry it took so long!

repo: masonr/yet-another-bench-script

license: WTFPL


text:
🛑 RESTREAM-IR-12-ZirSakht-3 is down

In 3bd4f6d, RESTREAM-IR-12-ZirSakht-3 ($IR_12) was down:

HTTP code: 0
Response time: 0 ms

Resolved: RESTREAM-IR-12-ZirSakht-3 is back up in 740e2e3.


text:
🛑 RESTREAM-IR-10-ParsOnline-4 is down

In 2759f4b, RESTREAM-IR-10-ParsOnline-4 ($IR_10) was down:

HTTP code: 0
Response time: 0 ms

Resolved: RESTREAM-IR-10-ParsOnline-4 is back up in cb4fe60.

Resolved: RESTREAM-IR-10-ParsOnline-4 is back up in 026b92b.


text:
空文字を展開したい

空白文字は展開できるけど、何も文字がない状態も展開したいです。
下は強制終了してしまう。
irb(main):001:0> require 're_expand'
=> true
irb(main):002:0> '(*|/|-|+| )'.expand
=> ["*", "/", "-", "+", " "]
irb(main):003:0> '(*|/|-|+|)'.expand
missing )

これができると
こういう問題が
https://gyazz-clone.herokuapp.com/prog-exercises/1,2,...,9の並びと加減算で100を作る

1,2,...,9の並びと加減算で100を作る
e.g. 1+23-4+56+7+8+9 ==> 100

このように華麗に解けます
require 're_expand'
puts (1..9).to_a.join('(*|/|-|+|)').expand.select{|i| (eval i) == 100 }

正規表現に空白文字表現なんてあるんでしょうか?
(*|/|-|+)? なら良いとか?

*とかが使えるのはヘンだな... エスケープはちゃんと動かないかも

[2] がdもしくは何もなしにマッチする例です

authors: masui shokai


text:
🚀🐟 + 🌊 | Spacefish swim towards v1.0

Description

This pull request attempts to help push Spacefish towards complete feature parity with Spaceship with a 🌊
Motivation and Context

It aims to fix/implement the following issues: #20 #28 #29 #32 #34 #37 and help push Spacefish to the v1.0 milestone.
Types of changes

[x]  Several new features (non-breaking changes which adds functionality)

Screenshots (if appropriate):
How Has This Been Tested?

[x] I have tested using MacOS
[x] I have tested using Linux

Default Pull Request Checklist:

[x] I have checked that no other PR duplicates mine
[x] My code follows the code style of this project.
[x] My change requires a change to the documentation.
[x] I have updated the documentation accordingly.
[x] I have updated the tests accordingly.

Personal Development Checklist:

[x] Create initial rough translation from Zsh to Fish.
[x] Write a lot of documentation.
[ ] Manually test Windows battery-acpi on a Windows laptop.
[x] Manually test pyenv section.
[x] Manually test background jobs section.
[x] Manually test time section.
[x] Manually test exit code section.
[x] Manually tested everything.
[x] Add automated tests.
[x] Automated tests complete without errors.
[x] Swim-to-v1.0 is ready to merge. 🚀🐟 + 🌊

Woah! Looks like some serious work is being done here! 👏👏👏
I would suggest breaking every new section into its own PR with its milestone set to 1.0.0 to make the reviewing merging process cleaner.
Looking forward to reaching 1.0.0! 🎉

To clarify, split each section relative to this branch, or from the master branch? A lot of the sections have been written in commit 41847d0ef2ccb77ddd23d2e42f77403efb9af6db, but need testing, documentation and possibly small fixes.
I'm also not able to set milestones on issues or pull requests, I think only maintainers/owners can do that. :yum:

I've noticed quite a bit of the documentation is out of order, I'll shuffle things around to make it in the same order as the prompt, for ease-of-use. :slightly_smiling_face:

Heya! This is almost ready to merge, this just needs testing for MacOS, which I'm not able to do. The AppVeyor and Travis-CI, Linux build passes, but there is an issue on MacOS.

Could you please test the line above on MacOS and modify it, because it appears to have a bunch of random spaces which isn't the case on Linux. Other than that, I'd love to hear if you can spot anything I've missed. :slightly_smiling_face:

Does the mock function have to be included in each individual test that needs it? Is there a way to make a global mock function? The MacOS issue still occurs, too, hmm...

@Snuggle any chance that we could remove jobs from this PR and take care of it separately? The rest of it looks like it's ready to be reviewed.

I'm not sure I totally understand your question.
What is shown in your screenshot should mock the newdate function with an exit code of 0, and should run date --date=@2147483647 $args, replacing $args with its assigned value.

I'm trying to fix this bug and I need to call a mock date function that has a set, static time. NOT the current time. But I would need both the date format and the static time as an argument.
mock newdate 0 "date --date=@2147483647"
set time_str "$time_str"(newdate +%I:%M:%S)
I would like the mock function to return the value of date --date=@214748364 +%I:%M:%S, but I can't figure out how to pass it.

Works fine for me 😄

Ah, but I need to do newdate "+%I:%M:%S". The time format changes and cannot be in the mock function. It would have to be passed.

In that case you'll probably want to write a function.

Gosh, trying to get things working in MacOS through automated testing is a real struggle. I need to fire up a MacOS virtual machine.

Looks ready to merge after those last couple comments 👍
Thank you for taking the time to work on this monster PR! 🎉

No problem! It was a pleasure finding a project that I loved and could understand. Open-source can feel really daunting when you're faced with codebases that are monstrously big. Thanks for the thorough reviews and for porting my favourite Zsh prompt theme to Fish! I love the name and aesthetic, too.
(I also need to fix Atom because it's throwing borked whitespace all over the place.)

I'm glad you found this project to be easy to contribute to!
I really appreciate your kind words. 😄

authors: Snuggle matchai

repo: matchai/spacefish


text:
Alben, Frank Abel, Karel

Datos del proyecto

Complete la siguiente información

Nombre:: Simulador de un bot de rebalanceo de activos
Repositorio: https://github.com/University-Projects-UH/ia-sim-cmp
Reporte: https://github.com/University-Projects-UH/ia-sim-cmp/wiki
Breve resumen

Este resumen (o uno ligeramente más amplio) debe aparecer también en el reporte linkeado arriba.

Apoyándonos en datos anteriores de varios activos de https://finance.yahoo.com/ vamos a simular el precio de estos para así tener un registro diario de varios factores de cada activo ya sea para días posteriores a los que contienen estos registros, ya que los datos que encontramos en esta página se van actualizando diariamente, esta información se podrá utilizar para el bot de rebalanceo, el cual se podrá configurar para establecer el por ciento de capital que representará cada activo, los activos que se usarán, y se establecerán estrategias para maximizar el profit de este.
Miembros del equipo

Alben Luis Urquiza Rojas (@alurquiza)
Frank Abel Blanco (@FrankBlanco1)
Karel Díaz Vergara (@Karelito00)

Aprobación

Estos elementos serán chequeados por los profesores de la asignatura para aprobar el proyecto.

[x] El repositorio indicado existe
[x] El documento de reporte existe, y tiene la estructura inicial (nombre del proyecto, autores, breve descripción)
[x] Los miembros del equipo tienen usuarios en Github debidamente identificados (avatar, nombre completo, y página de perfil)
[ ] El resumen describe una idea factible y de complejidad adecuada

En caso de que algunas de las condiciones anteriores no se cumplan, en este issue les dejaremos todos los comentarios y discusiones necesarias para lograr la aprobación del proyecto.
Este issue será cerrado una vez se considere definitivamente aprobado o rechazado el proyecto, y se le pondrá la etiqueta correspondiente.

Imagino que podrás programar diferentes estrategias para el bot, y hacer simulaciones para ver que estrategias son mejores, no? ¿Cómo se imaginan que luzca el lenguaje?

Sip, la idea es que existan como dos entidades fundamentales, los activos y los bots, de forma tal que con el lenguaje puedas crear activos y asociarle una gráfica de yahoo finance, esto para poder tener un histórico de este activo, y poder simular o intentar predecir un precio parecido al que tendrá en el futuro.
Luego tenemos los bots, la idea fundamental de estos es simular operaciones en el mercado de compras y ventas para maximizar el profit, tenemos la idea de crear un bot de rebalance, que trabaja con varios activos, otro bot que sea más inteligente, otro que se llama grid bot que viene siendo más de simulación, pero la idea en general es que puedas ajustarle parámetros a estos, ya sea el rango en el que van a correr de tiempo y de precio, takeprofits de cada operación y en general, así mismo como stop loss, etc etc, además de ponerle parámetros para que los bots tengan en cuenta algunos análisis de mercado, como lo es análisis de media móvil, resistencia, soportes y otros indicadores

Hola muchachos, yo estaré tutorando este proyecto. Cualquier duda me esriben por acá o por telegram

authors: Karelito00 sestevez yudivian


text:
Params to turn off next/previous page - and breadcrumb

I think this is all good!
re: #136

tweaked to allow
disableBreadcrumb: true
disableNextPrev: true

In page params or site params

Sorry, I'm super late. See my comments :)

And btw, could you update the documentation (English part, I will do the french one ^^) with your changes ?

Site params: http://learn.netlify.com/en/basics/configuration/#global-site-parameters
Page params: http://learn.netlify.com/en/cont/pages/#front-matter-configuration

Thanks again :)

Can we merge this in as a sitewide setting and add per-page override to the backlog? I've tried implementing this but can't solve without having a disableNextPrev and a enableNextPrev.

authors: matalo33 matcornic willwade

repo: matcornic/hugo-theme-learn


text:
Logo links BaseUrl now

This might ease the adaptation of the theme for Hugo newbies like me ;)

I did some validation that there wasn't a hugo object for the home page and not just the BaseUrl but I can't see a suitable value. BaseUrl will work in most cases, and is an improvement on the getgrav address, but can't say for sure it will work nicely with all setups (e.g. uglyurls, relativelinks, etc.)
Discussed further at https://github.com/gohugoio/hugo/issues/4642


text:
The Rust Implementation of the Malware.

I haven't been able to implement Microphone recording & Live microphone yet.
I will do the GUI soon to build the program with it (while also generating a random key for the malware).
Everything else has been implemented by now.
The malware key is located in ./src/key.pysilon.
I replaced uploading in many different files into proxying the files, I believe it's a nicer implementation.
I also added new things, such as sorting the processes and .download_tar.
Any suggestions for the code and I'll gladly accept it!
(And, if you know any crate for the Discord bot, aka, Live microphone, and to record the microphone, lmk to implement it!)

hi can you help to fix an error

That's not related to this PR, make in an issue on here and I'll try to help you, though.

That's not related to this PR, make in an issue on here and I'll try to help you, though.

okay i did sorry relly want to prank my friends

Seeing that you have used a completely different language, you should probably just open up your own repo and ask him to link you and vice versa.

Iirc, he said that he wanted to port it to some other language like C++, so, yeah, though he hasn't shown any activity so far.

Yeah, you can kinda see it going through his repo issues

Your code looks really good tho

HI! Sorry for my recent absence. I'm back alive now

Welcome back!

Your code looks really good tho

Thank you, I did put a lot of time on it lol

Yeah, can't code in rust sadly, but I wanna learn rust next probably. Imma take a look at your repo again, sec.

You should add a fork bomb or zip bomb too. Those are pretty fun and not that hard to make I think. Later imma look into some ps1 scripts that I have left, I might find some interesting ideas there

Seeing that you have used a completely different language, you should probably just open up your own repo and ask him to link you and vice versa.
RSilon-malware. Sounds pretty good I think.

Yes, forking the repo would be best.

You should add a fork bomb or zip bomb too. Those are pretty fun and not that hard to make I think. Later imma look into some ps1 scripts that I have left, I might find some interesting ideas there

I'll look into it rn and see how that goes (aka, sure)

Sounds good, if you guys want, you could open up a discord or something for this. Not to run the bots but just to support the people. Otherwise I'd also recommend to open discussions with Q&A and putting the install in a wiki maybe. The readme is long long and it misses a few bits like .webcam picture

A Discord sounds good but I have no idea if someone can report it and just bonk us out of the platform

No I don't think so, it's for educational purposes. Imma make one real quick and send y'all the invite to discuss Pysilon, and the rs version there. As well as fixing some issues and implementing new functions

Alright, sounds good!

https://discord.gg/ZtTmaBbcUD

authors: HorridModz ZorroMundoYT mategol roni2918 whois-hoeless

repo: mategol/PySilon-malware


text:
Doc? Fonts & rendering path advice

Hello, I'm using the code in an app and totally enjoying the library:
about app

Static site
Hosted on firebase
Bundled/transpiled with webpack/babel-loader
Bundled using webpack rules to import SCSS directly from node_modules/@material/*

issue: slow rendering (fonts)
I noticed this when I ran Lighthouse (with emoji commentary)
😑 Opportunities
￼

￼
🤔 ok cool, go find in devtools…
￼

🤔 ok, go to bundle…
found this CSS import in https://github.com/material-components/material-components-web-react/tree/master/packages/material-icon: @import url(https://fonts.googleapis.com/icon?family=Material+Icons);
🤔 ok, go get that resource in chrome…
@font-face {
  font-family: 'Material Icons';
  font-style: normal;
  font-weight: 400;
  src: url(https://fonts.gstatic.com/s/materialicons/v38/flUhRq6tzZclQEJ-Vdg-IuiaDsNa.woff) format('woff');
}

.material-icons {
  font-family: 'Material Icons';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
}

💪 ok cool, MaterialIcon has sass with this fonts.gstatic.com URL.
Basically any of these fonts in css files that are in HEAD will block rendering on the network if the user puts a link to the css file in head or in a style tag.
So I pre-loaded https://fonts.googleapis.com/icon?family=Material+Icons in the head of my HTML, and could preload the woff file also, but that is not really a stable way to go about it since any of the packages in the chain could break without warning.
try to fix issue
I was able to configure webpack to consume the @ material sass directly, but because of this URL I don't know how to make this code lighthouse-friendly without putting it after the body. I may be doing something wrong at a higher level.
solution?
TL;DR: Could we come up with a way to bundle in the font resources? Or SVGs? Maybe that takes the form of documentation or an example.
My sense is that some users are going to write this off as being slow rather than tear in to the details, so if we could make stuff 'just work' as they say, it'd be great. Surely for places like the Top Navbar in-line SVGs would be more performant than an icon font. (I think it's ~62kb) Maybe I don't know about a bundler that would let me resolve this, the closest thing I found was
https://www.npmjs.com/package/google-fonts-plugin, but I don't know how I'd connect it to this code as a user.
Where'd I go wrong here? Is there something on the roadmap that I'd want to know about?

@johnelliott thanks for filing the issue. I'll look into this and get back to you. I see the problem that you and others will have with the MaterialIcon component. Right now I'm leaning towards base64 encoding it into the Sass of MaterialIcon and using that google fonts plugin. I'll check in with the rest of the team to see what solutions they come up with.
As a side note: I think that the 1st initial render is slow, but the subsequent renders are faster because Chrome/FF should be caching that font.

@johnelliott I briefly got some more ideas from the team, and I'm not sure if encoding the font is the correct way to go.

You wouldn't get font updates or bug fixes until we synced with the new font file
It would bloat your css instead (I recognize that 1 large file download is better than many small downloads)

I think the google fonts plugin belongs in your build step and not ours. I understand this won't work for people using CRA, but I see CRA as a quick way to get going or spike an idea.
Let me know if this helps.

Thanks Matt. I see your reply and I will answer once I get a moment.

@johnelliott spoke to @kfranqueiro. We both agree we should remove the url from the Sass file so that the end user (you) can have more control over how it is being imported. We came up with this solution:

Replace material-icon with icon button, which entail creating a react icon button component.
referencing the icon toggle readme to preload the icon font.

We decided that icon toggle was the way to go because of this issue https://github.com/material-components/material-components-web/issues/2702 found in our core repo. Basically we need it to have a height and width.
You're probably asking timeline: We are currently in the middle of a MDC Web version sync, which this can be included with.

@moog16 that sounds like a double-win. I just looked over the icon-button and material icons code for how it all works.
So if I'm understanding this correctly, it's

Removing this import will eliminate a round-trip needed to get the font file after the Google Web Fonts css is fetched. Then the user will have the option of implementing the self hosting method here if desired.  The user becomes responsible for including the material-icons css either way.
solve material-components/material-components-web#2702

That sounds like a solid choice, it'll certainly solve my case if the import to Google Web Fonts service comes out. Thanks for looking in to it.

@johnelliott yes that's right! Working on that today. Hopefully we'll have the sync ready to go by the end of the week if all goes well.

That would be a good way around. This isn't a super-urgent matter because it's not yet deployed anywhere. :)

Steps to reproduce:

Use MaterialIcon in a brand new react app
Pull up the devtools and look at the Network

Expected Behavior

There should be no network transaction for downloading https://fonts.gstatic.com/s/materialicons/*

Actual Behavior

Network downloads https://fonts.gstatic.com/s/materialicons/*

When we update the MaterialIcon code so it does not download the material icon font...we should also provide documentation to our users on how to lazy load the material icon font.

Nice work :) I am looking forward to using the lib more.

authors: johnelliott lynnjepsen moog16


text:
(fix) Windows development

Enable development on windows environment.
Replace non-windows commands for npm cross environment packages.

rimraf replaces the rm command
cross-env for setting environment variables

@moog16

Codecov Report

Merging #662 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #662   +/-   ##
=======================================
  Coverage   94.83%   94.83%
=======================================
  Files          67       67
  Lines        2768     2768
  Branches      414      414
=======================================
  Hits         2625     2625
  Misses         50       50
  Partials       93       93

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 788b426...3a6fb30. Read the comment docs.

I did not test the screenshots on Docker, the changes made were to get the
npm run test:unit to work first
I ran into other problems when trying to get this project setup on my
windows machine. npm install/ci is failing as well.  I can log an issue
for that if you want.
On Fri, 8 Feb 2019 at 07:11, Matt Goo notifications@github.com wrote:

@moog16 commented on this pull request.
Thanks for opening! Changes look good - I'll have to test myself on a
windows machine.
Did you also test the screenshot tests on Docker?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/material-components/material-components-web-react/pull/662#pullrequestreview-201326105,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABFkvd5bnqBMaGAi--Qg8WUQpRiZnDIoks5vLJaBgaJpZM4amjJu
.

gotcha - nope this is better than nothing :)

tests pr https://github.com/material-components/material-components-web-react/pull/664

@madaz  please sign this PR

I signed it!

authors: codecov-io madaz moog16


text:
Material-web.dev Theme Controls provide wrong palette

Description
Theme controls in material-web.dev provide a color scheme with medium level of contrast, instead of the standard one.
otherwise, m3.material.io/theme-builder generate standard contrast color scheme, but is out-of-date
Browser/OS Environment
No response

Can you give steps for how you determined the catalog is giving medium contrast?
In our code, we're using 0 for contrast in material color utilities, which according to its docs should represent the design standard.

I checked again and it seems I made a mistake setting the source color.
with material theme builder my source color generates a light pattern, but with the material-web.dev tool itbecomes very dark. I've had the adjust the tone value of the source color

Glad to hear you found the problem!

authors: CicciLeo asyncLiz

repo: material-components/material-web


text:
Is that expected behavior that updates natural color drastically?

Describe the bug
On Material theme builder on the Web and Figma plugin, the natural color changes drastically when I modify its parameter. And I can't restore the default color palette.
To Reproduce
Steps to reproduce the behavior (see screen shot below):

Go to Material theme builder on the Web
Click on "Neutral"
Change the Hue value by 1 point.
Neutral color is drastically changed.

Expected behavior
I don't know if this is expected behavior or not. But users must expect to restore the default state, at least.
Screenshots
[Default color paletto]

[After Updated 294 (293.03761206699426 as precise) -> 293]

Desktop (please complete the following information):

OS: macOS (12.3.1)
Browser: Firefox / Chrome
Version: [Firefox] 104.0.2 (64-bit) / [Chrome] 105.0.5195.125 (Official Build) (arm64)

Smartphone (please complete the following information):

Device: NA
OS: NA
Browser NA
Version NA

Additional context
NA

I was stuck at this as well. on the web and in Figma plugin it wrests chroma/saturation unpredictably high for most colors probably mostly when the primary is saturated. Especially enigmatic is the sudden switch to bright cyan if chroma = 0.
On a related note, it tunes the hue of the some colors +/- but I expect it can be due to some special perceptive magic. Though it looks like the mid-contrast rules are broken here as well as in WCAG 2. So I am not sure if it is intentional.

I have the exact same problem. Chroma and Tone seem to jump to an unknown locked position whenever I try to edit them.

authors: andaja pbroom sundaycrafts


text:
install onto RPI with Node 12 failing

Installing with NPM onto an RPI running node 12 continually fails. I have verified if I pull the repo and install local then it installs correctly.

This happens even with --build-from-source

Should be fixed with 1.0.3. If not feel free to reopen.

Its works now. Thank you.
On Tue, Jul 2, 2019, 4:49 PM Mathias Küsel notifications@github.com wrote:

Closed #59 https://github.com/mathiask88/node-snap7/issues/59.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/mathiask88/node-snap7/issues/59?email_source=notifications&email_token=AIZPHCH3ZE5MHIISD2STHRTP5O5O7A5CNFSM4H4LGG52YY3PNVWWK3TUL52HS4DFWZEXG43VMVCXMZLOORHG65DJMZUWGYLUNFXW5KTDN5WW2ZLOORPWSZGOSJO7YPQ#event-2455632958,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AIZPHCEIP5AWDJ2Q2BPMK53P5O5O7ANCNFSM4H4LGG5Q
.


text:
Create exponent class

http://ec2-34-200-244-39.compute-1.amazonaws.com/boards/5/topics/36/
and implement the first two formulas

ive got a start on it, just had some branch problems

repo: mathincubator/mathlib


text:
Refresh token request should be idempotent

It can happen that a refresh token use works on the server side, but then the response never comes back to the client.
This usually means that the client gets logged out, as their old refresh token isn't valid anymore, and they don't have the new one.
One way clients could work around this would be to redo a authz grant with the same device ID, but this impractical in many situations.
To avoid this problem, we should make the refresh token grant idempotent. This means we should track whether access tokens are used or not, and allow re-using an access token if neither the new access token nor the new refresh token were used.

Oh this is the reason why my phone get logout every night.

I seem to run into this issue randomly with Element-X-IOS. From time to time we are presented with the welcome screen on our iPhones, EX-IOS simply did throw us out.
As I want to migrate all to Element-X now, this issue is more or less a showstopper. I don't think any "normal" user remembers server domain and this backup passphrase somwhere on the road. A user should never be logged out in a smartphone messenger without explicitely wanting this.
Unfortunately I don't see a trace this will be fixed in the upcoming 0.10.0? @sandhose
@wrenix How did you fix this at the client side?

related to https://github.com/element-hq/element-web/issues/27914

@jacotec There is indeed nothing in 0.10.0 for that.
One temporary workaround to help with that is to bump the lifetime of access tokens, from 5 min to something like half an hour:
experimental:
  access_token_ttl: 1800

Refresh token idempotency is a tricky problem to solve, and we want to make sure we implement it right, without hiding potential client implementation problems

@jacotec There is indeed nothing in 0.10.0 for that.
One temporary workaround to help with that is to bump the lifetime of access tokens, from 5 min to something like half an hour:
experimental:
  access_token_ttl: 1800

Refresh token idempotency is a tricky problem to solve, and we want to make sure we implement it right, without hiding potential client implementation problems

@sandhose This workaround needs to be applied exactly where? MAS? Sxnapse? What is the impact of increasing the lifetime?
If I open Element-X after 4 hours, is there a lower chance to be logged out? Or would I need to set the token to something in a days range?
My issue is: We use it for family, and there are our 80yrs+ parents in. No way to explain them on the phone how to re-login again. I do the app istallation and I need to be absolutely sure they are not logged out by random (which never happens in Element-Legacy).

This workaround needs to be applied exactly where? MAS? Sxnapse?

It's in the MAS config

What is the impact of increasing the lifetime?

One of the reason for short-lifetime like that is to lower the impact of an access token leak. If your access token leaks, the potential attacker would be able to impersonate you for at most the lifetime of the token.
That being said, I wouldn't worry too much about that for now.

If I open Element-X after 4 hours, is there a lower chance to be logged out? Or would I need to set the token to something in a days range?

There is a very much lower chance, yes. In EX, this issue happens if the token refreshes just before the background process gets closed. With a longer token TTL, there is a higher chance that refresh happens when you just opened the app, not when you're closing it

@sandhose Sounds good, I've set it to 86400 now to minimize any logout chance.
What's the compat_token_ttl doing, which is also in the experimental section and defaults to 300?

What's the compat_token_ttl doing, which is also in the experimental section and defaults to 300?

@jacotec MAS supports MSC2918 style refresh tokens, which are refresh tokens but with legacy auth. This was added a while back, but no client use it, so that setting likely won't change anything in your case

authors: jacotec n0emis sandhose wrenix


text:
Changelog normalization

We should probably have CI for this too. This issue serves as a reminder to fix the client-server changelog before release.
Eg: https://github.com/matrix-org/matrix-doc/pull/2148 has a .misc changelog.

I think this must have happened?

repo: matrix-org/matrix-doc


text:
Clarification on third party fields

Some abnormal syntax was used in #1353, this PR aims to correct that. @KitsuneRal

Thank you!

Well I tried using explode: true but it didn't seem to have any effect on the outcome, other than just changing the type to object, which seems more confusing.

https://travis-ci.org/matrix-org/matrix-doc/builds/399781747#L831-L833 says otherwise - it renders "fine" (needs improvement, but doesn't crash), however the validator gets angry.
I wouldn't be opposed to yet another special case in the build scripts to convert in: query, type: object, explode: true, name: fields to "Arbitrary query string parameters" as a type.

Does explode come from OpenAPI 3?

yes

So are we going to try changing the validator script then? Where is it located?

There's 3 scripts that likely need changing: The check_examples.py, validator.js, and some chunk of the build stuff to make it render correctly. This is assuming we're introducing a OpenAPI 3 compatible extension to our spec and not upgrading now though.

While we're cleaning up this - title: Location in a-s/definitions/user.yaml looks as a copy-paste consequence. Shouldn't it be User instead?

And one more piece of cleanup, there are several issues with operationId: queryMetadata:

"Query" is not the best name for operations not getting any query string.
The namespace of operationId's is the entire API, so "metadata" is a bit too generic.
Let's avoid name overloading (there are two operations named queryMetadata). Not all programming languages support it, and using operationId to refer to an operation becomes ambiguous.

Can we have something like getNetworkProtocols and getProtocolMetadata instead? Sorry for not making this and the previous comment proper review comments: if I find more, I promise to just make a PR.

Thanks for being patient on this one. Fixed the inline comments from @turt2live and @KitsuneRal. Still need consensus on explode and OpenAPI v3.

I can live with explode as an alternative extension to ellipsised name. OpenAPI v3 transition is certainly a topic for another PR.

Validator still gets angry though, so will need someone to make it happy..

The more and more I think about it, the more and more I want to just upgrade and see what explodes. If you have a chance, that'd be something to test otherwise I'll do it at some point.
If the validator gets angry (and it's not something we can sensibly control), then we can stick with the extensions for now assuming no one has time to look into OpenAPI 3. Preferably with a TODO comment saying something along the lines of "replace with explode when OpenAPI 3 is done".

Another issue is that on Synapse third party lookups require auth. @Half-Shot has expressed that auth should certainly be required lest we allow users to figure out what rooms are bridged on a server without authentication.

To be honest with all these things I think it's best to ask "Why should we allow unauthed requests". I can't see any reason why a user would not be authenticated but want stuff from the appservice.

Also the example on reverse lookups doesn't have the user or location query parameters, when those are required.

Good point, will do.

This is ready and has been rebased. Unfortunately master seems to have broken on the following error:
gendoc: > appendices/signing_json.rst
Traceback (most recent call last):
  File "./scripts/gendoc.py", line 547, in <module>
    exit (main(args.target or ["all"], args.dest, args.nodelete, substitutions))
  File "./scripts/gendoc.py", line 442, in main
    build_spec(target=target, out_filename=templated_file)
  File "./scripts/gendoc.py", line 198, in build_spec
    outfile.write(section.encode('UTF-8'))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe6 in position 5128: ordinal not in range(128)

Will merge on @kitsune's approval
On 07/30/2018 08:21 PM, Travis Ralston wrote:

@turt2live approved this pull request.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/matrix-org/matrix-doc/pull/1414#pullrequestreview-141679714,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABR7mFeE-ECP_L6z-fNLi1jSWQMDDSSRks5uL1zMgaJpZM4VOsB3.

Will merge on @kitsune's approval. @mujx is invited to look if he
chooses as well
On 07/30/2018 08:21 PM, Travis Ralston wrote:

@turt2live approved this pull request.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/matrix-org/matrix-doc/pull/1414#pullrequestreview-141679714,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABR7mFeE-ECP_L6z-fNLi1jSWQMDDSSRks5uL1zMgaJpZM4VOsB3.


text:
Fix Push Gateway API example: Field renamed to event_id

I believe this was forgotten in:
71cb646541ed2611e8f623fc28fac55b3aa73fbb

Thanks @reivilibre - this does indeed look correct. Can we get sign off and a changelog per the contributing guidelines please?


text:
Fix timeline scroll position when viewing a room for the second time.

Fixes https://github.com/vector-im/element-ios/issues/4524.
This was a regression made here in v0.15.1. Needs testing against a virtual timeline to confirm it hasn't undone what it fixed in that situation.

The change looks good to me. I will let @ismailgulek check it in a virtual timeline context.

authors: manuroe pixlwave

repo: matrix-org/matrix-ios-kit


text:
refresh the number of version

What type of PR is this?

[x] Enhancement
[ ] Displaying
[ ] Typo
[ ] Doc Request

Which issue(s) this PR fixes:
issue #
https://github.com/matrixorigin/matrixorigin.io.cn/issues/679
What this PR does / why we need it:

fix conflict

Done

authors: dengn lacrimosaprinz


text:
adding support for SSML in responses

I have added initial support for making SSML responses, converting each plain_text response to SSML. There is utility associated such that it knows to remove the SSML in a card, and can handle linking of speechOutputs such that there is only one outer  element.
This allows you to embed SSML in your response.say() calls and makes it easy to use that text in the response.card() call as it will strip out only the SSML.
I left .clear() alone as having an empty response in PLAIN_TEXT should not break anything. The first assigment will change it to SSML.
NOTE: One of the other things SSML.fromStr provides is a mapping of number literals to word phrases through the numbered module. Even though Alexa speaks the number literals, if it is at the end of the sentence, it will also say "dot" after reading the number. I believe the API states that the word should be used instead of the literal.

Note - This change introduced a dependency on numbered, which wasn't in package.json as a dependency. Resolved in version 2.3.1

Although version 2.3.2 will take that module back out, haha!

authors: OverloadUT matt-kruse rickwargo

repo: matt-kruse/alexa-app


text:
Bug report: octokit.issues.create

In the "Let's write some JavaScript" portion of the tutorial, there is a part that states:

Creating an issue in the repository
Next we use that octokit client to create an issue in your repository, which will make the HTTP request to the GitHub API for us. Look here to learn more about octokit.issues.create().

The "Look here" URL directs us to https://octokit.github.io/rest.js/v16/#octokit-routes-issues-create, which is a page 404 error.
The proper URL should be: https://octokit.github.io/rest.js/v18#issues-create
Note that the way the method should be called has also been updated.
It is not
...
async function run() {
  try {
    const issueTitle = core.getInput("issue-title");
    const jokeBody = core.getInput("joke");
    const token = core.getInput("repo-token");

    const octokit = github.getOctokit(token);

    const newIssue = await octokit.issues.create({
        repo: github.context.repo.repo,
        owner: github.context.repo.owner,
        title: issueTitle,
        body; jokeBody
    });
  } catch (err) {}
}

run()

But rather:
...
async function run() {
    try {
		...

        await octokit.rest.issues.create({
            owner: github.context.repo.repo,
            repo: github.context.repo.owner,
            title: issueTitle,
            body: jokeBody,
        })
    } catch(err) {
        ...
    }
}

run()

Unfortunately, I'm pretty new to the world of submitting issues and open source contributions, so I don't know how to do actually implement the fixes to the tutorial itself. I just wanted to share this in case others may have gotten stuck here.
Also, I might be extremely lost and might be talking to the wrong person/team, so please forgive me if I just came to a stranger to report a bug.
That said, I'm actually super stuck at a later part of this tutorial, and can't proceed any further despite 15+ attempts with various different commits and changes. It might just be me being bad at following instructions though.

@MSoup Thank you for letting me know.  There was a change in the Octokit API implementation for the Actions toolkit.  That is what caused this bug.
Unfortunately, this repo is pretty much dead as the project it was tied to is one that I am no longer working on.  However, if you'd like to submit a pull request with this change I will approve it and merge it in, that way you get some marks on your contribution graph 😄


text:
"Cannot start service openocd" with macOS

Hi, I have tried programming both side of PCBs on macOS.
It fails at running containers with "docker-compose up" command.
I think error messages are related to udev.
Starting redox-w-firmware_openocd_1 ... error
ERROR: for redox-w-firmware_openocd_1  Cannot start service openocd: error gathering device information while adding custom device "/dev/bus": no such file or directory
Do you think moving to a linux device is the only remedy? :(

Hi,
yeah unfortunately it seems to be quite hard to do. There's a weird VirtualBox trick but I never tried it. This is the first link a found and can't recall what the actual query was so I suggest you to keep on digging.
Hope this helps.

In my case I've decided to roll back to the non-docker-based version in the repository: https://github.com/mattdibi/redox-keyboard/tree/1c5757389c0fc705b7f8c10168a5efc069b68620/redox-w and do everything "by hand". One note along the way: the mac os readlink command won't take -f params, so I just replaced it entirely with a hardcoded full path to

repo: mattdibi/redox-keyboard


text:
Support for IdentityServer4.IdentityServerConstants.ClaimValueTypes.Json deserialization

Dear Matteo,
is it possibile to support IdentityServer4.IdentityServerConstants.ClaimValueTypes.Json object deserialization?
For example we'd like to store address as complex object (or json) claim, like below:
new Claim(JwtClaimTypes.Address, @"{ 'street_address': 'One Hacker Way', 'locality': 'Heidelberg', 'postal_code': 69118, 'country': 'Germany' }", IdentityServer4.IdentityServerConstants.ClaimValueTypes.Json)
But when we get the user from UserManager and pass it through ActionResult API endpoint it's still a string and not a json object.
Thank you!
Alessandro

Hi @alecrt!
What you trying to achieve? This lib is wrapper for ASP.NET Core Identity and doesn't responsible for any claim conversions etc.
As i understood correctly, you want use JwtClaimTypes.Address like object. According to official docs Claim can contains only string value. If you want to use more complex type than string you should check it on ValueType field and than decide what to do with it.
Also i checked IdentityServer4 example repository and added to watch claims. As you can see on screens the Value still string, but you can identify it by ValueType and convert.

Please follow the link which i mentioned before to official docs - it has a lot of explanation about Claims.


text:
Mac: App v3.4 crashes with OS X 10.10.5

I confirm (by marking "x" in the [ ] below):

[X] This is not a feature idea. Feature ideas go here: http://www.mattermost.org/feature-ideas/
[X] This is not a troubleshooting question. Troubleshooting questions go here: http://www.mattermost.org/troubleshoot/
[X] This is a product defect issue that can be reproduced using the steps listed below.
[X] I have read CONTRIBUTING.md.

Summary
Unable to open the app, which crashes each time. Problem resolved by upgrading to OS X 10.11.6.
Reproduced with MM Desktop v3.4 and MM Server v3.4

Has anyone else using Mac 10.10.5 experienced problems?

I'm using OS X 10.10.5 in my work, but I have not experienced.

Works for me on 10.12.1

Thanks @yuya-oc and @magicmonty, much appreciated!
The original reporter hasn't been able to reproduce it after upgrading to OS X 10.11.6.
Closing for now, if anyone is able to reproduce, please reopen the issue with relevant information.

authors: jasonblais magicmonty yuya-oc

repo: mattermost/desktop


text:
Incorporated payload descriptions

Based on recent community led requests for documentation:

Clarified key payload definitions in the Mobile apps FAQ documentation for data transmitted to the push notification service when using the ID-Only setting.
Clarified that no notification data is stored by Mattermost, and that any data stored is at the server level, such as device_id.

@cwarnermm, LGTM, just two comments to be addressed. :)

authors: cwarnermm justinegeffen

repo: mattermost/docs


text:
📝 docs(about): update Mattermost customizable chatbot framework page

This PR adds a description of Mattermost AI framework repository and its features to the Customizable ChatGPT Bot Framework page
Separately, this page probably needs an overhaul to be more generic for AI/LLM and not just ChatGPT.

PR to adjust title & opening sentence to refer to a generic AI bot framework on the page https://github.com/mattermost/docs/pull/6416

@azigler - I've incorporated these updates via https://github.com/mattermost/docs/pull/6416.

authors: azigler cwarnermm jasonblais


text:
[GH-162] Added required ENV vars to use MinIO storage when enabled in values

Summary

This PR sets the DriverName to amazons3. It means that Mattermost will be able to use MinIO storage when minio.enabled is set to true in values.
Ticket Link

Fixes https://github.com/mattermost/mattermost-helm/issues/162

Hi,
Have you had a moment to have a look here? Is there any other information pending from my side? I'd like to close the issue #162, thanks.

repo: mattermost/mattermost-helm


text:
Remove Post Priority Feature Flag

Summary
Remove the Post Priority feature flag. This is no longer needed as it has been enabled for a while and it now relies on the ServiceSettings.PostPriority config setting
Ticket Link
https://mattermost.atlassian.net/browse/MM-48931
Device Information
This PR was tested on:
Related PR
https://github.com/mattermost/mattermost/pull/23735
Release Note

None

Since which version was removed? Remember the mobile app can connect to a multitude of server versions. Does it matter?

Since which version was removed? Remember the mobile app can connect to a multitude of server versions. Does it matter?

It's being removed in parallel in this PR https://github.com/mattermost/mattermost/pull/23735 with the next server version.
The feature still is checked against a permanent config setting for PostPriority so that should be enough for backward compatibility, right?

Since which version was removed? Remember the mobile app can connect to a multitude of server versions. Does it matter?

It's being removed in parallel in this PR https://github.com/mattermost/mattermost/pull/23735 with the next server version, so possibly it will go out without the FF in v8.1 and mobile 2.7
The feature still is checked against a permanent config setting for PostPriority so that should be enough for backward compatibility, right?

If the feature flag is available on a previous server version where it is enabled, then it would not be enough

If the feature flag is available on a previous server version where it is enabled, then it would not be enough

If it was enabled then the config would be enabled as well so that would cover it? The only rare case would be that the Feature Flag would be enabled but not the Post Priority config setting which seems invalid.

So basically you saying that the config setting is always present with and without the feature flag?

So basically you saying that the config setting is always present with and without the feature flag?

Yes, see https://github.com/mattermost/mattermost-mobile/blob/d4bb010b57eb7588d9d6a37a8af49661e39c1d3c/app/queries/servers/post.ts#L246 and the change in this PR it now always relies on the config which was introduced at the same time as the FF here: https://github.com/mattermost/mattermost-mobile/pull/6620

Since which version was removed? Remember the mobile app can connect to a multitude of server versions. Does it matter?

@enahum How about the over way around? An old mobile app that connects to the new server? Is that an option? How is that handled?
Because in that case if an old mobile app that still looks for the Feature Flag and connect to >v8.1 will return false to that flag and the feature is missing.

@marianunez yes that would be a possible scenario, but easily fixed by asking the end user / customer to update

Building app in separate branch.

authors: enahum marianunez mattermost-build

repo: mattermost/mattermost-mobile


text:
Bumped plugin version to v2.3.0

For when we're ready

@levb, maybe it's just an issue I'm having locally by I can't build this to see the version increment.
When I git pull I see a merge conflict of some kind. CONFLICT (content): Merge conflict in webapp/src/manifest.ts
I tried fixing it with git reset --hard but the same thing occurs again when trying to pull the branch.

Hmmm, you shouldn't need to pull the branch unless you already had it before. If you want to build locally, I'd recommend
git branch -D lev-bump-version
git fetch levb
git checkout -b lev-bump-version levb/lev-bump-version

authors: DHaussermann levb

repo: mattermost/mattermost-plugin-jira


text:
Add Swift 5.2

Explorer pr: https://github.com/mattgodbolt/compiler-explorer/pull/1898

Thanks! :)

authors: Azoy RabsRincon

repo: mattgodbolt/compiler-explorer-image


text:
Vector Compile Error

Hi @matth-x
I am trying to implement OCPPv1.6 on Node-MCU32S, I was able to make the websocket connection but I am not able to send Boot Notification as I am getting a compiled error, can you please help me out with this?
this is some vector error, i am not yet familiar with vectors and how to solve this error
In file included from ~\Arduino\libraries\ArduinoOcpp\src\ArduinoOcpp\Core\Configuration.cpp:5:
~\Arduino\libraries\ArduinoOcpp\src/ArduinoOcpp/Core/Configuration.h:24:26: error: 'vector' is not a member of 'std'
td::shared_ptr<std::vector<std::shared_ptr>> getAllConfigurations();
^~~~~~
~\Arduino\libraries\ArduinoOcpp\src/ArduinoOcpp/Core/Configuration.h:24:26: note: 'std::vector' is defined in header ''; did you forget to '#include '?
~\Arduino\libraries\ArduinoOcpp\src/ArduinoOcpp/Core/Configuration.h:10:1:
+#include
~\Arduino\libraries\ArduinoOcpp\src/ArduinoOcpp/Core/Configuration.h:24:26:
std::shared_ptr<std::vector<std::shared_ptr>> getAllConfigurations();
^~~~~~
~\libraries\ArduinoOcpp\src/ArduinoOcpp/Core/Configuration.h:24:26: error: 'vector' is not a member of 'std'
~\Arduino\libraries\ArduinoOcpp\src/ArduinoOcpp/Core/Configuration.h:24:26: note: 'std::vector' is defined in header ''; did you forget to '#include '?
~\Arduino\libraries\ArduinoOcpp\src/ArduinoOcpp/Core/Configuration.h:24:70: error: template argument 1 is invalid
std::shared_ptr<std::vector<std::shared_ptr>> getAllConfigurations();
^~
~\Arduino\libraries\ArduinoOcpp\src/ArduinoOcpp/Core/Configuration.h:24:72: error: expected unqualified-id before '>' token
std::shared_ptr<std::vector<std::shared_ptr>> getAllConfigurations();
^

I removed #include  from Configuration.cpp and included it in Configuration.h, same I did for SmartChargingModel.h and GetConfiguration.h

~\Arduino\libraries\ArduinoOcpp\src\ArduinoOcpp\MessagesV16\ChangeConfiguration.cpp: In member function 'virtual void ArduinoOcpp::Ocpp16::ChangeConfiguration::processReq(ArduinoJson::JsonObject)':
~\Arduino\libraries\ArduinoOcpp\src\ArduinoOcpp\MessagesV16\ChangeConfiguration.cpp:43:32: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
const char *value_string = '\0';

Hi Chaitanya,
Probably, some dependencies aren't working yet. Have you copied the environment section [env:esp32-development-board] from the platformio.ini file into your own file?
Anytime when the compiler complains about the missing std::vector, please add #include <vector> to the file. That will help track down the error. The last compiler error looks like it expects a c-style string as initialization value, so try it by changing const char *value_string = '\0'; to ... = "";

Thank you, the issue has been resolved

I am getting these 'vector' errors in the SmartChargingService and GetConfiguration. These started appearing suddenly. Any specific reason for that? Did I accidentally upgrade/downgrade ArduinoOcpp?

repo: matth-x/ArduinoOcpp


text:
Question regarding pulling bds like functionality

Hey,
If I have a request to pull the historical composition of a dataset, say:
X = con.ref('TPX500 Index','INDX_MWEIGHT_HIST', [('END_DT','19991231'),])

Traceback (most recent call last):
  File "<input>", line 1, in <module>
  File "C:\...\Python27\site-packages\pdblp\pdblp.py", line 242, in ref
    ovrds, [])
  File "C:\...\Python27\site-packages\pdblp\pdblp.py", line 116, in _create_req
    request = self.refDataService.createRequest(rtype)
AttributeError: 'BCon' object has no attribute 'refDataService'

Any help?? Not sure what's going on!

I would guess the problem is you are not running con.start() before making your call to ref(). Please take some time to read the documentation, as both this and #25 are discussed in the tutorial as well as the docstrings of the relevant methods.
I do agree that the error message could be more informative if you have not started a connection already.

Hi Matthew,
I only sent a code snippet above, the full code looks like this:
import pandas as pd
import numpy as np

con = pdblp.BCon(debug=False, port=8194)
con.start()
con = pdblp.BCon(timeout=5000)

dts = [d.strftime('%Y%m%d') for d in pd.date_range('19991231','20180212')]

universes = ['SPX']

str_index = univ + ' Index'

X = con.ref(str_index,'INDX_MWEIGHT_HIST', [('END_DT','19991231'),])

I have read the documentation...but it doesn't seem to want to pull data where the number of stocks per index is greater than a few hundred, for some reason!

Could you set con = pdblp.BCon(debug=True, port=8194) and include the output from this? Not sure what is going on here since this syntax does not look problematic. Possibly related to hitting BBG terminal data limits since you mention you are pulling data on hundreds of instruments.

Hey Matt,
Thanks for the help. Bit confused myself here.
I don't seem to get any different output when setting the debug=True:
Traceback (most recent call last):
  File "<input>", line 10, in <module>
  File "C:\Users\sahmad\AppData\Roaming\Python\Python27\site-packages\pdblp\pdblp.py", line 242, in ref
    ovrds, [])
  File "C:\Users\sahmad\AppData\Roaming\Python\Python27\site-packages\pdblp\pdblp.py", line 116, in _create_req
    request = self.refDataService.createRequest(rtype)
AttributeError: 'BCon' object has no attribute 'refDataService'

It's very difficult for me to tell conclusively unless you post short reproducible snippets. For example in your above post you have
import pandas as pd
import numpy as np

con = pdblp.BCon(debug=False, port=8194)
con.start()
con = pdblp.BCon(timeout=5000)

str_index = 'SPX Index'

X = con.ref(str_index,'INDX_MWEIGHT_HIST', [('END_DT','19991231'),])

which first creates a  connection and assigns it to con, con = pdblp.BCon(debug=False, port=8194), then appropriately starts the connection con.start(), then reassigns a new connection to con, con = pdblp.BCon(timeout=5000) which you never end up starting. This is what leads me to believe you are not appropriately starting the connection.

Weirdly if I add a con.restart()
For example:
import pandas as pd
import numpy as np

con = pdblp.BCon(debug=False, port=8194)
con.start()
con = pdblp.BCon(timeout=5000)
con.restart()

str_index = 'SPX Index'

X = con.ref(str_index,'INDX_MWEIGHT_HIST', [('END_DT','19991231'),])

Then it works...?

This is not weird at all, this is expected behavior
con = pdblp.BCon(debug=False, port=8194)
con.start()
con = pdblp.BCon(timeout=5000)
con.start()

would also work since you need to start the second connection. In the example
con = pdblp.BCon(debug=False, port=8194)
con.start()
con = pdblp.BCon(timeout=5000)

those two con variables are different instances, since you have reassigned the value.
This would parallel writing
a = 3
a = 7

clearly a is not 3 after running this. Equivalently, you have a new connection instance, that generated by running con = pdblp.BCon(timeout=5000), that you never start in your previous examples.

Ah thanks Matt! Cheers for the help and awesome library - working like a dream now.

repo: matthewgilbert/pdblp


text:
Always get the same Error Code = 3

Hi,
I always get the same error:
Locksmith.LocksmithError Code=3 "(null)"

I'm trying to save an String but it failed. I don't know what the error could it be. Can you help me? It'd helpful if I can see the OSStatus.

Hey @nicopuri
Is this a new error (i.e. code was working before and has stopped)? What code are you using that causes the error?
Thanks

authors: matthewpalmer nicopuri

repo: matthewpalmer/Locksmith


text:
The library uses a deprecated library as a subdependency

oauth2client is deprecated, see https://pypi.org/project/oauth2client/

Thanks. That's correct. This is why the README points users to django-authlib which uses requests-oauthlib under the hood.

authors: majorgilles matthiask

repo: matthiask/django-admin-sso


text:
Not able to build this using cabal build

Here is the error
`Build profile: -w ghc-9.6.4 -O1
In order, the following will be built (use -v for more details):

conduct-0.1.0.0 (lib:conduct, exe:counter, exe:custom-build, exe:todomvc) (first run)
Preprocessing executable 'custom-build' for conduct-0.1.0.0..
Building executable 'custom-build' for conduct-0.1.0.0..
Preprocessing library for conduct-0.1.0.0..
Building library for conduct-0.1.0.0..
Preprocessing executable 'counter' for conduct-0.1.0.0..
Building executable 'counter' for conduct-0.1.0.0..
[2 of 2] Linking /mnt/hgfs/shared_folder/progs/haskell/conduct/dist-newstyle/build/aarch64-linux/ghc-9.6.4/conduct-0.1.0.0/build/counter/counter [Library changed]
Preprocessing executable 'todomvc' for conduct-0.1.0.0..
Building executable 'todomvc' for conduct-0.1.0.0..
[2 of 2] Linking /mnt/hgfs/shared_folder/progs/haskell/conduct/dist-newstyle/build/aarch64-linux/ghc-9.6.4/conduct-0.1.0.0/build/todomvc/todomvc [Library changed]
Error: cabal: Failed to build conduct-0.1.0.0. The failure occurred during the
final install step. The exception was:
dieVerbatim: user error (Error: cabal:
'/home/kushagra/.ghcup/ghc/9.6.4/bin/ghc-pkg-9.6.4' exited with
an error:
conduct-0.1.0.0: Warning: library-dirs:
/mnt/hgfs/shared_folder/progs/haskell/conduct/target/release doesn't exist or
isn't a directory
conduct-0.1.0.0: Warning: library-dirs:
/mnt/hgfs/shared_folder/progs/haskell/conduct/target/aarch64-apple-darwin/release
doesn't exist or isn't a directory
conduct-0.1.0.0: Warning: library-dirs:
/mnt/hgfs/shared_folder/progs/haskell/conduct/target/aarch64-apple-darwin/debug
doesn't exist or isn't a directory
conduct-0.1.0.0: Warning: dynamic-library-dirs:
/mnt/hgfs/shared_folder/progs/haskell/conduct/target/release doesn't exist or
isn't a directory
conduct-0.1.0.0: Warning: dynamic-library-dirs:
/mnt/hgfs/shared_folder/progs/haskell/conduct/target/aarch64-apple-darwin/release
doesn't exist or isn't a directory
conduct-0.1.0.0: Warning: dynamic-library-dirs:
/mnt/hgfs/shared_folder/progs/haskell/conduct/target/aarch64-apple-darwin/debug
doesn't exist or isn't a directory
conduct-0.1.0.0: Warning: haddock-interfaces:
/mnt/hgfs/shared_folder/progs/haskell/conduct/dist-newstyle/build/aarch64-linux/ghc-9.6.4/conduct-0.1.0.0/doc/html/conduct/conduct.haddock
doesn't exist or isn't a file
conduct-0.1.0.0: Warning: haddock-html:
/mnt/hgfs/shared_folder/progs/haskell/conduct/dist-newstyle/build/aarch64-linux/ghc-9.6.4/conduct-0.1.0.0/doc/html/conduct
doesn't exist or isn't a directory
conduct-0.1.0.0: cannot find any of
["libconduct.a","libconduct_p.a","libconduct-ghc9.6.4.so","libconduct-ghc9.6.4.dylib","conduct-ghc9.6.4.dll"]
on library path (use --force to override)
)`

I was looking for a way to build desktop UIs in Haskell using something like electron or tauri, and your repo showed in the results. I tried to build it and see if I can run a basic example given in the repo.
But after installing all the dependencies, it gave this error.
Is this expected or I have done something wrong?

Hey thanks for trying Conduct! 😄
I'm hoping #3 should fix compilation and get rid of the bugs in the earlier design.
The other big change, however, is I'm looking to move all UI related code to https://github.com/matthunz/view-monad/ under a different design. I'm now hoping this crate can serve as a generic driver for Tauri with JS

authors: kushagarr matthunz

repo: matthunz/conduct


text:
Support indexing for Japanese

This PR enables elasticlunr-rs to generate search indices for Japanese language.
Like #24, I added a special tokenizer for Japanese since Japanese is not a space-separated language as well.
I would be very glad if this PR is merged so that I and many other Japanese people will make use of this powerful crate.
Thank you.

Sorry about the wait, this looks quite good! There are some changes I want to make but I won't hold this up any longer.

authors: magurotuna mattico

repo: mattico/elasticlunr-rs


text:
go 1.8 Cancelable queries runs in the background on the database and not killed

Description
Cancelable queries not killing session on the database
Expected Behavior
When context is done, the underlying driver to kill sessions on the database too.
os
Mac OS X El Capitan
go version
1.8
Oracle Driver
oracle instantclient 12_1
Following is my sample code
package main

import (
	"context"
	"database/sql"
	"fmt"
	_ "github.com/mattn/go-oci8"
	"time"
)

func main() {
	db, err := sql.Open("oci8", "MySERVICE")
	checkErr(err)
	ctx, cancel := context.WithTimeout(context.Background(), time.Second*2)
	go makeDbCall(db, ctx, cancel)
	select {
	case <-ctx.Done():
	}
	fmt.Println("done...")

}

func checkErr(err error) {
	if err != nil {
		panic(err)
	}
}

func makeDbCall(db *sql.DB, ctx context.Context, cancel context.CancelFunc) {
//large table with a million records,
//go routine is terminated but query is running in the backend on the database.
	row := db.QueryRowContext(ctx, "select sum(amount) from main_trn")
	var sum []byte
	erro := row.Scan(&sum)
	fmt.Printf("%s\n", sum)
	checkErr(erro)
	cancel()
}

No, just cancel collecting record. Don't kill the session.

Can that be possible anytime, or possible workarounds
On Tue, Feb 21, 2017, 10:56 PM mattn notifications@github.com wrote:

No, just cancel collecting record. Don't kill the session.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/mattn/go-oci8/issues/142#issuecomment-281414781, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAnUA9IFUNsVMnXCRTCr8dY3x4s1M9cOks5rex5WgaJpZM4MHUel
.

See the doc. https://docs.google.com/document/d/1F778e7ZSNiSmbju3jsEWzShcb8lIO4kDyfKDNm4PNd8/edit#

If the driver does support context the driver may choose to also cancel the query on the server rather than just closing the connection.

Thanks for the info.
Sorry for bugging you, but I want to just understand what prevents the driver from implementing it, want to get some insights into limitations of the underlying OCILIB.

@devarsh
When a context is canceled on a statement, then OCIBreak is called, which does not kill the session.
https://docs.oracle.com/cd/B19306_01/appdev.102/b14250/oci16msc007.htm#i540487
Opening a new session in Oracle is kind of "expensive". Most of the time killing a session is not wanted. Plus the number of connections (sessions) is really handled by the Go SQL code, not so much the driver code.
If you wanted to kill the session, probably would need to run the query in a Go SQL transaction by calling begin.
https://golang.org/pkg/database/sql/#DB.Begin
Then run the query. When wanted, then cancel the context. Then run some kind of call to kill that session, maybe something like:
https://mikesmithers.wordpress.com/tag/users-killing-their-own-sessions/
Then close the Go SQL transaction.

Close this?

authors: MichaelS11 devarsh mattn


text:
ErrNoRows

Is sql.ErrNoRows implemented?  When I query an empty table, I don't get any rows back but also the err is still nil.
package main

import (
	"database/sql"
	"testing"

	"github.com/stretchr/testify/assert"
)

func TestSqlite(t *testing.T) {
	db, err := sql.Open("sqlite3", "file:test.db?mode=memory")
	if err != nil {
		panic(err)
	}
	defer db.Close()
	db.SetMaxOpenConns(1)

	_, err = db.Exec("create table test (id primary key)")
	assert.Nil(t, err)

	_, err = db.Query("select id from test")
	assert.NotNil(t, err)
	assert.Equal(t, sql.ErrNoRows, err)
}

sql.ErrNoRows is returned by the database/sql package (not the underlying driver) when you use QueryRow and there isn't at least one result row. However, when you use Query, the sql.Rows object it returns will not return any errors, but rather will return false from Next() the first time you call it.

Ok, thanks for the explanation.  I'll use it that way.

authors: hyprnick rittneje


text:
Support cloning Pijul repositories

Please support Pijul for cloning Zig package dependencies.
Pijul is an amazing new version control system written in Rust. Unlike Git, Pijul doesn’t suck.
It’s based on the theory of patches, and it manages merge conflicts way better than Git.
There are more cool features, check out their homepage for more info.
https://pijul.org
There is a web based forge (similar to Gitea and GitLab for Git), which can be used to share Zig packages: https://nest.pijul.com

This looks awesome, but this is not the official package manager, just a prototype so I'm in maintenance mode now.

authors: mattnite notramo

repo: mattnite/gyro


text:
New Feature request - add cost of last charge

As the title says :) would be nice to be able to track this.

Thanks for requesting, I have added this and included it in 4.0.2. Let me know if you have any additional questions or feedback.
I'd recommend looking at the Cost Sensors section of the README as there are some caveats.

authors: jimmyeao mattrayner


text:
I'm probably being stupid but.... Access Keys + CORS

The ReadMe's don't explain what the Darwin_Token is.
Is it the Access Key or Secret Key in the national rail "my feeds" or do I need to register for a different API access?
CORS... it's driving me mental. How can I disable cors - I've event tried hacking headings into the Bluebird index.js - no matter what call I make (and I'm doing this through Vue.js in case that's the issue?) I get:-
Access to fetch at 'https://lite.realtime.nationalrail.co.uk/OpenLDBWS/ldb11.asmx' from origin 'http://127.0.0.1:8844' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
I suspect it's something to do with the :8844 port number on the local host?

Ignore the key thing... Found the site:
http://realtime.nationalrail.co.uk/OpenLDBWSRegistration/Registration
Still battling with CORS... :sigh:, but have worked out that Vue / port # is the issue

Hi Paul. Glad to hear you got it sorted out. It's a good point though, the README could certainly be a bit clearer on this front. I'll get something added to this to guide people to the registration page.
Regarding the CORS issue I'm afraid I can't be of much help. I have this deployed as an AWS lambda acting as a proxy for a couple of apps rather than using a browser. Good luck though!

@mattsalt CORS is totally a PITA.... I wrote a 5-liner sample in straight node.js and it works fine.
One thing to add to the Readme as well.... even after you've registered, despite what the email says, your key won't work for about an hour

authors: PaulMcGuinness mattsalt

repo: mattsalt/national-rail-darwin


text:
the link to matt's website is missing the target= "_blank" property

Every other link that moves to another website contains the target = _blank property to open a new tab except for that one.

Good catch! Do you want to submit a PR?

sure!


text:
🛑 VQ PROD AR is down

In e353989, VQ PROD AR (http://demoarg.sidesys.com.ar/virtualqueue/index.html) was down:

HTTP code: 0
Response time: 0 ms

Resolved: VQ PROD AR is back up in 28a7f13.

repo: mauribesson/upptime


text:
🛑 API appointment - PROD is down

In d4f7238, API appointment - PROD (https://appointment.prod.api.eflow.com.ar/swagger) was down:

HTTP code: 0
Response time: 0 ms

Resolved: API appointment - PROD is back up in 077bb79.


text:
tensorflow 1.13 or 1.12?

Hello,
in this website you said you used tf 1.13, but in the paper you said 1.12. So, can you give me a precise version that you used for both tensorflow-gpu and tensorflow cpu? I am worried about version uncompatibility issues.
Thanks

Hello,
It should work with both but 1.13.1 is the recommended version.
There shouldn't be many differences between versions 1.12, 1.13 and 1.15.

Wow, very quick answer, thanks so much!

authors: Yangsir-X mauriceqch


text:
How do I get the currently active instance

I want to get the currently active instance when I call a method. Is there a good way?

This code may help (especially check draggingElement part).

Yes,why not pass currently active instance as as parameter to activated、deactivated and other events ? so that we can get it.

repo: mauricius/vue-draggable-resizable