text:
Various improvements

Added multiple features and improvements :

Support for touch controls (stylus & tablets)
Draw lines instead of dots
Read parameters and settings from payload.json
Interface width & height settings

local upscale of rendered image if needed
save rendered image in its native resolution

Support for hrfix rendering

Calculate hr steps according to denoising value

Cap framerate to 120fps, update drawing only when necessary
Handle HTTP error codes
Default .gitignore to ignore Python virtual env & IDE directories
Updated README with controls

Added key controls for :

e + left click to use eraser (useful for stylus controls)
shift + left click to draw straight lines
x or esc to exit
f for fullscreen (without canvas resizing for now, but useful if the interface dimension is your screen size, ie. on a drawing board)
up, down, n for seed control : increase, decrease, new
enter to force rendering

NB : I reordered the event loops conditions to be able to catch keys affecting the rendering (ie. enter, up, down, n).

I know this not the right place for that but, it need a way to connect to google collab to use remotely.

"Save" Method seems not attached generation info into picture

Minor correction to the seed size (now 2^32). I continued coding improvements in the PR #16 .

Since I got far ahead in my code, I think the best way is to put all of my modifications up to now in this PR. This will allow to create a tag+release afterward, since the actual code has better handling on local configuration files without messing the git branches.
Most of the new features are described in the README, here are the most important ones :

Separated configuration files for the interface, controlnet and img2img modes
Local configuration files, with a fallback to distrib
OSD display and progress bar
Code refactoring
Img2img mode and specific start script
New interface actions and their respective shortcuts :

Wait between brush strokes before rendering
Sketch image file loading
Cycle ControlNet models (by default scribble, lineart, lineart anime)
Call ControlNet detectors on the render image (ie. lineart/scribble detection)
Cycle HR fix configurations
Quick mode toggle (lower steps, disable HR fix)

Concerning the configuration files, we could create a copy of the distribution configuration files automatically at first launch, if you think this will be less confusing for the users.

I lowered the settings in default configuration files.

@houseofsecrets

A copy of the dist config file is now done on first launch.
The ControlNet models list is now empty by default. And when an empty list is found, the available models are fetched from the API. This will prevent any misconfiguration from the user.

The controlnet and img2img configuration files are now copied on first launch. The first available ControlNet model is set as the active model by default.

At long last ! I got nice brush strokes with bigger brush size :

It was not due to the canvas sizes, so I had to resort to a complex polygon shape draw using the last 2 positions and the angle of the stokes. This method is only used with brush size >= 4, and for fast movements. Otherwise it reverts to the simple polygon draw or circles, as in the previous code.
        angle_prev = get_angle(prev_pos, prev_pos2)
        angle = get_angle(event.pos, prev_pos)

        offset_pos_prev = [(brush_size[button] * angle_prev[3]), (brush_size[button] * angle_prev[2])]
        offset_pos = [(brush_size[button] * angle[3]), (brush_size[button] * angle[2])]
        pygame.gfxdraw.filled_polygon(canvas, [
            (prev_pos2[0] - offset_pos_prev[0], prev_pos2[1] - offset_pos_prev[1]),
            (prev_pos[0] - offset_pos[0], prev_pos[1] - offset_pos[1]),
            (event.pos[0] - offset_pos[0], event.pos[1] - offset_pos[1]),
            (event.pos[0] + offset_pos[0], event.pos[1] + offset_pos[1]),
            (prev_pos[0] + offset_pos[0], prev_pos[1] + offset_pos[1]),
            (prev_pos2[0] + offset_pos_prev[0], prev_pos2[1] + offset_pos_prev[1])
        ], brush_colors[button])

did @houseofsecrets give you repository access yet? if so merge it in already

No, sadly I cannot review or merge my pull request.

No worries. Can you try to give me writing access to the main branch ? I have more updates incoming. 🙂

It seems collaborators have write access by default.
In the project : "Settings / Branches / Branch protection rules", uncheck "Requires approval". Otherwise a PR can only be merged if another collaborator approves it.
But don't worry, only collaborators can finish a PR on a protected branch.

Otherwise you need to add another active collaborator to the project, so we can review each other code before merging. Maybe @mirkan1 if he wants to ?

That would be awesome

authors: Danamir SLAPaper Vajraastra mirkan1

repo: houseofsecrets/SdPaint


text:
Cannot access report with token, using https

The report cannot be viewed on deployment website. I wondered the reason why the report can be accessed from local instance but when I deploy in cloud it doesn't work. Note I am using cookies to pass access token in did I do anything wrong?
The token I used is aad access token acquired when the user logs in.
<PowerbiEmbedded
    embedType="report" // or "dashboard"
    tokenType="Aad" // or "Aad"
    accessToken={Cookies.get("powerbi")}
    embedUrl="https://app.powerbi.com/reportEmbed?reportId=<reportId>&config=<token>"
    id="reportId"
    filterPaneEnabled={false}
    navContentPaneEnabled={true}
    onEmbedded={this.onEmbedded}
    pageView="fitToWidth"
    width="100%"
    height="100%"
    className="iframeContainer"
    display="initial"
    sandbox="allow-forms allow-popups allow-pointer-lock allow-same-origin allow-scripts"
    position="relative"
    styles={{ height: "93vh" }}
/>

Are you able to get the powerbi value from Cookie?

@howlowck  Thanks for replying. I actually got cookie working, since previously what in the screenshot happens when cookie expires (not the Aad access token).
So after I set the expiry time of the cookie to sync with the Aad access token life span, it worked.
But here what I'd like to know more is, what is the best practice for handle that access token in the react front-end? I get the cookie value and store it in react component's state. (Not sure if that secure the token from been stolen)
Also what would you suggest to do after, the access token expired (right now it expire in one hour)?

For React and AAD, the easiest way I know of is to use the react-aad-msal library. It will be able to seamlessly supply you with the access token. It uses the msal library to either refresh the token or redirect the user to login in. It also nicely integrates with redux, which is how I use this library to get the AAD access token.
Hope that helps.

Thank you so much!
I have been using passport-azure-ad library OIDC for some single sign-on
features. Definitely worthy to explore the option you suggested too. Have a
great day. I think I can close this issue.
On Thu, Jan 9, 2020 at 10:50 PM Hao Luo notifications@github.com wrote:

For React and AAD, the easiest way I know of is to use the react-aad-msal
https://github.com/syncweek-react-aad/react-aad/blob/master/README.md
library. It will be able to seamlessly supply you with the access token. It
uses the msal library to either refresh the token or redirect the user to
login in. It also nicely integrates with redux, which is how I use this
library to get the AAD access token.
Hope that helps.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/howlowck/react-powerbi/issues/16?email_source=notifications&email_token=ACW5GP5MYJFW7WZ7O3NBJ4DQ47WBVA5CNFSM4KEKUK32YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEISSXUY#issuecomment-572861395,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACW5GP2X7NEWS43GYXKS7XDQ47WBVANCNFSM4KEKUK3Q
.

source: gharchive/issue

authors: TeaSip howlowck

repo: howlowck/react-powerbi

license: MIT

license_type: permissive

license_source: github-api


text:
How to show App Icon in Callkit? What is "image_name_in_bundle" in configure callkit?

I'm trying to add App Icon in Callkit. I get it there's a param in configureCallKit() method but its just getting the imageName ( name of the image included in the bundle). How do I reference image my AppIcon.

What is "image_name_in_bundle"?
Did you follow all the instructions as specified in the Twilio Quickstart repositories?
Yes
What version of React Native are you running?
0.63.3
What version of react-native-twilio-programmable-voice are you running?
4.3.0
What device are you using? (e.g iOS10 simulator, Android 7 device)?
Iphone 7 Plus
Is your app running in foreground, background or not running?
Not Applicableble
Is there any relevant message in the log?
No
If using iOS, which pod version are you using?
5.1.1
Step to reproduce
Advanced:
Have you tried adding break point using AndroidStudio or XCode and analyse the logs?
can share a project with issue?
Did you try to reinstall the pods completely?

Hi this is the file name of whatever is in your asset folder. If your bundle is configured correctly, all the images in your project will be included and can be used in this case.
Note that you just place the file somewhere in your react JavaScript project, you don't have to do this in xcode.

Hi @jdegger. Suppose I've a image AppIcon.png in my assets folder in my Project. Would I be applying the like I've done below?
            TwilioVoice.configureCallKit({
              appName: 'MyAppName',
              imageName: 'AppIcon',
            });

I've tried this with Bundled Image but It is not showing up on the callkit.

It should be imageName: 'AppIcon.png', does that work?

@jdegger i have tried this but it's not working

authors: jdegger salman-pixarsart usamaabutt

license: mit

license_source: bigquery


text:
[shardformer] update gpt2 to use coloattention.

📌 Checklist before creating the PR

[x] I have created an issue for this PR for traceability
[x] The title follows the standard format: [doc/gemini/tensor/...]: A concise description
[x] I have added relevant tags if possible for us to better distinguish different PRs

🚨 Issue number

Link this PR to your issue with words like fixed to automatically close the linked issue upon merge
e.g. fixed #1234, closed #1234, resolved #1234

#4184
📝 What does this PR do?

Summarize your work here.
if you have any plots/diagrams/screenshots/tables, please attach them here.

update gpt2 to use coloattention.
💥 Checklist before requesting a review

[x] I have linked my PR to an issue (instruction)
[x] My issue clearly describes the problem/feature/proposal, with diagrams/charts/table/code if possible
[x] I have performed a self-review of my code
[x] I have added thorough tests.
[x] I have added docstrings for all the functions/methods I implemented

⭐ Do you enjoy contributing to Colossal-AI?

[ ] 🌝 Yes, I do.
[ ] 🌚 No, I don't.

Tell us more if you don't enjoy contributing to Colossal-AI.

All tests have passed.

source: gharchive/pull-request

repo: hpcaitech/ColossalAI


text:
[Fix] Update MoeHybridParallelPlugin;

📌 Checklist before creating the PR

[ ] I have created an issue for this PR for traceability
[ ] The title follows the standard format: [doc/gemini/tensor/...]: A concise description
[ ] I have added relevant tags if possible for us to better distinguish different PRs

🚨 Issue number

Link this PR to your issue with words like fixed to automatically close the linked issue upon merge
e.g. fixed #1234, closed #1234, resolved #1234

📝 What does this PR do?

Summarize your work here.
if you have any plots/diagrams/screenshots/tables, please attach them here.

💥 Checklist before requesting a review

[ ] I have linked my PR to an issue (instruction)
[ ] My issue clearly describes the problem/feature/proposal, with diagrams/charts/table/code if possible
[ ] I have performed a self-review of my code
[ ] I have added thorough tests.
[ ] I have added docstrings for all the functions/methods I implemented

⭐ Do you enjoy contributing to Colossal-AI?

[ ] 🌝 Yes, I do.
[ ] 🌚 No, I don't.

Tell us more if you don't enjoy contributing to Colossal-AI.

1.Update MoeHybridParallelPlugin;
2.Use MoeHybridParallelPlugin to replace MoEManager;
3.Remove dependency on MoEManager of test_moe_checkpoint.py;


text:
Fix APIs for iOS

See https://developer.apple.com/documentation/bundleresources/privacy_manifest_files/describing_use_of_required_reason_api
Can use https://github.com/Wooder/ios_17_required_reason_api_scanner; check if Flutter tools exist for automation

No APIs in this (public, main) version, moving to study issues

repo: hpi-dhc/PharMe


text:
Refactor Account Initialization

The current initialization for the accounts is quite anti ideomatic because it mutates the State of the ICFolderDialog in ICLoginDialog initialize

The attributes ICFolderDialog uninitializedAccounts and initializedAccounts are used for that

authors: EatingBacon martintaraz

repo: hpi-swa-teaching/IMAPClient


text:
31 link squeak apps

Added 'Mensa Widget' button in 'Apps'

also I have a bug when open the window over the apps tab I have aa yellow outline i dont know if that is just on my end or something that get fixed when merging

I have the same outline when the window is focued after clicking on the app.
I am not sure about the tests, it probably is the same as it is with the docking bar button, which was an ugly test, but I think we should do it

@NilsKasper  u did great!

authors: Kangaroo6942 NilsKasper lchristus

repo: hpi-swa-teaching/MensaWidget


text:
[Sorting] Build process

Replace the build process with CMAKE or appropriate build tool

created make file and removed build scripts


text:
Postfix snippet not replacing input

For example:
some is a built-in postfix snippet of rust-analyzer
Expected behavior
    a.some<cr> -> Some(a)

Actual behavior
    a.some<cr> -> someSome(a)

It may be caused by this commit: e820335208a6a46e97202592a3694d8e01b923bc.
It worked well before the commit, but I am unable to solve this problem.

same issue :+1:

I'm experiencing a similar issue with gopls. Can confirm that commit before https://github.com/hrsh7th/nvim-cmp/commit/e820335208a6a46e97202592a3694d8e01b923bc behaves correctly.

Reproduced.
I'll fix this.

@hrsh7th I'm still experiencing this in golang after checking out the latest version. 🤔

If you use packer.nvim, you should do PackerSync and PackerCompile.

anyway, I'll check with golang.

@muchzill4 If you report a problem, please include steps to reproduce it.

It works in my environment.
https://user-images.githubusercontent.com/629908/203839428-bc61090f-90dd-4d7c-a990-373c95e64544.mov

@hrsh7th thanks for fast turnaround on this and rapid responses. My repro steps:
mkdir yolo
go mod init yolo
touch main_test.go
nvim main_test.go

package yolo

func TestFo<tab> # -> func TestFoTestFo(t *testing.T)

Versions:
go version go1.19.2 darwin/arm64
golang.org/x/tools/gopls v0.10.1
NVIM v0.8.1

FWIW, the one you demonstrated in the video (.print!) works for me too on the latest nvim-cmp.

It's gopls bug.
I've  tested with old nvim-cmp (before https://github.com/hrsh7th/nvim-cmp/commit/e820335208a6a46e97202592a3694d8e01b923bc ).


text:
Just updating to the latest java.

Just updating the docker image to the latest java. If it gets updated, the build should be kicked off and published to dockerhub etc.

Thanks!

authors: burnsjake hseeberger

repo: hseeberger/scala-sbt


text:
Arrows direction on the edges of the network graph

Hi everyone!
Can it be possible to create arrows direction on the network graph?
Something like this one: http://bl.ocks.org/d3noob/5141278
Thanks, great library btw!

Hi @tinchoz49, thanks for checking out vx. Yes this is possible through svg's <marker /> element combined with a custom link component.
Here's an example: https://codesandbox.io/s/9qo1pqom9o

wow thanks for the quick answer! It works great, I didn't know about the marker-(start|mid|end) attr.

@tinchoz49 As long you can live with uniform markers, using the SVG marker attributes is the best way.
However, since you're referencing the markers via id and url(), having individual markers becomes difficult, and while it's more complicated, it's doable. Ping me if you face that issue at some point.

authors: hshoff loopmode tinchoz49

repo: hshoff/vx


text:
fix getting coords from touch event for y typo

:bug: Bug Fix
Zoom component's zoom.dragMove worked incorrectly on touchmove event, moving only alongside 135 degree angle. Fixing the typo fixes this problem.

Thanks for the bug fix!

authors: hshoff vodoleev-vladislav