compile

i got the below error while compilin ths source ?
Scanning dependencies of target PocoZip
In file included from /tmp/ClickHouse/contrib/libtcmalloc/src/libc_override.h:79:0,
                 from /tmp/ClickHouse/contrib/libtcmalloc/src/tcmalloc.cc:156:
/tmp/ClickHouse/contrib/libtcmalloc/src/libc_override_glibc.h:132:71: error: conflicting declaration ‘void* (* volatile __malloc_hook)(size_t, const void*)’
 void* (* MALLOC_HOOK_MAYBE_VOLATILE __malloc_hook)(size_t, const void*)
                                                                       ^
In file included from /tmp/ClickHouse/contrib/libtcmalloc/include/gperftools/tcmalloc.h:49:0,
                 from /tmp/ClickHouse/contrib/libtcmalloc/src/tcmalloc.cc:91:
/usr/include/malloc.h:165:16: note: previous declaration as ‘void* (* __malloc_hook)(size_t, const void*)’
 extern void *(*__malloc_hook) __MALLOC_PMT ((size_t __size,
                ^~~~~~~~~~~~~
In file included from /tmp/ClickHouse/contrib/libtcmalloc/src/libc_override.h:79:0,
                 from /tmp/ClickHouse/contrib/libtcmalloc/src/tcmalloc.cc:156:
/tmp/ClickHouse/contrib/libtcmalloc/src/libc_override_glibc.h:134:79: error: conflicting declaration ‘void* (* volatile __realloc_hook)(void*, size_t, const void*)’
 void* (* MALLOC_HOOK_MAYBE_VOLATILE __realloc_hook)(void*, size_t, const void*)
                                                                               ^
In file included from /tmp/ClickHouse/contrib/libtcmalloc/include/gperftools/tcmalloc.h:49:0,
                 from /tmp/ClickHouse/contrib/libtcmalloc/src/tcmalloc.cc:91:
/usr/include/malloc.h:167:16: note: previous declaration as ‘void* (* __realloc_hook)(void*, size_t, const void*)’
 extern void *(*__realloc_hook) __MALLOC_PMT ((void *__ptr, size_t __size,
                ^~~~~~~~~~~~~~
In file included from /tmp/ClickHouse/contrib/libtcmalloc/src/libc_override.h:79:0,
                 from /tmp/ClickHouse/contrib/libtcmalloc/src/tcmalloc.cc:156:
/tmp/ClickHouse/contrib/libtcmalloc/src/libc_override_glibc.h:136:67: error: conflicting declaration ‘void (* volatile __free_hook)(void*, const void*)’
 void (* MALLOC_HOOK_MAYBE_VOLATILE __free_hook)(void*, const void*)
                                                                   ^
In file included from /tmp/ClickHouse/contrib/libtcmalloc/include/gperftools/tcmalloc.h:49:0,
                 from /tmp/ClickHouse/contrib/libtcmalloc/src/tcmalloc.cc:91:
/usr/include/malloc.h:163:15: note: previous declaration as ‘void (* __free_hook)(void*, const void*)’
 extern void (*__free_hook) __MALLOC_PMT ((void *__ptr,
               ^~~~~~~~~~~
In file included from /tmp/ClickHouse/contrib/libtcmalloc/src/libc_override.h:79:0,
                 from /tmp/ClickHouse/contrib/libtcmalloc/src/tcmalloc.cc:156:
/tmp/ClickHouse/contrib/libtcmalloc/src/libc_override_glibc.h:138:80: error: conflicting declaration ‘void* (* volatile __memalign_hook)(size_t, size_t, const void*)’
 void* (* MALLOC_HOOK_MAYBE_VOLATILE __memalign_hook)(size_t,size_t, const void*)
                                                                                ^
In file included from /tmp/ClickHouse/contrib/libtcmalloc/include/gperftools/tcmalloc.h:49:0,
                 from /tmp/ClickHouse/contrib/libtcmalloc/src/tcmalloc.cc:91:
/usr/include/malloc.h:169:16: note: previous declaration as ‘void* (* __memalign_hook)(size_t, size_t, const void*)’
 extern void *(*__memalign_hook) __MALLOC_PMT ((size_t __alignment,
                ^~~~~~~~~~~~~~~
In file included from /tmp/ClickHouse/contrib/libtcmalloc/src/libc_override.h:79:0,
                 from /tmp/ClickHouse/contrib/libtcmalloc/src/tcmalloc.cc:156,
                 from /tmp/ClickHouse/contrib/libtcmalloc/src/debugallocation.cc:85:
/tmp/ClickHouse/contrib/libtcmalloc/src/libc_override_glibc.h:132:71: error: conflicting declaration ‘void* (* volatile __malloc_hook)(size_t, const void*)’
 void* (* MALLOC_HOOK_MAYBE_VOLATILE __malloc_hook)(size_t, const void*)
                                                                       ^
In file included from /tmp/ClickHouse/contrib/libtcmalloc/src/debugallocation.cc:46:0:
/usr/include/malloc.h:165:16: note: previous declaration as ‘void* (* __malloc_hook)(size_t, const void*)’
 extern void *(*__malloc_hook) __MALLOC_PMT ((size_t __size,
                ^~~~~~~~~~~~~
In file included from /tmp/ClickHouse/contrib/libtcmalloc/src/libc_override.h:79:0,
                 from /tmp/ClickHouse/contrib/libtcmalloc/src/tcmalloc.cc:156,
                 from /tmp/ClickHouse/contrib/libtcmalloc/src/debugallocation.cc:85:
/tmp/ClickHouse/contrib/libtcmalloc/src/libc_override_glibc.h:134:79: error: conflicting declaration ‘void* (* volatile __realloc_hook)(void*, size_t, const void*)’
 void* (* MALLOC_HOOK_MAYBE_VOLATILE __realloc_hook)(void*, size_t, const void*)
                                                                               ^
In file included from /tmp/ClickHouse/contrib/libtcmalloc/src/debugallocation.cc:46:0:
/usr/include/malloc.h:167:16: note: previous declaration as ‘void* (* __realloc_hook)(void*, size_t, const void*)’
 extern void *(*__realloc_hook) __MALLOC_PMT ((void *__ptr, size_t __size,
                ^~~~~~~~~~~~~~
In file included from /tmp/ClickHouse/contrib/libtcmalloc/src/libc_override.h:79:0,
                 from /tmp/ClickHouse/contrib/libtcmalloc/src/tcmalloc.cc:156,
                 from /tmp/ClickHouse/contrib/libtcmalloc/src/debugallocation.cc:85:
/tmp/ClickHouse/contrib/libtcmalloc/src/libc_override_glibc.h:136:67: error: conflicting declaration ‘void (* volatile __free_hook)(void*, const void*)’
 void (* MALLOC_HOOK_MAYBE_VOLATILE __free_hook)(void*, const void*)
                                                                   ^
In file included from /tmp/ClickHouse/contrib/libtcmalloc/src/debugallocation.cc:46:0:
/usr/include/malloc.h:163:15: note: previous declaration as ‘void (* __free_hook)(void*, const void*)’
 extern void (*__free_hook) __MALLOC_PMT ((void *__ptr,
               ^~~~~~~~~~~
In file included from /tmp/ClickHouse/contrib/libtcmalloc/src/libc_override.h:79:0,
                 from /tmp/ClickHouse/contrib/libtcmalloc/src/tcmalloc.cc:156,
                 from /tmp/ClickHouse/contrib/libtcmalloc/src/debugallocation.cc:85:
/tmp/ClickHouse/contrib/libtcmalloc/src/libc_override_glibc.h:138:80: error: conflicting declaration ‘void* (* volatile __memalign_hook)(size_t, size_t, const void*)’
 void* (* MALLOC_HOOK_MAYBE_VOLATILE __memalign_hook)(size_t,size_t, const void*)
                                                                                ^
In file included from /tmp/ClickHouse/contrib/libtcmalloc/src/debugallocation.cc:46:0:
/usr/include/malloc.h:169:16: note: previous declaration as ‘void* (* __memalign_hook)(size_t, size_t, const void*)’
 extern void *(*__memalign_hook) __MALLOC_PMT ((size_t __alignment,
                ^~~~~~~~~~~~~~~
[ 47%] Built target PocoData

This is duplicate of https://github.com/yandex/ClickHouse/issues/98#issuecomment-244261639

Updated tcmalloc library to latest version, which was removed usage of obsolete malloc hooks.


query: re-use session/retry logic from credentials

The Copernicus web site sometimes responds 500 (along other error codes) to queries. Use the retry logic from credentials so queries are retried just like downloads.
This PR creates a merge conflict with #120 so one has to be merged before the other, but the changes are complementary.

@pedep just rebased this. Have been running all the outstanding PRs for my downloads while you were gone and things have worked well locally.


feat: CI should automatically increment unlocked package versions in sfdx-package.json

Describe the feature
Context: https://dxatscale.slack.com/archives/CN9N54GF5/p1664371890200189
"These version number changes should be made in the sfdx-project.json file before the final package build and promotion."
I understand that .NEXT provides auto-increment, but it increments the build-number. In our workflow, in the hardening stage of the release, we add a bunch of fixes to the upcoming release through the release branch & cherry-picks. In such cases, most of our packages' versions should be incremented manually before the production deployment/installation. Basically, that adds complexity as our release-engineering team has to 1) increment the version of all Beta packages and build them, 2) reinstall them to "staging" (env before prod), promote packages (or use auto promote), and only then 3) release them to production.
DX@Scale practitioners have shared great tools which definitely help to simplify package versioning on the client side (engineer machine):

https://docs.dxatscale.io/projects/sfp-cli
https://www.npmjs.com/package/@eon-com/eon-sfdx

Though those tools are amazing they do not provide a solution to automate package versioning.
Proposal
Implement an additional "pre-build" step (stage) which is executed as part of a build process. The jobs will use a diff between a current commit and the latest-successful-build-<branch-name> floating tag. Then resolve info about changed packages and their type - increment unlocked packages versions and commit sfdx-project.json. Push to the repository with an additional flag to skip the pre-build stage or trigger regular build without push if no unlocked packages are changed. And, of course, push (override)  latest-successful-build-<branch-name> floating tag to the current commit.
Notes:

CI server should be configured to cancel in progress pre-build stage if a new commit pushed to the branch
Fast-forward merge strategy recommended
A job (script) should handle package dependencies and their versioning

We have implemented a script described above using bash.
In GitLab, on the "main" branch and release branches, we have the "pre-build" stage, which executes a script to handle package versioning automatically:

Here is the porting of logs at the end of the script with info about incremented package version, etc:

Important note: when a pre-build is executed for the main branch, it increments a package minor version, but for release branches, it increments a patch version:

This looks very nice.   I hope this proposal gets consideration.


Create gpio component for camel-kura lib

Can you provide a documentation for this component?

yep, of course

Cool :)

in progess ...

should be ok, we can close it

Many thanks!


Allow individual logout for each of the panels v2

Description

Since version 3.x allows to manage several panels from the same installation, the lines to destroy the user session when logging out do not make sense.
Because when logging out from one of the panels is done automatically from the rest.
This PR is related with #10372 with a logic to detect if the user has more than one logedin panels

[ ] Visual changes (if any) are shown using screenshots/recordings of before and after.

Code style

[x] composer cs command has been run.

Testing

[x] Changes have been tested.

Documentation

[x] Documentation is up-to-date.

I can't seem to reproduce a scenario where login_ items are added to the session, how does this work?

I can't seem to reproduce a scenario where login_ items are added to the session, how does this work?

It happened to us in a new installation of filament adding a second panel(https://filamentphp.com/docs/3.x/panels/configuration#creating-a-new-panel) and setting a diferent guard.
With this one you can login in both panels at the same time but logging out in one of them destroys the whole session.

Are you adding a custom session driver / middleware for the login_ session key?

Just tested this locally and it doesn't seem to work at all 🤷♂


feat(MatTooltip): Add support for rich tooltips (popups)

Feature Description
Please, add support for rich tooltips (popups).
They're described in M3 standard.

Existing tooltip and menu components are not enough for feature-rich web apps.
Use Case

Hover/click a table cell or any other element to display more info via a custom component or a template ref.
Use it as a menu that won't be closed after clicking a menu item

@crisbeto do you accept PR for this?
I created a basic version of rich-tooltip, using some logics from matTooltip and matMenu, let me know your thoughts. With your guidance I can try to make relevant changes to make it part of angular material components.

GitHub
Stackblitz

We've been looking at adding the rich tooltip within the team, but we need to do some more research around the right way to make it accessible.


Consider how to load-balance

Draft how the design would need to be modified in order to allow multiple replicas of coniql to be deployed, to balance load and provide HA

In the absence of connection pooling, the existing production deployment is now running with multiple replicas. Each client establishes one websocket connection so this goes to one replica, and so the clients are load-balanced in a sensible way.


configure_rules doesn't apply in Metadata of a resource

cfn-lint version: 0.24.8
I would expect that you can set configure rules the same as you can exclude rules at a resource metadata level.
---
AWSTemplateFormatVersion: '2010-09-09'
Resources:
  asg:
    Metadata:
      cfn-lint:
        config:
          configure_rules:
            E3012:
              strict: 'False'
    Type: AWS::AutoScaling::AutoScalingGroup
    Properties:
      InstanceId: i-1234567890
      MinSize: 0
      MaxSize: 10

results in:
E3012 Property Resources/asg/Properties/MinSize should be of type String
z.yml:14:7

E3012 Property Resources/asg/Properties/MaxSize should be of type String
z.yml:15:7

Using ignore_checks for the resource works:
---
AWSTemplateFormatVersion: '2010-09-09'
Resources:
  asg:
    Metadata:
      cfn-lint:
        config:
          ignore_checks:
          - E3012
    Type: AWS::AutoScaling::AutoScalingGroup
    Properties:
      InstanceId: i-1234567890
      MinSize: 0
      MaxSize: 10

But moving the config to the top level works but is too permissive (applying to the whole template):
---
AWSTemplateFormatVersion: '2010-09-09'
Metadata:
  cfn-lint:
    config:
      configure_rules:
        E3012:
          strict: 'False'
Resources:
  asg:
    Type: AWS::AutoScaling::AutoScalingGroup
    Properties:
      InstanceId: i-1234567890
      MinSize: 0
      MaxSize: 10

Thanks for submitting the issue.  I think we should have been more clear on whats supported on resource metadata.  Right now the only thing you can do with resource metadata is ignore rules.  The way the code is currently written the results you are seeing are as expected.
I think for the rules that support configuration we can fix this but it would be a new capability.  There will also be scenarios in which a rule could have a configuration that isn't configurable by a resource metadata.  For instance we have rules for the syntax of a Condition.  This could lead to some confusion so we will have to figure out how to be clear about that.
I'm going to mark this for enhancement.

Given the complexity of this enhancement based on all the rules that cross parts of the template I'm going to close this one for now.  If there is more interest we can pick this up and figure out a solution.  Also will to work with someone on what would need to be done and can review a PR.


support cms based navigation and subnavigation

support CMS navigation / subnavigation configuration inside each of the page sections for the mobile menu

Deploy preview for dds-mil ready!
Built with commit 9cb0cac98b994fdb624692ed70de25906b1a4a1a
https://deploy-preview-121--dds-mil.netlify.app


About some details

Hello, i'm coming again to ask some details:

In the version i read, i didn't find the details about the yellow highlights in the experiments, can you share this part?

Thanks for your attention. We didn't put the detailed experimental results of this part in arxiv version. In this part, we find that the number of neck convolution will  affect the final network performance. When the number of neck convolution layers is reduced from 5 to 1, the final performance will decrease about 1.1 map.


Error while instantiating the RichText() in android compose.

I'm getting this error when i try to use RichText(),
 Process: com.example.wellbee, PID: 9236                                                                                java.lang.NoSuchMethodError: No virtual method getTextAlign-buA522U()Landroidx/compose/ui/text/style/TextAlign; in class Landroidx/compose/ui/text/ParagraphStyle; or its super classes (declaration of 'androidx.compose.ui.text.ParagraphStyle' appears in /data/app/com.example.wellbee-2/base.apk)                                                                                at com.mohamedrejeb.richeditor.parser.html.CssDecoder.decodeParagraphStyleToCssStyleMap$richeditor_compose_release(CssDecoder.kt:88)

Thanks for reporting this issue. Can you provide the html code that you tried to get this error?

Please try the latest version 1.0.0-rc02 and let me know if you still have this issue.


Losing tech in cargo after losing the techbase and docking

Tech you have loaded in cargo is lost after you dock and you no longer have the techbase that tech is from.
Say you have hunter3 loaded in your cargo spaces and your tac dies. If you dock at a base to repair your hull/energy or whatever your hunter3 in cargo is all replaced by hunter1 and you only keep the ones you had loaded in the missile slot.
It would be better if you could keep your cargo unmodified.
Imported from trac ticket #128,  created by anonymous on 07-09-2010 at 00:54, last modified: 11-24-2012 at 02:53

Might have been fixed with AaronMoore's saved loadout feature.  Needs to be tested post-R6 to confirm.
Trac comment by TurkeyXIII on 05-30-2011 at 12:17

I believe occasionally your mounted stuff reverts as well. I've personally docked a mg3 heavy int and relaunched a mg1 heavy int after a destroyed exp.
However it's not reproducible.
Trac comment by Spunky on 08-28-2012 at 05:58

Not very important imho


Re-check order campaign

Describe the task
Re-check order campaign
To reproduce the task
Actual: Order by string default
Expect: Order by campaign id in slug

We should use on campaign in a time. It will be better for all case.


Motion capture markers black center on IR camera

I just introduced motion capture markers to my system (small spheres with retroreflective material). These markers are highly reflective in a IR image. When I run kinect2_bridge and visualize the IR topic (/kinect2/sd/image_ir) in rviz I get the following image:

As you can see there are three markers in the image, one on top of the robot and two on the table. The problem is that the centers of the markers become black. This should not happen and I do not understand exactly why. My only suggestion is that there are some saturation limit on the intensity level of the pixel values. I hope you can help me out.

I can confirm I have the same issue here. And this is kind of a problem for me as I use those markers for autocalibration of the extrinsics.
It seems there is a saturation somewhere indeed because this happens when the balls get closer to the sensor.
This does not happen with openni when using either the Xtion or the Kinect1

@JimmyDaSilva Good that I am not alone. Hopefully there are a quick fix to this. Openni also uses libfreenect/libfreenect2 if I am not mistaken? In that case the issue must lie in iai_kinect2.

I meant openni_camera which does not use libfreenect2. openni_camera or openni2_camera are like the equivalent of libfreenect2+iai_kinect2 for the Asus Xtion and KinectV1

Hmm, then libfreenect2 should also be investigated.

It will happen, if something is overexposed. I don't think there is a fix for it, because the exposure time cannot be changed, the device does it automatically. But you could check if the raw values from libfreenect2 are zero too, just to make sure.


Repeated css on back card due to {{FrontSide}}

Hi,
First of all, this package is great! Thanks for making it available!
I've noticed though that when I style the .question with a border it is duplicated (border gets thicker) on the back of the card. I'm not super familiar with html and css but I imagine it's because it uses {{FrontSide}} inside the .question  div on the back template, so it might nest the .card and .question divs inside it and duplicate the css? I suppose simply changing {{FrontSide}} to {{Question}} would fix it, but I'm know sure if this was intended of not.

This should be fixed in 0.3.1. Thanks for reporting the issue!

Pushed another fix just now which should update all your existing cards if you change styling. Previously only new cards would get the new stlying.


Daily file log rotation not working on medium volume logging activity under mono

Type: Bug
NLog version: 4.5.4
Platform: Mono 4
Current NLog config
LoggingConfiguration config = new LoggingConfiguration();
AsyncTargetWrapper logfile = new AsyncTargetWrapper(
	new FileTarget() {
		Name = "file",
		Layout = new SimpleLayout("${longdate} ${event-properties:item=timer}[${level}:${threadid}:${event-properties:item=method}:${event-properties:item=context}] ${message}"),
		Encoding = Encoding.UTF8,
		FileName = "/....somepath..../alert.log",
		ArchiveNumbering = ArchiveNumberingMode.Date,
		ArchiveEvery = FileArchivePeriod.Day,
		ArchiveDateFormat = "yyyyMMdd",
		KeepFileOpen = true,
		OpenFileCacheTimeout = 10
	},
	256,
	AsyncTargetWrapperOverflowAction.Discard
);
config.LoggingRules.Add(new LoggingRule("main", LogLevel.Info, logfile));
LogManager.Configuration = config;

In case of a BUG:

What is the current result?
On one node where the average logged lines per second is above 4, after midnight the file is not rotated

What is the expected result?
There should be a new file named alert.log and a previous one named for instance alert.20180523.log

Did you checked the [Internal log]?
Not yet, I need to set up a separate test environment in order to do so

Please post full exception details (message, stacktrace, inner exceptions)
No exceptions thrown or involved

Are there any workarounds?
Well of course I could use unix tricks to rotate logs just like logrotate

Is there a version in which it did work?
This is the first time I'm using nlog

Can you help us by writing an unit test?
Yes if necessary

Sorry for the delay in replying but I had to setup a dedicated test environment in order not to break my live servers.
I've created a simple c# console process that spawns 200 threads, each one of them logging a random 64-character string at WARN level every 5 seconds (that makes a total of about 40 lines per second).
The process is writing to a file named /opt/console/test.log, which is not rotated after 00:00AM.
Here is an internal trace log extract around midnight:
2018-05-25 23:59:59.6701 Trace AsyncWrapper(Name=): Writing 2 events (Timer)
2018-05-25 23:59:59.7204 Trace AsyncWrapper(Name=): Writing 2 events (Timer)
2018-05-25 23:59:59.7707 Trace AsyncWrapper(Name=): Writing 2 events (Timer)
2018-05-25 23:59:59.8210 Trace AsyncWrapper(Name=): Writing 2 events (Timer)
2018-05-25 23:59:59.8713 Trace AsyncWrapper(Name=): Writing 2 events (Timer)
2018-05-25 23:59:59.9217 Trace AsyncWrapper(Name=): Writing 2 events (Timer)
2018-05-25 23:59:59.9720 Trace AsyncWrapper(Name=): Writing 2 events (Timer)
2018-05-26 00:00:00.0225 Trace AsyncWrapper(Name=): Writing 2 events (Timer)
2018-05-26 00:00:00.0733 Trace AsyncWrapper(Name=): Writing 2 events (Timer)
2018-05-26 00:00:00.0736 Trace FileTarget(Name=file): Archive attempt for file '/opt/console/test.log'
2018-05-26 00:00:00.0736 Debug FileAppender Closing Invalidate - /opt/console/test.log
2018-05-26 00:00:00.0736 Debug Stopping file watching for path '/opt/console' filter 'test.*.log'
2018-05-26 00:00:00.0736 Debug Stopping file watching for path '/opt/console' filter 'test.log'
2018-05-26 00:00:00.0744 Trace Closing '/opt/console/test.log'
2018-05-26 00:00:00.0744 Trace FileTarget(Name=file): Archive already performed for file '/opt/console/test.log'
2018-05-26 00:00:00.0744 Debug FileTarget(Name=file): Process file '/opt/console/test.log' on startup
2018-05-26 00:00:00.0753 Debug Creating file appender: /opt/console/test.log
2018-05-26 00:00:00.0753 Trace Opening /opt/console/test.log with allowFileSharedWriting=True
2018-05-26 00:00:00.0753 Debug Watching path '/opt/console' filter 'test.*.log' for changes.
2018-05-26 00:00:00.0753 Debug Watching path '/opt/console' filter 'test.log' for changes.
2018-05-26 00:00:00.1264 Trace AsyncWrapper(Name=): Writing 2 events (Timer)
2018-05-26 00:00:00.1768 Trace AsyncWrapper(Name=): Writing 2 events (Timer)
2018-05-26 00:00:00.2272 Trace AsyncWrapper(Name=): Writing 2 events (Timer)
2018-05-26 00:00:00.2776 Trace AsyncWrapper(Name=): Writing 2 events (Timer)

This line:
Archive already performed for file '/opt/console/test.log'
Indicates NLog suddenly receives a different timestamp from the file after it has closed its filehandle.
Maybe it is caused by AutoFlush = false, so when NLog closes the file to archive the file, then it perform one last file-write to flush. Because not all Linux instances support file-birth-time, then NLog will perform fallback to last-file-write-time.
Maybe NLog could have some bonus logic, that if using ConcurrentWrites = false, then instead of doing fallback to last-file-write-time, then it will do fallback to previousLogEventTimestamp.
Again all this is just random guessing.

@bpress It would really help if you could exercise this pre-release-build on your setup:
https://ci.appveyor.com/project/nlog/nlog/build/4.5.0-7857/artifacts
Remember to configure both KeepFileOpen=true AND concurrentWrites=false (If you need concurrentWrites=true then this pre-release-build will not help).

@snakefoot
I've recompiled and re-run the test app with the suggested pre-release build and now it seems to handle rotation properly. The test was repeated 3 times resetting the clock at 23:59.
Here's the piece of internal log from one of the runs:
2018-05-27 23:59:59.9393 Trace AsyncWrapper(Name=): Writing 2 events (Timer)
2018-05-27 23:59:59.9895 Trace AsyncWrapper(Name=): Writing 2 events (Timer)
2018-05-28 00:00:00.0398 Trace AsyncWrapper(Name=): Writing 2 events (Timer)
2018-05-28 00:00:00.0398 Trace FileTarget(Name=file): Archive attempt for file '/opt/console/test.log'
2018-05-28 00:00:00.0407 Debug FileAppender Closing Invalidate - /opt/console/test.log
2018-05-28 00:00:00.0407 Debug Stopping file watching for path '/opt/console' filter 'test.log'
2018-05-28 00:00:00.0686 Trace Closing '/opt/console/test.log'
2018-05-28 00:00:00.0700 Debug FileTarget(Name=file): Do archive file: '/opt/console/test.log'
2018-05-28 00:00:00.0700 Trace FileTarget(Name=file): Archive pattern '/opt/console/test.log'
2018-05-28 00:00:00.0728 Trace FileTarget(Name=file): Calculating archive date. File-LastModifiedUtc: 05/27/2018 21:59:59; Previous LogEvent-TimeStamp: 05/27/2018 23:59:59
2018-05-28 00:00:00.0728 Trace FileTarget(Name=file): Using previous log event time (is more recent)
2018-05-28 00:00:00.0746 Trace FileTarget(Name=file): FinalizeFile '/opt/console/test.log, isArchiving: True'
2018-05-28 00:00:00.0778 Info FileTarget(Name=file): Archiving /opt/console/test.log to /opt/console/test.20180527.log
2018-05-28 00:00:00.0778 Debug FileTarget(Name=file): Move file from '/opt/console/test.log' to '/opt/console/test.20180527.log'
2018-05-28 00:00:00.0778 Debug FileTarget(Name=file): Process file '/opt/console/test.log' on startup
2018-05-28 00:00:00.0784 Debug Creating file appender: /opt/console/test.log
2018-05-28 00:00:00.0784 Trace Opening /opt/console/test.log with allowFileSharedWriting=False
2018-05-28 00:00:00.0784 Debug Watching path '/opt/console' filter 'test.log' for changes.
2018-05-28 00:00:00.1294 Trace AsyncWrapper(Name=): Writing 3 events (Timer)
2018-05-28 00:00:00.1797 Trace AsyncWrapper(Name=): Writing 2 events (Timer)
2018-05-28 00:00:00.2300 Trace AsyncWrapper(Name=): Writing 2 events (Timer)

@snakefoot I've run again the console application with version 4.5.6 and everything works just fine.
I've successfully tried both with and without internal logging.
This, for reference, is the extract from internal log:
2018-05-30 00:00:00.0655 Trace AsyncWrapper(Name=): Writing 2 events (Timer)
2018-05-30 00:00:00.0655 Trace FileTarget(Name=file): Archive attempt for file '/opt/console/test.log'
2018-05-30 00:00:00.0655 Debug FileAppender Closing Invalidate - /opt/console/test.log
2018-05-30 00:00:00.0667 Debug Stopping file watching for path '/opt/console' filter 'test.log'
2018-05-30 00:00:00.0922 Trace Closing '/opt/console/test.log'
2018-05-30 00:00:00.0930 Debug FileTarget(Name=file): Adjusted file creation time from 05/30/2018 00:00:00 to 05/29/2018
 23:59:59. Linux FileSystem probably don't support file birthtime.
2018-05-30 00:00:00.0944 Debug FileTarget(Name=file): Do archive file: '/opt/console/test.log'
2018-05-30 00:00:00.0946 Trace FileTarget(Name=file): Archive pattern '/opt/console/test.log'
2018-05-30 00:00:00.0971 Trace FileTarget(Name=file): Calculating archive date. File-LastModifiedUtc: 05/29/2018 22:00:0
0; Previous LogEvent-TimeStamp: 05/29/2018 23:59:59
2018-05-30 00:00:00.0980 Trace FileTarget(Name=file): Using previous log event time (previous log overlapped period)
2018-05-30 00:00:00.0996 Trace FileTarget(Name=file): FinalizeFile '/opt/console/test.log, isArchiving: True'
2018-05-30 00:00:00.1029 Info FileTarget(Name=file): Archiving /opt/console/test.log to /opt/console/test.20180529.log
2018-05-30 00:00:00.1029 Debug FileTarget(Name=file): Move file from '/opt/console/test.log' to '/opt/console/test.20180
529.log'
2018-05-30 00:00:00.1036 Debug FileTarget(Name=file): Process file '/opt/console/test.log' on startup
2018-05-30 00:00:00.1036 Debug Creating file appender: /opt/console/test.log
2018-05-30 00:00:00.1036 Trace Opening /opt/console/test.log with allowFileSharedWriting=False
2018-05-30 00:00:00.1046 Debug Watching path '/opt/console' filter 'test.log' for changes.
2018-05-30 00:00:00.1549 Trace AsyncWrapper(Name=): Writing 4 events (Timer)

Today I will be canary-testing in production environment.
Thanks a lot for resolving so fast!

👍 thanks for the feedback, @snakefoot thanks for the fix!


Support exposing to the Internet by adding SSL support

Even if it's easy to expose a Postgres cluster to the Internet, it needs to be secured.
Right now we don't care much because it's meant to be used internally only. However, it's prety useful to be able to use it from external systems that aren't connected to the app's private network. Adding and configuring wireguard is an option, but not in all cases and always requires a lot of fiddling.
Relevant information:

https://www.postgresql.org/docs/current/libpq-ssl.html
https://github.com/sorintlab/stolon/blob/master/doc/ssl.md

Beyond exposing publicly, SSL support is also important for zero trust.


Confusing documentation on Sticky Sessions

The doc [1] mentiones below and points to [2].
When clustering WSO2 Identity Server with a load balancer, you may need to enable sticky sessions. This is required for the management console and the user portal to work and if we disable temporary session data persistence in the <IS_HOME>/repository/conf/deployment.toml file. For more information on sticky sessions, see Sticky Sessions with Manager Nodes.

The point that the user portal requires Sticky Sessions is incorrect.
Still, the carbon management console requires Sticky Sessions to be enabled. But if somebody reads through [2], it gives an impression that we can enable session replication and avoid enabling Sticky Sessions for the management console as well.
It is required to clearly mention that, the carbon management console requires Sticky Sessions to be enabled.
[1] https://is.docs.wso2.com/en/latest/setup/fronting-with-the-nginx-load-balancer/
[2] https://is.docs.wso2.com/en/5.10.0/administer/sticky-sessions-with-manager-nodes/

Duplicate of https://github.com/wso2/product-is/issues/12024


Support @Embedded dto-s for repositories

Example:
SELECT id, text, owner.id AS owner_id, owner.nickname AS owner_nickname
FROM post
JOIN profile owner ON onwer.id = post.owner_id
WHERE id = ...

record Post(UUID id, String text, @Embedded Profile owner) {}

record Profile(UUId id, String nickname) {}

By default prefix is {fieldName}_, custom prefix with @Embedded("custom_")


Markdown Rendering Added

First pass at fixing #214. I am using the CSS file used for other parts of the app for now (see results below).
Should we create a custom CSS just for Issues? Or does this look okay?

Also the app takes a lot longer to startup due to Markdown parsing. May look to what we can do to speed that up a bit. May compare other Markdown parsers for speed.

We're moving away from the blue text in general (and using Roboto in the app), so I'd rather have it look like it did before the markdown renderer. Looks like some excessive side padding too - we should probably start the CSS fresh for this section.
App startup is longer, or generating the issue detail controller is longer?

I think we should move to a more standard body font color. Since blue is used for the tintColor for interactive elements I think this is probably the wrong choice for body text.
Sent from my iPhone

On Jun 26, 2018, at 8:12 PM, Patrick McCarron<EMAIL_ADDRESS>wrote:
First pass at fixing #214. I am using the CSS file used for other parts of the app for now (see results below).
Should we create a custom CSS just for Issues?
Also the app takes a lot longer to startup due to Markdown parsing. May look to what we can do to speed that up a bit. May compare other Markdown parsers for speed.
You can view, comment on, or merge this pull request online at:
https://github.com/5calls/ios/pull/215
Commit Summary
Markdown Rendering Added
File Changes
M FiveCalls/FiveCalls/Base.lproj/Main.storyboard (21)
M FiveCalls/FiveCalls/Issue.swift (36)
M FiveCalls/FiveCalls/IssueDetailViewController.swift (2)
Patch Links:
https://github.com/5calls/ios/pull/215.patch
https://github.com/5calls/ios/pull/215.diff
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Derp. What Nick said...
Sent from my iPhone

On Jun 26, 2018, at 8:23 PM, nickoneill<EMAIL_ADDRESS>wrote:
@nickoneill commented on this pull request.
In FiveCalls/FiveCalls/Issue.swift:

struct Issue {
let id: String
let name: String

let reason: String

let reason: NSAttributedString
let script: String
Script should also be markdown-compatible

—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub, or mute the thread.

Correct I said the CSS was just reused from elsewhere and only temporary so we can make one.
I just cloned it to it's own file so @nickoneill can hack on the CSS.

App starts up on time just takes longer to parse all the data, just see a spinner. Maybe at next version we can add a better "loading" screen and optimize the parsing a bit.

The margins on this css file don't really fit here, @nickoneill are you working on tweaking the CSS file?

I am, will have something else later tonight.

Wow, I thought my network was being slow but that's actually the markdown rendering time!

A few things while hacking on this:

I think we have to change the UILabel to UITextView and implement a delegate method to get links working from within NSAttributedString
I swapped the markdown rendering phase to the view detail loading so we don't process every markdown regardless of showing it - there's a slight lag when loading the controller but it's only a single issue text now.

I'll continue to work on this tomorrow a bit.

I swapped out the label for a textview here, but now the textview has to grow to be as large as the content which was stretching the limit for time I could apply to this at the moment.
Sorry for the only partially useful commit - let me know if I'm not being helpful 🤪

Looks good to me, but I can't approve as its my PR.

Naturally, as soon I want to check what the test failure was, Circle CI is having a site-wide outage.

Ah, this is the screenshot UI tests failing. Does Circle support this or should we specifically exempt it from the tests that are run? @mccarron you're the circle expert, yeah?

I can dig in on Sunday to disable that. It's useful locally only really.
On Thu, Jul 19, 2018 at 4:29 PM nickoneill<EMAIL_ADDRESS>wrote:

Ah, this is the screenshot UI tests failing. Does Circle support this or
should we specifically exempt it from the tests that are run? @mccarron
https://github.com/mccarron you're the circle expert, yeah?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/5calls/ios/pull/215#issuecomment-406420317, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AACyVud3GEHGn9uFoh9Bya0Re1VFZo1Kks5uIPo8gaJpZM4U45_S
.

That would be awesome @mccarron, as far as I can see this is the last item on our list for release!

Tests now run and pass! 🤘


Little Prolems In AI response pausing and input deletion on multiple regenerations

I found a little problem in the chatgpt UI that may need to be addressed. After a few rounds of conversation, the AI stops responding completely and deletes the input I entered when I use the "regenerate" button multiple times. While this is a minor issue, I think it would be beneficial to fix it for a smoother user experience. Can you please investigate and provide a solution? Thank you.

same error, after long chat, the UI basically refuses any more prompts all you get is small pop up with red X mark and if you click regenerate it deletes the previous cell. i am using this UI through vercel

It's probably the  api context limit -- 4000 tokens for gpt-3.5 and 8000 for gpt-4   After the dialog reaches a certain size, it's too big to continue.   It would be nice to have a more descriptive error.   And the ability to trim the conversation down so it can continue.  Trimming would also save a lot of money over time, as over 50% of the back and forth is the bot apologizing or other fluff. The only solution now if you hit the limit is to start a new conversation.


Completion is messy

Describe the bug

when i type using role, it is hard to type smoothly. sometimes weird character appeared, i think relate to completion. tried to disable completion but couldn't find it.
To Reproduce

aider .role grammar-genie (use role example)
Expected behavior

Smoothly typing anything inside prompt (with role)
Screenshots/Logs

Configuration

model                   gemini:gemini-1.5-pro-latest
max_output_tokens       -
temperature             -
top_p                   -
dry_run                 false
stream                  true
save                    false
keybindings             emacs
wrap                    no
wrap_code               false
function_calling        true
use_tools               -
agent_prelude           -
save_session            -
compress_threshold      4000
rag_reranker_model      -
rag_top_k               4
highlight               true
light_theme             false

Environment (please complete the following information):

os version: M1 Pro with Sequoia 15.0.1
aichat version: 0.22.0
terminal version: iTerm2 Build 3.5.5

Additional context

Cannot confirm the problem.
The REPL framework (reedline) used in aichat is quite mature, so it's unlikely that such a problem would occur. I suggest you investigate other issues.


training problem

when I training follow your step,, in final the loss does not decrease~  Thank you for your reply.

there are something wrong with training code ,pls pull the latest training code

Thank you for your reply  , when i use your again , the same problem is shown again. I hope you to show detail how to use your code.Thank you


New Exercises: Triangle and RNA Transcription

Finally - good to go ! Thank you for all your help @larshp !

This leads me to assume that Lars has looked at this, so I'm gonna merge optimistically. If this was not right @larshp, let me know and we can work to fix any issues.


Bring back the rationale paragraph before each docs page

I really miss the paragraph with the dark background that you used to have before each page.  It helped me understand the tachyons "filosophy".  I came back to it later and am really struggling to understand how everything fits together.

@whmountains Will be adding all of that content back and making improvements as well. Rest assured the intro content will be back and better than ever.

Great! Glad to hear that.

On Feb 25, 2016, at 1:30 PM, Adam Morse<EMAIL_ADDRESS>wrote:
@whmountains Will be adding all of that content back and making improvements as well. Rest assured the intro content will be back and better than ever.
—
Reply to this email directly or view it on GitHub.

@whmountains - believe this is now fixed!


IP Address

Hi,
I am new to Github and to coding. It took me days to figure out Twint and I finally did. I can use basic scripts to find information but I am trying to find a users location. I have been reading the issues and found a location script issue a while back and so I tried it and this is what I inputted:
import twint
c = twint.Config()
c.Username = "The users @ name"
#c.location = True
c.store_csv = True
c.output = Location.csv
twint.run.search(c)
When doing this, the first error from import twint was "syntax error near unexpected token C, then command not found.
Then I just entered "import twint" and that gave me "import -im6.q16: not authorized 'twint' @ error / constitute
What am I doing wrong? Is it possible to find a users location or IP address or to see what city they are in?

It seems that you can't import the library, so an issue on your end and not with twint
How did you install twint? Does the user have the rights to access the corresponding directory?

I downloaded VirtualBox and Ubuntu and set up an VM machine to run it. Then I did the following:
cd Downloads
mkdir Programs
cd Programs
sudo apt install git
git clone https://github.com/twintproject/twint.git
cd twint
sudo python3 setup.py install
then I went to download the requirements.txt and I can look up the simple scripts like -u, -s etc. I just cant do the more complicated scripts like import twint.
Does this help?

May you run pip3 install --user twint
You ran pip as sudo, which means that the twint library will be installed in the home directory of root. Running twint as root is not need and not really suggested.
Please re-try and let me know

I ran the pip3 install --user twint and it installed and then I tried the import twint and it gave the same error. Should I uninstall everything and restart?

Ok maybe there are conflicts because you installed twint in that local directory, thus python import that first.
You should remove that local installation by removing the directory, for example

Okay so there is no way to remove that in Ubuntu. I have tried multiple ways. I ended up rebuilding VirtualBox with another Ubuntu download and I cannot remove root or sudo and can install python, twint, or git without sudo.
Any advice?

Afaik, you have to install python and git with sudo, but you can install packages for the specific user

setup the VM
install python and git as sudo
pip3 install --user twint

Thank you! It finally worked

Great to know, another final note about running or not python scripts as root
So you can be sure that Twint does not contain malicious stuff that could harm you or your environment, but we don't have control over the libraries that we use. Actually, we could use forked ones and review the code, but that's not how life works. That said, if someone hijacks the libraries that we use and place some malicious code, running it as sudo could be really dangerous.
Please take care


Update TS docs urls

Description
Updates all of the TS docs to point to the new mystenlabs domain name (sdk.mystenlabs.com).
Test Plan
How did you test the new or updated feature?

If your changes are not user-facing and not a breaking change, you can skip the following section. Otherwise, please indicate what changed, and then add to the Release Notes section as highlighted during the release process.
Type of Change (Check all that apply)

[ ] protocol change
[ ] user-visible impact
[ ] breaking change for a client SDKs
[ ] breaking change for FNs (FN binary must upgrade)
[ ] breaking change for validators or node operators (must upgrade binaries)
[ ] breaking change for on-chain data layout
[ ] necessitate either a data wipe or data migration

Release notes

Should we add a changeset so we publish with the new docs links?


Trouble with rootless podman over ansible or distcc

Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description

I use rootless podman underneath distcc to serve various compiler images. If I let distcc or ansible execute "podman pull", under the distcc user, then I get the dreaded "there might not be enough IDs" message. If I execute the command from a login shell, then it works. I suspect that podman is misdetecting its own configuration if not running under a login shell.
Steps to reproduce the issue:

ansible --become-user=distcc -some_host -m podman_image -a name=

(same problem happens with "ansible -a" or if distcc itself executes it as part of "podman run")
Describe the results you received:
There might not be enough IDs available.
Describe the results you expected:
Pull complete.
Additional information you deem important (e.g. issue happens only occasionally):
Output of podman version:
podman version 1.8.0
(paste your output here)

Output of podman info --debug:
debug:
  compiler: gc
  git commit: ""
  go version: go1.12.15
  podman version: 1.8.0
host:
  BuildahVersion: 1.13.1
  CgroupVersion: v1
  Conmon:
    package: conmon-2.0.13-1.fc30.x86_64
    path: /usr/bin/conmon
    version: 'conmon version 2.0.13, commit: 0d76d92618b091af3623e9d4a60889b32fe4bff6'
  Distribution:
    distribution: fedora
    version: "30"
  IDMappings:
    gidmap:
    - container_id: 0
      host_id: 1015
      size: 1
    - container_id: 1
      host_id: 1000000
      size: 65536
    uidmap:
    - container_id: 0
      host_id: 1015
      size: 1
    - container_id: 1
      host_id: 1000000
      size: 65536
  MemFree:<PHONE_NUMBER>
  MemTotal:<PHONE_NUMBER>0
  OCIRuntime:
    name: runc
    package: runc-1.0.0-102.dev.gitdc9208a.fc30.x86_64
    path: /usr/bin/runc
    version: |-
      runc version 1.0.0-rc10
      commit: ffa084d279c26351e6e63bd2c3f28d43fa1f6e57
      spec: 1.0.1-dev
  SwapFree:<PHONE_NUMBER>2
  SwapTotal:<PHONE_NUMBER>4
  arch: amd64
  cpus: 4
  eventlogger: file
  hostname: thor.cloudius-systems.com
  kernel: 4.18.19-100.fc27.x86_64
  os: linux
  rootless: true
  slirp4netns:
    Executable: /usr/bin/slirp4netns
    Package: slirp4netns-0.4.0-4.git19d199a.fc30.x86_64
    Version: |-
      slirp4netns version 0.4.0-beta.2
      commit: 19d199a6ca424fcf9516320a327cedad85cf4dfb
  uptime: 1615h 1m 44.89s (Approximately 67.29 days)
registries:
  search:
  - docker.io
  - registry.fedoraproject.org
  - registry.access.redhat.com
  - registry.centos.org
  - quay.io
store:
  ConfigFile: /var/distcc/.config/containers/storage.conf
  ContainerStore:
    number: 0
  GraphDriverName: overlay
  GraphOptions:
    overlay.mount_program:
      Executable: /bin/fuse-overlayfs
      Package: fuse-overlayfs-0.7.5-2.fc30.x86_64
      Version: |-
        fusermount3 version: 3.6.2
        fuse-overlayfs: version 0.7.5
        FUSE library version 3.6.2
        using FUSE kernel interface version 7.29
  GraphRoot: /var/distcc/.local/share/containers/storage
  GraphStatus:
    Backing Filesystem: extfs
    Native Overlay Diff: "false"
    Supports d_type: "true"
    Using metacopy: "false"
  ImageStore:
    number: 1
  RunRoot: /var/tmp/run-1015/containers
  VolumePath: /var/distcc/.local/share/containers/storage/volumes

Package info (e.g. output of rpm -q podman or apt list podman):
(paste your output here)

Additional environment details (AWS, VirtualBox, physical, etc.):
Physical, Fedora 30

It's already known and documented that Podman does not play nicely with sudo and su (they don't play nicely with some PAM things that we expect, for example mounting /run/user/$UID), so I suspect that this may be similar; however, I've never seen an ID-related error involved in that. I don't know exactly how become_user works, but it's possible that it's doing things in a strange manner that is causing us to not properly detect what user we're running as.

That's unfortunate. What do people do?
Is there a list of such requirements that I can try to satisfy myself?

The failure could be much more graceful. If /run/blah doesn't exist, tell me that's the problem, don't tell me that there might not be enough IDs available.

I worked around this by giving this command to ansible: sudo sudo -i -u distcc podman pull .... Of course ansible cursed me for using sudo.
Please make it easier to work with rootless podman in non-interactive scenarios. And also try to improve error reporting, the "not enough IDs" message is thrown whenever there is some misconfiguration, but there is no clue as to what the misconfiguration is.

If sudo actually works, it sounds like something about Ansible's become is
confusing the rootless code majorly. I wouldn't consider this a
misconfiguration, but rather Podman likely not being entirely sure what
user it was run as and not locating the proper subuid entry.
On Sun, May 3, 2020, 07:50 Avi Kivity<EMAIL_ADDRESS>wrote:

I worked around this by giving this command to ansible: sudo sudo -i -u
distcc podman pull .... Of course ansible cursed me for using sudo.
Please make it easier to work with rootless podman in non-interactive
scenarios. And also try to improve error reporting, the "not enough IDs"
message is thrown whenever there is some misconfiguration, but there is no
clue as to what the misconfiguration is.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/containers/libpod/issues/6068#issuecomment-623097872,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AB3AOCDRVDZOZ4XUPC535ETRPVLB3ANCNFSM4MXYUTIQ
.

It works after I added the service that kept /run/user/$(id foo) up (I did not do exhaustive checks to see if the exact incantation that ended up working does not work without it).
Is it possible to make podman's notion of the user more consistent with other system tools? And perhaps report the user it thinks it is when consulting subuid?

and/or document what podman expects?

@giuseppe @mheon Could you guys add something to troubleshooting on this.
Basically document
ssh root@HOSTNAME
# su user
$ podman ...
Failure
```

The basic problem is the lack of XDG_RUNTIME_DIR being set or other fields set incorrectly so that podman tries to do stuff that the root process can only do.  IE Write the /root homedir or /run/user/0/...
We have to document that the user needs to setup a true user login session by either coming in through a login process or by executine su -- USER.

This is now documented, closing. Reopen if I am mistaken.


YouTube v3 video/upload, setting the snippet fails when non-alphanumeric characters are used

janbirsacom on 9 Jun 2014 at 8:58:
What steps will reproduce the problem?
1. Use YouTube video upload sample code from:
https://developers.google.com/youtube/v3/docs/videos/insert
2. In video description field, put non-alphanumeric characters like '<3'.
3. Upload a sample video.

What is the expected output? What do you see instead?
Expected: 200, successful upload
Got: 400 Bad Request

What version of the product are you using? On what operating system?
Latest (2ba9f0995cf0215c20ebd6de43a14d70af30fea6)

Please provide any additional information below.
http://stackoverflow.com/questions/24075229/youtube-upload-v3-400-bad-request

Successfully auto-migrated from code.google.com:
https://code.google.com/p/google-api-go-client/issues/detail?id=59

Tested this issue with this example: https://code-review.googlesource.com/#/c/2230
Unfortunately, you are correct that non-alphanumeric characters appears to be disallowed by the YouTube API server.  This does not appear to be an issue with this auto-generated client library.
Closing.


Feature :proper highlighting the current section on navbar

Is your feature request related to a problem? Please describe
when you are in the home page when you clicked some sections like teachers ,features you moved to that section but in the navbar you are not properly highlighted in which section you
https://github.com/CircuitVerse/CircuitVerse/assets/138685168/74054d52-ceb9-4803-9050-8810b23e9b01
are currently
Describe the solution you'd like
for this we should have to  highlight the section properly in the navbar by little make background highlighted and changes the color of text i.e teachers or features
Describe alternatives you've considered
No response
Additional context
No response
Are you working on this?
Yes

i think it will be better if it is like this

cc @tanmoysrt i am waiting for your review

cc: @vedant-jain03

cc @tanmoysrt i am waiting for your review

@harshsharma-11 thanks for the issue, but if you carefully see, we actually highlight the text with "green" color when the respective tab is active

@vedant-jain03 but see the features it is not highlighting

https://github.com/CircuitVerse/CircuitVerse/assets/138685168/75779bfd-fa1c-4acf-a5ee-48e080007d31
cc @vedant-jain03
look here features is not highlighted

@Waishnav
@wallento
please review the issue!!!!!!!!!!!!!!!

@vedant-jain03
@VaibhavUpreti
@Arnabdaz  i fixed the issue now should i ask to review this in #ux channel

@tanmoysrt @vedant-jain03 @VaibhavUpreti Can i work on this issue?
Solution can be:


How to force IPV4 insteadof IPV6

Hi, I noticed that when using Minecraft server (forge), the default IP version is 6 instead of 4, this makes it really hard to port forward. If you have any idea how to force it back. I would be very glad.
tcp6       0      0 :::25565                :::*                    Listening

netstat/lsof seem to report the docker proxy's bound port as tcp6/IPv6 but it's actually binding to both IPv6/IPv4. As a result, just do plain old IPv4 port forwarding and it will be fine. That's what I do on my home system.


[concurrency] IRGen: emit emit_hop_to_executor instructions.

This basically means to create a suspension point and call the swift_task_switch runtime function.
rdar://71099289

The required llvm async lowering change is in swift/main as of https://github.com/apple/llvm-project/commit/f681f671e2e95389476c68597b2324f15e09473e

@swift-ci smoke test

@swift-ci smoke test


Available Ms.EfCore does not work with available Ms.EfCore.Commands (Add-Migration fails)

In aspnetvnext feed I see only the following package versions:

Microsoft.EntityFrameworkCore: 1.0.0-rc3-20912 (new)
Microsoft.EntityFrameworkCore.Commands: 1.0.0-rc3-20637 (old)
Microsoft.EntityFrameworkCore.SqlServer: 1.0.0-rc3-20912 (new)

I have installed them. Application works fine. But when I run the command: PM> Add-Migration TestMigration
I get an error with the stack trace:
System.MissingMethodException: Method not found: 'System.Collections.Generic.IEnumerable1<Microsoft.EntityFrameworkCore.Metadata.IForeignKey> Microsoft.EntityFrameworkCore.KeyExtensions.FindReferencingForeignKeys(Microsoft.EntityFrameworkCore.Metadata.IKey)'.    at Microsoft.EntityFrameworkCore.Migrations.Design.CSharpSnapshotGenerator.<>c__DisplayClass11_0.<GenerateKeys>b__0(IKey key)    at System.Linq.Enumerable.WhereEnumerableIterator1.MoveNext()    at Microsoft.EntityFrameworkCore.Migrations.Design.CSharpSnapshotGenerator.GenerateKeys(IEnumerable1 keys, IKey primaryKey, IndentedStringBuilder stringBuilder)    at Microsoft.EntityFrameworkCore.Migrations.Design.CSharpSnapshotGenerator.GenerateEntityType(String builderName, IEntityType entityType, IndentedStringBuilder stringBuilder)    at Microsoft.EntityFrameworkCore.Migrations.Design.CSharpSnapshotGenerator.GenerateEntityTypes(String builderName, IReadOnlyList1 entityTypes, IndentedStringBuilder stringBuilder)    at Microsoft.EntityFrameworkCore.Migrations.Design.CSharpSnapshotGenerator.Generate(String builderName, IModel model, IndentedStringBuilder stringBuilder)    at Microsoft.EntityFrameworkCore.Migrations.Design.CSharpMigrationsGenerator.GenerateMetadata(String migrationNamespace, Type contextType, String migrationName, String migrationId, IModel targetModel)    at Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolder.ScaffoldMigration(String migrationName, String rootNamespace, String subNamespace)    at Microsoft.EntityFrameworkCore.Design.MigrationsOperations.AddMigration(String name, String outputDir, String contextType)    at Microsoft.EntityFrameworkCore.Design.OperationExecutor.AddMigrationImpl(String name, String outputDir, String contextType)    at Microsoft.EntityFrameworkCore.Design.OperationExecutor.AddMigration.<>c__DisplayClass0_1.<.ctor>b__0()    at Microsoft.EntityFrameworkCore.Design.OperationExecutor.OperationBase.<>c__DisplayClass3_01.<Execute>b__0()    at Microsoft.EntityFrameworkCore.Design.OperationExecutor.OperationBase.Execute(Action action) Method not found: 'System.Collections.Generic.IEnumerable1<Microsoft.EntityFrameworkCore.Metadata.IForeignKey> Microsoft.EntityFrameworkCore.KeyExtensions.FindReferencingForeignKeys(Microsoft.EntityFrameworkCore.Metadata.IKey)'.

Earlier (to avoid this issue / as workaround) I used all the packages with old version 1.0.0-rc3-20637. And Add-Migration command was worked fine without any exception.
Could you provide a new fixed version of Microsoft.EntityFrameworkCore.Commands, because on a new computer (without locally cached Nuget packages) I cannot anymore restore the old version of Microsoft.EntityFrameworkCore (1.0.0-rc3-20637)
Thanks in advance.

Microsoft.EntityFrameworkCore.Commands is obsolete now. The new package name is Microsoft.EntityFrameworkCore.Tools
See difference from RC1 to RC2 at http://ef.readthedocs.io/en/latest/miscellaneous/rc1-rc2-upgrade.html
For using PMC commands for migration refer to http://ef.readthedocs.io/en/latest/cli/powershell.html


Set infinite ratio if test real time was 0.00s.

Some very short tests measure 0.00s for real time, and this
causes an ZeroDivisionError exception. Set ratio as infinite when
this happens.

@garmin-mjames do you plan to incorporate the changes suggested by @eric-wieser or should this go in as-is?

I added a check for when sim time in the test summary will show 0.00ns and set to float('nan') if so.

Thanks for this PR!


Support Request: "Removing any leftover ... Service" on every startup

Describe Your Problem
When starting the plugin I get a number of warning messages which read "Removing any leftover ... Service". It does not really cause any problems. However, it is irretating that these warning messages occur on every startup. Is there a way I can fix this?
Relevant log output
[7/29/2024, 11:51:57 PM] [SwitchBot] Launched child bridge with PID 2478669
[7/29/2024, 11:51:58 PM] Registering platform<EMAIL_ADDRESS>[7/29/2024, 11:51:58 PM] [SwitchBot] Loaded @switchbot/homebridge-switchbot v3.7.1-beta.8 child bridge successfully
[7/29/2024, 11:51:58 PM] Loaded 1 cached accessories from cachedAccessories.AABBCCDDEEFF.
[7/29/2024, 11:51:58 PM] Homebridge v1.8.4 (HAP v0.12.2) (SwitchBot) is running on port 59245.
[7/29/2024, 11:51:58 PM]

NOTICE TO USERS AND PLUGIN DEVELOPERS
> Homebridge 2.0 is on the way and brings some breaking changes to existing plugins.
> Please visit the following link to learn more about the changes and how to prepare:
> https://github.com/homebridge/homebridge/wiki/Updating-To-Homebridge-v2.0

[7/29/2024, 11:51:59 PM] [SwitchBot] Total SwitchBot Devices Found: 2
[7/29/2024, 11:51:59 PM] [SwitchBot] Restoring existing accessory from cache: Haustür deviceId: AABBCCDDEEFF
[7/29/2024, 11:51:59 PM] [SwitchBot] Bot: Haustür Removing any leftover Fan Service
[7/29/2024, 11:51:59 PM] [SwitchBot] Bot: Haustür Removing any leftover Door Service
[7/29/2024, 11:51:59 PM] [SwitchBot] Bot: Haustür Removing any leftover Outlet Service
[7/29/2024, 11:51:59 PM] [SwitchBot] Bot: Haustür Removing any leftover Switch Service
[7/29/2024, 11:51:59 PM] [SwitchBot] Bot: Haustür Removing any leftover Faucet Service
[7/29/2024, 11:51:59 PM] [SwitchBot] Bot: Haustür Removing any leftover Window Service
[7/29/2024, 11:51:59 PM] [SwitchBot] Bot: Haustür Removing any leftover Garage Door Service
[7/29/2024, 11:51:59 PM] [SwitchBot] Bot: Haustür Removing any leftover Window Covering Service
[7/29/2024, 11:51:59 PM] [SwitchBot] Bot: Haustür Removing any leftover Stateful Programmable Switch Service

Config for homebridge-switchbot
        {
            "name": "SwitchBot",
            "credentials": {
                "token": "",
                "secret": "",
                "notice": "Keep your Token & Secret a secret!"
            },
            "options": {
                "devices": [
                    {
                        "deviceId": "AABBCCDDEEFF",
                        "configDeviceName": "Haustür",
                        "configDeviceType": "Bot",
                        "connectionType": "OpenAPI",
                        "bot": {
                            "mode": "press",
                            "deviceType": "lock"
                        },
                        "refreshRate": 3600,
                        "logging": "standard"
                    }
                ],
                "refreshRate": 3600,
                "logging": "standard",
                "allowInvalidCharacter": false
            },
            "platform": "SwitchBot"
        }

Screenshots
No response
Device & Model
SwitchBot
Node.js Version
v20.16.0
NPM Version
v10.8.1
Homebridge Version
v1.8.4
Homebridge SwitchBot Plugin Version
v3.7.1-beta.8
Homebridge Config UI X Plugin Version
v4.56.4
Operating System
Docker

Yeah I will resolve this. Thanks for letting me know.

Ah okay. That makes sense. Maybe the log level should be adjusted to info or debug as this is an expected behavior of the plugin and nothing to worry about which would justify the warning log level.

Yep, moved them to a debug>warn log, so it will show yellow (for warning) only when in debug mode.
This is now in the latest beta.

The latest beta does the job. Thanks!


Don't assume a specific generator

Allowing builds to work with any generator (e.g. ninja), not only make
make is still the default behavior

This allow generators to be consistent when SCAF is included in another project that uses a different generator.

LGTM

@yebinchon Can you test if this works well in our environment?


Adding windows deprecated banners for rke1 on the clusters and provisioning pages

rancher/dashboard#5995

@codyrancher What's the status of this?

To test the clusters page without provisioning a windows cluster I set the isWindows and isRKE computed properties in the cluster.js model to true.


Rider itinerary page (redesign)

After #136 we should have a page specifically designed around showing a rider their full day.
This should have some good mocks around it.

This is completed, if i understand correctly; below is a rider's itinerary page:


⚠ Bofrost.fr has degraded performance

In 13449ec, Bofrost.fr (https://www.bofrost.fr) experienced degraded performance:

HTTP code: 200
Response time: 1049 ms

Resolved: Bofrost.fr performance has improved in b8fe3d4.


Issue with HatchPatterns.svg file

I get an error message when I attempt to view the HatchPatterns.svg file in my browser (Chrome).  This is the error message:

Sorry, this file is invalid so it cannot be displayed.

I downloaded the repo as a zip, and I see the following message:

error on line 6 at column 30: Namespace prefix inscape for stockid on pattern is not defined

Thought I would share!

Not surprised by the first error, the SVG is for Inkscape. Did you try opening it in Inkscape?
Where are you seeing that second error?
From the usage instructions:
There are two ways to use the files generated by  HatchPatterns.py:

How to use these patterns

HatchPatterns.svg contains a rectangle for each pattern. You can copy/paste these rectangles to the drawing where you want to use them, and copy/ctrl-paste the object properties to the objects that must have the patterns. Copy/ctrl-pasting object properties is a very fast way to work.

The second solution is to open the ..\share\patterns\pattern.svg file in a text editor and append the contents of Defs.txt to the  ...  section. With this second option, the patterns will be available in every Inkscape session from then on.


Don't base viewer cols/rows on parameters

Sometimes, there an error 'No file found for (variable) and (season)', so no plot is created. But since the viewer looks through the parameters, it'll think there's a file.
We end up with something like this:

Generated with:
{
	"set5": [
        {
			"sets": [3],
			"case_id": "set5_CRU",
			"variables": ["TREFHT_LAND"],
			"ref_name": "CRU",
			"reference_name": "IPCC/CRU climatology1961-90",
			"seasons": ["MAM"],
			"contour_levels": [210, 220, 230, 240, 250, 260, 270, 275, 280, 285, 290, 295, 300, 305, 310],
			"diff_levels": [-5, -4, -3, -2, -1, -0.5, -0.2, 0, 0.2, 0.5, 1, 2, 3, 4, 5]
		},
		{
			"sets": [3],
			"case_id": "set5_SST_HadISST",
			"variables": ["SST"],
			"ref_name": "HadISST_CL",
			"reference_name": "HadISST/OI.v2 (Climatology) 1982-2001",
			"seasons": ["DJF"],
			"contour_levels": [-1, 0, 1, 3, 6, 9, 12, 15, 18, 20, 22, 24, 26, 28, 29],
			"diff_levels": [-5, -4, -3, -2, -1, -0.5, -0.2, 0, 0.2, 0.5, 1, 2, 3, 4, 5]
		}
	]
}

Fixed a long time ago.


Admin Integration

This patch adds basic admin configuration. Key attributes of Message, Account, and Response models are exposed in list views and there is some filtering. It's by no means a detailed config, just a start to build from.
Also  added an AppConfig to customize the app name within the admin site.

Great, thanks.


[staging] /settings - Cannot read property 'block' of undefined

There is a TypeError on the /settings route from the non-react user's portfolio page.
Error Stack: https://gist.github.com/raisedadead/273440b8ff316af86ab46e7d5714a70a

/cc @BerkeleyTrue

I got this error too, yesterday, when setting up a fresh instance of FCC on a Ubuntu 16.04 64-bit machine, while clicking on "Map".

cc @Bouncey
Looks like this is related to your recent PR.


Allow for developer to specify if messages pulled from SQS should be deleted off the queue

Seems like the QueueMessageChannel auto deletes messages off the SQS queue. This might not be desirable to all clients. Consider allowing this to be configurable.

Hello @karthikguda, you can specifiy (with the latest milestone release) the deletionPolicy within the annotation.
e.g. @SqsListener(value = "myQueue", deletionPolicy = SqsMessageDeletionPolicy.NEVER) would not delete the messages, you can manually delete them by having a acknowledgment parameter.
As a example
public static class ManualDeletionPolicyTestListener {
	@SqsListener(value = "ManualDeletionQueue", deletionPolicy = SqsMessageDeletionPolicy.NEVER)
	public void receive(String message, Acknowledgment acknowledgment)  {
		acknowledgment.acknowledge().get();
	}
}

Please re-open the ticket in case of any questions.

This isn't related to the annotation; at least not now, nor did the comment look related. I think this should be considered a bug. It makes QueueMessagingTemplate fairly useless as it just instantly deletes the message from the queue which is what one almost never wants. QueueMessagingTemplate uses QueueMessageChannel which in turn deletes the message as soon as taking it from the queue. The SimpleMessageListenerContainer uses the SQS client directly, and is why it doesn't have this issue. Too, this is not documented, and one could say makes QueueMessagingTemplate dangerous as one must either read the code of the project or find out the hard way by having code delete messages before they are processed before they realize they don't want to use QueueMessagingTemplate.
Too, and most certainly a topic for another issues, or multiple ones, feature requests, QueueMessagingTemplate needs to be more thorough allowing delete and other items. It would be handy too if it supported a back-off strategy, perhaps configurable, like the SimpleMessageListenerContainer, as it then supports the developer in a more utilitarian fashion.

Currently I'm working around this bug by extending QueueMessagingTemplate, overriding resolveMessageChannel, extending QueueMessageChannel, and overriding receive(long). So, a little copy and paste with deletion, but it doesn't seem like what one wants to do long term.

I see. There is no handle to delete the message returned, so technically the whole model just doesn't work. It really needs to return a wrapper, and the template would need to do something similar. I was trying to work around with some extensions, but it isn't practical as there needs to be other information returned or set with parameters (out parameters).

+1

Is this resolved? Do we have a fix or ETA for fix?

Considering it is closed, I'm guessing the answer is no @apexkid. I see no response to my points either. I assume that means one would need to put together a PR, or create workarounds; which is what I did. I actually made use of the underpinnings of the annotations, SimpleMessageListenerContainer, and converters, to allow similar use without a fully custom solution, and that worked out well for me back when I commented on this.

It is quite unfortunate that this library doesn't implement the basic functionality correctly.  SQS workflows are highly dependent on the message acknowledgement which prevents message loss if a server goes down after reading a message. Without this feature available first hand, i do not feel this library is reliable to use. I will stick to AWS java sdk.

Can I clarify this....Am I to understand that the Spring Cloud AWS SQS integration does not currently allow manually acknowledging the message?  I'm having some trouble getting the Acknowledgment object to be properly deserialized.  That does not seem to be the same issue as this ticket, but if the feature doesn't currently work, I don't want to keep banging my head against the wall....

any resolutions to this? I am facing this issue atm as I need to manually acknowledge / delete a message from dead letter queue and there seems to be no way with spring cloud

can this be reopen or someone share if there is any resolutions to this? I am facing this issue atm as I need to manually acknowledge / delete a message from dead letter queue and there seems to be no way with spring cloud

@frockert Can’t you use the SimpleMessageListenerContainer?  That’s how I’ve implemented it and it works perfectly.  In my app, Messages are deleted off the queue manually in a separate batch process, in a separate thread.

I can't see on SimpleMessageListenerContainer anything exposed to delete/acknowledge the message, might be missing something. If you have an example on how you doing it that would be great @bisoldi

@frockert Below is some code I use that works and allows manual acknowledge/delete of the SQS messages.
Not being a Spring guru, it was excessively difficult to get this just right, with all of the Spring projects/dependencies, there was, it seemed, a lot of overlap and a lot of different instructions out there on how to get this right.  Additionally, getting the messageConverter code and the PayloadArgument stuff just right was also painful, it took me quite a while.  Bottom line, I felt your pain.
Just some caveats, I did not include:

The exact maven coordinates for this.  Unfortunately, my pom is a bit of a mess and it will be difficult for me to isolate exactly which dependencies provide everything needed, though I provided some clues to get you started.
The values for each of the setters below, you should be able to figure out what values are appropriate for your use case.

I hope this helps, let me know of any questions.
@Bean
@Primary
public AmazonSQSAsync amazonSQSAsync(@Autowired AWSCredentialsProvider credentials) {
    return AmazonSQSAsyncClientBuilder.standard()
        .withCredentials(credentials)
        .withExecutorFactory(null)
        .withRegion(region)
        .build();
}

@Bean
@Primary
public AWSCredentialsProvider buildDefaultAWSCredentialsProvider() {
    return new DefaultAWSCredentialsProviderChain();
}

@Bean("IngestJsonConsumerBean")
@Primary
public SimpleMessageListenerContainer simpleMessageListenerContainer(@Autowired AmazonSQSAsync amazonSQSAsync,
@Autowired QueueMessageHandler queueMessageHandler) {

    SimpleMessageListenerContainer smlc = new SimpleMessageListenerContainer();
    smlc.setWaitTimeOut(20);
    smlc.setAmazonSqs(amazonSQSAsync);
    smlc.setMessageHandler(queueMessageHandler);
    smlc.setBeanName("IngestJsonConsumerBean");
    smlc.setMaxNumberOfMessages(sqsMaxMessages);
    smlc.setQueueStopTimeout(sqsThreadAwaitTerminationSeconds * 1000L);
    smlc.setTaskExecutor(buildSqsThreadPoolExecutor());

    return smlc;
}

private ThreadPoolTaskExecutor buildSqsThreadPoolExecutor() {
    ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor();

    executor.setCorePoolSize(sqsThreadCorePoolSize);
    executor.setAllowCoreThreadTimeOut(sqsThreadCoreTimeout);
    executor.setWaitForTasksToCompleteOnShutdown(sqsThreadWaitForTasksOnShutdown);
    executor.setAwaitTerminationSeconds(sqsThreadAwaitTerminationSeconds);
    executor.setMaxPoolSize(sqsThreadMaxPoolSize);
    executor.setKeepAliveSeconds(sqsThreadTimeoutSeconds);
    executor.setThreadNamePrefix(sqsThreadName + "-");

    executor.initialize();

     return executor;
}

@Bean
@Primary
public QueueMessageHandler queueMessageHandler(@Autowired AmazonSQSAsync sqsClient, @Autowired QueueMessageHandlerFactory queueMessageHandlerFactory) {
    queueMessageHandlerFactory.setAmazonSqs(sqsClient);
    QueueMessageHandler queueMessageHandler = queueMessageHandlerFactory.createQueueMessageHandler();

    return queueMessageHandler;
}

@Bean
@Primary
public QueueMessageHandlerFactory queueMessageHandlerFactory() {
    QueueMessageHandlerFactory factory = new QueueMessageHandlerFactory();
    MappingJackson2MessageConverter messageConverter = new MappingJackson2MessageConverter();
    messageConverter.setSerializedPayloadClass(String.class);

    //set strict content type match to false
    messageConverter.setStrictContentTypeMatch(false);
    PayloadArgumentResolver payloadArgumentResolver = new PayloadArgumentResolver(messageConverter);
    AcknowledgmentHandlerMethodArgumentResolver acknowledgmentResolver = new AcknowledgmentHandlerMethodArgumentResolver("Acknowledgment");
    factory.setArgumentResolvers(Arrays.asList(acknowledgmentResolver, payloadArgumentResolver));

    return factory;
}

As for dependencies, here are the Spring dependencies I have.  You will also need the AWS SDK.
<dependency>
	<groupId>org.springframework.cloud</groupId>
	<artifactId>spring-cloud-starter-aws</artifactId>
</dependency>
<dependency>
	<groupId>org.springframework.cloud</groupId>
	<artifactId>spring-cloud-starter-aws-messaging</artifactId>
</dependency>
<dependency>
	<groupId>org.springframework.boot</groupId>
	<artifactId>spring-boot-starter-test</artifactId>
	<scope>test</scope>
</dependency>
<dependency>
	<groupId>org.springframework.cloud</groupId>
	<artifactId>spring-cloud-aws-autoconfigure</artifactId>
</dependency>

<dependencyManagement>
	<dependencies>
		<dependency>
			<groupId>org.springframework.cloud</groupId>
			<artifactId>spring-cloud-dependencies</artifactId>
			<version>${spring-cloud.version}</version>
			<type>pom</type>
			<scope>import</scope>
		</dependency>
	</dependencies>
</dependencyManagement>
<repositories>
	<repository>
		<id>spring-milestones</id>
		<name>Spring Milestones</name>
		<url>https://repo.spring.io/milestone</url>
		<snapshots>
			<enabled>false</enabled>
		</snapshots>
	</repository>
</repositories>


Possible R2DT bug

Hi @AntonPetrov
As you know we recently installed R2DT.
We found that quite a few ncRNAs unexpectedly got R2Dt predictions.
On inspection these features were actually in the ncRNAs on the opposite strands to known tRNAs
See
https://github.com/pombase/curation/issues/3715
for the examples.
I this the expected behaviour?
Best
Val

Hang on; ignore, I think I know what is happening.

Actually, something is a bit weird.
Here we have an antisense RNA
https://rnacentral.org/rna/URS000230DC2B/4896
and the tRNA on the opposite strand:
https://rnacentral.org/rna/URS0000005144/4896
both reporting the tRNA structure

Hi Val!
I looked into URS000230DC2B_4896 and it indeed gets a high scoring hit with Eukaryotic tRNA models from tRNAScan-SE:
Sequence           		tRNA	Bounds	tRNA	Anti	Intron Bounds	Inf
Name               	tRNA #	Begin	End	Type	Codon	Begin	End	Score	Note
--------           	------	-----	------	----	-----	-----	----	------	------
URS000230DC2B_4896 	1	593	520	Asn	GTT	0	0	81.5

As you noted, this hit is on the reversed strand and it corresponds to the other RNA, URS0000005144_4896.
I agree that R2DT should not visualise hits from the reverse strand. I made a change and once it is merged and deployed, RNAcentral can recompute the PomBase diagrams using the new version. I expect the next R2DT release in ~2 weeks but it would take longer for RNAcentral to update their precomputed RNA 2D diagrams.
Thank you for reporting this problem and please let me know if you notice anything else.


Implementing the depreciated start and end groups types

As indicated here https://developers.google.com/protocol-buffers/docs/encoding The wire types of 3 and 4 (start and end groups) are "depreciated" ... but unfortunately they still exist on some protobuf packets floating around.
This could be easily resolved by adding these types and then update skip to include them (skipping zero bytes):
        else if (type === Pbf.StartGroup) this.pos += 0;
        else if (type === Pbf.EndGroup) this.pos += 0;

I agree, googleapis still return start and end groups.


Refactor project generator cookiecutter template to copier

[x] I have searched the issues of this repo and believe that this is not a duplicate.

Feature Request

Refactor: https://github.com/fastapi-mvc/cookiecutter to copier

New template location: https://github.com/fastapi-mvc/copier-project

Released: https://github.com/fastapi-mvc/copier-project/releases/tag/0.1.0


Updated links from zendesk to CLC public KB

Article contained links to Zendesk, updated to CLC public KB

you'll need to update your links to other KB articles to match the readme
https://github.com/CenturyLinkCloud/PublicKB/blob/master/README.md
also it appears you are mixing HTML and markdown. please put all code in markdown in line with the readme and flip contentIsHTML": true

I know, I just really didn’t want to reformat it. I will when I get back.
Jacob Malmad
Sr. Cloud Architect
CenturyLink Cloud

Mobile:<PHONE_NUMBER>
Email: jake.malmad<EMAIL_ADDRESS>www.centurylinkcloud.comhttp://www.centurylinkcloud.com/
From: Chris Little<EMAIL_ADDRESS>Sent: Wednesday, July 1, 2015 4:03 PM
To: CenturyLinkCloud/PublicKB
Cc: Malmad, Jake
Subject: Re: [PublicKB] Updated links from zendesk to CLC public KB (#197)
you'll need to update your links to other KB articles to match the readme
https://github.com/CenturyLinkCloud/PublicKB/blob/master/README.md
also it appears you are mixing HTML and markdown. please put all code in markdown in line with the readme and flip contentIsHTML": true
—
Reply to this email directly or view it on GitHubhttps://github.com/CenturyLinkCloud/PublicKB/pull/197#issuecomment-117808840.
This communication is the property of CenturyLink and may contain confidential or privileged information. Unauthorized use of this communication is strictly prohibited and may be unlawful. If you have received this communication in error, please immediately notify the sender by reply e-mail and destroy all copies of the communication and any attachments.

Doesn't seem to be ready and its 12 days old... Reopen if not true.


Hi @shreyancejain - thanks for the contribution.

Hi @samcday  - Sorry for that, Its my bad, I forgot to update test cases after my change. Now all tests are passing.

Actually destroySoon now actually destroys the stream and not waiting for stream to end, I think that should be the behavior of destroySoon.

Hmmm okay I see what you're trying to do here. Not sure I agree with the change though. If you want this behaviour you can simply write the data you want to the stream and then call destroySoon() to ensure it ends once that data has been emitted to consumers.

Hmmm okay that could be done, I thought in a different way, thanks for clarification.....:)


HDDS-2361. Ozone Manager init & start command prints out unnecessary line in the beginning.

What changes were proposed in this pull request?
Modify the if-condition in hadoop-ozone-manager.sh
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-2361
How was this patch tested?
Ran the command in hadoop-ozone/:
mvn clean package -Pdist -Dtar -DskipTests
And ran the commands after deployment
ozone --daemon start om
ozone --daemon stop om

Thank You @cxorm for the contribution and @adoroszlai for the review.

Thanks @adoroszlai and @bharatviswa504 for the review and commit.


WIP: Generalise catbird to support generic MOOSE input deck creation

Description to follow
@pshriwise  Since I've already given you a demo, I'll populate this description later (in coming days).

Really cool to see this working for generic types in MOOSE! I think I should've asked more questions about how to build up an input from scratch on our call. My plan was to start contributing to the tests as a way of understanding the new API and internals, but I didn't get very far. Would you be up for updating the README w/ a few usage examples I can build off of?

Really cool to see this working for generic types in MOOSE! I think I should've asked more questions about how to build up an input from scratch on our call. My plan was to start contributing to the tests as a way of understanding the new API and internals, but I didn't get very far. Would you be up for updating the README w/ a few usage examples I can build off of?

Sorry for being slow to reply. Most certainly. The current local examples I have are actually just random sytax and I haven't checked for their being valid MOOSE files. My next step will be to make a just a simple thermal problem that does run, then that could be the basis for some sort of regression test.

@pshriwise  README added, worked example added, and description updated. Still a few to-dos outstanding, so I've not removed the "WIP".

@pshriwise  sorry for being slow :/ but thank you ever so much for your fix, same json reader issue hit me as soon as I updated my rather out-of-date MOOSE. However, I'm now on head commit of MOOSE master and my little thermal example still runs :)


reliability in IntegrationTestBase

Summarise the changes this Pull Request makes.
Make IntegrationTestBase.WhenAsync fail when it should.
This PR turns the tests red, because they were already failing, unnoticed.
Please include a reference to a GitHub issue if appropriate.

I don't see any reason to cancel the source - it gets disposed of when the using block ends, and is not forwarded to any other test code directly or via delayTask

delayTask has a timer that continues to run. It's a very minor nit to be honest. If this were production code it might be worth doing.

Putting source.Cancel() in actually breaks some tests

That's interesting, I'd like to understand that. Feel free to leave it out, the benefits are negligible here.

There is a todo on the test WhenAHandlerThrowsAnExceptionWithNoMonitor
Which is failing because the config.WithErrorHandler(ErrorHandler) is put into a SqsReadConfigurationBuilder but is not reaching JustSayingFluently.CreateSubscriptionListener.
It needs to be fed into new SqsNotificationListener(...) but as far as I can see, has not yet been set up at that point.
This is out of scope here, this PR does what's intended by surfacing real errors and is also green.

I find this to be quite confusing. The source.Token.ThrowIfCancellationRequested(); line would throw from there even if the action task did that itself. Surely we'd want the stack trace to show it throwing from the action task rather than from within this test method? Either way, I think it needs some comments added for clarity.
Perhaps this is a bit more straightforward and easier to understand:
using (var source = new CancellationTokenSource(Timeout))
{
    // Create a delay task to ensure that our test never hangs indefinitely
    var delayTask = Task.Delay(Timeout.Add(Timeout), CancellationToken.None); // Don't use source.Token here, because we never intend to cancel the delay
    var actionTask = action(publisher, listener, source.Token);

    // If the actionTask completes first, it was successful
    await Task.WhenAny(actionTask, delayTask).ConfigureAwait(false);

    if (delayTask.IsCompleted)
    {
        // If we get here, the actionTask took too long
        throw new Exception("The action took too long");
    }

    // Either this will no-op (if the actionTask completed successfully) or it will throw (if the actionTask completed with a fault due to the timeout expiring)
    await actionTask;
}

Personally I'd just get the framework to throw what it would throw via the call designed for that purpose, rather than just throw Exception, the worst of all possible exception types to use.
The await at the end is probably fine as it'll return because it either already completed or will throw, but I don't care enough either way.

Perhaps all that's required then is to move the source.Token.ThrowIfCancellationRequested(); line to the end?

It shouldn't be last, as otherwise if the test task deadlocked, the test wouldn't end with the timeout.

But if the test task deadlocked, then the delay task would finish first and because the delay task uses the same cancellation token, it would have finished due a to a timeout (although it might actually be a race condition because the non-faulted delay length is the same as the timeout).
The key thing is that we probably want to differentiate between the safety-net delay task (which only exists to prevent the test from hanging indefinitely) and the timeout passed to the test task.


mysqldump pre-command doesnt work

Config
pre_commands=(
    "mysqldump mydbnme -u myusername -pmypassword | bzip2 -c > /var/www/somesite/db_$(date +%Y-%m-%d).sql.bz2"
)

# Commands that are executed after the backup is completed
post_commands=(
    "rm /var/www/somesite/db_$(date +%Y-%m-%d).sql.bz2"
)

When I run this commands directly in bash, it works fine.
The script is working also fine, it backups only the folder from config file, so the config file is readeble by the sript.
If I run the script with output it will show my mysqldump full command, but dont even wait for it, and no file is created.

Which OS do you use?

Ubuntu 14 LTS,
same on ubuntu 16 LTS

with "no file is created" I mean no mysqldump file is created. Just showing me dump command and dont wait for it.

If I hardcode my mysqldump command directly in the script and it works fine, waiting and dumpiung and only then makes tar.

If I hardcode my mysqldump command directly in the script

What command (exactly) did you run? Can you paste here?

I'll try to explain once more.
The target - dump database to sql.bz2 to website folder before packing website (to backup database as well), and remove that bz2 after packing is done (to avoid a milliard dumps).
Here is the command I need to run before packing a files
mysqldump mydbnme -u myusername -pmypassword | bzip2 -c > /var/www/somesite/db_$(date +%Y-%m-%d).sql.bz2
Where mydbnme myusername mypassword and somesite are real values (please believe me, just don't want to share production data of the customer)
If I run this command
mysqldump mydbnme -u myusername -pmypassword | bzip2 -c > /var/www/somesite/db_$(date +%Y-%m-%d).sql.bz2
at server bash, I get the db_2017-02-13.sql.bz2 file, which is dumped correctly, I can open it, etc...
When I write this
mysqldump mydbnme -u myusername -pmypassword | bzip2 -c > /var/www/somesite/db_$(date +%Y-%m-%d).sql.bz2
to your bash script directly at multibackup file (which is not correct way, I know) at line 108 for example, It will dump  me a sql.bz2 file as well. Which will be also correct dump etc...
But I assume it should be run via config updates.
Here is config update:
`pre_commands=(
"mysqldump mydbnme -u myusername -pmypassword | bzip2 -c > /var/www/somesite/db_$(date +%Y-%m-%d).sql.bz2"
)
Commands that are executed after the backup is completed
post_commands=(
"rm /var/www/somesite/db_$(date +%Y-%m-%d).sql.bz2"
)`
When I run bash multibackup with output, I will see that line
 info "Running \"${pre_command}\":"
will show me my command (which is directly the same, I type directly in the bash, or hardcode it into your script), BUT the next second it will show me success message, without any timeout (it usually takes about 45-50 sec with my database), and at that moment no sql bz file is found and, it starts packing a website folder....
So it seems that it only shows info messages what commands should be run, but don't run commands actually....
Makes sense ?

Okay, the reason I was asking for the complete command, was to rule out that you didn't miss any of the pipes, thus the script waiting for stdout/stdin.
Now, please try to use single quotes instead of double ones (make sure to expand any used variable, since variables won't translated within single quotes):
pre_commands=(
    'mysqldump mydbnme -u myusername -pmypassword | bzip2 -c > /var/www/somesite/db_$(date +%Y-%m-%d).sql.bz2'
)

If that still doesn't change anything, revert the quote changes and run the script like this for debug output:
DEBUG=true multibackup

Can you give me the full output?

DEBUG=true multibackup

CONFIG=/root/.multibackup.conf
++ tput setaf 1
color_red=''
++ tput setaf 3
color_yellow=''
++ tput setaf 2
color_green=''
++ tput sgr0
color_reset=''
[[ -f /root/.multibackup.conf ]]
. /root/.multibackup.conf
+++ date +%Y%m%d
++ timestamp=20170213
++ backup_destination=/var/www/BACKUPS
++ folders_to_backup=("/var/www/domaine.name")
++ tar_excludes=()
++ backup_retention=+11
++ pre_commands=('mysqldump salon_bd -u salon_bd -ppasswordvalue | bzip2 -c > /var/www/domaine.name/db.sql.bz')
++ post_commands=('rm /var/www/domaine.name/db.sql.bz2')
tar_exclude_parameters=()
[[ 0 -ne 0 ]]
current_action=pre-command
current_task=1
total_tasks=1
[[ 1 -ne 0 ]]
info 'Found pre commands...'
++ prefix
++ [[ -n pre-command ]]
++ [[ -n 1 ]]
++ [[ -n 1 ]]
++ echo '[pre-command] [1/1] '
echo '[pre-command] [1/1] [INFO] Found pre commands...'
[pre-command] [1/1] [INFO] Found pre commands...
for pre_command in '"${pre_commands[@]}"'
info 'Running "mysqldump salon_bd -u salon_bd -ppasswordvalue | bzip2 -c > /var/www/domaine.name/db.sql.bz":'
++ prefix
++ [[ -n pre-command ]]
++ [[ -n 1 ]]
++ [[ -n 1 ]]
++ echo '[pre-command] [1/1] '
echo '[pre-command] [1/1] [INFO] Running "mysqldump salon_bd -u salon_bd -ppasswordvalue | bzip2 -c > /var/www/domaine.name/db.sql.bz":'
[pre-command] [1/1] [INFO] Running "mysqldump salon_bd -u salon_bd -ppasswordvalue | bzip2 -c > /var/www/domaine.name/db.sql.bz":
[[ -n mysqldump salon_bd -u salon_bd -ppasswordvalue | bzip2 -c > /var/www/domaine.name/db.sql.bz ]]
success 'Pre command "mysqldump salon_bd -u salon_bd -ppasswordvalue | bzip2 -c > /var/www/domaine.name/db.sql.bz" successfully completed!'
++ prefix
++ [[ -n pre-command ]]
++ [[ -n 1 ]]
++ [[ -n 1 ]]
++ echo '[pre-command] [1/1] '
echo '[pre-command] [1/1] [SUCCESS] Pre command "mysqldump salon_bd -u salon_bd -ppasswordvalue | bzip2 -c > /var/www/domaine.name/db.sql.bz" successfully completed!'
[pre-command] [1/1] [SUCCESS] Pre command "mysqldump salon_bd -u salon_bd -ppasswordvalue | bzip2 -c > /var/www/domaine.name/db.sql.bz" successfully completed!
bzip2 -c
mysqldump salon_bd -u salon_bd -ppasswordvalue
++ date +%Y-%m-%d
current_action=backup
current_task=1
total_tasks=1
for folder_to_backup in '"${folders_to_backup[@]}"'
debug 'Check if source folder "/var/www/domaine.name" exists...'
++ prefix
++ [[ -n backup ]]
++ [[ -n 1 ]]
++ [[ -n 1 ]]
++ echo '[backup] [1/1] '
echo '[backup] [1/1] [DEBUG] Check if source folder "/var/www/domaine.name" exists... '
[backup] [1/1] [DEBUG] Check if source folder "/var/www/domaine.name" exists...
[[ -d /var/www/domaine.name ]]
info 'Source folder "/var/www/domaine.name" exists!'
++ prefix
++ [[ -n backup ]]
++ [[ -n 1 ]]
++ [[ -n 1 ]]
++ echo '[backup] [1/1] '
echo '[backup] [1/1] [INFO] Source folder "/var/www/domaine.name" exists!'
[backup] [1/1] [INFO] Source folder "/var/www/domaine.name" exists!
++ replace_slash_with_dash /var/www/domaine.name
++ input=-var-www-domaine.name
++ input=var-www-domaine.name
++ output=var-www-domaine.name
++ echo var-www-domaine.name
backup_basename=var-www-domaine.name
++ strip_duplicate_slashes_in_path /var/www/BACKUPS/var-www-domaine.name
+++ shopt -p
++ shoptBackup='shopt -u autocd
shopt -u cdable_vars
shopt -u cdspell
shopt -u checkhash
shopt -u checkjobs
shopt -u checkwinsize
shopt -s cmdhist
shopt -u compat31
shopt -u compat32
shopt -u compat40
shopt -u compat41
shopt -u compat42
shopt -s complete_fullquote
shopt -u direxpand
shopt -u dirspell
shopt -u dotglob
shopt -u execfail
shopt -u expand_aliases
shopt -u extdebug
shopt -u extglob
shopt -s extquote
shopt -u failglob
shopt -s force_fignore
shopt -u globstar
shopt -u globasciiranges
shopt -u gnu_errfmt
shopt -u histappend
shopt -u histreedit
shopt -u histverify
shopt -s hostcomplete
shopt -u huponexit
shopt -s interactive_comments
shopt -u lastpipe
shopt -u lithist
shopt -u login_shell
shopt -u mailwarn
shopt -u no_empty_cmd_completion
shopt -u nocaseglob
shopt -u nocasematch
shopt -u nullglob
shopt -s progcomp
shopt -s promptvars
shopt -u restricted_shell
shopt -u shift_verbose
shopt -s sourcepath
shopt -u xpg_echo'
++ shopt -s extglob
++ echo /var/www/BACKUPS/var-www-domaine.name
++ eval ''
absolute_backup_destination=/var/www/BACKUPS/var-www-domaine.name
[[ ! -d /var/www/BACKUPS/var-www-domaine.name ]]
[[ -f /var/www/BACKUPS/var-www-domaine.name/20170213.tar.gz ]]
info 'Starting backup "/var/www/BACKUPS/var-www-domain.name/20170213.tar.gz"'
++ prefix
++ [[ -n backup ]]
++ [[ -n 1 ]]
++ [[ -n 1 ]]
++ echo '[backup] [1/1] '
echo '[backup] [1/1] [INFO] Starting backup "/var/www/BACKUPS/var-www-domaine.name/20170213.tar.gz"'
[backup] [1/1] [INFO] Starting backup "/var/www/BACKUPS/var-www-domaine.name/20170213.tar.gz"
tar czf /var/www/BACKUPS/var-www-domaine.name/20170213.tar.gz -P /var/www/domaine.name

It still echoes command without executing.
Could you please show me part of the code at your script which will execute pre-command, not show it?

Due to this
http://stackoverflow.com/questions/2005192/how-to-execute-a-bash-command-stored-as-a-string-with-quotes-and-asterisk
it should be some eval ?

Yup, sounds exactly like the problem you describe, try this instead please:
# Iterate through post_commnads
if [[ "${#post_commands[@]}" -ne 0 ]]; then
  info "Found post commands..."
  # Run each post command
  for post_command in "${post_commands[@]}"; do
    info "Running \"${post_command}\":"
    eval ${post_command}
    # Check if post command ran successfully
    if [[ $? -eq 0 ]]; then
      success "Post command \"${post_command}\" successfully completed!"
    else
      error "Post command \"${post_command}\" failed..."
    fi
  done
fi

@frdmn your suggested change solves a problem I was having with Percona hot backup before so an update would be appreciated. This now works for me:
xtrabackup --backup --target-dir=/host/backups/mysql

Thank you mr. @frdmn, much obliged ☺

@bravo-kernel Very welcome :)


Blueprint not found

Hi,
Thanks for blaze, it looks very promising. On importing blaze, however, I had an exception because Blueprint was not found. The reason is this (in server.py):
try:
    import flask
    from flask import Blueprint, Flask, request
except ImportError:
    pass

Which should really raise an error if Blueprint is needed...

I see you already fixed it in master... sorry.


chore: remove second "vault" from yearn opportunities - WEB-932

Description
Please describe your changes
Notice
Before submitting a pull request, please make sure you have answered the following:

[x] Have you followed the guidelines in our Contributing guide?
[x] Have you checked to ensure there aren't other open Pull Requests for the same update/change?

Pull Request Type

[ ] :bug: Bug fix (Non-breaking Change: Fixes an issue)
[x] :hammer_and_wrench: Chore (Non-breaking Change: Doc updates, pkg upgrades, typos, etc..)
[ ] :nail_care: New Feature (Breaking/Non-breaking Change)

Issue (if applicable)
If applicable, please link to the github issue and put closes #932 in your comment to auto-close the issue that your PR fixes.
Testing
Please outline all testing steps

Pull branch locally and run yarn to install new deps
etc...

Screenshots (if applicable)

fixes https://github.com/shapeshift/web/issues/932


[AutoPR web/resource-manager] Revert "[Do Not Merge] Add API for adding external storage account configurations to a web app"

Created to sync https://github.com/Azure/azure-rest-api-specs/pull/3458

Closing PRs that are older than 1 month.


Remove sosa-mongo, run-parallel dependencies

I wasn't a huge fan of the "magic"/abstraction of the sosa wrapper and after going over the source code, it didn't really do anything except add a couple different layers between the code and the database. It also made it significantly harder to modernize database calls with newer mongo paradigms (read: Promises and async/await). Mostly just need to ad _id properties to objects we're saving to the database (because sosa just copies the id property to _id, that's what I did to maintain parity with existing stuff).
The backfill command gets unwound a little, dropping the parallel call in favor of Promise handling and un-nesting functions so we're not re-defining them every loop (read: memory and callstack savings).
I also just noticed that RSI was loading a huge math library to do a really complicated decimal rounding call. Using a native rounding function shaved 15% off of a simulation time.

Once again, killing whitespace differences with ?w=1 on the diff view makes it much more digestible. /shrug