image capture with !look(x,y,z)

There is a way to take simple screenshots: https://github.com/PrismarineJS/mineflayer/blob/master/examples/screenshot-with-node-canvas-webgl/screenshot.js
They will be deeply flawed, but better than nothing. thought must go into the command itself, I like !look(x, y, z) to look at a specific block, as opposed to roll,pitch,yaw
Also adding text info about the screenshot would be good, like raycast the type of block in the middle of its view, get coords and type, and describe that with the image. some sort of x,y,z coords and info to help ground the image in the gameworld

Maybe some sort of info about biomes/structures in the direction of the image?
I think the biggest problem is that it needs to accomplish 2 very difficult tasks.

Identify points of interest in the image (Hopefully advanced models will be capable of this)
Figure out where these are in the game world/how to get there (I'm not sure how to solve this one)

// src/agent/library/skills.js
import { createCanvas, loadImage } from 'canvas';
import fs from 'fs';
import path from 'path';

async function captureView(bot, x, y, z, description = '') {
    /**
     * Capture a screenshot and generate metadata about the view
     * @param {Bot} bot - The Minecraft bot
     * @param {number} x - X coordinate to look at
     * @param {number} y - Y coordinate to look at
     * @param {number} z - Z coordinate to look at
     * @param {string} description - Optional description
     * @returns {Object} Capture metadata and image path
     */

    // Look at the specified coordinates
    const targetPos = new Vec3(x, y, z);
    await bot.lookAt(targetPos);

    // Capture screenshot
    const screenshot = await bot.screenshot();

    // Generate unique filename
    const timestamp = Date.now();
    const filename = `screenshot_${timestamp}.png`;
    const filepath = path.join('captures', filename);

    // Ensure captures directory exists
    if (!fs.existsSync('captures')) {
        fs.mkdirSync('captures');
    }

    // Save screenshot
    fs.writeFileSync(filepath, screenshot);

    // Gather contextual information
    const centerBlock = bot.blockAt(targetPos);
    const raycastResult = bot.raycast(64);

    // Gather environmental context
    const metadata = {
        coordinates: {
            x, y, z,
            lookingAt: targetPos.toArray(),
            playerPos: bot.entity.position.toArray()
        },
        block: {
            name: centerBlock ? centerBlock.name : 'unknown',
            type: centerBlock ? centerBlock.type : null
        },
        raycast: raycastResult ? {
            block: raycastResult.block.name,
            distance: raycastResult.distance
        } : null,
        environment: {
            biome: world.getBiomeName(bot),
            time: bot.time.timeOfDay,
            weather: bot.rainState > 0 ? 'Rainy' : 'Clear'
        },
        nearby: {
            blocks: world.getNearbyBlockTypes(bot, 16),
            entities: world.getNearbyEntityTypes(bot)
        }
    };

    return {
        imagePath: filepath,
        metadata: metadata,
        description: description || generateDescription(metadata)
    };
}

function generateDescription(metadata) {
    const { coordinates, block, environment, nearby } = metadata;

    return `Captured view at (${coordinates.x}, ${coordinates.y}, ${coordinates.z})
    - Biome: ${environment.biome}
    - Central Block: ${block.name}
    - Time of Day: ${getTimeDescription(environment.time)}
    - Weather: ${environment.weather}
    - Nearby Blocks: ${nearby.blocks.slice(0, 5).join(', ')}
    - Nearby Entities: ${nearby.entities.slice(0, 5).join(', ')}`;
}

function getTimeDescription(timeOfDay) {
    if (timeOfDay < 6000) return 'Morning';
    if (timeOfDay < 12000) return 'Afternoon';
    if (timeOfDay < 18000) return 'Evening';
    return 'Night';
}

// src/agent/commands/actions.js
export const actionList = [
    {
        name: "!look",
        description: "Capture a screenshot of a specific location",
        args: ["x", "y", "z"],
        perform: async function(agent, x, y, z) {
            try {
                const capture = await skills.captureView(
                    agent.bot,
                    Number(x),
                    Number(y),
                    Number(z)
                );

                // Optional: Send to vision model for analysis
                const visionAnalysis = await analyzeImage(capture.imagePath);

                return {
                    text: capture.description,
                    image: capture.imagePath,
                    analysis: visionAnalysis
                };
            } catch (error) {
                return `Failed to capture view: ${error.message}`;
            }
        }
    }
];

// Optional advanced image analysis
async function analyzeImage(imagePath) {
    // Use vision-capable LLM to analyze image
    // This could identify points of interest, describe scene, etc.
    const visionModel = agent.getVisionModel(); // Hypothetical method
    return await visionModel.analyze(imagePath);
}

// src/agent/library/vision.js
class ImageAnalyzer {
    constructor(bot) {
        this.bot = bot;
    }

    async identifyPointsOfInterest(imagePath, metadata) {
        const interestPoints = [];

        // Structural Detection
        const structures = this.detectStructures(metadata);
        interestPoints.push(...structures);

        // Rare Block Detection
        const rareBlocks = this.detectRareBlocks(metadata);
        interestPoints.push(...rareBlocks);

        // Potential Resource Locations
        const resources = this.detectResourceLocations(metadata);
        interestPoints.push(...resources);

        return {
            points: interestPoints,
            navigablePoints: this.filterNavigablePoints(interestPoints)
        };
    }

    detectStructures(metadata) {
        const structureKeywords = [
            'village', 'temple', 'dungeon', 'stronghold',
            'shipwreck', 'monument', 'fortress'
        ];

        return structureKeywords.filter(structure =>
            metadata.description.toLowerCase().includes(structure)
        ).map(structure => ({
            type: structure,
            confidence: 0.7,
            navigationHint: `Search for ${structure} in ${metadata.environment.biome}`
        }));
    }

    detectRareBlocks(metadata) {
        const rareBlocks = [
            'diamond_ore', 'emerald_ore', 'ancient_debris',
            'gold_ore', 'redstone_ore'
        ];

        return rareBlocks.filter(block =>
            metadata.nearby.blocks.includes(block)
        ).map(block => ({
            type: block,
            confidence: 0.9,
            navigationHint: `Potential valuable resource area`
        }));
    }

    detectResourceLocations(metadata) {
        const resourceIndicators = [
            { type: 'water', keywords: ['river', 'ocean', 'lake'] },
            { type: 'cave', keywords: ['stone', 'cave', 'underground'] },
            { type: 'forest', keywords: ['trees', 'wood', 'forest'] }
        ];

        return resourceIndicators
            .filter(indicator =>
                indicator.keywords.some(keyword =>
                    metadata.description.toLowerCase().includes(keyword)
                )
            )
            .map(indicator => ({
                type: indicator.type,
                confidence: 0.6,
                navigationHint: `Explore ${indicator.type} terrain`
            }));
    }

    filterNavigablePoints(points) {
        // Filter points that are potentially reachable
        return points.filter(point =>
            point.confidence > 0.5 && point.navigationHint
        );
    }
}

// settings.js
export default {
    vision: {
        captureDirectory: './captures',
        maxCaptureAge: 24 * 60 * 60 * 1000, // 24 hours
        analysisCacheExpiry: 7 * 24 * 60 * 60 * 1000 // 1 week
    }
}

@DerJanniku
mabe you could submit a PR

@Ninot1Quyi
sure

i submit the PR

yeah dont post all the code here

I have this working and would like to take over this issue please.


[QUESTION] Swapping Security For Local/Prod

Our local docker environment has a Kafka service that we want to keep with minimal security settings, ex: PLAINTEXT, no SASL.
On production, we use the proper security mechanisms, SASL-SCRAM + SASL User/Pass.  Ideally we would use environment variables + config files to set this up.
Something like:
$producer = Kafka::publishOn(config('kafka')['topic.name'], config('kafka')['kafka.server']['metadata.broker.list'])
                ->withConfigOptions([
                    'metadata.broker.list' => config('kafka')['kafka.server']['metadata.broker.list'],
                    'security.protocol' => config('kafka')['kafka.server']['security.protocol'],
                    'sasl.mechanism' => config('kafka')['kafka.server']['sasl.mechanism'],
                    'sasl.username' => config('kafka')['kafka.server']['sasl.username'],
                    'sasl.password' => config('kafka')['kafka.server']['sasl.password'],
                    'partitioner' => config('kafka')['kafka.server']['partitioner'],
                ]);

Then we just make sure to set the SASL_MECHANISM / SASL_USERNAME / SASL_PASSWORD to null via config/env.
However it seems like Kafka does not like this, and if it sees the sasl.mechanism key in its config object, it will error and complain about an invalid value (this happens for null, false, empty string ,etc).
  Invalid value for configuration property "sasl.mechanisms": (null)

  at vendor/mateusjunges/laravel-kafka/src/Producers/Producer.php:39
     35▕     {
     36▕         $conf = new Conf();
     37▕
     38▕         foreach ($options as $key => $value) {
  ➜  39▕             $conf->set($key, $value);
     40▕         }
     41▕
     42▕         foreach ($this->config->getConfigCallbacks() as $method => $callback) {
     43▕             $conf->{$method}($callback);

  Tests:  4 failed

Unless I am missing something, it seems like the only solution currently seems to be to do a manual environment check and only include those keys on production.
Either that, or we can modify the withConfigOptions to filter out the null values. I am happy to make a PR to add this code, but I wanted to run this by everyone here first.
Did I miss something obvious? How are you guys handling similar use cases?
Thanks

Hey @nickpoulos I just added the laravel Conditionable trait to the ProducerBuilder and ConsumerBuilder in the v2.x branch, so you can do something like this:
$producer = Kafka::publishOn(config('kafka')['topic.name'], config('kafka')['kafka.server']['metadata.broker.list'])
    ->when(config('app.environment') === 'production'), function (ConsumerBuilder $builder) {
        $builder->withConfigOptions([
            'metadata.broker.list' => config('kafka')['kafka.server']['metadata.broker.list'],
            'security.protocol' => config('kafka')['kafka.server']['security.protocol'],
            'sasl.mechanism' => config('kafka')['kafka.server']['sasl.mechanism'],
            'sasl.username' => config('kafka')['kafka.server']['sasl.username'],
            'sasl.password' => config('kafka')['kafka.server']['sasl.password'],
            'partitioner' => config('kafka')['kafka.server']['partitioner'],
        ]);
    });

Would this solve your issue?


[Removal]:

Hotspot Name
Hot Gunmetal Kookaburra
Hotspot b58 Address
112Am4MvKMa2cGfxwXUivMahQKWKeaJzwPANem6vL2o4TuTtpSdq
Discord Handle
CSA-Mahone
Hotspot Manufacturer
Bobcat 300
Removal Reason
No rule broken-no reason for deny list!!
Modifications
No
Extra forwarders
No
Extra antennas
No
Additional Information
Send the one who put my hoyspot on denylist to my properties to check the antenna towers, if he cannot find any rule broken I will put him(stick his ass in)  in one's  antenna's place , in top of the tower  at 55 feet to stay there and reflect.

We have taken into account this removal request in the next iteration of the denylist. It may take some time before it's processed. This is an automated comment due to the volume of addition and removal requests. A future tool is in the works to provide more insight into the analysis approach made by the Helium team and community members that maintain this list.


uv add does not validate dependency range when source is present

e.g. the following fails
❯ uv add 'httpx>9999'
warning: `uv add` is experimental and may change without warning
warning: No `requires-python` field found in the workspace. Defaulting to `>=3.12`.
error: Because only httpx<=9999 is available and example==0.1.0 depends on httpx>9999, we can conclude that example==0.1.0 cannot be used.
And because only example==0.1.0 is available and you require example, we can conclude that the requirements are unsatisfiable.

but this does not
❯ uv add git+https://github.com/encode/httpx
warning: `uv add` is experimental and may change without warning
 Updated https://github.com/encode/httpx (beb501f)
warning: No `requires-python` field found in the workspace. Defaulting to `>=3.12`.
⠙ Resolving dependencies...                                                                                warning: `uv.sources` is experimental and may change without warning
 Updated https://github.com/encode/httpx (beb501f)
Resolved 8 packages in 373ms
   Built example @ file:///Users/zb/workspace/example
Prepared 1 package in 390ms
Uninstalled 1 package in 0.44ms
Installed 1 package in 0.92ms
 - example==0.1.0 (from file:///Users/zb/workspace/example)
 + example==0.1.0 (from file:///Users/zb/workspace/example)

❯ uv add 'httpx>9999'
warning: `uv add` is experimental and may change without warning
warning: No `requires-python` field found in the workspace. Defaulting to `>=3.12`.
⠙ Resolving dependencies...                                                                                warning: `uv.sources` is experimental and may change without warning
Resolved 8 packages in 29ms
   Built example @ file:///Users/zb/workspace/example
Prepared 1 package in 429ms
Uninstalled 1 package in 0.34ms
Installed 1 package in 0.89ms
 - example==0.1.0 (from file:///Users/zb/workspace/example)
 + example==0.1.0 (from file:///Users/zb/workspace/example)

I'm guessing this is somewhat intentional, but seems like a footgun?

I think this is just https://github.com/astral-sh/uv/issues/4604.

We should probably (1) preserve the specifier, and (2) error if the specifier is a URL and sources is set. Can you merge with #4604 and #4603 if correct?

Thanks for the refs!
I think it's a little different than #4604, though the fix for #4604 may resolve this. #4604 / #4603 are checking for coherence between the resolved source and the PEP 508 dependency. Here, I'm complaining that the PEP 508 dependency is not validated independently of the source. The resolution without sources needs to be valid to publish the package.
Do you think we should close in favor of those still?

I think https://github.com/astral-sh/uv/issues/4604 is the same, right? It's saying that we should validate that the source matches the PEP 508 dependency.

#4604 says "resolve the source, get its version, check if it is contained in the PEP 508 dependency"
Here, I say: "can we resolve the PEP 508 dependency without the source"

This seems like it would be a warning on add whereas #4604 would be an error?

Ok, we can just leave them both.


Confusing description for chef-automate backup restore

Describe the bug
When looking at the chef-automate backup restore help description for --yes it says "Skip bootstrapping the machine with Habitat". While it is actually used for skipping confirmation before performing a restore.
To Reproduce
Steps to reproduce the behavior:

Run chef-automate backup restore --help

Expected behavior
I Expected that the text of the flag would say something about it being used to skip confirmation before performing a restore.
Versions (please complete the following information):

OS: any
Browser N/A
Automate Build Number: CLI tool for 1.8.96 and others

Additional context
The issue is in:
chef-automate_backup_restore.yaml
Line 33

Thanks for the report!  This is definitely a bug, the confusing help message is here: https://github.com/chef/automate/blob/master/components/automate-cli/cmd/chef-automate/backup.go#L93


Update MD file on new branch 2017-11-14_08-26-48

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

split/content1.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Fixes the missing array for the header actions

Latest improvements:
MSFT employees can try out our new experience at OpenAPI Hub  - one location for using our validation tools and finding your workflow.

Contribution checklist:

[ ] I have reviewed the documentation for the workflow.
[ ] Validation tools were run on swagger spec(s) and have all been fixed in this PR.
[ ] The OpenAPI Hub was used for checking validation status and next steps.

Can one of the admins verify this patch?

Automation for azure-sdk-for-js

Automation for azure-sdk-for-ruby

Will merge on CIs passing

@sai-manoj-kumar could you provide a bit of context here

This is a fix for the bug which was introduced as part of this PR. The bug is that the missed items { } notation. This is added as part of the network-november-release branch.

Automation for azure-sdk-for-java

Automation for azure-sdk-for-go

Automation for azure-sdk-for-node


Convert VPill and VItemGroup stories to mdx

Fixes
Related to #584 by @dhruvkb
Description
This PR updates stories of VPill and VItemGroup to use the composition API (MDX). Here is the screenshot of the converted VPill and VItemGroup to MDX in the storybook:

Testing Instructions
Run the Storybook from this PR to see that VPill and VItemGroup are working correctly in the storybook.
Checklist

[x] My pull request has a descriptive title (not a vague title like
Update index.md).
[x] My pull request targets the default branch of the repository (main) or
a parent feature branch.
[x] My commit messages follow best practices.
[x] My code follows the established code style of the repository.
[ ] I added or updated tests for the changes I made (if applicable).
[x] I added or updated documentation (if applicable).
[x] I tried running the project locally and verified that there are no visible
errors.

Developer Certificate of Origin

Developer Certificate of Origin
Developer Certificate of Origin
Version 1.1

Copyright (C) 2004, 2006 The Linux Foundation and its contributors.
1 Letterman Drive
Suite D4700
San Francisco, CA, 94129

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

Developer's Certificate of Origin 1.1

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

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

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

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

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

Thanks, I have changed the inline suggestions.


Door lock node is missing a whole bunch of values (functions)

Hello,
I have purchased the Z-wave dongle SLUSB7000A from Silicon Labs for my HA host, and I have successfully installed the DADT310 Z-wave module on my Samsung door lock SHP-DP710, including provisioning.
Here's the manufacturer's instruction for reference:
[CEF17849] SHP-DP710 Manual.pdf

The node is being detected properly, and the events show different values as I lock/unlock or enter the password, but I'm only getting battery level and ping responses from the door lock.

The above photo is how it should look (The only guy that was able to get the door lock paired successfully is MIA).
What should I do exactly?

Excluding the node and adding it again resolved the issue.

Usually a re-interview does the trick too

This happens after every zwave J'supdate every now and then. Is there a way to fix the root issue? What probably happens

cc @AlCalzone ?

Had to remove the node entirely. Healing got stuck and re interviews just made the lock avail5but everything else unknown. Adding the nose from scratch (yet again after an update) and it works fine.... For now

Sounds to me like the cache files are getting corrupted during the update. As to why I have no clue. Seems to be limited to a handful of users, so probably a Docker-specific configuration issue?

Running hassio with hassOS, default js-ui installation, nothing alternate about the configuration. It is strange

re interviews just made the lock avail5but everything else unknown.

Did you try checking the checkbox "reset security classes" for the re-interview?

I did not, I will try it next .1 update lol
On Mon, Jul 10, 2023, 3:38 AM AlCalzone @.***> wrote:

re interviews just made the lock avail5but everything else unknown.
Did you try checking the checkbox "reset security classes" for the
re-interview?
—
Reply to this email directly, view it on GitHub
https://github.com/zwave-js/zwave-js-ui/issues/3142#issuecomment-1628504013,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAZ44W2GILW2QNOC64ROAR3XPO5PDANCNFSM6AAAAAAZGVUEAA
.
You are receiving this because you commented.Message ID:
@.***>


[Feature]: add Pre-vote capability to CubeFS Raft

Is your feature request related to a problem? Please describe.
Currently, CubeFS's Raft implementation does not have the ability to perform leader pre-elections. This may result in scenarios where some nodes constantly increase their current Term value in order to trigger leader elections during network isolation. After the network is restored, an unnecessary leader election process may be triggered.
Describe the solution you'd like
Adding a pre-candidate role and a pre-election process can help address the issue of unnecessary leader elections triggered by constantly increasing the current Term value during network isolation. In this proposed solution, a node must first become a pre-candidate and successfully complete the pre-election process before increasing its current Term value and triggering a leader election process.
During the pre-election process, a pre-candidate sends RequestVoteRPCs to all other nodes in the cluster. If the pre-candidate receives votes from a majority of the nodes, it becomes a candidate and begins a regular leader election process to become the new leader.
Describe alternatives you've considered
Additional context
By adding a pre-candidate role and pre-election process, CubeFS's Raft implementation can avoid unnecessary leader elections and improve the efficiency and reliability of the system.

thumbs up


korean text broken at Developer file preview file

Microsoft PowerToys version
0.57.2
Running as admin

[ ] Yes

Area(s) with issue?
Developer file preview
Steps to reproduce

✔ Expected Behavior
korean text broken at Developer file preview file
❌ Actual Behavior
File encoding utf-8 support
Other Software
No response

@bokjjang Could you please zip the file that's causing this and send it in a GitHub comment?
cc @Aaron-Junker

/needinfo


Make Base.show more compact

On main:
julia> rd = RefElemData(Wedge(), 1)
RefElemData for a degree 1 Polynomial{StartUpDG.DefaultPolynomialType}() approximation on Wedge{NTuple{5, UnitRange{Int64}}}((1:4, 5:8, 9:12, 13:15, 16:18)) element.

This PR:
julia> rd = RefElemData(Wedge(), 1)
RefElemData for a degree 1 Polynomial approximation on a Wedge element.

@Davknapp FYI I removed using LinearAlgebra from src/RefElemData_TensorProductWedge.jl since this loads everything exported by the package. I added UniformScaling to using LinearAlgebra: ..., UniformScaling, .... in StartUpDG.jl instead.


Unit tests

This is a preliminary, before we start working further on our feature/unit-tests branch.
We need to activate GitHub service hook for Travis(a distributed continuous integration service for the open source community), so we could start having a real-time report from our unit testing, everytime someone commit a new code.
That will create an awareness, to every contributor(s), who make any change, to not generate  anymore in the future, and ensure any further commit(s) not breaking the entire app/system.

I'm not experienced with unit testing and therefore I don't know what this does, but currently this can't be merged anyway:

This pull request cannot be automatically merged.

It looks like @philsturgeon messing around with phpunit.xml in his last merge on unit-tests branch. I fix this pull to follow the last HEAD, it should looks ok now @narfbg, yes? I am also add @tiyowan pull, in this pull.
This pull basically adding travis configuration, so that we could start fix part that skipped, or fails, in recent test-suite. Also start adding new test case into it. All with distributed continuous integration service (but you, or other repo collab need to activate Travis hook), so that every contributor could see the status of this branch. It supposed to run a build process like this every time someone commit a new code, automatically.

Yeah - patch conflicts are resolved now. But I'll leave the rest to Phil ... can't mess with stuff that I don't understand. :)

Yeah I moved things around a little bit as I was working on getting basic tests running myself.
I've used travis before but hadn't noticed you could have the phpunit.xml out of the root, maybe it should be moved back into the tests/ folder?

Agree, it should really be in tests/. I don't think it'll break @toopay's work with adding support for Travis which I think is a really good idea.

Nope just change the Travis script line to point at the new location.
--
Phil Sturgeon
Sent with Sparrow (http://www.sparrowmailapp.com/?sig)
On Friday, 9 March 2012 at 13:25, Hamza Bhatti wrote:

Agree, it should really be in tests/. I don't think it'll break @toopay's work with adding support for Travis which I think is a really good idea.

Reply to this email directly or view it on GitHub:
https://github.com/EllisLab/CodeIgniter/pull/1055#issuecomment-4416216

@philsturgeon Ok, I've updated the pull request that fixes issue #920. For a cleaner history, you could pull that in, and then this one to add support for Travis. I'll leave it up to @toopay to move phpunit.xml back into tests/.
@toopay Please update your fork to pull in my changes if they go in. Thanks.

@tiyowan look at the diff, i am already included your changes within this pull.
@philsturgeon phpunit.xml can be anywhere, this not related with travis at all. There are --configuration option available at runtime, to pinpoint the phpunit.xml. But i think it more appropriate to have those configuration, within test directories, like this one for example. So that, we could have several setting, for different environment (like, what php version we need to run, or other variable).

@toopay Thank you. Let's get this in then.
@philsturgeon Anything holding this up?

@philsturgeon Just remembering, you would also need to activate travis hook. Then people like @tiyowan and other who interested to improve the unit-test, could start working and take advantage from travis.

Yup I need to talk to someone with admin rights on this account before i can do that.
--
Phil Sturgeon
Sent with Sparrow (http://www.sparrowmailapp.com/?sig)
On Friday, 9 March 2012 at 17:41, Taufan Aditya wrote:

@philsturgeon Just remembering, you would also need to activate travis hook. Then people like @tiyowan and other who interested to improve the unit-test, could start working and take advantage from travis.

Reply to this email directly or view it on GitHub:
https://github.com/EllisLab/CodeIgniter/pull/1055#issuecomment-4420926

Ok. Great.

@philsturgeon I agree with @toopay. Having travis will be really helpful. Thank you both.

Ok, the Travis service is set up - kind of awkward for organizations, I had to sign in with my own user to get a key.  Tested and it appears to have interacted, though I have not used Travis yet, so I'm not familiar with it for continuous integration.  Let me know if any changes need to or can be made to make this more useful for you.

@derekjones Thank you, but you set it up for the master branch (http://travis-ci.org/#!/EllisLab/CodeIgniter/builds/831759). Our unit tests are a long, long way from getting into master yet. Since we're following the git-flow model, I think you need to hook up the feature/unit-tests branch into Travis. That way, whenever @philsturgeon merges in changes from develop into feature/unit-tests, Travis will test the latest build of develop.

The test connection used the master, I think; I set it up for the develop branch, but I'll change it to the unit-tests feature branch.

Actually, GitHub pushes everything to Travis; the .yml file will need to be modified to blacklist/whitelist branches.
http://about.travis-ci.org/docs/user/build-configuration/

Ah all right. Also, need to be aware of this (quoting from above link):
"Please note that currently (for historical reasons), .travis.yml needs to be present on all active branches of your project."

@derekjones Thanks for coming up.
travis.yml did not need to present in all branch, since the test folder only exists in unit-tests branch. This configuration in one branch will not affect the build of another, separate branch. The build process will triggered, if only someone commit a new code into unit-test branch. So i guess the current set up was ok.

@tiyowan dont bother with build in other branch. You could start fixing test that were fails, or skipped, just now. The only thing you should aware right now, is just the build status of unit-test branch


Bump versions

PR builder started
Link: https://github.com/wso2/product-is/actions/runs/6872524173

PR builder completed
Link: https://github.com/wso2/product-is/actions/runs/6872524173
Status: success


Modernise IsStartNode()

Replaces obsolete ExtSegmentManager.IsStartNode() with NetSegment extensions - either IsStartnode() (always returns a bool) or IsStartNode() (may return null if node not attached to segment) as applicable.
Additionally, updates a few encountered for loops like for (int i = 0; i < 8; ++i) to more descriptive for (int segmentIndex = 0; segmentIndex < Constants.MAX_SEGMENTS_OF_NODE; ++segmentIndex).
Small number of other minor tweaks - eg. to replace some other obsolete stuff in proximity/relation to the main task.
Probably has a lot of overlap with stalled PR #1272.

This is kind of like the canceled #1272 (because it got too big). I have some regular expression over there if you want to do the same to other extension methods.

we also have IsstartNode() that does returns a simple bool.

we also have IsstartNode() that does returns a simple bool.

I assume you mean IsStartnode() (lowercase n) ? I'm already using that one where simple bool is required (it's slightly faster as it only does one comparison).
I couldn't find any IsstartNode() method with the lowercase s.

bump :)


Extension host terminated unexpectedly.

Issue Type: Bug
Extension host terminated unexpectedly. When I run jupyter notebook code both on  local  and remote server, this bug happened many times irregularly.
Extension version: 2020.7.96456
VS Code version: Code 1.47.3 (91899dcef7b8110878ea59626991a18c8a6a1b3e, 2020-07-23T13:12:49.994Z)
OS version: Windows_NT x64 10.0.18363

System Info

Item
Value

CPUs
Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz (16 x 3600)

GPU Status
2d_canvas: enabledflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmultiple_raster_threads: enabled_onoop_rasterization: disabled_offprotected_video_decode: unavailable_offrasterization: enabledskia_renderer: disabled_off_okvideo_decode: enabledviz_display_compositor: enabled_onviz_hit_test_surface_layer: disabled_off_okwebgl: enabledwebgl2: enabled

Load (avg)
undefined

Memory (System)
31.93GB (18.68GB free)

Process Argv

Screen Reader
no

VM
0%

Please toggle developer tools (Help menu) then copy/paste the Console output into this issue. Otherwise, we can't tell what might be happening.

I have the same issue. VS code 1.47.3, extension version v2020.7.96456 on Win 10. I've disabled all extension but Python and this is what I get in the console
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.desktop.main.js:4281 Extension 'ms-dotnettools.csharp cannot use PROPOSED API (must started out of dev or enabled via --enable-proposed-api)
updateEnableProposedApi @ /C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.desktop.main.js:4281
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.desktop.main.js:4275 Extension host terminated unexpectedly. Code:<PHONE_NUMBER>  Signal:  null
_onExtensionHostCrashed @ /C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.desktop.main.js:4275
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2947 Extension host terminated unexpectedly.
onDidChangeNotification @ /C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2947
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.desktop.main.js:4616 Extension Host
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.desktop.main.js:4616 AssignProcessToJobObject: (87) The parameter is incorrect.

just to add that I don't use Jupyter notebook at all, for me it just happens when opening a python file within VS code.

Thanks for your help! Here is the console output:
TMScopeRegistry.ts:45 Overwriting grammar scope name to file mapping for scope source.yaml.
Old grammar file: file:///c%3A/Users/NKD-INTEL-003/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/extensions/yaml/syntaxes/yaml.tmLanguage.json.
New grammar file: file:///c%3A/Users/NKD-INTEL-003/.vscode/extensions/redhat.vscode-yaml-0.9.1/syntaxes/yaml.tmLanguage.json
register @ TMScopeRegistry.ts:45
2console.ts:137 [Extension Host] (node:6920) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
t.log @ console.ts:137
console.ts:137 [Extension Host] Starting WebSocket: RAW/api/kernels/79068221-1e28-43b1-8b77-b42abe715707
console.ts:137 [Extension Host] Kernel: connected (79068221-1e28-43b1-8b77-b42abe715707)
console.ts:137 [Extension Host] Kernel: starting (79068221-1e28-43b1-8b77-b42abe715707)
console.ts:137 [Extension Host] Starting WebSocket: RAW/api/kernels/5a4e016e-baf5-4c74-a833-adcfde3d11c4
console.ts:137 [Extension Host] Kernel: connected (5a4e016e-baf5-4c74-a833-adcfde3d11c4)
webviewElement.ts:160 [Embedded Page] Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/Microsoft/monaco-editor#faq
webviewElement.ts:160 [Embedded Page] Failed to construct 'Worker': Script at 'vscode-webview-resource://f5d0dd30-7566-4626-957b-6b11dbf58992/file///e%3A/Documents/CODE/editor.worker.js' cannot be accessed from origin 'vscode-webview://f5d0dd30-7566-4626-957b-6b11dbf58992'.
webviewElement.ts:160 [Embedded Page] Starting WebSocket: BOGUS_PVSC/api/kernels/79068221-1e28-43b1-8b77-b42abe715707
webviewElement.ts:160 [Embedded Page] Kernel: connected (79068221-1e28-43b1-8b77-b42abe715707)
webviewElement.ts:160 [Embedded Page] Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/Microsoft/monaco-editor#faq
webviewElement.ts:160 [Embedded Page] Failed to construct 'Worker': Script at 'vscode-webview-resource://4d457cd1-2574-4d9d-b476-34f89d4fd1a9/file///e%3A/Documents/CODE/NCPGWDL/code/editor.worker.js' cannot be accessed from origin 'vscode-webview://4d457cd1-2574-4d9d-b476-34f89d4fd1a9'.
console.ts:137 [Extension Host] Starting WebSocket: RAW/api/kernels/d0313fc9-5353-4143-ba65-405ea6053957
console.ts:137 [Extension Host] Kernel: connected (d0313fc9-5353-4143-ba65-405ea6053957)
webviewElement.ts:160 [Embedded Page] Starting WebSocket: BOGUS_PVSC/api/kernels/d0313fc9-5353-4143-ba65-405ea6053957
webviewElement.ts:160 [Embedded Page] Kernel: connected (d0313fc9-5353-4143-ba65-405ea6053957)
console.ts:137 [Extension Host] Starting WebSocket: RAW/api/kernels/e128cfd8-375f-4e12-9782-9ff317892aa6
console.ts:137 [Extension Host] Kernel: connected (e128cfd8-375f-4e12-9782-9ff317892aa6)
webviewElement.ts:160 [Embedded Page] Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/Microsoft/monaco-editor#faq
webviewElement.ts:160 [Embedded Page] Failed to construct 'Worker': Script at 'vscode-webview-resource://d2f6c073-5799-45ef-bfc4-ed68c4274a7b/file///e%3A/Documents/CODE/NCPGWDL/code/editor.worker.js' cannot be accessed from origin 'vscode-webview://d2f6c073-5799-45ef-bfc4-ed68c4274a7b'.
console.ts:137 [Extension Host] Starting WebSocket: RAW/api/kernels/86ebfc66-17ff-45fa-a2ae-7cbdcf298209
console.ts:137 [Extension Host] Kernel: connected (86ebfc66-17ff-45fa-a2ae-7cbdcf298209)
webviewElement.ts:160 [Embedded Page] Starting WebSocket: BOGUS_PVSC/api/kernels/86ebfc66-17ff-45fa-a2ae-7cbdcf298209
webviewElement.ts:160 [Embedded Page] Kernel: connected (86ebfc66-17ff-45fa-a2ae-7cbdcf298209)
console.ts:137 [Extension Host] Starting WebSocket: RAW/api/kernels/63de162e-058e-4415-8c4e-8c58e3489ec5
console.ts:137 [Extension Host] Kernel: connected (63de162e-058e-4415-8c4e-8c58e3489ec5)
bootstrap-window.js:205 [uncaught exception]: Error: write EOF
s @ bootstrap-window.js:205
bootstrap-window.js:208 Error: write EOF
at WriteWrap.onWriteComplete [as oncomplete] (internal/stream_base_commons.js:83)
s @ bootstrap-window.js:208
events.js:180 Uncaught Error: write EOF
at WriteWrap.onWriteComplete [as oncomplete] (internal/stream_base_commons.js:83)
localProcessExtensionHost.ts:233 Extension Host
localProcessExtensionHost.ts:234 FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
1: 00007FF6C8C6B7DE uv_gettimeofday+11629966
2: 00007FF6C8141146 node::Abort+22
3: 00007FF6C81411B3 node::Abort+131
4: 00007FF6C5D71978 v8::V8::GetVersion+792
5: 00007FF6C5D7191A v8::V8::GetVersion+698
6: 00007FF6C5DB6213 std::_Vector_alloc<std::_Vec_base_types<v8::CpuProfileDeoptFrame,std::allocatorv8::CpuProfileDeoptFrame > >::_Make_iterator+59155
7: 00007FF6C5DB77C4 std::_Vector_alloc<std::_Vec_base_types<v8::CpuProfileDeoptFrame,std::allocatorv8::CpuProfileDeoptFrame > >::_Make_iterator+64708
8: 00007FF6C5DB474B std::_Vector_alloc<std::_Vec_base_types<v8::CpuProfileDeoptFrame,std::allocatorv8::CpuProfileDeoptFrame > >::_Make_iterator+52299
9: 00007FF6C5DB26FE std::_Vector_alloc<std::_Vec_base_types<v8::CpuProfileDeoptFrame,std::allocatorv8::CpuProfileDeoptFrame > >::_Make_iterator+44030
10: 00007FF6C5DBCBFC std::_Vector_alloc<std::_Vec_base_types<v8::CpuProfileDeoptFrame,std::allocatorv8::CpuProfileDeoptFrame > >::_Make_iterator+86268
11: 00007FF6C5DBD06D std::_Vector_alloc<std::_Vec_base_types<v8::CpuProfileDeoptFrame,std::allocatorv8::CpuProfileDeoptFrame > >::_Make_iterator+87405
12: 00007FF6C5F92A7E v8::Unlocker::~Unlocker+60606
13: 00007FF6C6132B35 v8::Platform::SystemClockTimeMillis+1104341
14: 00007FF6C5D7F329 v8::JSON::Parse+1097
15: 00007FF6C5D8E946 v8::String::Utf8Length+134
16: 00007FF6C81384B6 node::Buffer::New+5062
17: 00007FF6C670874C v8_inspector::V8ContextInfo::executionContextId+2730188
18: 000002E9D5086071
abstractExtensionService.ts:166 Extension host terminated unexpectedly. Code:  134  Signal:  null
_onExtensionHostCrashed @ abstractExtensionService.ts:166
notificationsAlerts.ts:40 Extension host terminated unexpectedly.
onDidChangeNotification @ notificationsAlerts.ts:40
2console.ts:137 [Extension Host] (node:24588) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
t.log @ console.ts:137
notificationsAlerts.ts:40 Data Science library ipykernel is not installed. Install?
onDidChangeNotification @ notificationsAlerts.ts:40
webviewElement.ts:160 [Embedded Page] Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/Microsoft/monaco-editor#faq
webviewElement.ts:160 [Embedded Page] Failed to construct 'Worker': Script at 'vscode-webview-resource://1eb008d5-82db-4d95-829b-44a0c580cc0a/file///e%3A/Documents/CODE/NCPGWDL/code/editor.worker.js' cannot be accessed from origin 'vscode-webview://1eb008d5-82db-4d95-829b-44a0c580cc0a'.
webviewElement.ts:160 [Embedded Page] Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/Microsoft/monaco-editor#faq
webviewElement.ts:160 [Embedded Page] Failed to construct 'Worker': Script at 'vscode-webview-resource://6f1b0734-bb60-4013-8633-e3eb9ce3e90f/file///e%3A/Documents/CODE/NCPGWDL/code/editor.worker.js' cannot be accessed from origin 'vscode-webview://6f1b0734-bb60-4013-8633-e3eb9ce3e90f'.
5notificationsAlerts.ts:40 Timed out waiting to get a heartbeat from kernel process.
onDidChangeNotification @ notificationsAlerts.ts:40
console.ts:137 [Extension Host] rejected promise not handled within 1 second: Error: Timed out waiting to get a heartbeat from kernel process.
t.log @ console.ts:137
console.ts:137 [Extension Host] stack trace: Error: Timed out waiting to get a heartbeat from kernel process.	at g.waitForHeartbeat (c:\Users\NKD-INTEL-003.vscode\extensions\ms-python.python-2020.8.101144\out\client\extension.js:48:574504)
t.log @ console.ts:137
mainThreadExtensionService.ts:65 [[object Object]]Timed out waiting to get a heartbeat from kernel process.
$onExtensionRuntimeError @ mainThreadExtensionService.ts:65
mainThreadExtensionService.ts:66 Error: Timed out waiting to get a heartbeat from kernel process.
at g.waitForHeartbeat (c:\Users\NKD-INTEL-003.vscode\extensions\ms-python.python-2020.8.101144\out\client\extension.js:48:574504)
$onExtensionRuntimeError @ mainThreadExtensionService.ts:66
console.ts:137 [Extension Host] rejected promise not handled within 1 second: Error: Timed out waiting to get a heartbeat from kernel process.
t.log @ console.ts:137
console.ts:137 [Extension Host] stack trace: Error: Timed out waiting to get a heartbeat from kernel process.	at g.waitForHeartbeat (c:\Users\NKD-INTEL-003.vscode\extensions\ms-python.python-2020.8.101144\out\client\extension.js:48:574504)
t.log @ console.ts:137
mainThreadExtensionService.ts:65 [[object Object]]Timed out waiting to get a heartbeat from kernel process.
$onExtensionRuntimeError @ mainThreadExtensionService.ts:65
mainThreadExtensionService.ts:66 Error: Timed out waiting to get a heartbeat from kernel process.
at g.waitForHeartbeat (c:\Users\NKD-INTEL-003.vscode\extensions\ms-python.python-2020.8.101144\out\client\extension.js:48:574504)
$onExtensionRuntimeError @ mainThreadExtensionService.ts:66
notificationsAlerts.ts:40 Timed out waiting to get a heartbeat from kernel process.
onDidChangeNotification @ notificationsAlerts.ts:40
console.ts:137 [Extension Host] rejected promise not handled within 1 second: Error: Timed out waiting to get a heartbeat from kernel process.
t.log @ console.ts:137
console.ts:137 [Extension Host] stack trace: Error: Timed out waiting to get a heartbeat from kernel process.	at g.waitForHeartbeat (c:\Users\NKD-INTEL-003.vscode\extensions\ms-python.python-2020.8.101144\out\client\extension.js:48:574504)
t.log @ console.ts:137
mainThreadExtensionService.ts:65 [[object Object]]Timed out waiting to get a heartbeat from kernel process.
$onExtensionRuntimeError @ mainThreadExtensionService.ts:65
mainThreadExtensionService.ts:66 Error: Timed out waiting to get a heartbeat from kernel process.
at g.waitForHeartbeat (c:\Users\NKD-INTEL-003.vscode\extensions\ms-python.python-2020.8.101144\out\client\extension.js:48:574504)
$onExtensionRuntimeError @ mainThreadExtensionService.ts:66
console.ts:137 [Extension Host] Starting WebSocket: RAW/api/kernels/df886478-c9db-4e13-ae9d-f071dd272895
console.ts:137 [Extension Host] Kernel: connected (df886478-c9db-4e13-ae9d-f071dd272895)
webviewElement.ts:160 [Embedded Page] Starting WebSocket: BOGUS_PVSC/api/kernels/df886478-c9db-4e13-ae9d-f071dd272895
webviewElement.ts:160 [Embedded Page] Kernel: connected (df886478-c9db-4e13-ae9d-f071dd272895)
console.ts:137 [Extension Host] Starting WebSocket: RAW/api/kernels/e869b864-dd79-4ff7-b224-90ee93581fd4
console.ts:137 [Extension Host] Kernel: connected (e869b864-dd79-4ff7-b224-90ee93581fd4)
bootstrap-window.js:205 [uncaught exception]: Error: write EOF
s @ bootstrap-window.js:205
bootstrap-window.js:208 Error: write EOF
at WriteWrap.onWriteComplete [as oncomplete] (internal/stream_base_commons.js:83)
s @ bootstrap-window.js:208
events.js:180 Uncaught Error: write EOF
at WriteWrap.onWriteComplete [as oncomplete] (internal/stream_base_commons.js:83)
localProcessExtensionHost.ts:233 Extension Host
abstractExtensionService.ts:166 Extension host terminated unexpectedly. Code:  134  Signal:  null
_onExtensionHostCrashed @ abstractExtensionService.ts:166
notificationsAlerts.ts:40 Extension host terminated unexpectedly.
onDidChangeNotification @ notificationsAlerts.ts:40

Please toggle developer tools (Help menu) then copy/paste the Console output into this issue. Otherwise, we can't tell what might be happening.

Hi, this bug still exists in my workstation. The console output is like the above info. Could you have a look at that please? Thanks!!


error

Hello
When I run to the verification step, the 3px-error rate always shows 0. Can you tell me where there is a problem？
I found that target_disp read the value of 0, but, I don't know where it is.
Can you help me with it？

Did you mean target_disp is always 0? You may need to check the path of the disparity map here https://github.com/KinglittleQ/PSMNet/blob/897c45facaa176e70ab43cb6aefd5427da1f1b2a/dataloader/KITTI2015_loader.py#L67
Simply printing the path and the read disparity map may help you.

Thank you for your reply. I'll try again


LogonUI crashing after install

Do not patch to 17763.134 and install FOD else the LogonUI.exe will continually crash. If you roll back to 17763.107 or earlier, install FOD, then you can patch to latest cumulative update.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 5da35d75-87fe-4432-9a86-d07f1b4f41b5
Version Independent ID: 6e3f4dfd-d101-c26b-94a4-fe44093dba8e
Content: Server Core App Compatibility Feature on Demand (FOD)
Content Source: WindowsServerDocs/get-started-19/install-fod-19.md
Product: windows-server-threshold
GitHub Login: @coreyp-at-msft
Microsoft Alias: coreyp

Hi, this is Brent from Microsoft.  We are aware of this issue.  Please take a look at the updated release notes on this page.  There is more detail available in the KB linked here.  Thanks for your patience.  And Thank You for using the Server Core App Compatibility FOD!

This is resolved as of Cumulative Update KB 4469342 and Servicing Stack Update KB 4470788, released some months ago.


Pull request for adding my university

https://www.jetbrains.com/shop/eform/students/contributeUniversity?email=s0572045%40htw-berlin.com

Please fork SWOT repository, copy file.zip in the root folder of your forked SWOT repository. Then unzip file.zip there with no changes to the directory structure. Then make a new pull request. If you are not able to make the pull request according the instructions, please send us an email to<EMAIL_ADDRESS>Please mention this request URL in the message. I have to close this request without merging. Thank you for your understanding.


Support for relay

The PCBs have non populated space for a diode, terminal block and 5v relay (not sure which type fits but it's a six pin model). I wonder if this is supported by the original firmware and what it does. We can consider this a feature request.
Unrelated to this: some notes would be nice to have about unused pins and such. I was thinking about building a RF synchronized set of clocks using a NRL module.

I havent seen any models where this relay is actually populated, but it should not stop anyone from using it. I suspect it might have been designed that you could make it some kind of timer (on/off) or relay some other signal for alarm/etc (like lights, horns, etc). However, the original STC15F204EA was very limited on code space, so it would have been a stretch to include it there. The newer stc chips, like STC15W408AS, et al, have more code space and peripherals so it might be possible to hack something up. I leave this up to the community ;)
Regarding time-sync. I saw someone that did a "fork" loosely based off of early versions of this repo, added DCF77 support on some spare pins as it was simple enough.
If you mean NRF24 modules, then perhaps it's possible - however the challenge is that requires at least 3-4 pins (for SPI) which are likely not available and/or already being used in most board layouts.

My board has the 408.  I only see pins 36 and 37 free. Unless I'm missing something. Plus the programming header.

So for the STC15W408AS, if you have P3_6 and P3_7 free, I think those can be used as a second uart port - so it might be possible, for example to use the RX pin with some cheap GPS module to get super accurate time base. I welcome functional PRs ;)
http://www.stcmicro.com/datasheet/STC15F2K60S2-en.pdf (look at section for STC15W401AS series)

fyi, started branch to work on gps time sync support on STC15W408AS (could work with similar mcus with enough ram, flash, and hardware uart - this excludes the STC15F204EA)
https://github.com/zerog2k/stc_diyclock/tree/gps

This is pretty neat! I was thinking we could hookup a ESP32 board... let that handle it, and then support clock syncing through RF modules... that would be nifty. Also timezones... I am going to flash my clock now.

Turns out mine isn't 408AS powered. I could switch it for one, but it has a 204EA it seems, so not enough code space without overflowing into the EEPROM.

Alternative idea: is the UART active or supported in 204EA? because I could whip out a generic UART code branch that speaks to ESP32 and friends. That would allow support for network and RF sync, besides GPS.

A few thoughts on this.
204EA has no hardware uart... so you would have to bitbang uart. It's already implemented so this is probably a start:
https://github.com/zerog2k/stc_blinky/tree/master/src
204EA has only 256 bytes of ram, so doing any kind of double buffer on something like a uart string (up to 82 chars for nmea string in order to do checksumming) would be pushing envelope. Maybe you could do some tricks to only need single buffer, or maybe you can go another way, e.g. instead of direct uart, and use something like a shorter custom timestamp string. At that point, maybe just abandon uart, and use some sort of bitbanged i2c protocol  - probably many possibilities here.
Also, you may or may not be aware of this, but on most of the stc's that I have seen, it doesn't seem like eeprom is really some separate eeprom, but just a "specially" partitioned area of flash (read: crippled for upselling to higher models?). The good news is that you can actually exploit this to "overflow" code/const areas into "eeprom" as if it were code, and it would be accessible (via MOVC) and callable just the same as the rest of the code.
I think there are a few ways to work around this, but the one I have been thinking might be the easiest is to just treat the code and eeprom as one big code section. There is one catch - at the end of the "code" section, there is a 7 or 8 byte id string which is not writeable when flashing. I havent yet tried this, but i suspect you can just declare this area as an unused/unassigned variable in order to protect/reserve it from flashing, and i suspect stcgal will happily overflow writing into eeprom (and this should be functional from my other tests), e.g something along the lines of:
#define FLASH_SIZE  0x1000
#define ID_LOCATION (FLASH_SIZE - 8)
const uint8_t __at (ID_LOCATION) flash_reserved[8];

This would could allow you to use the entire code+eeprom as one big code space.
Another trick i discovered was to put all your const stuff in eeprom by telling the sdcc linker to put the "const" segment at the start of eeprom (location depends on chip model). I think something like sdcc linker options: -Wl-bCONST=0x1000. There are probably other variations of this trick (defining custom sections, etc but this seems like more housekeeping..)
So it may be possible with some clever engineering.

I was clearly not well rested... it has a 404AS actually. Not 204. I'll get back at this later. Not sure then why it was glitching after flashing.
BTW whats your connection with the other github repo for these diy clocks?

ok well, you are much better off with the 404AS. Pretty much the same as 408AS, including hardware uart. While 404AS has only 4k "code" it does have 9k of "eeprom" which I'm pretty sure we can coerce into code space for an effective total of 13k. Also has 512 bytes ram, which makes a big difference.
Strangely, these units have only 2 timers (T0, T2). We use T0 for clock functions (display, debouncing, etc), and we use T2 for uart baud rate generator.
what other repo are you talking about?

oh, i did hack up a branch with experimental gps support - from a cheap nmea "gps mouse" like this:
https://www.banggood.com/GPS-Module-for-Auto-Car-DVR-Navigator-Tracking-Device-Recording-Car-Dash-Camera-p-1049257.html?p=WX0407753399201409DA
https://github.com/zerog2k/stc_diyclock/tree/gps


v1.13.1 CUDA Compilation fails on Windows 10

Please make sure that this is a build/installation issue. As per our GitHub Policy, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:build_template
System information

OS Platform and Distribution (e.g., Linux Ubuntu 16.04):Windows 10
Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:
TensorFlow installed from (source or binary):Source
TensorFlow version:.1.13.1
Python version:3.6
Installed using virtualenv? pip? conda?:pip
Bazel version (if compiling from source):0.21
GCC/Compiler version (if compiling from source):VS 2017 SDK 10.0.17763.132
CUDA/cuDNN version:7.4.2
GPU model and memory: 1060M, 6 GB

Describe the problem
Compilation on Windows 10 with CUDA 10 fails.
Provide the exact sequence of commands / steps that you executed before running into the problem

set PATH=C:\Users\Rishi\AppData\Local\Programs\Python\Python36;%PATH%
SET PATH=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\bin;%PATH%
SET PATH=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\extras\CUPTI\libx64;%PATH%
set PATH=c:\tools\cuda\bin;%PATH%
set BAZEL_SH=C:\tools\msys64\usr\bin\bash.exe
git clone --recursive https://github.com/tensorflow/tensorflow.git
cd tensorflow
git checkout v1.13.1
pip3 install six numpy wheel
pip3 install keras_applications==1.0.6 --no-deps
pip3 install keras_preprocessing==1.0.5 --no-deps
set PATH=c:\tools\bazel;%PATH%
set PATH=C:\tools\msys64\usr\bin;%PATH%
set JAVA_HOME=C:\Program Files\Java\jdk1.8.0_201
python ./configure.py
bazel build --config=opt --config=cuda --cxxopt="-D_GLIBCXX_USE_CXX11_ABI=0" //tensorflow/tools/pip_package:build_pip_package

Any other info / logs
Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.
`C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include\xtr1common(87): note: see reference to class template instantiation 'std::integral_constant<bool,false>' being compiled
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include\xtr1common(88): note: see reference to class template instantiation 'std::is_same<_Ty1,_Ty2>' being compiled
INFO: From Linking tensorflow/lite/toco/python/_tensorflow_wrap_toco.so:
LINK : warning LNK4044: unrecognized option '/Wl,-rpath,../local_config_cuda/cuda/lib64'; ignored
LINK : warning LNK4044: unrecognized option '/Wl,-rpath,../local_config_cuda/cuda/extras/CUPTI/lib64'; ignored
LINK : warning LNK4044: unrecognized option '/ldl'; ignored
LINK : warning LNK4044: unrecognized option '/lpthread'; ignored
LINK : warning LNK4044: unrecognized option '/ldl'; ignored
Creating library bazel-out/x64_windows-opt/bin/tensorflow/lite/toco/python/lib_tensorflow_wrap_toco.so.ifso and object bazel-out/x64_windows-opt/bin/tensorflow/lite/toco/python/lib_tensorflow_wrap_toco.so.exp
libcuda_platform.lo(cuda_dnn.o) : warning LNK4217: locally defined symbol ?ThenBlasGemm@Stream@stream_executor@@QEAAAEAV12@W4Transpose@blas@2@0_K11MAEBV?$DeviceMemory@M@2@H2HMPEAV52@H@Z (public: class stream_executor::Stream & __cdecl stream_executor::Stream::ThenBlasGemm(enum stream_executor::blas::Transpose,enum stream_executor::blas::Transpose,unsigned __int64,unsigned __int64,unsigned __int64,float,class stream_executor::DeviceMemory const &,int,class stream_executor::DeviceMemory const &,int,float,class stream_executor::DeviceMemory *,int)) imported in function "public: virtual bool __cdecl stream_executor::cuda::CudnnSupport::DoMatMul(class stream_executor::Stream *,class stream_executor::DeviceMemory const &,class stream_executor::DeviceMemory const &,class stream_executor::dnn::BatchDescriptor const &,class stream_executor::dnn::BatchDescriptor const &,class stream_executor::DeviceMemory *)" (?DoMatMul@CudnnSupport@cuda@stream_executor@@UEAA_NPEAVStream@3@AEBV?$DeviceMemory@M@3@1AEBVBatchDescriptor@dnn@3@2PEAV53@@Z)
libutils.a(utils.o) : warning LNK4217: locally defined symbol ?DEVICE_CPU@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_CPU) imported in function "bool __cdecl tensorflow::grappler::NodeIsOnCpu(class tensorflow::NodeDef const *)" (?NodeIsOnCpu@grappler@tensorflow@@YA_NPEBVNodeDef@2@@Z)
ERROR: C:/sw/temp/tensorflow/tensorflow/tensorflow/BUILD:573:1: Executing genrule //tensorflow:tf_python_api_gen_v1 failed (Exit 1): bash.exe failed: error executing command
cd C:/users/rishi/_bazel_rishi/t6earjat/execroot/org_tensorflow
SET CUDA_TOOLKIT_PATH=C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.0
SET CUDNN_INSTALL_PATH=c:/tools/cuda
SET PATH=C:\tools\msys64\usr\bin;C:\tools\msys64\bin
SET PYTHON_BIN_PATH=C:/Users/Rishi/AppData/Local/Programs/Python/Python36/python.exe
SET PYTHON_LIB_PATH=C:/Users/Rishi/AppData/Local/Programs/Python/Python36/lib/site-packages
SET TF_CUDA_CLANG=0
SET TF_CUDA_COMPUTE_CAPABILITIES=3.5,7.0
SET TF_CUDA_VERSION=10.0
SET TF_CUDNN_VERSION=7
SET TF_NEED_CUDA=1
SET TF_NEED_OPENCL_SYCL=0
SET TF_NEED_ROCM=0
C:/tools/msys64/usr/bin/bash.exe bazel-out/x64_windows-opt/genfiles/tensorflow/tf_python_api_gen_v1.genrule_script.sh
Execution platform: @bazel_tools//platforms:host_platform
Traceback (most recent call last):
File "\?\C:\Users\Rishi\AppData\Local\Temp\Bazel.runfiles_md1fa9q2\runfiles\org_tensorflow\tensorflow\python\pywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "\?\C:\Users\Rishi\AppData\Local\Temp\Bazel.runfiles_md1fa9q2\runfiles\org_tensorflow\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File "\?\C:\Users\Rishi\AppData\Local\Temp\Bazel.runfiles_md1fa9q2\runfiles\org_tensorflow\tensorflow\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "C:\Users\Rishi\AppData\Local\Programs\Python\Python36\lib\imp.py", line 243, in load_module
return load_dynamic(name, filename, file)
File "C:\Users\Rishi\AppData\Local\Programs\Python\Python36\lib\imp.py", line 343, in load_dynamic
return _load(spec)
ImportError: DLL load failed: The specified module could not be found.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "\?\C:\Users\Rishi\AppData\Local\Temp\Bazel.runfiles_md1fa9q2\runfiles\org_tensorflow\tensorflow\python\tools\api\generator\create_python_api.py", line 27, in
from tensorflow.python.tools.api.generator import doc_srcs
File "\?\C:\Users\Rishi\AppData\Local\Temp\Bazel.runfiles_md1fa9q2\runfiles\org_tensorflow\tensorflow\python_init_.py", line 49, in
from tensorflow.python import pywrap_tensorflow
File "\?\C:\Users\Rishi\AppData\Local\Temp\Bazel.runfiles_md1fa9q2\runfiles\org_tensorflow\tensorflow\python\pywrap_tensorflow.py", line 74, in
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "\?\C:\Users\Rishi\AppData\Local\Temp\Bazel.runfiles_md1fa9q2\runfiles\org_tensorflow\tensorflow\python\pywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "\?\C:\Users\Rishi\AppData\Local\Temp\Bazel.runfiles_md1fa9q2\runfiles\org_tensorflow\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File "\?\C:\Users\Rishi\AppData\Local\Temp\Bazel.runfiles_md1fa9q2\runfiles\org_tensorflow\tensorflow\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "C:\Users\Rishi\AppData\Local\Programs\Python\Python36\lib\imp.py", line 243, in load_module
return load_dynamic(name, filename, file)
File "C:\Users\Rishi\AppData\Local\Programs\Python\Python36\lib\imp.py", line 343, in load_dynamic
return _load(spec)
ImportError: DLL load failed: The specified module could not be found.
Failed to load the native TensorFlow runtime.
See https://www.tensorflow.org/install/errors
for some common reasons and solutions.  Include the entire stack trace
above this error message when asking for help.
Target //tensorflow/tools/pip_package:build_pip_package failed to build
INFO: Elapsed time: 8639.073s, Critical Path: 1339.78s
INFO: 2615 processes: 2615 local.
FAILED: Build did NOT complete successfully
`

@ymodak Opening this as new issue.

I had to merge https://github.com/tensorflow/tensorflow/issues/22387.

@rishi-rranjan Could try the instruction here that worked for installing TF1.12_gpu successfully. Follow the process listed but use newer version of CUDA10 (CUDA9.0 was used). Please let me know how it progresses. Thanks!

I tried to compile Tensorflow 1.12 + CUDA10 under windows10 before.But the compiler I am using is MSVC2015 R3.I am not sure that MSVC2017 can work correctly.And trying to downgrade the version of bazel is sometimes useful.

@jvishnuvardhan I am trying to compile TF since i have some custom operators which I will need to link against some dependencies. I will install pip package and see if I can compile my custom operators with that itself.
@rootkitchao Thanks for the pointer. I am use VS 2017 extensively for all my projects but will try VS 2015 on other setup if I am not able to compile my operators with VS2017.

@jvishnuvardhan I was able to install TF 1.13.1 with your instruction. I will check if I can compile my custom operators with this install. if it works for me, I don't need to compile TF and will close this issue.

Closing this as I am able to successfully compile tensorflow/examples/adding_an_op.

@rishi-rranjan Good to know that it worked for you. Thanks!


Add 'validate' parameter to use during releases

Is your feature request related to a problem? Please describe.
Add a new parameter to be used during deployments and releases which can be used to set parameters or transform text within the helper during a release, e.g. changing az deployment group create to az deployment group create during the TestWebApp / Validation workflow.
Describe the solution you'd like
Add a parameter that can be passed into the workflow to toggle behaviour for deployment testing. See https://github.com/Azure/AKS-Construction/pull/642/files for how to pass the parameter into PlayWright.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.

Are we okay to close this issue?

It came up in discussions during the last release, so yeah, I think it's still needed.


Move pull request template

This change move our existing PR template to a location/filename that is recognized by current github.

Jenkins is failing the build due to some iOS test weirdness that has nothing to do with this change. I'm going to go ahead and merge for now, and fix the Jenkins issue separately.


Unregister driver on shutdown

I am not sure this is an issue (or an issue in HikariCP), but maybe. I am using it with MySQL driver that is in my application lib folder. When I do redeploy of the application, Tomcat writes in the log:

WARNING org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web application [*] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.

Probably it is HikariCP, who registers the driver. Would it be correct to unregister it on shutdown?

HikariCP does not register the driver.


Please stop using double negations

The sentence: "[BindProperty] SHOULD NOT be used on models containing properties that SHOULD NOT be changed by the client...".
Explain How [BindProperty] should be used instead of the opposite!
"[BindProperty] SHOULD BE used on models properties that SHOULD BE changeable by the client...".

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 164d7efe-01bf-0b26-7a23-f10704f338f5
Version Independent ID: b3e2bc87-1582-2d34-c7c2-7c8e901ac771
Content: Introduction to Razor Pages in ASP.NET Core
Content Source: aspnetcore/razor-pages/index.md
Product: aspnet-core
Technology: aspnetcore-razorpages
GitHub Login: @Rick-Anderson
Microsoft Alias: riande

It's a security feature. It's not a double negative.


added blog to the navbar

@philip-ellis-sp I notice the arrows under the drop-downs for IdentityNow and IdentityIQ drop below their associated text when the screen gets smaller--we will need to fix that however it was fixed the first time.


Problem with Conv2d 1 channel -> several channels

Hi, thanks for great job.
I found particular problem:
when converting module of a type nn.Conv2d(1,output_channel,3,stride=(1,1),bias=True),
where output_channel >1 and groups =1,
in layers.py it is assumed that we deal with depthwise separable convolution (line 100),
and I got the following error (I changed input image from 3x320x320 to 1x320x320 in mobilinet.py):
File "mobilinet.py", line 136, in
k_model = pytorch_to_keras(model, input_var, (1, 224, 224,), verbose=True)
File "C:\ProgramData\Miniconda3\lib\site-packages\pytorch2keras-0.1.11-py3.5.egg\pytorch2keras\converter.py", line 314, in pytorch_to_keras
names
File "C:\ProgramData\Miniconda3\lib\site-packages\pytorch2keras-0.1.11-py3.5.egg\pytorch2keras\layers.py", line 147, in convert_conv
layers[scope_name] = conv(layers[input_name])
File "C:\ProgramData\Miniconda3\lib\site-packages\keras\engine\base_layer.py", line 436, in call
self.set_weights(self._initial_weights)
File "C:\ProgramData\Miniconda3\lib\site-packages\keras\engine\base_layer.py", line 1058, in set_weights
'provided weight shape ' + str(w.shape))
ValueError: Layer weight shape (3, 3, 1, 1) not compatible with provided weight shape (3, 3, 320, 1)
I temporally fixed this by changing line  100 to:
if n_groups == in_channels and n_groups>1:

Hi @ivonwrk!
Thanks for the bug report, yep, check for the n_groups != 1 should fix this issue.


fix(templates): blog_meta category & tag classname (B)

Description
Describe:

Build classname with automated, required, recognizable "slug" instead of empty "count".
Classname is blog-categories-__FOR_LOOP_COUNT__ instead of blog-categories-.

References

fixes #710

Checklist

[x] I have read the contribution guide
[ ] Code lint checked via inv lint
[ ] changes file included (see docs)
[ ] Usage documentation added in case of new features
[ ] Tests added

I do not like this solution. I prefer #711.


Minimum OS version

Please add minimum OS runtime version for using a package containing the uap7:extension to this page.  By detection (event log warnings of unsupported namespace after installing the package), I can see that it is not supported on Windows 1022h2 but is on Windows 1122h2 (I didn't test earlier Windows  11 versions).
Ideally, these minimums would be completed for other namespaces as well.  For example, 1022h2 doesn't allow uap11 but does support (at least some of) uap10.

Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

ID: 8e6170c0-cb6e-34f0-a6bd-2106ca8aa8d4
Version Independent ID: 80f676f0-d887-96ff-3b43-4f5d766291ad
Content: uap7:Extension - Windows UWP applications
Content Source: winrt-related-src/schemas/appxpackage/uapmanifestschema/element-uap7-extension.md
Product: uwp
Technology: winrt-reference
GitHub Login: @drewbatgit
Microsoft Alias: drewbat

@timmangan In August of last year we updated the OS version for all pages in the schema reference section based on a list provided by the feature team.


Improve command line friendliness

I added support for --key=value command line arguments (with an equals-sign instead of a space), as well as adding a --help option that prints out the basic supported command line options and their values.  The commits themselves have more detail.

Is there any reason for the key=value support, other than "That one python arg lib does that, so AI script users are probably used to it"?


in_tail: Dump a file name in addition to a malformed line

Which issue(s) this PR fixes:
Fixes #
What this PR does / why we need it:
This patch is based on a feature request from one of our customers.
Right now, in_tail emits the following warning message when it reads
a malformed line.
2019-08-18 00:20:03 +0900 [warn]: #0 "a,b\",c" error="Illegal quoting in line 1."

However, since we use in_tail extensively (e.g. tracking lots of files
at once), it is sometimes not easy to determine WHICH file caused the
error just by seeing this message.
With this patch, in_tail shows:
2019-08-18 00:27:42 +0900 [warn]: #0 invalid line found file="test.csv"
line="a,b\",c" error="Illegal quoting in line 1."

... which should be useful for debugging.
Docs Changes:
No need to update the document.
Release Note:
Use the PR title.

Looks good. Thanks!


Support Baggage headers

OpenTelemetry supports interaction with baggage see baggage headers w3c spec.
We should implement this in opentelemetry-lua.

Baggage Signal
Baggage API

I think the three bits of work are:

[ ] write baggage text map propagator (inject/extract)
[ ] add capability to add/remove baggage within SDK (get value, remove value, get all values, remove value)
[ ] add ability to add/remove baggage from Context

Welcome PR, thanks.

Related PR: https://github.com/yangxikun/opentelemetry-lua/pull/24

🎉🎉🎉


what's the difference between @apidevtools/swagger-express-middleware and swagger-express-middleware?

I found its really confusing, on https://www.npmjs.com/package/swagger-express-middleware
there are 2 instruction to install this module, one is
npm i swagger-express-middleware

the other is in the readme
npm install @apidevtools/swagger-express-middleware

could you clarify what is the difference? Thanks

I just looked into the swagger-express-middleware content and it just reexports @apidevtools/swagger-express-middleware package. Doesn't looks like it has anything malicious in it.
index.js:
"use strict";
module.exports = require("@apidevtools/swagger-express-middleware");

Both packages have jamesmessinger in contributors, first one also has rkrauskopf but maybe it's his bot.
Both packages are same latest version 4.0.2. I assume maybe it's done to be able to use typescript definitions for it? @types/swagger-express-middleware

I just looked into the swagger-express-middleware content and it just reexports @apidevtools/swagger-express-middleware package. Doesn't looks like it has anything malicious in it.
index.js:
"use strict";
module.exports = require("@apidevtools/swagger-express-middleware");

Both packages have jamesmessinger in contributors, first one also has rkrauskopf but maybe it's his bot.
Both packages are same latest version 4.0.2. I assume maybe it's done to be able to use typescript definitions for it? @types/swagger-express-middleware

They're both the same and they're both about to get deprecated unless anyone wants to maintain them.


Allow related messages from loop invariants

The original PR to create structured descriptions of proof obligations (#505) broke the "Related message" functionality for loop invariants. This restores it.
Needed by https://github.com/dafny-lang/dafny/pull/1915.

Could you add a regression test? I have trouble reviewing the code because I don't know what it's supposed to do.

There are quite a few regression tests in Dafny.  A lit test in Boogie unfortunately wouldn't be able to trigger this behavior, because you can't add descriptions in Boogie source. I suppose it would be possible to write a C# test of it, but it's quite a bit easier to test it from a client such as Dafny.

I suppose it would be possible to write a C# test of it

What's difficult about that?

I suppose it would be possible to write a C# test of it

Why not do that? You seem to imply it's difficult but why is that?

I'm looking into it to see how hard it really is.

I suppose it would be possible to write a C# test of it

Why not do that? You seem to imply it's difficult but why is that?

I'm looking into it to see how hard it really is.

And it turns out not to be so hard. Added! Thanks for pushing for it.


docs: performance tracing

Add performance tracing documentation, including custom trace exampes.

Can we show an example of changing the startTime?


fix PackageUrl typo

PackageUrl for 1.6 was still set to /metadataimageoptimizer1.5/ folder

Thanks for that, I should maybe start testing that new versions correctly install from Playnite 😅


Fix at-mixin-argumentless-call-parentheses messages

Coverage remained the same at 95.316% when pulling ac67a2972eeffbd9e32bbd6c1bfff930e3185921 on YodaDaCoda:master into fd3ef91dc2f82342a2fe42332f8b377167a34d9c on kristerkari:master.

Hi @YodaDaCoda
Good call, thanks! Just FYI, stylelint (and thus we) has a convention for error messages, in this case they should be:
expected: "Expected parentheses in @mixin call",
rejected: "Unexpected parentheses in argumentless @mixin call"

Added proper edits with my commit, and also added a mixin names to the messages.

@dryoma Thanks for the info! I'll make sure I keep that in mind for any future PRs.


0.951 - Production sites not showing up in Logistics

Went in this morning to manage logistics and I had no storage. I built new storage and went back to manage logistics. I noticed that Destination A was not visible on the trucks I had already set up. I stopped one truck to try and reassign it. I am not able to to select any of the Production sites to pick up from. The FOBS still show up.
I rebooted the mission and applied the same steps and I am still unable to select any of the Production sites but can select FOBs.
Dedicated Server
0.951

Taking a new sector did not fix the logistics. I can still not see production sites in Logistics.

Please provide the informations from the template, because that's all information I would ask afterwards, as I need them.

Sorry, didn't get the email for the request more info. Looked on Discord and seen what you posted and checked here. I can't reproduce it but I was able to fix the error.


How can I speed up the training process using GPU or multi thread on CPU?

When I am trying to train the ocropy to recognize over 2000 Chinese Character with 800 hidden units, it seems that the training process is really slow. I wonder how can I adjust the model to train it on the GPU or at least use multi threads on CPU.

That's currently not possible using the python LSTM implementation. Have a look at clstm.

Here is report about training clstm to recognize Japanese:
tmbdev/clstm/issues/49

After 50 days of training on my MacBookPro, 130000 iterations, against 3877 classes of characters, the clstm has achieved 3.6% error rate so far... The hidden nodes is 800, The trained data is 58.2MB.


Use dedicated hardware for continuous benchmarking

At the moment, our benchmarks run on GitHub runners which makes them extremely noisy, see https://bencher.dev/perf/firezone-1l75jv1z?lower_value=false&upper_value=false&lower_boundary=false&upper_boundary=false&x_axis=version&branches=455d0566-7315-404c-93e1-877e2732cc97&testbeds=258ac4fc-9cc9-4281-a45b-666cd8264371&benchmarks=f0008569-a7be-4f17-8f53-37abe7cbc31b%2Cb35d8c57-795d-4eac-9105-6911d81320a7%2C0747e62d-e0e0-4fa0-a5af-709dc13f5e81%2Cafea6d44-89ac-4e9f-ab0e-8b6d2573e9c7%2Cdbebadcd-b0cf-4abd-a4f8-7274f064f6da%2C0c0d7024-2671-4c01-a775-d6261677d23f%2Cf01099cd-c22e-4a6e-b2ac-5f8f1d4e82c9%2Ccf34713e-228b-4609-97ea-d6404d243933&measures=a777fd3c-5f6c-4884-82e8-39cd8b2d30f1&start_time=1728196677865&end_time=1730615877865&tab=plots&plots_search=b833fb76-2308-4103-baa4-99d05ac8c819&key=true&reports_per_page=4&branches_per_page=8&testbeds_per_page=8&benchmarks_per_page=8&plots_per_page=8&reports_page=1&branches_page=1&testbeds_page=1&benchmarks_page=1&plots_page=1
In addition, the only run locally and thus don't really represent a real-world usecase. It would be great to provision dedicated infrastructure on GCP / AWS / Vultr etc and run our performance tests there. Not only would this greatly reduce the noise but it would allows give us a public page to point to when people ask "How fast is Firezone on a given hardware?".

@jamilbk How easy would it be to run a self-hosted GitHub runner for our perf workflows? I think that could be a pretty easy way of getting more stable benchmarks.

In my experience self-hosted GitHub runners are pretty lightweight to maintain. For this purpose I would advise maybe the following pieces:

Another private repo with the Terraform config to spin up / provision it in Azure (firezone/terraform)
Out-of-band or manually-triggered workflow to run the performance suite

I would hesitate using a self-hosted runner for in-band CI runs. If we need to get a fix in quickly and it's having issues it would create a headache.

We can just remove the perf runs from the required checks then? Not running it for every PR kind of defeats the point of continuous benchmarking.

@jamilbk How easy would it be to run a self-hosted GitHub runner for our perf workflows? I think that could be a pretty easy way of getting more stable benchmarks.

To be clear: What I mean here is: Run our existing perf tests as in (in docker-compose) but on a dedicated machine (in Azure or somewhere) to ensure we don't get such varied results.

Not running it for every PR kind of defeats the point of continuous benchmarking.

Do we need detailed real-world metrics for each CI run though? I think the original idea for having those in there was to catch major regressions that fall obviously outside the range of normal GitHub CI variance.
Consider a PR that decreases performance by 1,000%. That would essentially make Firezone unusable but not necessarily fail any test suites.
To determine if a change accurately has a net-positive or negative impact however it would be helpful to have a dedicated machine.

Not running it for every PR kind of defeats the point of continuous benchmarking.

Do we need detailed real-world metrics for each CI run though? I think the original idea for having those in there was to catch major regressions that fall obviously outside the range of normal GitHub CI variance.

The original idea was to catch performance regressions, ideally with as little variance as possible. Running them on consistent hardware is a net improvement IMO.

Or are you suggesting that we fail the pipeline for any negative performance impact? (i.e. 5%)

Yes, I'd like to know if a certain PR impacts performance even by just 5%.
We can also configure bencher to alert us without failing CI.

Hm, ok, would you be willing to maintain these runners and keep them security patched / updated?

We can also configure bencher to alert us without failing CI.

Given how reliable Bencher seems to be, this might be wise.

Bear in mind self-hosted runners only handle 1 job at a time, so if we want any level of parallelization we'll need a few of them

Hm, ok, would you be willing to maintain these runners and keep them security patched / updated?

If it proves worthwhile, yeah. You said they are lightweight to maintain and I'd assume having a machine somewhere in Azure is pretty easy.

We can also configure bencher to alert us without failing CI.

Given how reliable Bencher seems to be, this might be wise.

Not sure what you are implying? I can only think of 1 incident we've had with bencher that was caused by an accidential breaking change (fixed in #7290).
All other "failures" have been false-positive perf regressions caused by varying performance of the host machine, thus triggering the threshold configuration in bencher to explicitly fail the job. And that is what we are trying to fix here.
What I was suggesting with "alert without failing CI" is: If we think that a dedicated machine still has too much varying performance and therefore the (currently shortened) confidence intervals on how much deviation is allowed would still trigger CI failures, then we have an option to disable that part of bencher's behaviour. That still implies though that bencher works as advertised and the self-hosted runner itself did its job correctly :)

Bear in mind self-hosted runners only handle 1 job at a time, so if we want any level of parallelization we'll need a few of them

Yes, this is actually desired. To get less varying perf numbers, it is better to run them on exactly the same machine every time. A dedicated machine should be able to cache the images between runs well so I'd imagine they are quite quick.
But again, something we'd have to experiment with. We could also go with some parallelisation here as we do currently. Still an improvement over the current situation where deviations of 15% are not unheard of. (See https://github.com/firezone/firezone/issues/7441)


User login system does not play a role

I set the user login system according to your document, which can not work。
/api/.env
##########################
# Server configuration:
##########################

# The server will listen to localhost:3080 by default. You can change the target IP as you want.
# If you want to make this server available externally, for example to share the server with others
# or expose this from a Docker container, set host to <IP_ADDRESS> or your external IP interface.
# Tips: Setting host to <IP_ADDRESS> means listening on all interfaces. It's not a real IP.
# Use localhost:port rather than <IP_ADDRESS>:port to access the server.
# Set Node env to development if running in dev mode.
HOST=localhost
PORT=3080
NODE_ENV=production

# Change this to proxy any API request.
# It's useful if your machine has difficulty calling the original API server.
# PROXY=

# Change this to your MongoDB URI if different. I recommend appending chatgpt-clone.
MONGO_URI=mongodb://<IP_ADDRESS>:27017/chatgpt-clone

##########################
# OpenAI Endpoint:
##########################

# Access key from OpenAI platform.
# Leave it blank to disable this feature.
OPENAI_KEY=

# Identify the available models, separated by commas *without spaces*.
# The first will be default.
# Leave it blank to use internal settings.
OPENAI_MODELS=gpt-3.5-turbo,gpt-3.5-turbo-0301,text-davinci-003,gpt-4

# Reverse proxy settings for OpenAI:
# https://github.com/waylaidwanderer/node-chatgpt-api#using-a-reverse-proxy
# OPENAI_REVERSE_PROXY=

##########################
# BingAI Endpoint:
##########################

# Also used for Sydney and jailbreak

# BingAI Tokens: the "_U" cookies value from bing.com
# Set to "user_provided" to allow the user to provide its token from the UI.
# Leave it blank to disable this endpoint.
BINGAI_TOKEN="user_provided"

# BingAI Host:
# Necessary for some people in different countries, e.g. China (https://cn.bing.com)
# Leave it blank to use default server.
# BINGAI_HOST=https://cn.bing.com

##########################
# ChatGPT Endpoint:
##########################

# ChatGPT Browser Client (free but use at your own risk)
# Access token from https://chat.openai.com/api/auth/session
# Exposes your access token to `CHATGPT_REVERSE_PROXY`
# Set to "user_provided" to allow the user to provide its token from the UI.
# Leave it blank to disable this endpoint
CHATGPT_TOKEN="user_provided"

# Identify the available models, separated by commas. The first will be default.
# Leave it blank to use internal settings.
CHATGPT_MODELS=text-davinci-002-render-sha,text-davinci-002-render-paid,gpt-4

# Reverse proxy settings for ChatGPT
# https://github.com/waylaidwanderer/node-chatgpt-api#using-a-reverse-proxy
# By default, the server will use the node-chatgpt-api recommended proxy (a third party server).
# CHATGPT_REVERSE_PROXY=

##########################
# Search:
##########################

# ENABLING SEARCH MESSAGES/CONVOS
# Requires the installation of the free self-hosted Meilisearch or a paid Remote Plan (Remote not tested)
# The easiest setup for this is through docker-compose, which takes care of it for you.
SEARCH=false

# REQUIRED FOR SEARCH: MeiliSearch Host, mainly for the API server to connect to the search server.
# Replace '<IP_ADDRESS>' with 'meilisearch' if serving MeiliSearch with docker-compose.
MEILI_HOST=http://<IP_ADDRESS>:7700

# REQUIRED FOR SEARCH: MeiliSearch HTTP Address, mainly for docker-compose to expose the search server.
# Replace '<IP_ADDRESS>' with 'meilisearch' if serving MeiliSearch with docker-compose.
MEILI_HTTP_ADDR=<IP_ADDRESS>:7700

# REQUIRED FOR SEARCH: In production env., a secure key is needed. You can generate your own.
# This master key must be at least 16 bytes, composed of valid UTF-8 characters.
# MeiliSearch will throw an error and refuse to launch if no master key is provided,
# or if it is under 16 bytes. MeiliSearch will suggest a secure autogenerated master key.
# Using docker, it seems recognized as production so use a secure key.
# This is a ready made secure key for docker-compose, you can replace it with your own.
MEILI_MASTER_KEY=DrhYf7zENyR6AlUCKmnz0eYASOQdl6zxH7s7MKFSfFCt

##########################
# User System:
##########################

# Google:
# Add your Google Client ID and Secret here, you must register an app with Google Cloud to get these values
# https://cloud.google.com/
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
GOOGLE_CALLBACK_URL=/oauth/google/callback

#JWT:
JWT_SECRET_DEV=secret

# Add a secure secret for production if deploying to live domain.
JWT_SECRET_PROD=secret

# Set the expiration delay for the secure cookie with the JWT token
# Delay is in millisecond e.g. 7 days is 1000*60*60*24*7
SESSION_EXPIRY=1000 * 60 * 60 * 24 * 7

# Site URLs:
# Don't forget to set Node env to development in the Server configuration section above
# if you want to run in dev mode
CLIENT_URL_DEV=http://localhost:3090
SERVER_URL_DEV=http://localhost:3080

# Change these values to domain if deploying:
CLIENT_URL_PROD=http://localhost:3080
SERVER_URL_PROD=http://localhost:3080

/client/.env
###########################
# Server URL configuration:
###########################

# The social login domain uses this to redirect to localhost:3080 when you run the app in dev mode with Vite.
# Use your domain name as the Prod URL when you deploy the app to a live domain.
# Please note that:
# Social login features will not work if you run the build version on port 3080 locally after modifying the Prod URL
VITE_SERVER_URL_DEV=http://localhost:3080
VITE_SERVER_URL_PROD=http://localhost:3080

# Enable Social Login
# This enables/disables the Login with Google button on the login page.
# Set to true if you have registered the app with google cloud services
# and have set the GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET in the /api/.env file
VITE_SHOW_GOOGLE_LOGIN_OPTION=false

Am I the wrong configuration?

Hi @voctot,
Thank you for reaching out to us. I'm sorry to hear that the user login system is not working as expected. I would like to get more information to help resolve the issue.
Based on the information you provided, it seems that the user login system was set up according to our document, but is not working. However, I am unable to understand the specific issue that you are facing. Could you please provide more details about the error message or behaviour you are seeing when trying to use the login system?
Also, can you confirm that the .env file you shared is the correct and complete file? If possible, could you provide a screenshot of the error message or any other details that might help me understand the issue better?
Once I receive the additional information, I will work on identifying the root cause of the issue and provide you with a resolution.
Best regards,
David (Developer & Sponsor)

I can't provide error information because it runs without errors. When I started it with docker, I went directly to the home page and was not intercepted by login.

I can't provide error information because it runs without errors. When I started it with docker, I went directly to the home page and was not intercepted by login.

Can you share your docker-compose file? Also pull latest before trying again, the docker image had not been updated with the user system update, and I've also set to build from local as default.

Here is my docker-compose file
version: "3.4"

services:
  # client:
  #   image: nginx-client
  #   build:
  #     context: .
  #     target: nginx-client
  #   restart: always
  #   ports:
  #     - 3080:80
  #   volumes:
  #     - /client/node_modules
  #   depends_on:
  #     - api
  api:
    container_name: chat-clone
    ports:
      - 3080:3080               # Change it to 9000:3080 to use nginx
    depends_on:
      - mongodb
    # image: node-api            # Uncomment this to build from local file
    # build:
    #   context: .
    #   target: node-api
    image: chatgptclone/app:0.3.3 # Comment this & uncomment above to build from local file
    restart: always
    env_file:
      - ./api/.env
    environment:
      - HOST=<IP_ADDRESS>
      - NODE_ENV=production
      - MONGO_URI=mongodb://mongodb:27017/chatgpt-clone
      # - CHATGPT_REVERSE_PROXY=http://host.docker.internal:8080/api/conversation # if you are hosting your own chatgpt reverse proxy
      - MEILI_HOST=http://meilisearch:7700
      - MEILI_HTTP_ADDR=meilisearch:7700
    volumes:
      - /client/node_modules
      - ./api:/api
      - /api/node_modules
  mongodb:
    container_name: chat-mongodb
    ports:
      - 27018:27017
    image: mongo
    restart: always
    volumes:
      - ./data-node:/data/db
    command: mongod --noauth
  meilisearch:
    container_name: chat-meilisearch
    image: getmeili/meilisearch:v1.0
    ports:
      - 7700:7700
    env_file:
      - ./api/.env
    environment:
      - MEILI_HOST=http://meilisearch:7700
      - MEILI_HTTP_ADDR=meilisearch:7700
    volumes:
      - ./meili_data:/meili_data

你好@voctot， 我了解到您遇到了系统错误。但是，如果没有任何具体信息或错误日志，我将很难确定问题的根本原因并提供任何有用的指导。
为了更好地帮助您，能否请您提供有关您遇到的错误的更多详细信息？任何导致错误的错误消息、错误代码或特定步骤都会有所帮助。此外，如果您可以共享任何相关的日志或屏幕截图，这对于诊断问题也非常有用。
-- 大卫（开发者和赞助商）

Hi @voctot, Thank you for reaching out to us. I'm sorry to hear that the user login system is not working as expected. I would like to get more information to help resolve the issue.
Based on the information you provided, it seems that the user login system was set up according to our document, but is not working. However, I am unable to understand the specific issue that you are facing. Could you please provide more details about the error message or behaviour you are seeing when trying to use the login system?
Also, can you confirm that the .env file you shared is the correct and complete file? If possible, could you provide a screenshot of the error message or any other details that might help me understand the issue better?
Once I receive the additional information, I will work on identifying the root cause of the issue and provide you with a resolution.
Best regards, David (Developer & Sponsor)
Clicking to log in cannot trigger the login interface, this is the log output

image: chatgptclone/app:0.3.3 # Comment this & uncomment above to build from local file

Yes, this is the issue here. If you git clone again or pull the latest changes, your docker-compose will build from the local files.
Alternatively, you can simply update it to the latest image

image: chatgptclone/app:0.4.0

image: chatgptclone/app:0.3.3 # Comment this & uncomment above to build from local file

Yes, this is the issue here. If you git clone again or pull the latest changes, your docker-compose will build from the local files.
Alternatively, you can simply update it to the latest image

image: chatgptclone/app:0.4.0

Great, now there is a login system, thank you。

 Glad to help


v1.26 adoption

What this PR does / why we need it:
Which issue this PR fixes(if applicable):
fixes #2051

update to k8s 1.26 as dependency
fix k8s.io/apimachinery/pkg/util/sets string type deprecation lead to warning
other warnings related to code style
ignore a manila test temply
replace corev1.LoadBalancerStatus with networkingv1.IngressLoadBalancerStatus
git version string lead to CI issue

Special notes for reviewers:

Release note:

NONE

/test openstack-cloud-csi-cinder-e2e-test

/test openstack-cloud-controller-manager-e2e-test

/test openstack-cloud-controller-manager-e2e-test

/test openstack-cloud-csi-cinder-e2e-test

/test openstack-cloud-csi-cinder-e2e-test

/test openstack-cloud-csi-manila-e2e-test

@gman0 looks like manila test keep failed due to
after I upgrade to 1.26 (I didn't do direct update on the code logic of manila, only minor param change)
can you help provide some insight or we might want to skip this test for now and continue the 1.26
and open issue to track?
Summarizing 1 Failure:
  [FAIL] [sig-storage] [manila-csi-e2e] CSI Volumes [Driver: nfs.manila.csi.openstack.org] [Testpattern: Dynamic PV (default fs)] provisioning [It] should provision storage with snapshot data source [Feature:VolumeSnapshotDataSource]

@ramineni @gman0 I updated the test to temply skip the failed manila case
we can open issue to track to add it back

@jichenjc Im ok with merging ahead this PR. But the bug has to be tracked as release blocking ?, IIUC manila driver would have broken snapshot functionality if released without the fix?

But the bug has to be tracked as release blocking

agree, I will wait for a few days then merge this if we can't fix in short term and open an issue to track for release blocker

Sorry for the delay, I'll work on this today/tomorrow.

/retest openstack-cloud-csi-manila-e2e-test

/test openstack-cloud-csi-manila-e2e-test

@gman0 the test case is skipped right now , so you might not find the failed logs

Ah I didn't notice the push.

I think we can merge this and let's create a new issue to track/revert the skip?
not sure the effort and time needed for this , thoughts?

I'm fine with both as long as the release is cut once we fix this.

@ramineni @gman0 can you help merge this? I will open another issue and assign to @gman0 to help


[CDS-101882]: Document Update Release Repo/ Revert PR step concurrent execution lim…

…itation
Thanks for contributing to the Harness Developer Hub! Our code owners will review your submission.
Description
Document Update Release Repo/ Revert PR step concurrent execution limitation.
Context - Only a single UpdateReleaseRepo/Revert PR step can be executed at a time per github token reference. If there is another step, it will wait for the completion of the execution of the first step.

Please describe your changes: __________________________________
Jira/GitHub Issue numbers (if any): ______________________________
Preview links/images (Internal contributors only): __________________

PR lifecycle
We aim to merge PRs within one week or less, but delays happen sometimes.
If your PR is open longer than two weeks without any human activity, please tag a code owner in a comment.
PRs must meet these requirements to be merged:

[ ] Successful preview build.
[ ] Code owner review.
[ ] No merge conflicts.
[ ] Release notes/new features docs: Feature/version released to at least one prod environment.

Please check the Execution Link of the Pipeline for the Website Draft URL. This is located in the Preview Step behind the Harness VPN and also is available in #hdh_alerts. E.g Website Draft URL: https://unique-id--harness-developer.netlify.app. Current Draft URL is: https://670eb9f27d9bda407d91dcff--harness-developer.netlify.app


DI docs page update

Since no one made any remarks on my changes. Im doing the PR. Still not completely happy with it. So I might update it again in the future.

#7


update configuration files and tutorials

Update all example and test configration files as well as tutorials:

[ ] don't use config.utils; use e.g. dataset.load_from_files instead of config.utils.dataset_from_files
[ ] don't use vocabulary.initialize_vocabulary, use vocabulary.from_dataset

vocabulary.initialize_vocabulary does one of two things: either vocabulary.from_dataset or vocaulary.from_file, depending on existence of a file whose name is inferred from the directory and name arguments... So you have to think a little before doing the change.


PHI, PCI, ...

Support the typical flags that are used to classify info in terms of privacy.

PII Personally Identifiable Information (already supported)
PHI Protected Health Information
NPI Nonpublic Personal Information
PCI Payment Card Industry

Do you have some authoritative sources for these classifications that we link to as a definition?


Implement export to local file

Implement EXPORT statement to export data into a local file.

Shelved, because not in roadmap focus.