feat(ui): add table pagination PE-847

This PR adds pagination to the data table used for the desktop drive detail view. To meet the requirements for this ticket, it was necessary to copy and modify the source for the PaginatedDataTable flutter provides. It wasn't possible to do this in a more OOP way because I needed to take out a widget (Card) from the original hierarchy and add support for pages.
By default PaginatedDataTable doesn't have any concept of a page instead only showing a specific view of the list of rows. So, paging had to be added by calculating the current page and total page count from the current row, total rows and rows per page parameters from the PaginatedDataTableSource class.

Also, would you take care of the merging conflicts with the base branch?


Please provide instructions on how to use the data set with the code.

Please provide instructions on how to use the data set with the code.

I am also confused about how to apply the model to the actual datasets .

Me too, I'm also confused about how to apply the model to the dataset provided by the website, could you please provide some instructions?

to use this code with real data + python 3.6 try this fork:
https://github.com/DeepVivo/decagon


What is the right structure for application ?

My structure:
db

models
-- Logs.js
connect.js
insert.js
knexConfig.js

router.js
knexConfig.js - configure file
module.exports = {
  client: 'mysql2',
  useNullAsDefault: true,
  connection: {
    host : '...',
    port: '...',
    user : '...',
    password : '...',
    database : '...'
  }
};

connect - file configure connect to db
const Knex = require('knex');
const knexConfig = require('./knexConfig');

const knex = Knex(knexConfig);

module.exports = {
  knex
};

insert - function to insert row
const { Logs } = require('./models/Logs');
const { Model } = require('objection');
const { knex } = require('./connect');

const insertLog = async function insert(...) {
  try {
    Model.knex(knex);

    await Logs.query().insert({
      ...
    });
  } catch (e) {
    console.log(e);
  }
};

module.exports = {
  insertLog
};

Logs.js
const { Model } = require('objection');

class Logs extends Model {
  static get tableName() {
    return 'logs';
  }
}

module.exports = {
  Logs
};

Call function insert in routes
const {insertLog} = require('./db/insert');
const {knex} = require('./db/connect');
...
      await insertLog(
        req.body.level,
        req.body.info.name,
        req.body.info.message,
        req.body.info.fileName,
        req.body.info.lineNumber,
        req.body.info.columnNumber,
        req.body.info.stack
      )
      .then(() => knex.destroy())
      .catch((e) => {
        console.log(e);
        return knex.destroy();
      });
...

The first request works, but the nuxt doesn't work with error.
Error: Unable to acquire a connection

How to reopen connect with MySQL ?

Objection doesn't care about the file structure. Anything goes.
One note: You should only ever call Model.knex(knex); once during the lifetime of the app. You are doing it every time you use the model.

Also, you are destroying knex each time so that's why the second query fails :smile:


Maven execution stops at middle while creating new project

Expected Behaviour
The project should ve created by maven after running the below command with cloud
mvn -B archetype:generate \
 -D archetypeGroupId=com.adobe.granite.archetypes \
 -D archetypeArtifactId=aem-project-archetype23 \
 -D archetypeVersion=23 \
 -D aemVersion=cloud \
 -D appTitle="My AEM Cloud01" \
 -D appId="myaemcloud01" \
 -D groupId="com.aem" \
 -D frontendModule=general \
 -D includeExamples=y

Actual Behaviour
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------< org.apache.maven:standalone-pom >-------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] >>> maven-archetype-plugin:3.1.2:generate (default-cli) > generate-sources @ standalone-pom >>>
[INFO]
[INFO] <<< maven-archetype-plugin:3.1.2:generate (default-cli) < generate-sources @ standalone-pom <<<
[INFO]
[INFO]
[INFO] --- maven-archetype-plugin:3.1.2:generate (default-cli) @ standalone-pom ---
[INFO] Generating project in Batch mode
[WARNING] Archetype not found in any catalog. Falling back to central repository.
[WARNING] Add a repository with id 'archetype' in your settings.xml if archetype's repository is elsewhere.
[INFO] Downloading from central: https://repo.maven.apache.org/maven2/com/adobe/granite/archetypes/aem-project-archetype23/23/aem-project-archetype23-23.pom
[WARNING] The POM for com.adobe.granite.archetypes:aem-project-archetype23:jar:23 is missing, no dependency information available
[INFO] Downloading from central: https://repo.maven.apache.org/maven2/com/adobe/granite/archetypes/aem-project-archetype23/23/aem-project-archetype23-23.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  05:22 min
[INFO] Finished at: 2020-04-13T12:28:07+05:30
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:3.1.2:generate (default-cli) on project standalone-pom: The desired archetype does not exist (com.adobe.granite.archetypes:aem-project-archetype23:23) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

Reproduce Scenario (including but not limited to)
Steps to Reproduce
Platform and Version
MAC OS Catelina 10.15.4
Apache Maven 3.6.2
npm --version
6.13.7
node --version
v13.8.0
java --version
java 11.0.5 2019-10-15 LTS
Sample Code that illustrates the problem
mvn -B archetype:generate \
 -D archetypeGroupId=com.adobe.granite.archetypes \
 -D archetypeArtifactId=aem-project-archetype23 \
 -D archetypeVersion=23 \
 -D aemVersion=cloud \
 -D appTitle="My AEM Cloud01" \
 -D appId="myaemcloud01" \
 -D groupId="com.aem" \
 -D frontendModule=general \
 -D includeExamples=y

Logs taken while reproducing the problem
Please look above the actual result.
Do let me know any further details are required.

 -D archetypeArtifactId=aem-project-archetype23 \ should be just  -D archetypeArtifactId=aem-project-archetype \

@srikanta72 , did updating the artifact id solve your issues?

Hi Team,
I am still facing some issues because it gets stuck after the below step for a long time. Not moving to next for a long time. I will try a couple of times this week, if it doesn't work I will continue with the archetype-22. Please check whether this archetype is completely and correctly working in every scenario.
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------< org.apache.maven:standalone-pom >-------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] >>> maven-archetype-plugin:3.1.2:generate (default-cli) > generate-sources @ standalone-pom >>>
[INFO]
[INFO] <<< maven-archetype-plugin:3.1.2:generate (default-cli) < generate-sources @ standalone-pom <<<
[INFO]
[INFO]
[INFO] --- maven-archetype-plugin:3.1.2:generate (default-cli) @ standalone-pom ---
[INFO] Generating project in Batch mode
Waited almost 15 min still it's stuck.

Do let me know what could be the problem. I do not have any settings.xml inside user/m2/repository folder

I tried with Eclipse as well which is not working. Please look at the screenshot provided above.

I had the same error, or at least the same exact errors from maven. What solved it for me was to add the repository profile to my settings.xml in my .m2 folder from https://helpx.adobe.com/experience-manager/kb/SetUpTheAdobeMavenRepository.html
Now this alone did not fix it. Even after I added that it wasn't picking that profile to pull the resources needed to generate the project from their repo.
I noticed this line
<activation>         <activeByDefault>false</activeByDefault>       </activation>
And changed it to:
<activation>         <activeByDefault>true</activeByDefault>       </activation>
And it worked! Try that and see if that fix it for you. Trying to determine if this is something they messed up on that adobe help article or particular to my local.

After reading a little, instead of changing the activateByDefault flag from false to true, you can add to your command mvn command -P adobe-public
In your example that would look like:
mvn -B archetype:generate -P adobe-public -D archetypeGroupId=com.adobe.granite.archetypes -D archetypeArtifactId=aem-project-archetype -D archetypeVersion=23 -D aemVersion=cloud -D appTitle="My AEM Cloud01" -D appId="myaemcloud01"  -D groupId="com.aem" -D frontendModule=general -D includeExamples=y

The issue persists till today,
PFA the screenshot.

@srikanta72 , did you follow the advice above to configure the Adobe Maven repository and enable the associated profile?

I tried the below

https://github.com/adobe/aem-project-archetype/issues/370#issuecomment-612951754
https://github.com/adobe/aem-project-archetype/issues/370#issuecomment-618733473

What I've not tried:
I did not add any settings.xml or I deleted the existing one in my m2 folder, so that I'll be sure the project should be able to create with default settings.
Am I the only one getting this issue or others are also getting this?
I checked with one of my colleague that he's also getting the similar issue.
Please let me know if the issue is specific to me, I'll try to research on system of any fix is available.
Even I tried Eclipse plugin also there was an issue as I commented earlier.
Hope I'll get a good stable fix to go with my practice project.

If you see my last screenshot, I did not change anything in the command and tried to run the exact command given in archetype documentation and still it doesn't work.

Hi team, I just got the below command from my colleague which is working. However, the below command takes the aemVersion=6.5.0 by default and asks for other parameter values (I guess interactive mode).
mvn org.apache.maven.plugins:maven-archetype-plugin:2.4:generate \
-DarchetypeGroupId=com.adobe.granite.archetypes \
-DarchetypeArtifactId=aem-project-archetype \
-DarchetypeVersion=23 \
-DarchetypeCatalog=https://repo.adobe.com/nexus/content/groups/public/

Please fix the given documentation in aem-archetype and make sure that should be working with the given instruction.

@srikanta72 , adding -DarchetypeCatalog=https://repo.adobe.com/nexus/content/groups/public/ is equivalent to https://helpx.adobe.com/experience-manager/kb/SetUpTheAdobeMavenRepository.html . Setting up the Maven environment is a mandatory stept, which you did not do, an documented at https://github.com/adobe/aem-project-archetype#system-requirements.
Will close this; I'm glad you found an alternate solution, but I respectfully suggest you do add the proper configuration, it will help later on too.

Hi @vladbailescu thanks for closing this with appropriate reason. I'm adding the below link which tells setting up settings.xml is must in m2 folder and will help others who will visit this issue.
Following the below adobe doclink to fix the issue:
https://docs.adobe.com/content/help/en/experience-manager-learn/cloud-service/local-development-environment-set-up/development-tools.html

Hello,
Here my small contribution. Using https://repo.adobe.com/, when creating a project with the version 23, I had this error (already reported):
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:3.2.0:generate (default-cli) on project standalone-pom: The desired archetype does not exist (com.adobe.granite.archetype:aem-project-archetype:23) -> [Help 1]

Reading this issue, I just noticed that in the README.md file (https://github.com/adobe/aem-project-archetype) says:
Note: To run above command with older versions, you have to use the old archetypeGroupId: -D archetypeGroupId=com.adobe.granite.archetype
Actually, it should say (the "s" is missing :) )
Note: To run above command with older versions, you have to use the old archetypeGroupId: -D archetypeGroupId=com.adobe.granite.archetypes
and it works! :)


refactor(network): change streamed_data to streamed_bytes

refactor(network): move code around
refactor(network): change streamed_data to streamed_bytes

This change is

Current dependencies on/for this PR:

main

PR #1719   👈

PR #1723

This stack of pull requests is managed by Graphite.


Failed prop type?

Hi,
I got this warning while implementing a simple masonry using react-native-masonry. Did anyone encounter this warning as well? How could I fix it?
Warning: Failed prop type: Invalid prop defaultComponent of type object supplied to Injector, expected function.
in Injector (at Brick.js:40)
in Brick (at Column.js:112)
in RCTView (at View.js:44)
in CellRenderer (at VirtualizedList.js:687)
in RCTScrollContentView (at ScrollView.js:852)
in RCTScrollView (at ScrollView.js:977)
in ScrollView (at VirtualizedList.js:1062)
in VirtualizedList (at FlatList.js:662)
in FlatList (at Column.js:130)
in RCTView (at View.js:44)
in Column (at Masonry.js:209)
in StaticRenderer (at ListView.js:456)
in RCTScrollContentView (at ScrollView.js:852)
in RCTScrollView (at ScrollView.js:977)
in ScrollView (at ListView.js:324)
in ListView (at Masonry.js:200)
in RCTView (at View.js:44)
in Masonry (at Gallery.js:68)
in RCTView (at View.js:44)
in Gallery (created by SceneView)
in SceneView (at StackViewLayout.js:795)
in RCTView (at View.js:44)
in AnimatedComponent (at StackViewCard.js:69)
in RCTView (at View.js:44)
in AnimatedComponent (at screens.native.js:59)
in Screen (at StackViewCard.js:57)
in Card (at createPointerEventsContainer.js:27)
in Container (at StackViewLayout.js:860)
in RCTView (at View.js:44)
in ScreenContainer (at StackViewLayout.js:311)
in RCTView (at View.js:44)
in AnimatedComponent (at StackViewLayout.js:307)
in Handler (at StackViewLayout.js:300)
in StackViewLayout (at withOrientation.js:30)
in withOrientation (at StackView.js:79)
in RCTView (at View.js:44)
in Transitioner (at StackView.js:22)
in StackView (created by Navigator)
in Navigator (at createKeyboardAwareNavigator.js:12)
in KeyboardAwareNavigator (created by SceneView)
in SceneView (at createTabNavigator.js:39)
in RCTView (at View.js:44)
in RCTView (at View.js:44)
in ResourceSavingScene (at createBottomTabNavigator.js:113)
in RCTView (at View.js:44)
in ScreenContainer (at createBottomTabNavigator.js:103)
in RCTView (at View.js:44)
in TabNavigationView (at createTabNavigator.js:197)
in NavigationView (created by Navigator)
in Navigator (at createAppContainer.js:388)
in NavigationContainer (at withExpoRoot.js:22)
in RootErrorBoundary (at withExpoRoot.js:21)
in ExpoRootComponent (at renderApplication.js:34)
in RCTView (at View.js:44)
in RCTView (at View.js:44)
in AppContainer (at renderApplication.js:33)

Can I see how you are invoking the Masonry component, along with your dataset?

Thanks for the quick response brh55,
Since I'm still working on the frontend, I simply created some fake data following the structure shown in README.
The code is as follows:
class Gallery extends Component{
constructor(props){
super(props);
this.state= {
galleryList:[]
}
}
static navigationOptions = { header: null }
async componentDidMount(){
    const galleryList = [
        {data:{name:"Will Smith",similarity:"60%"},uri:"http://www.gstatic.com/tv/thumb/persons/1650/1650_v9_ba.jpg"},
        {data:{name:"Pikachu",similarity:"50%"},uri:"http://p1.pstatp.com/large/212f000013ad64823987"},
    ];

    galleryList.map(function(item,index){ // Add key and renderFooter function to bricks.
        item.key = index;
        item.renderFooter = (data) =>{
            return(
            <View style={styles.item}>
                <Text style={styles.name}>{data.name}</Text>
                <Text style={styles.name}>{data.similarity}</Text>
                <Text style={styles.name}>similarity</Text>
            </View>)
        }
    })

    this.setState({galleryList});
}

render(){
    return(
        <View style={styles.container}>
            <Masonry
                columns={4}
                bricks={this.state.galleryList}
                spacing= {3}
            />
        </View>
    )
}

}
export default Gallery;

@RyanKeepRunning .map doesn't mutate the exisitng array, you'll need to set it into it's own variable, or reassign.
    var galleryList = [
        {data:{name:"Will Smith",similarity:"60%"},uri:"http://www.gstatic.com/tv/thumb/persons/1650/1650_v9_ba.jpg"},
        {data:{name:"Pikachu",similarity:"50%"},uri:"http://p1.pstatp.com/large/212f000013ad64823987"},
    ];

    galleryList = galleryList.map(function(item,index){ // Add key and renderFooter function to bricks.
        item.key = index;
        item.renderFooter = (data) =>{
            return(
            <View style={styles.item}>
                <Text style={styles.name}>{data.name}</Text>
                <Text style={styles.name}>{data.similarity}</Text>
                <Text style={styles.name}>similarity</Text>
            </View>)
        }
    })

    this.setState({galleryList});
}

Thanks for the suggestion brh55.  However, after modifying my code accordingly, I found I'm still triggering the same warning (using expo). Then I deleted almost everything to make the code exactly the same as the instruction in README, the warning still exists. Are there any problems with defaultComponent and Injector?

The code is shown below. I can't find any difference between the current code and the given example.
`
import React,{Component} from 'react';
import {
StyleSheet,
Text,
View,
} from 'react-native';
import Masonry from 'react-native-masonry';
class Gallery extends Component{
constructor(props){
super(props);
}
static navigationOptions = { header: null }
async componentDidMount(){
}

render(){
    var galleryList = [
        {
            data:{
                caption:"Will Smith"
            },
            uri:"http://www.gstatic.com/tv/thumb/persons/1650/1650_v9_ba.jpg",
            renderFooter:(data)=>{
                return(
                    <View style={styles.item}>
                        <Text style={styles.name}>{data.caption}</Text>
                    </View>
                );
            }
        },
    ];
    return(
        <View style={styles.container}>
            <Masonry
                columns={3} // optional - Default: 2
                bricks={galleryList}
                spacing= {3}
            />
        </View>
    )
}

}
const styles = StyleSheet.create({
container:{
flex:1,
backgroundColor:'#c0e2f7',
padding:10
},
item:{
backgroundColor: 'white',
padding: 3,
paddingRight: 4,
paddingLeft: 4,
alignItems: 'center',
}
,
name:{
lineHeight: 20,
fontSize: 16,
}
});
export default Gallery;
`

@RyanKeepRunning Yeah I figured that wouldn't fix the warning, but at least we have the masonry rendering for you.
For the warning, it seems the injector is getting complaints with the prop type, so I'll update the dependency and bump minor version.

Thank you so much for your help. Looking forward to the updated version.

Hey @RyanKeepRunning ,
Try pulling in the latest and see if this keeps the warnings at bay.

Now I'm running my application on Android, and I got this error when I tried to run this very basic example.

`import React,{Component} from 'react';
import {
StyleSheet,
View,
} from 'react-native';
import Masonry from 'react-native-masonry';
class Gallery extends Component{
constructor(props){
super(props);
}
static navigationOptions = { header: null }
async componentDidMount(){
}
render(){
    let galleryList=[
        {uri:"http://p1.pstatp.com/large/212f000013ad64823987"}
    ];
    return(
        <View>
            <Masonry
                columns={4}
                bricks={galleryList}
                spacing= {3}
            />
        </View>
    )
}

}
export default Gallery;`

I also saw the same issue in other thread, does android app need extra configuration in order to use react-native-mansory?
https://github.com/brh55/react-native-masonry/issues/105

Sorry been trying to set up my Android environment but running through several issues that keep burning my patience. I don't get to allocate too much time on this project as I would like due to other personal constraints, but hoping we can get some contributors to help out.


Perform incrementally misdirected memory access to narrow down tile/color palette VGA issue

VGA video dropping entirely with current wip/video/vga vga.spin code as of commit bca37a7fc0f61dbfe6b39d387e2ab001ae3f2507.
Start by trying to directly access color palette and go from there.

Issues fixed with commit 9e7ead5c21c01ada62f194a305cbc3deedda6113. Issue was par passed to cog is the address of the address of the start of the tile/color resources. So needed to perform rdlong to retrieve the actual addresses of the resources.


OHIF-298: Fix dropdown color in win browsers

PR Checklist

[ ] Brief description of changes
[ ] Links to any relevant issues
[ ] Required status checks are passing
[ ] User cases if changes impact the user's experience
[ ] @mention a maintainer to request a review

This breaks sticky header


ModuleNotFoundError: No module named 'fastgedcom.family_aid'

pip3.11 list | grep fastgedcom
fastgedcom                    0.0.3

line 1, in <module>
    from fastgedcom.family_aid import FamilyAid
ModuleNotFoundError: No module named 'fastgedcom.family_aid'

Sorry confused, by not matching the examples on GitHub and the older version on PyPI

Suggestions:

tag your code with the release version
post releases it will be great

It will be easy to follow your changes.

I apologize, it is my first package. And I am very happy you're contacting me and sharing interest in my project!
In version 0.0.3, I find it normal that there is no FamilyAid. It was still part of the main Gedcom class. The package was still at an early stage and I wanted to change some of the names, and the structure. Like our subject, the separation between the main class, now called Document, and the class around relatives, FamilyAid, those changes break the user code.
In the brand-new version 0.0.4, your problem should be fixed. I'll let you tell me if there is a new issue. I have passed the package from pre-alpha to alpha to highlight that package, class and method names should not change much more in the future.

As you advise, I tagged the version releases. And I will work for next version on a separated branch to help people who use the library and visit this repo looking for information.

Add doc with a version number
I am not sure what you're asking. I'm looking for a practical way to build documentation from code. The version of documentation produced should then match the version of the library.

Example or helper to define is a person is dead even if we are missing the date

I don't know what people are looking for. I was thinking of adding some examples but I need some use cases.
That should do what you want: (with version 0.0.4)
from fastgedcom.base import is_true, Record

def is_dead(indi: Record) -> bool:
	return is_true(indi > "DEAT")

Ability to start the family exploration from a root

If I understand your request correctly, it is already the case.
All root elements are accessible via the Document class (previously the Gedcom class). Such as "HEAD", individuals, families, sources, ...
document["@F1@"]
# or, for the exact same thing
document.get_record("@F1@")

x

Add doc with a version number

I am not sure what you're asking. I'm looking for a practical way to build documentation from code. The version of documentation produced should then match the version of the library.

https://gedcom.nickreynke.dev/gedcom/index.html (doc dedicate page, you can use different Python tools for doc)
https://pandas.pydata.org/pandas-docs/version/2.0.0/ (doc with a version number, to avoid confusion)


mix deps.compile not working

I've latest nodejs version 15.14.0. I've created new phoenix project by mix phx.new hello --no-webpack.
Then, I created assets folder.

Inside the assets, I run npm install chrome-headless-render-pdf puppeteer. And added { :pdf_generator, ">=0.6.2", compile: "make chrome" } in mix.exs.
mix deps.get pdf_generator - It's working fine
mix deps.compile pdf_generator - When i run this command. I'm getting this error
make: *** No rule to make target 'chrome'.  Stop. ** (Mix) Could not compile dependency :pdf_generator, "make chrome" command failed. You can recompile this dependency with "mix deps.compile pdf_generator", update it with "mix deps.update pdf_generator" or clean it with "mix deps.clean pdf_generator"

As mentioned ReadMD, I've changed the {:pdf_generator, "~> 0.6.2", github: "gutschilla/elixir-pdf-generator", compile: "make chrome"} it in mix.exs. After that, I've cleaned the deps and mix deps.get and I've compiled the code by mix deps.compile pdf_generator. Now, I'm getting this error make: *** No rule to make target 'config/prod.exs', needed by '_build/prod'.  Stop. ** (Mix) Could not compile dependency :pdf_generator, "make chrome" command failed. You can recompile this dependency with "mix deps.compile pdf_generator", update it with "mix deps.update pdf_generator" or clean it with "mix deps.clean pdf_generator"

I've tried another one method also, removed make chrome from the mix.exs as { :pdf_generator, ">=0.6.0" }. And  installed chromium apt-get install -y chromium-chromedriver. Now, mix deps.compile pdf_generator was working fine. But, when i run PdfGenerator.generate(url, generator: :chrome, prefer_local_executable: true). I'm getting this error {:error, {:generator_failed, "node:internal/modules/cjs/loader:927\n  throw err;\n  ^\n\nError: Cannot find module '/home/yasir/hello/_build/dev/lib/pdf_generator/priv/node_modules/chrome-headless-render-pdf/dist/cli/chrome-headless-render-pdf.js'\n    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:924:15)\n    at Function.Module._load (node:internal/modules/cjs/loader:769:27)\n    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:76:12)\n    at node:internal/main/run_main_module:17:47 {\n  code: 'MODULE_NOT_FOUND',\n  requireStack: []\n}\n"}}

It's Working with this configuration for me.
Add {:pdf_generator, "~> 0.6.2", github: "gutschilla/elixir-pdf-generator"} in to mix.exs
then run mix deps.clean pdf_generator && mix deps.get pdf_generator && mix deps.compile && mix deps.compile pdf_generator
install chromium apt-get install -y chromium-chromedriver
I was using no-webpack project. So, I've created assets folder in root project directory
cd assets and npm install chrome-headless-render-pdf puppeteer
Now go back to project root directory. Go into the deps/pdf_generator/ then run make priv/node_modules. Finally, pdf generation working with this steps.

What i was doing wrong in 1,2 and 3 procedure?
In 4th procedure, why i need run that make command inside the deps(Correct me, if I am doing anything wrong).

I can't speak to every detail of this issue, but I believe that the error noted in point 2 is a result of the removal of config/prod.exs that was introduced in https://github.com/gutschilla/elixir-pdf-generator/pull/74

Hey, this library is in need of an update. Will do


New example with a unselectable radio element

Usually if we want to display a radio element we use the react aria radio group. However often we need the ability to unselect a radio element. This however is not a valid HTML behavior since you cannot unselect a radio element.
To make this work one need to use the react aria checkbox group component and style it as a radio element.
Here is a video example:
https://github.com/user-attachments/assets/fd3297b3-3c70-42a3-ae8c-6497af08b93c
To do this I've expanded the Checkbox from the tailwindExample to accpet a renderAs prop which allows me to render radioStyles instead of checkbox styles.

Thanks for this. Im not sure I would want to implement this / show this as an example as it does go against the web practices that React Aria Components, and my library aim to follow.
Thanks for showing your demo though as others can find this if they run into the same issue. Also to the others, If you think this is an example worth putting on the documentation, do let me know and maybe I will reconsider if enough people have this demand.
For others reference on the web standard:

At all times, exactly one of the radio buttons in a set is checked. If none of the elements of a set of radio buttons specifies `CHECKED', then the user agent must check the first radio button of the set initially.

https://www.w3.org/TR/html401/interact/forms.html#radio


Add ability to pick random value from array

Returns a random value from the target array.
var array: Array[int] = [1, 2, 3, 4]
print(array.pick_random())  # Prints either of the four numbers.

Implements: https://github.com/godotengine/godot-proposals/issues/3454

Alternative PR: #65077.

pick_random is an intuitive name, but just to let you know, other language or libraries call a similar method sample

Math::rand() is not the only way of getting a random number, by default Godot picks a not so random number generator.

@nonunknown If you can update the docs to insert the new method's docs at the right place alphabetically, instead of the current place so CI passes, we can merge this. You can ping me once you updated it :)

@mhilbrunner I have a serious problem with commit squashing, so if I can have support for squashing I can do this now!

@nonunknown Sure, I can help you on RC or otherwise just squash the commits for you.

I've checked https://github.com/godotengine/godot/pull/54940 and seems it doesnt interfere on this PR anymore, so this can be approved without worries!

Thanks! 🎉

May you bring this to 3.x?

Is there any chance PackedStringArray and the others get pick_random() as well?
Don't know if it's intended but they don't inherit it from Array.


[Experiment] Store and evaluate package version ranges

Add a table VulnerablePackageVersionRange
This table stores version less purl string and a FK of vulnerability
Added manager method which on given  a purl string which does not exist in the db
tries to find whether it satisfies a version  range, if yes then that vulnerability is returned

Signed-off-by: Shivam Sandbhor<EMAIL_ADDRESS>

@pombredanne  Thanks for the review.
What kind of  cases should be covered by these tests ?
Re. naming  no strong opinions  here but IMHO requirement isn't as intuitive as version_ranges .

@pombredanne Thanks for the review.
What kind of cases should be covered by these tests ?
Re. naming no strong opinions here but IMHO requirement isn't as intuitive as version_ranges

I am fine with version_ranges. The key is  consistency, so if you go with it, we need to adopt that in scancode-toolkit and scancode.io too. Can you also enter tickets there? (and link back here too?)


Can you provide the "binary" ?

Hi, I really like your software and I built it from visual studio 2015.  But, I am sure that lot of tech people who manage databases doesn't know anything about visual studio or c++ compilation...
For them, I think that if you provide a /binary folder with a working exe, your project will gain popularity!
Very nice to backup directly to 7z, it gives an average 4:1 ratio for our databases, like if we use "with compression" option, but we can't use "with compression" with express-web-standard editions of SQL server, so your tool really helps get smaller .BAK files directly, without intermediate.

There's a ZIP in releases https://github.com/duncansmart/sqlpipe/releases. Bear in mind that restore doesn't work currently, only backup.

Oh! I just learned something about github! I tought that the "release" tab was something else... :+1:

I updated the readme, hopefully that will help future users :-)


Incorrect animation range when using browser back button

There’s an issue when the polyfill gets loaded on pages that are at a scrollOffset that is not 0 at load. This is easily triggered when traversing the history using the browser’s back/forward buttons.

Visit page with a scroll-driven animation + the polyfill
Scroll down
Click a link to another page
Use the browser’s back button to go back to the original page.

See attached video: the mouse animation runs fine – i.e. over a correct scroll distance – but at an incorrect position in the page.
https://github.com/flackr/scroll-timeline/assets/213073/a39f9b07-632e-4173-900f-6af5a24ca819
I think https://github.com/flackr/scroll-timeline/issues/135 might be related.

I’ve narrowed the issue down to updateFinishedState getting called a few times, and it getting different values for the unconstrainedCurrentTime.
https://github.com/flackr/scroll-timeline/blob/5fab1816ad4f13e2cef3cd27ce6b243027a4970f/src/proxy-animation.js#L299-L302
Here’s a log of the reported unconstrainedCurrentTime on a page with a ViewTimeline-based animation on load, at scrollOffset 0:
[Log] unconstrainedCurrentTime: 52614.37908496733 (scroll-timeline.js, line 1)
[Log] unconstrainedCurrentTime: 52614.37908496733 (scroll-timeline.js, line 1)
[Log] unconstrainedCurrentTime: 52614.37908496733 (scroll-timeline.js, line 1)

The animation is at 52% in already because the tracked element is already halfway in view (it’s that mouse on scroll-driven-animations.style). The value for unconstrainedCurrentTime is unchanged after successive calls.
After then scrolling down, going to a different page, and then clicking the back button, this is the log:
[Log] unconstrainedCurrentTime:<PHONE_NUMBER>882353 (scroll-timeline.js, line 1)
[Log] unconstrainedCurrentTime: null (scroll-timeline.js, line 1) 👈
[Log] unconstrainedCurrentTime: 100000 (scroll-timeline.js, line 1)

For some reason, the value for unconstrainedCurrentTime becomes null after a while (flagged with a 👈 emoji in the logs above). I’ve narrowed that down to calculateCurrentTime returning null because details.startTime suddenly being null.
(Also noteworthy is that the time then gets clamped at the INTERNAL_DURATION_MS of 100000, but more on that later)
https://github.com/flackr/scroll-timeline/blob/5fab1816ad4f13e2cef3cd27ce6b243027a4970f/src/proxy-animation.js#L266-L267
See these log lines below, flagged with a 👈 emoji.
[Log] timelineTime:<PHONE_NUMBER>882353 (scroll-timeline.js, line 1)
[Log] details.startTime: null (scroll-timeline.js, line 1)
[Log] timelineTime:<PHONE_NUMBER>882353 (scroll-timeline.js, line 1)
[Log] details.startTime: null (scroll-timeline.js, line 1)
[Log] timelineTime:<PHONE_NUMBER>882353 (scroll-timeline.js, line 1)
[Log] details.startTime: 0 (scroll-timeline.js, line 1)
[Log] timelineTime:<PHONE_NUMBER>882353 (scroll-timeline.js, line 1)
[Log] details.startTime: 0 (scroll-timeline.js, line 1)
[Log] unconstrainedCurrentTime:<PHONE_NUMBER>882353 (scroll-timeline.js, line 1)
[Log] timelineTime:<PHONE_NUMBER>882353 (scroll-timeline.js, line 1)
[Log] details.startTime: null (scroll-timeline.js, line 1) 👈
[Log] unconstrainedCurrentTime: null (scroll-timeline.js, line 1) 👈
[Log] timelineTime:<PHONE_NUMBER>882353 (scroll-timeline.js, line 1)
[Log] details.startTime: 2303676.4705882353 (scroll-timeline.js, line 1)
[Log] unconstrainedCurrentTime: 100000 (scroll-timeline.js, line 1)

So, when did details.startTime become null? That’s because of the playInternal function, which has this:
https://github.com/flackr/scroll-timeline/blob/5fab1816ad4f13e2cef3cd27ce6b243027a4970f/src/proxy-animation.js#L528-L532
Aha, so the culprit is details.holdTime … where did that one get set? Well, that’s back in updateFinishedState, where I find this:
https://github.com/flackr/scroll-timeline/blob/5fab1816ad4f13e2cef3cd27ce6b243027a4970f/src/proxy-animation.js#L313-L319
The plot thickens … as that piece set the holdTime to the upperBound (from L314) which is – you’ve guessed it - INTERNAL_DURATION_MS.

OK, so that was some delving … but how to fix this? I’m not entirely familiar with the code and don’t have a good idea of what holdTime does. What I did notice is, is that when I simply comment out line 319 – to prevent details.holdTime from getting a value – fixes the bug that I’m seeing. Other attempts – by not setting details.startTime to null at certain points, didn’t cut it.

Another possible workaround – one that is much safer – is to keep the logic that clamps the holdTime to the upperBound in place, but extend the condition around it.
Since the bug only appears when loaded, we need a way to detect this … this can be done by checking the value of details.previousCurrentTime, which is null at that very moment.
- if (playbackRate > 0 && unconstrainedCurrentTime >= upperBound) {
+ if (playbackRate > 0 && unconstrainedCurrentTime >= upperBound && details.previousCurrentTime != null) {

This change should be safe, as other scenarios – where there’s always a details.previousCurrentTime – are not affected by this change.

Oh wow, trying out the fix above works … but only when I have Web Inspector open. Once I close Web Inspector, the targeted element doesn’t animate at all 🤷♂


Global function as member function.

When a global function with first argument is Object& or Object*, Can I treat is as a member function for usertype. e.g.
float Length(Vector2& vec)
{
    return sqrtf(vec.x * vec.x + vec.y * vec.y);
}

In Lua:
local vec = Vector2:new(10, 10)
local length = vec:Length()

Now I can register it as a static function for usertype.

Yes.
Can use lambda,functor,static function if first argument is same type.
state["A"].setClass(kaguya::UserdataMetatable<A>()
    .setConstructors<A()>()
    .addStaticFunction("lambdafn", [](A* self,int v){self->setValue(v);})
    );

local a = ABC.new()
a:lambdafn(3) --equal setValue(3)
a.lambdafn(a,3) --equal to above

addStaticFunction may not the best name for it situation. I prefer to addMemberFunction.

If implement addMemberFunction for global function, need first argument type check.
but it implement for C++03 is difficult.

Yes, another question:
When class has setter and getter function, can I treat it as property?
class Class
{
    void SetValue(int value);
    int GetValue() const;
};

    ...
    .addProperty("value", &Class::GetValue, &Class::SetValue)
    ...

Can not now. Try to make because it is easy.

Thinks, but as convention, it is better make getter as first argumention.
template<typename GetType, typename SetType>
		UserdataMetatable& addProperty(const char* name, GetType(class_type::*getter)()const, void (class_type::*setter)(SetType) ) {}

It's changed.

Great!, but
*/
template<typename SetType, typename GetType>
UserdataMetatable& addProperty(const char* name, GetType(class_type::*getter)()const, void (class_type::*setter)(SetType))```

First template arguments is SetType, It is misleading.


Switch to Minikube Pipa CI

What

Added a separate pipeline: https://buildkite.com/shopify/kubernetes-deploy-gem-pipa

Note it's limited to pipa branch until we merge.
Builds branches but not PRs.

Simultaneous k8s 1.6.4 and 1.7.5 CI

Todo:

[ ] make the tests pass as reliably as on the old pipeline
[ ] fix the pipeline branch filter and make sure it correctly skips PRs
[ ] Update the readme if Shopify contributors no longer need to build manually
[ ] Disable the old CI pipeline
[ ] Update the repo's required statuses

I ran test_long_running_deployment locally against a 1.7.5 cluster and it passed 100 times in a row. I've seen it flake on CI before, but never this regularly. That said, both versions were green on the latest build.


make: build without code gen by default

By default, make (or make build) only builds.
An explicit make all will additionally run all the code-generation
steps for the checked-in generated code, in the right order.
For the protobuf code generation step, the multiple bazel invocations
are combined to both improve readablity of the Makefile and the output,
and to make make run quiter.
Note that the order of the code generation steps is different than
before; previously protobuf forced itself to run before generating
go_deps.bzl -- this doesn't seem to make sense as the protobuf code
generation will never automatically affect the go.mod file. The other
way around is more conceivable, changes to go.mod propagating to
go_deps.bzl and so affecting the protobuf code generation.
Additionally, all now also includes the licenses target, just for
good measure.

This change is

/rebase


Updated raft design

Please sign your commits following these rules:
https://github.com/moby/moby/blob/master/CONTRIBUTING.md#sign-your-work
The easiest way to do this is to amend the last commit:
$ git clone -b "more" git@github.com:docker/swarmkit.git somewhere
$ cd somewhere
$ git commit --amend -s --no-edit
$ git push -f

Amending updates the existing PR. You DO NOT need to open a new one.

LGTM


Review installation instructions

You should have the Requirements section prior to the Installation one to avoid confusion.

Sorry I prefer to start the README with the "minimum" steps I think would be good enough for most cases.
Thanks for the suggestion anyway!


Changing max concurrent number programmatically

Is it possible to change the maximum number of concurrent (downloading files) at the same time?
If yes, how?
Else, Is it possible to implement it? How much time will it take?
Thanks in advance.

Currently, setting the maximum number of concurrent downloads is supported. But the final maximum number is 7.
https://github.com/jackleemeta/al_downloader_flutter/blob/fe0e97cc35ea61ce9b5e3e98e8a605ffe9db1480/lib/src/implementation/ALDownloaderIMP.dart#L1733
Usage
iOS
https://github.com/fluttercommunity/flutter_downloader/blob/master/README.md#optional-configuration

Android
https://github.com/fluttercommunity/flutter_downloader/blob/master/README.md#configure-maximum-number-of-concurrent-download-tasks


BulkUpdate updates primary key

Hi,
I am investigating of transaction log size issues on my DB (we are using SQL Server 2015) and I have found that code below updates also primary key:

public class Entity1
{
	[Key]
	[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
	public Guid ID { get; set; }; //<-- this is clustered primary key

	public string FirstName { get; set; }
	public string LastName { get; set; }
}

// suppose we have some collection of Entity1 instances which exist in DB, so theirs ID property filled with existing id from DB

var bulkConfig = new BulkConfig { PropertiesToInclude = new [] {nameof(Entity1.FirstName), nameof(Entity1.LastName)}, BatchSize = batchSize };
await context.BulkUpdateAsync(entities, bulkConfig);

await context.BulkUpdateAsync(entities, bulkConfig); generates next SQL statement:
MERGE [dbo].[Entities1] WITH (HOLDLOCK) AS T USING [dbo].[Entities1Tempd7983123] AS S ON T.[ID] = S.[ID] WHEN MATCHED THEN UPDATE SET T.[ID] = S.[ID], T.[LastName] = S.[LastName], T.[FirstName] = S.[FirstName];
The problem is that MERGE statement also updates ID key field: UPDATE SET T.[ID] = S.[ID], this update forces clustered primary key index to be recalculated, as a result these changes are put into transaction log.
The question is how can I prohibit to update ID field?
Thanks!

Fixed with 3.3.2


v0.15.0-beta1 breaks ability to render components for testing (Cannot read property 'prepareStyles' of undefined)

After upgrading from 0.15.0-alpha.2 to 0.15.0-beta.1, we have a lot of out unit tests failing with:
TypeError: Cannot read property 'prepareStyles' of undefined
      at RefreshIndicator.renderChildren (R:\Work\Github\afk-app\node_modules\material-ui\RefreshIndicator\RefreshIndicator.js:91:48)
      at RefreshIndicator.render (R:\Work\Github\afk-app\node_modules\material-ui\RefreshIndicator\RefreshIndicator.js:327:14)
      at [object Object].ReactCompositeComponentMixin._renderValidatedComponentWithoutOwnerOrContext (R:\Work\Github\afk-app\node_modules\react\lib\ReactCompositeComponent.js:679:34)
      at [object Object].ReactCompositeComponentMixin._renderValidatedComponent (R:\Work\Github\afk-app\node_modules\react\lib\ReactCompositeComponent.js:699:32)

This seems to be because all material-ui components expect this.context.muiTheme to always be defined, but when rendering components for testing, you don't always want to wrap them in a <MuiThemeProvider /> because it makes testing harder and it adds unnecessary code to the tests.
Is there any way to preserve the behaviour of alpha 2 where the theme context stays optional? ie. If it isn't set -- don't fail with an exception, but simply render the component without any styling?

AFAIK the answer is no. However, adding these codes in the RootViewController / MainViewController works fine.
// importing the required import baseTheme from 'material-ui/styles/baseThemes/lightBaseTheme'; import getMuiTheme from 'material-ui/styles/getMuiTheme';
// inside component declaration childContextTypes:{     muiTheme: React.PropTypes.object.isRequired,   },   getChildContext() {     return {muiTheme: getMuiTheme(baseTheme)};   },
Hope that helps.

@saumya is correct - that's ~2000 LOC we won't be putting back.
Since lightBaseTheme is the default, you can simplify this further to:
import getMuiTheme from 'material-ui/styles/getMuiTheme';

childContextTypes:{
  muiTheme: React.PropTypes.object.isRequired,
},
getChildContext() {
  return {muiTheme: getMuiTheme()};
},

I believe even childContextTypes is optional if you don't want to validate getMuiTheme()`

with shallowRender: rendered.render(Component, {muiTheme: getMuiTheme()});

Check out our unit tests

@alitaheri @EvNaverniouk  With shallow rendering it shouldn't matter since you aren't actually rendering the mui components. Therefore the theme is not needed.
If you're rendering full trees, provide the theme.

Ok fair enough. But I'm just curious why it required 2000 lines of code? Can't it simply be like this:
const theme = this.context.muiTheme ? this.context.muiTheme.prepareStyles() : {};

instead of:
const theme = this.context.muiTheme.prepareStyles();

So that undefined muiTheme is ignored, instead of thrown?

https://github.com/callemall/material-ui/pull/3820


Prevent ICE when formatting item-only vec!{}

Prevent ICE when formatting item-only vec!{}
Fixes #5735
Attempting to format invocations of macros which are considered "forced bracket macros" (currently only vec!), but are invoked with braces instead of brackets, and contain only items in their token trees, currently triggers an ICE in rustfmt. This is because the function that handles formatting macro invocations containing only items, rewrite_macro_with_items, assumes that the forced delimiter style of the macro being formatted is the same as the delimiter style in the macro's source text when attempting to locate the span after the macro's opening delimiter. This leads to the construction of an invalid span, triggering the ICE.
The fix here is to pass the old delimiter style to rewrite_macro_with_items as well, so that it can successfully locate the span.

Hi rustfmt'ers! I'm back again with another ICE fix. Some notes for the reviewer:

With how I've implemented this fix, the original reproducing case

fn find_errors(mut self) {
	let errors: Vec<> = vec!{
		#[debug_format = "A({})"]
		struct A {}
	};
}

will be formatted into
fn find_errors(mut self) {
    let errors: Vec = vec![
        #[debug_format = "A({})"]
        struct A {}
    ];
}

I understand that the team's stance is that braced macro invocations should generally be left unformatted. However, the current behaviour of rustfmt on braced vec! invocations is to format them. That is, before this PR, rustfmt will turn vec!{1, struct X {} } into vec![1, struct X {}];.
My PR doesn't change this behaviour. It just extends a similar behaviour to vec! invocations that contain only items. So with my PR, whereas formatting vec!{ struct X {} } would previously have triggered an ICE, it's now formatted into
vec![
    struct X {}
];

I'm not entirely sure that this is the 'right' direction to go in, but the alternative of leaving braced, item-only vec! invocations unformatted seemed about equally surprising to me from a user perspective. Any feedback here is appreciated, and I'm happy to tweak the implementation to whatever behaviour the team thinks is best.

I've also included a small refactoring commit of some redundancy I noticed while working in macros.rs. I'm happy to split that off into a separate PR if that's what people prefer.

Clippy isn't happy that I've added another parameter to rewrite_macro_with_items, pushing it over the threshold of 7 parameters. I didn't see a way to cleanly keep it below the threshold while still passing in the original delimiter style, but as usual any suggestions are appreciated.

Thanks for another PR!
r? @fee1-dead

@fee1-dead thanks for the review, and apologies for the merge! I didn't realize it would invalidate the review.

Rebased on to the latest master.

Thanks for the reviews everyone! @ytmimi it should be all up to date now.

 Again, really appreciate the help!


⛰ Evaluate Figma-to-code development workflow

The objective is to evaluate means of exporting UI mockups in Figma to code in order to accelerate the development of the Challenge Registry and standardize UI-related processed. This Epic is complete once the Figma-to-code development workflow is documented (SPOs, pros/cons/limitation, etc.)

[x] #124
[x] #127
[x] #137
[x] #151
[x] #197
[x] #393
[x] #467
[x] #468
[x] #528

The tentative completion sprint for this Epic is 22.10.

Verena has opened a PR. Rong and I will try to review it before the end of this sprint (22.11).

Done.


question if elk solves this ent deficit

https://github.com/ent/ent/issues/2092
Is elk able to solve this?
Would elk return a post_id or post_comments field?
Or would it return
{
 "model_":"stuff"
 "edge": {}
}

?
I see there's https://pkg.go.dev/github.com/masseelch/elk#ExposeEdge

never mind


TTF_SetDirection and TTF_SetScript both require HarfBuzz constants/headers

Hi there,
With the new 2.0.18 release, TTF added functions that allow you to set the text direction and script type for the underlying HarfBuzz library. This is great, except that SetDirection requires HarfBuzz constants as an input and SetScript requires a value from the HarfBuzz HB_TAG macro as an input, making it difficult to use these functions without also importing the HarfBuzz headers.
Given that the SetDirection constants and HB_TAG macro are pretty simple, would you consider adding TTF-specific alternatives to them for these functions? e.g TTF_DIRECTION_LTR instead of HB_DIRECTION_LTR, TTF_SCRIPT instead of HB_TAG, etc. That would help make TTF fully self-contained, and also make it easier to document down the road.
Thanks in advance!

Yes, that seems like a good idea, thanks!

@a-hurst @slouken
Here's some type that could be used in place of hb types to simply compilation
@a-hurst can you try ?

@1bsyl Great! A couple questions/comments:

Why are the top-to-bottom and bottom-to-top direction constants commented out? Just not something TTF officially supports?
How would one go about testing the TTF_SetScript function? I'm guessing you'd need an Arabic font or something and try setting the script to see if it renders any different? I don't actually have an immediate use case for either function, I just noticed the HarfBuzz constant/macro dependency while updating the PySDL2 bindings and thought it was worth mentioning.
To avoid the maintenance burden of all the TTF_SCRIPT_ constants, I think it's fine as an end-user  to just have the TTF_TAG macro that converts the standardized ISO 15924 4-character codes to SetScript's required input format. All the possible 4-letter codes for different script styles are [already documented on unicode.org(https://unicode.org/iso15924/iso15924-codes.html), the only issue I can think of is TTF's HarfBuzz not supporting a newly-added ISO script tag and having no way to check for an error if it isn't available (though the lack of error checking is a problem with the current release as well).

So this was added in: https://github.com/libsdl-org/SDL_ttf/commit/6dcf9e6f2341a482cc6461b885c5063b49096787
int TTF_SetFontScriptName(TTF_Font *font, const char *script)


cmdlet Remove-AppxPackage at command pipeline position 1 Supply values for the following parameters: Package:

Prerequisites

[X] Write a descriptive title.
[X] Make sure you are able to repro it on the latest released version
[X] Search the existing issues.
[X] Refer to the FAQ.
[X] Refer to Differences between Windows PowerShell 5.1 and PowerShell.

Steps to reproduce
When running the below in PWSH 7.2.1 on Windows 10 as Administrator, it non-deterministically prompts:
cmdlet Remove-AppxPackage at command pipeline position 1
Supply values for the following parameters:
Package:
Which line of the below it stops to prompt for this can be any. It's prompted on the first line, the fouth, etc. on the same machine.
However, it works perfectly fine on latest Windows PowerShell 5.1.x.
This is first time I've attempted to do remove-appxpackage on PWSH so don't know it's status on prior versions.
WORKAROUND:
start-process powershell.exe -argumentlist "get-appxpackage -name 'Microsoft.3dbuilder' -allusers | remove-appxpackage -allusers" -windowstyle hidden -verb runas
Expected behavior
Import-Module -Name Appx -UseWindowsPowerShell
    get-appxpackage -name 'Microsoft.3dbuilder' -allusers | remove-appxpackage -allusers
    get-appxpackage -name 'Microsoft.Advertising.Xaml' -allusers | remove-appxpackage -allusers
    get-appxpackage -name "Microsoft.BingFinance" -allusers | remove-appxpackage -allusers
    get-appxpackage -name 'Microsoft.BingNews' -allusers | remove-appxpackage -allusers
    get-appxpackage -name 'Microsoft.BingSports' -allusers | remove-appxpackage -allusers
    get-appxpackage -name 'Microsoft.BingWeather' -allusers | remove-appxpackage -allusers
    get-appxpackage -name 'Microsoft.GetHelp' -allusers | remove-appxpackage -allusers
    get-appxpackage -name 'Microsoft.Getstarted' -allusers | remove-appxpackage -allusers
    get-appxpackage -name 'Microsoft.Messaging' -allusers | remove-appxpackage -allusers
    get-appxpackage -name 'Microsoft.Microsoft3DViewer' -allusers | remove-appxpackage -allusers
    get-appxpackage -name 'Microsoft.MicrosoftOfficeHub' -allusers | remove-appxpackage -allusers
    get-appxpackage -name 'Microsoft.MicrosoftSolitaireCollection' -allusers | remove-appxpackage -allusers
    get-appxpackage -name 'Microsoft.MicrosoftStickyNotes' -allusers | remove-appxpackage -allusers
    get-appxpackage -name 'Microsoft.MixedReality.Portal' -allusers | remove-appxpackage -allusers
    get-appxpackage -name 'Microsoft.mspaint' -allusers | remove-appxpackage -allusers
    get-appxpackage -name 'Microsoft.Office.OneNote' -allusers | remove-appxpackage -allusers
    get-appxpackage -name 'Microsoft.Office.Sway' -allusers | remove-appxpackage -allusers
    get-appxpackage -name 'Microsoft.OneConnect' -allusers | remove-appxpackage -allusers
    get-appxpackage -name 'Microsoft.People' -allusers | remove-appxpackage -allusers
    get-appxpackage -name 'Microsoft.Print3D' -allusers | remove-appxpackage -allusers
    get-appxpackage -name 'Microsoft.ScreenSketch' -allusers | remove-appxpackage -allusers
    get-appxpackage -name 'Microsoft.SkypeApp' -allusers | remove-appxpackage -allusers
    get-appxpackage -name 'Microsoft.Wallet' -allusers | remove-appxpackage -allusers
    # Not uninstallable
    #get-appxpackage -name 'Microsoft.Windows.PeopleExperienceHost' -allusers | remove-appxpackage -allusers
    get-appxpackage -name 'Microsoft.WindowsAlarms' -allusers | remove-appxpackage -allusers
    get-appxpackage -name 'Microsoft.WindowsCamera' -allusers | remove-appxpackage -allusers
    get-appxpackage -name 'Microsoft.WindowsMaps' -allusers | remove-appxpackage -allusers
    get-appxpackage -name 'Microsoft.WindowsSoundRecorder' -allusers | remove-appxpackage -allusers
    get-appxpackage -name 'microsoft.windowscommunicationsapps' -allusers | remove-appxpackage -allusers
    get-appxpackage -name 'Microsoft.Windows.Photos' -allusers | remove-appxpackage -allusers
    get-appxpackage -name 'Microsoft.WindowsCalculator' -allusers | remove-appxpackage -allusers
    get-appxpackage -name 'Microsoft.WindowsFeedbackHub' -allusers | remove-appxpackage -allusers
    get-appxpackage -name 'Microsoft.WindowsMaps' -allusers | remove-appxpackage -allusers
    get-appxpackage -name 'Microsoft.WindowsSoundRecorder' -allusers | remove-appxpackage -allusers
    get-appxpackage -name 'Microsoft.Xbox.TCUI' -allusers | remove-appxpackage -allusers
    get-appxpackage -name 'Microsoft.XboxApp' -allusers | remove-appxpackage -allusers
    # Not Uninstallable
    #get-appxpackage -name 'Microsoft.XboxGameCallableUI' -allusers | remove-appxpackage -allusers
    get-appxpackage -name 'Microsoft.XboxGameOverlay' -allusers | remove-appxpackage -allusers
    get-appxpackage -name 'Microsoft.XboxGamingOverlay' -allusers | remove-appxpackage -allusers
    get-appxpackage -name 'Microsoft.XboxIdentityProvider' -allusers | remove-appxpackage -allusers
    get-appxpackage -name 'Microsoft.XboxSpeechToTextOverlay' -allusers | remove-appxpackage -allusers
    get-appxpackage -name 'Microsoft.YourPhone' -allusers | remove-appxpackage -allusers
    get-appxpackage -name 'Microsoft.ZuneMusic' -allusers | remove-appxpackage -allusers
    get-appxpackage -name 'Microsoft.ZuneVideo' -allusers | remove-appxpackage -allusers
PS C:\Users\system

Actual behavior
PS C:\Users\system2> Import-Module -Name Appx -UseWindowsPowerShell
WARNING: Module Appx is loaded in Windows PowerShell using WinPSCompatSession remoting session; please note that all input and output of commands from this module will be deserialized objects. If you want to load this module into PowerShell please use 'Import-Module -SkipEditionCheck' syntax.
PS C:\Users\system2>     get-appxpackage -name 'Microsoft.3dbuilder' -allusers | remove-appxpackage -allusers
PS C:\Users\system2>     get-appxpackage -name 'Microsoft.Advertising.Xaml' -allusers | remove-appxpackage -allusers

cmdlet Remove-AppxPackage at command pipeline position 1
Supply values for the following parameters:
Package:

Error details
get-error
PS C:\Windows\System32>

Environment data
$psversiontable

Name                           Value
----                           -----
PSVersion                      7.2.1
PSEdition                      Core
GitCommitId                    7.2.1
OS                             Microsoft Windows 10.0.19044
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>
WSManStackVersion              3.0

Visuals

Appx module is not compatible with PS 7.2. You can load the module with WinCompat feature  Import-Module -UseWindowsPowerShell.

They did use Import-Module -UseWindowsPowerShell, they're mentioning that piping between the commands imported this way doesn't work. This is an unfortunate but expected consequence of serialization. Another work around is:
$session = New-PSSession -UseWindowsPowerShell
Invoke-Command -Session $session {
    all appx code here
}

$session | Remove-PSSession

This issue has been marked as answered and has not had any activity for 1 day. It has been closed for housekeeping purposes.

@msftbot, is this a joke?

The issue isn't something that can be resolved without porting the appx module. There is more discussion around that in #13138, though it is also closed as it's not shipped with PowerShell or maintained by the PowerShell team.

The issue isn't something that can be resolved without porting the appx module. There is more discussion around that in #13138, though it is also closed as it's not shipped with PowerShell or maintained by the PowerShell team.

@SeeminglyScience, thanks for the clarification. If there is a pathway for PowerShell side to further make this compatible, it seems it would be a heroic effort, versus if PowerShellGet maintainers ( https://github.com/PowerShell/PowerShellGetv2 ) modify their app.
Thanks!


feature/initial-build

dialect program dart client initial build - originally in dart-sdk

I think this is good


Support stat operation for Golang on Linux

Related to this comment https://github.com/metalbear-co/mirrord/issues/789#issuecomment-1361130547
Some of our services are doing stat to do some check before opening the file, so it would be great if mirrord can support it.
Not a major blocker, feel free to treat this as low priority :)

Removed macOS from title as we already support it there ;)
Thanks for the report!


RFC: Support for using core traits and devices with no_std

Closing this as much progress has been made in the meantime.  The core traits are now being defined in embedded-hal.


PLT-3985 - Show initial time for counterexamples in a human readable way

This PR fixes a legacy vestige that caused the initial time of a counter example produced by the static analysis to be shown as a slot, even though it was an amount of milliseconds. So this PR changes the type names that referred to slots and displays the value as a date and a time.
It also updates the README.md that had one of the commands spelled wrong, and adds the scriv command to the nix development shell.
Pre-submit checklist:

Branch

[ ] Tests are provided (if possible)
[x] Commit sequence broadly makes sense
[x] Key commits have useful messages
[x] Relevant tickets are mentioned in commit messages
[x] Formatting, materialized Nix files, PNG optimization, etc. are updated

PR

[x] Self-reviewed the diff
[x] Useful pull request description
[x] Reviewer requested

The code looks good, but I got this error while trying the static analysis... Not sure if related

...Failure: An error occurred while decoding a JSON value: Under 'Response': At object key 'result': Under 'Result': Under 'CounterExample': No value was found.

I cannot reproduce. Did you regenerate the purescript and went through all the steps in the README.md?

The code looks good, but I got this error while trying the static analysis... Not sure if related

...Failure: An error occurred while decoding a JSON value: Under 'Response': At object key 'result': Under 'Result': Under 'CounterExample': No value was found.

I cannot reproduce it. Have you run generate-purescript and the other commands in the README.md?


Failure to build from source with GPU support on macOS

I am trying to follow the installation instructions for Mac with GPU support.  I have CUDA 7.5 and cuDNN installed (and Theano currently works with GPU support on this system).
The contents of my /usr/local/cuda/lib include the following:
(py35)Dans-iMac:tensorflow dan$ ls -l /usr/local/cuda/lib/libcud*
-rwxr-xr-x  1 root  wheel  8280 Apr 13 00:02 /usr/local/cuda/lib/libcuda.dylib
lrwxr-xr-x  1 root  wheel    45 Apr 13 00:03 /usr/local/cuda/lib/libcudadevrt.a -> /Developer/NVIDIA/CUDA-7.5/lib/libcudadevrt.a
lrwxr-xr-x  1 root  wheel    50 Apr 13 00:03 /usr/local/cuda/lib/libcudart.7.5.dylib -> /Developer/NVIDIA/CUDA-7.5/lib/libcudart.7.5.dylib
lrwxr-xr-x  1 root  wheel    46 Apr 13 00:03 /usr/local/cuda/lib/libcudart.dylib -> /Developer/NVIDIA/CUDA-7.5/lib/libcudart.dylib
lrwxr-xr-x  1 root  wheel    49 Apr 13 00:03 /usr/local/cuda/lib/libcudart_static.a -> /Developer/NVIDIA/CUDA-7.5/lib/libcudart_static.a

My configure step doesn't provide any errors, as shown in the following:
(py35)Dans-iMac:tensorflow dan$ ./configure
Please specify the location of python. [Default is /Users/dan/anaconda/envs/py35/bin/python]:
Do you wish to build TensorFlow with Google Cloud Platform support? [y/N]
No Google Cloud Platform support will be enabled for TensorFlow
Do you wish to build TensorFlow with GPU support? [y/N] y
GPU support will be enabled for TensorFlow
Please specify which gcc nvcc should use as the host compiler. [Default is /usr/bin/gcc]:
Please specify the Cuda SDK version you want to use, e.g. 7.0. [Leave empty to use system default]: 7.5
Please specify the location where CUDA 7.5 toolkit is installed. Refer to README.md for more details. [Default is /usr/local/cuda]:
Please specify the Cudnn version you want to use. [Leave empty to use system default]:
Please specify the location where cuDNN  library is installed. Refer to README.md for more details. [Default is /usr/local/cuda]:
Please specify a list of comma-separated Cuda compute capabilities you want to build with.
You can find the compute capability of your device at: https://developer.nvidia.com/cuda-gpus.
Please note that each additional compute capability significantly increases your build time and binary size.
[Default is: "3.5,5.2"]: 3.0
Setting up Cuda include
Setting up Cuda lib
Setting up Cuda bin
Setting up Cuda nvvm
Setting up CUPTI include
Setting up CUPTI lib64
Configuration finished

However the first bazel build step results in the following error:
(py35)Dans-iMac:tensorflow dan$ bazel build -c opt --config=cuda //tensorflow/tools/pip_package:build_pip_package
ERROR: /Users/dan/tensorflow/tensorflow/contrib/session_bundle/BUILD:160:1: //tensorflow/contrib/session_bundle:manifest_proto_py: no such attribute 'imports' in 'py_library' rule.
ERROR: /Users/dan/tensorflow/tensorflow/tools/pip_package/BUILD:23:1: Target '//tensorflow/contrib/session_bundle:all_files' contains an error and its package is in error and referenced by '//tensorflow/tools/pip_package:build_pip_package'.
ERROR: Loading failed; build aborted.
INFO: Elapsed time: 0.092s

I tried looking at build files, but don't know bazel well enough to independently trace this further back.
All of this is using commit 19bda20635c91060996fe44fe201875b3b9ae7a2

@kirilg, @nfiedel is there still something amiss with the session_bundle?

@dansbecker can you tell us which bazel version you're using?

My apologies.  As @martinwicke figured, I was using an old version of bazel (0.1.4).
Upgrading to 0.2.3 resolved the error.
If there's any other info I can add here that you think might be useful for people who stumble on this thread in the future, let me know.  And thanks for the help.

How to upgrade Bazel?

How to upgrade Bazel?