unmanaged-cluster log package: Non-format log methods print new-line

Refactors the non-format style methods in the logging package
to print a newline at the end of their message.
This simplifies the logging API where before, code lines like:
log.Errorf("%s\n", myError)

can now be simplified to:
log.Error(myError)

Users can still use the format style alternatives
to provide a format string and a newline at the end if they prefer.
Details for the Release Notes (PLEASE PROVIDE)
unmanaged-cluster log package non-format methods now print newline

Which issue(s) this PR fixes
Fixes: #2873
Describe testing done for PR
Built the plugin binaries and all still looks good!

Special notes for your reviewer
@stmcginnis I also removed this line in the cmd/list.go:
t.Render()
-log.Info("")

and I couldn't for the life of me figure out what it was supposed to be doing since new lines were not added before this PR. So my assumption is it was something left over

Awesome, testing this now.

and I couldn't for the life of me figure out what it was supposed to be doing since new lines were not added before this PR. So my assumption is it was something left over.

This was actually added based on your feedback to another PR that when you ran a command with -o json, there was no break between the end of the json output and your terminal prompt. I'll double check how things look with this change.

there was no break between the end of the json output and your terminal prompt. I'll double check how things look with this change.

Oh that's right. Very weird, I can no longer reproduce it ...
Here's a screen grab in a native terminal:

And a grab from my tmux session:

maybe a red herring?


Fix 11909 Uses MSPileupUtils getPileupDocs in all Instances

Fixes #11909
Status
Not tested
Description
Replaces getPileupDocs in MSTransferor and WorkflowUpdatorPoller with MSPileupUtils.getPileupDocs
Is it backward compatible (if not, which system it affects?)
MAYBE
Related PRs
https://github.com/dmwm/WMCore/pull/11905
External dependencies / deployment changes
N/A

@amaltaro I have made the recommended changes and squashed the changes.


Cannot get picker to show local version of time

I'm Submitting a ...
[ ] Bug report
[ ] Feature request
[x ] Support request

Steps to Reproduce

Pass in date object to react date picker (with time enabled).
Time shown is the UTC time, not the local time, even though utc prop is false.

Is there a way to force the picker to show the date passed in local time instead of UTC time?
It's possible I'm misunderstanding how it's supposed to be used.

Are you setting the locale prop?

i am having the same problem , utc is false even than i am geting UTC time , i am passing locale props as well

Hi @asgoel and @Rajat421. Can you provide a demo of this problem? It would make it a lot easier for me to debug. You can fork this codepen, it has all the necessary code loaded already: http://codepen.io/simeg/pen/mEmQmP

Closing due to inactivity.  Please reopen if you can provide additional info.


<IE8 Support

Hello,
Are you looking to add IE8 support, as SVG and background image size are not supported?
It would be good to have some fallbacks for the older browsers.
Unfortunately I didn't have time to implement one, so had to use 'gulp-svg2png' to convert the files to PNGs. In fact upon doing this I noticed another issue that 2 or 3 of the images where missing the xml line from the top of the file, which caused the conversion to crash. Might be something you want to update the images with too.
Thanks

no sorry.. I won't be doing it.. there are some PRs if you want to use, but this project is not going to support anything else than SVGs..
https://github.com/lipis/flag-icon-css/issues?utf8=✓&q=ie8

No problem. I'll put it on my one day list and fork it. What do you mean by PRs?

pull requests.. #42 #33


Http debug page

What ❔
Added an HTTP endpoint with basic debug information:

It is disabled by default. To enable it, a line defining it's address in config is required:
  "debugAddr": "<IP Address>:<port>"
Basic authentication implemented, also optional. Configured by
  "debugCredentials": "<user>:<password>"
in config file. No authentication required if that line is not present.
TLS encryption:
local.cert and local.key files are required.
Current look:

Why ❔
Requested at:

BFT-259 - implement an http debug page for a node (with network data)
BFT-451 - Do not expose HTTP servers for metrics and debugging if possible

What ❔
Added an HTTP endpoint with basic debug information:

It is disabled by default. To enable it, a line defining it's address in config is required:
  "debugAddr": "<IP Address>:<port>"
Basic authentication implemented, also optional. Configured by
  "debugCredentials": "<user>:<password>"
in config file. No authentication required if that line is not present.
TLS encryption:
local.cert and local.key files are required.

Is it possible to enable Basic authentication without TLS?

What ❔
Added an HTTP endpoint with basic debug information:

It is disabled by default. To enable it, a line defining it's address in config is required:
  "debugAddr": "<IP Address>:<port>"
Basic authentication implemented, also optional. Configured by
  "debugCredentials": "<user>:<password>"
in config file. No authentication required if that line is not present.
TLS encryption:
local.cert and local.key files are required.

Is it possible to enable Basic authentication without TLS?

It is not possible with current state of the code. Is that something desirable?

Is it possible to enable Basic authentication without TLS?

It is not possible with current state of the code. Is that something desirable?

No. It is very good. It should not be allowed to use basic authentication without TLS.

I finally managed to get the server to work with our ctx in case of cancellation, but still have my doubts that this is the best way to solve it.
In any case I'm setting the PR as ready for review, while I'll keep cleaning up a bit some stuff. In particular I'll work in making the cert and private key paths configurable


[internazionale] Add new extractor for www.internazionale.it

Please follow the guide below

You will be asked some questions, please read them carefully and answer honestly
Put an x into all the boxes [ ] relevant to your pull request (like that [x])
Use Preview tab to see how your pull request will actually look like

Before submitting a pull request make sure you have:

[x] At least skimmed through adding new extractor tutorial and youtube-dl coding conventions sections
[x] Searched the bugtracker for similar pull requests
[x] Checked the code with flake8

In order to be accepted and merged into youtube-dl each piece of code must be in public domain or released under Unlicense. Check one of the following options:

[x] I am the original author of this code and I am willing to release it under Unlicense
[ ] I am not the original author of this code but it is in public domain or released under Unlicense (provide reliable evidence)

What is the purpose of your pull request?

[ ] Bug fix
[ ] Improvement
[x] New extractor
[ ] New feature

Description of your pull request and other information
Add a new extractor for internazionale.it.
This was implemented analyzing the web browser requests via
mitmproxy and manually inspecting part of the
JavaScript code served.

Hello Sergey,
"Sergey M." writes:

dstftw requested changes on this pull request.

_extract_m3u8_formats.
At least mpd is also available.

I tried to address that and respectively used _extract_m3u8_formats()
and _extract_mpd_formats().

Do not shadow built-in names.

Whoops, nice catch!

   video_container = self._html_search_regex(r'<div class="video-container" (.*)>', webpage, 'video_container')

Capturing empty string does not make any sense. What's the point capturing this at all? id and path occur only once in webpage.

I guess that first extracting the relevant part from the entire webpage
and then extracting only interesting attributes is faster. What you
propose is right and simpler, so I've changed as you've suggested.

md5:.

OK.

Remove duplicates.

Did you meant remove a test? In that case I've kept only the first one.
However, two points that probably need to be addressed are (and, I have
tried to investigate further without a lot of luck):

Why TestDownload.test_Internazionale now fails with ERROR: requested format not available?:

% python2.7 test/test_download.py TestDownload.test_Internazionale
[Internazionale] 2015/02/19/richard-linklater-racconta-una-scena-di-boyhood: Downloading webpage
[Internazionale] 2015/02/19/richard-linklater-racconta-una-scena-di-boyhood: Downloading m3u8 information
[Internazionale] 2015/02/19/richard-linklater-racconta-una-scena-di-boyhood: Downloading MPD manifest
ERROR: requested format not available
Traceback (most recent call last):
  File "/home/leot/repos/youtube-dl/youtube_dl/YoutubeDL.py", line 795, in extract_info
    return self.process_ie_result(ie_result, download, extra_info)
  File "/home/leot/repos/youtube-dl/youtube_dl/YoutubeDL.py", line 849, in process_ie_result
    return self.process_video_result(ie_result, download=download)
  File "/home/leot/repos/youtube-dl/youtube_dl/YoutubeDL.py", line 1612, in process_video_result
    expected=True)
ExtractorError: requested format not available

E
======================================================================
ERROR: test_Internazionale (__main__.TestDownload):
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test/test_download.py", line 159, in test_template
    force_generic_extractor=params.get('force_generic_extractor', False))
  File "/home/leot/repos/youtube-dl/youtube_dl/YoutubeDL.py", line 807, in extract_info
    self.report_error(compat_str(e), e.format_traceback())
  File "/home/leot/repos/youtube-dl/youtube_dl/YoutubeDL.py", line 612, in report_error
    self.trouble(error_message, tb)
  File "/home/leot/repos/youtube-dl/youtube_dl/YoutubeDL.py", line 582, in trouble
    raise DownloadError(message, exc_info)
DownloadError: ERROR: requested format not available

----------------------------------------------------------------------
Ran 1 test in 2.949s

FAILED (errors=1)
Exit 1

Is it okay that the extension is m3u8 when invoking youtube-dl -F:

% python2.7 -m youtube_dl -F 'https://www.internazionale.it/video/2015/02/19/richard-linklater-racconta-una-scena-di-boyhood'
[Internazionale] 2015/02/19/richard-linklater-racconta-una-scena-di-boyhood: Downloading webpage
[Internazionale] 2015/02/19/richard-linklater-racconta-una-scena-di-boyhood: Downloading m3u8 information
[Internazionale] 2015/02/19/richard-linklater-racconta-una-scena-di-boyhood: Downloading MPD manifest
[info] Available formats for 265968:
format code    extension  resolution note
audio-1-Audio  m3u8       audio only [en]
128kbps        m4a        audio only DASH audio  128k , mp4a.40.2 (44100Hz)
360p_800kbps   mp4        640x360    DASH video  800k , avc1.42c00d, 30fps, video only
480p_1200kbps  mp4        854x480    DASH video 1200k , avc1.42c00d, 30fps, video only
1728           m3u8       640x360    1728k , avc1.64000d, video only
720p_2400kbps  mp4        1280x720   DASH video 2400k , avc1.42c00d, 30fps, video only
2528           m3u8       854x480    2528k , avc1.64000d, video only
4928           m3u8       1280x720   4928k , avc1.64000d, video only (best)

Thank you for the review and for the attention!


Pagination does not work with new Timber\Post()

Expected behavior
{{ paged_content }} works with new Timber\Post()
Actual behavior
{{ paged_content }} with new Timber\Post() shows the full text of the article.
Steps to reproduce behavior
Don't work
// single.php
$context = Timber::context();
$context['post'] = new Timber\Post();
Timber::render('single.twig', $context);

{# single.twig #}

{{post.title}}

        {{post.paged_content}}

Work
// single.php
$context = Timber::context();
$context['post'] = Timber::query_post();
Timber::render('single.twig', $context);

{# single.twig #}

{{post.title}}

        {{post.paged_content}}

What version of WordPress, PHP and Timber are you using?
Timber 1.9.4
How did you install Timber? (for example, from GitHub, Composer/Packagist, WP.org?)
Composer/Packagist

I think global $page is not set with call new Timber\Post().
	/**
	 * @return string
	 */
	public function paged_content() {
		global $page;
		return $this->content($page, -1);
	}

@ttsuru the pagination of content in the built-in WordPress way relies heavily on globals and  WP_Query::setup_postdata(). For the 2.x branches (where get_post et al. will no longer exist), this is fixed with Timber\Post::setup(), but in this case, the easiest out is probably to continue using \Timber::query_post() for now on a 1.9.x project as this returns a QueryIterator that will handle all this for you automatically.
@gchtr / @jarednova  / @palmiak Possibly a todo for the 2.x . docs? Paginated content works provided the users uses the 'magic' $context['post'], but the docs should probably mention that it calls Post::setup and that a developer should call this if they want parity in function.

@aj-adl The only place where Timber\Post::setup() is mentioned now is in https://github.com/timber/timber/blob/2.x/docs/guides/context.md#using-a-custom-post-class.


Cannot to create a project from a backup

Actions before raising this issue

[X] I searched the existing issues and did not find anything similar.
[X] I read/searched the docs

Steps to Reproduce
No response
Expected Behavior
No response
Possible Solution
No response
Context
Hello everyone,
I used CVAT on another virtual machine and its version is:
Server version: 2.19.0

Core version: 15.2.0

Canvas version: 2.20.9

UI version: 1.66.0

After a while I had to move to another virtual machine and I exported a backup of my whole project and create a project from this backup on my second virtual machine but I got the following error:

CVAT version on my second machine is:
Server version: 2.22.0
Core version: 15.2.1
Canvas version: 2.20.10
UI version: 1.66.4
Please help me in this problem, so many thanks in advance.
Environment
No response

Hi, please make sure all the DB migrations were applied. It looks like you might need to run python manage.py migrate on the second CVAT instance.

python manage.py migrate

@zhiltsov-max Thanks for reply.
I have to have two CVATs with exactly same version to import backup of project from one to another one? or just runnig python manage.py migrate is enough?
Thanks for your help.

@zhiltsov-max
In addition to this information, I clone the last version of cvat github on my second machine, but the version of my first cvat was v2.18.0.
Thank you.

No, you don't need to have the same versions of CVAT for backups to work. Please try to run this on the second machine:
cd cvat_repo/
docker compose -f docker-compose.yml -f docker-compose.dev.yml up -d --build
python manage.py migrate

@zhiltsov-max Thank you so much for your response.
I will test if.
But before create a project from backup I need to solve another issue about restricting worker download option.
I explained it clearly in this issue.
Please help me in this if it's possible for you.

I reinstall cvat from the first step and It works.
Thank you.


removed new tabs/links open in new window

Just made changes in the home page so links open in the same window. We will need to change this in other Views once they are updated.

Merge this into dev not master


feature: creating triggers via migration

I think being able to create triggers via migrations would be awesome =)

👍


Why is your github package called pycloud but your installed package is named pcloud?

When I install your github package named 'pycloud', it gets installed as:
~/.local/lib/python3.10/site-packages/pcloud/
why not have it installed as:
~/.local/lib/python3.10/site-packages/pycloud/
so it matches your github name?? Would it make sense to keep it consistent?

Good question 😉 . It was the intention to call it pycloud in the first place but this was taken on pypi already. In the meantime I think pcloud is the better name.

https://pypi.org/search/?q=pycloud
There are variances of the name but nothing exactly with “pycloud” on pypi. The closest I saw was pycloud189 or pyicloud. You can probably rename it as “pycloud”..

Would you consider chaning it to make it consistent?

Renamed package on github https://github.com/tomgross/pcloud


[Android] TextInput | Can't select text

[ x ] Review the documentation: https://facebook.github.io/react-native
[ x ] Search for existing issues: https://github.com/facebook/react-native/issues
[ ] Use the latest React Native release: https://github.com/facebook/react-native/releases

Environment
OS: Windows 10
Node: 8.12.0
Yarn: Not Found
npm: 6.4.1
Watchman: Not Found
Xcode: N/A
Android Studio: Version  <IP_ADDRESS> AI-181.55<IP_ADDRESS>56338
Packages: (wanted => installed)
react: 16.0.0 => 16.0.0
react-native: 0.50.3 => 0.50.3
Description
My app has got three navigation screens (implemented with react-router), and it has a textInput on the first and the third one.
On the first screen I CANNOT select text, on the third one I can.
It only works if I focus on the textInput and I switch from potrait to landscape and come back to potrait again, it's very strange.
I tried every thing that came across my mind, I read the issue #9958 but nothing on that helped me.
I really need my users to select text in order to copy/paste.. but I don't know how to fix that problem.
Reproducible Demo
Honestly I don't know how to reproduce this bug. I leave some code here of the first screen.
 <View style={styles.inputSave}>
        <TextInput style={styles.textInput}
                          onLayout = {(event) => this.setState({"inputHeight": event.nativeEvent.layout.height})}
                          underlineColorAndroid='rgba(0,0,0,0)'  placeholder={this.props.reduxState.mainScreenReducer.lang.insertChords}
                          onChangeText={(event)=> { this.handleReset(event); this.props.setInputRef(event)}}
                          onEndEditing = {(e)=> this.props.setOutput(e.nativeEvent.text.replace(/\n/g, " \n "))}
                          defaultValue={this.handleDefaultValue(mainScreenReducer.inputRef) }
                          multiline = {true}/>
        <SAVEbutton onPress={()=>{this.handleNameSongInput()}}
                              style={{aspectRatio:1, height:50}}
                              textColor={this.state.modal}/>
      </View>

styles.js:
  textInput:{
    flex:1,
    borderWidth:1.3,
    borderColor:"black",
    borderRadius:5,
    backgroundColor:"white"
  },
  inputSave:{
    flexDirection:"row",
    width:"80%",
  },

A gif that shows the bug:
At first I tried to select text in potrait mode, and I couldn't. Then I switched to landscape and I could, then to potrait and it all worked fine but every time I reload the app the bug comes back.

Related, and a current workaround: https://github.com/facebook/react-native/issues/20887


RAM consumption during compilation of vibe.d

For the cloud platform "Cloud Foundry" I have written a D buildpack. That enables me to upload d source files to cloud foundry. The buildpack downloads dmd and executes dub to compile the source code to a linux executable which will afterwards be executed.
Each application in cloud foundry has an isolated environment and there are also restrictions like 1024 MB RAM.
While trying to upload d source code which uses vibe.d it fails. The upload silently fails while compiling vibe.d:http sub package. My assumption is 1024 MB RAM is not enough for compiling vibe,d.
One idea was to only specify the sub packages really needed in the dub dependencies section:
"dependencies": {
"vibe-d:core": "~>0.8.0-beta.8",
"vibe-d:http": "~>0.8.0-beta.8"
},
But altough I specify these 2 sub packages only, all sub packages of vibe.d are compiled.
I am not sure whether you can do anything about this issue but I just wanted to notify you there is an issue with limited RAM while compiling vibe.d

This is strange, I was aware that memory consumption is barely acceptable in some cases, but it shouldn't build all packages when only code and/or http is referenced. 0.8.0 actually now has a pretty clean dependency structure. For which DUB version did this happen? Is there anything more to do to trigger this than "dub init" + adding the dependencies?
A possible way mitigate the memory consumption issue at the expense of increased build time would be to use --build-mode singleFile.

In a trace I now found this information:
vibe-d:http 0.8.0-rc.1: building configuration "library"...
Killed
dmd failed with exit code 137.
If I understand google correct, this means Linux has killed dmd due to the memory usage.
--build-mode singleFile has solved the issue.
I used dub included in 2.074.1 (linux) and it was just dub init and adding the dependencies.
I think I was wrong, although a lot of sub packages are compiled, not all sub packages are compiled.
But I think the issue is the size of the http sub packages, as the others before are compiled fine.

Dmd lowmem switch should solve this issue.


refactor (#1327): Remove autoservice

The pull request removes google autoservice as a dependency.
Not 100% sure if this is what @csviri meant in #1327 but either way it's a small change that removes a compile time dependency. So win win.


Admins and user itself sees private org relations on profile

This is inspired by @Unknwon 's post in #2571
The only thing left to do is let org admins see the private repos as well. And maybe get a yellow outline or something on the avatar

The only thing left to do is let org admins see the private repos as well. And maybe get a yellow outline or something on the avatar

Org admin is not as powerful as site admin, so they shouldn't be able to see that I think.

You're right, org admin is not as powerful. But still, Org owners / admins should see that the user is on the same team.

Thanks again!


Weird behaviour in Safari on iPhone

We implemented Readmore.js on the following page: https://www.paardenarts.nl/stories/ruby/ (click "Volledig achtergrondverhaal"). We used the following jQuery code to implement it:
$('[data-read-more]').readmore({
  speed: 400,
  collapsedHeight: 122,
  moreLink: '
Volledig achtergrondverhaal
',
  lessLink: '
Sluiten
'
});

When you open the page on an iPhone and you click "Volledig achtergrondverhaal" and scroll after it opened it closes again, but leaves the close link visible.
Can you please help me fix this?

Same behaviour on chrome for ios. (version 58.0.3029.83)

@toongijbels Just as a note: Chrome uses the rendering engine of Safari on iOS. That´s why you get the same result.

Same here

Same here.

Still no resolution to this strange issue?

@jedfoster Why did you close it? Is it solved?

Version 3.0 of Readmore.js will drop jQuery entirely, in favor of vanilla JS. I believe this issue will be fixed in 3.0.


Fixed optional spec in the docs.

Turns out that:

optional is already provided by dox, so we don't need to figure it out too.
The way we were figuring out optional was broken (it was finding anything with a URL -- and therefore a = character and marking it as optional...)

This PR:

Takes out the part where we doubly figure out if things are optional.
Changes where optional appears (puts it in the middle, right below the parameter type)

Just found a small positioning problem, hang tight.

Cool, good find!


python3Packages.sfepy: 2022.3 -> 2023.1

Description of changes

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[x] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
23.11 Release Notes (or backporting 23.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 236113 run on x86_64-linux [1](https://github.com/Mic92/nixpkgs-r
eview)

2 packages built:

python310Packages.sfepy
python310Packages.sfepy.dist

@ofborg build python3Packages.sfepy python3Packages.sfepy.passthru.tests


Playground: create and rename files

Closes #370 #371
This PR adds improvements on the tabs by enabling Create, Rename and Removing files.

right now the only problem with the current state of this PR is: renaming a file is changing the tab order, making the renamed tab go to the last tab,
this is not seeing to be a very small thing since sandpack doesn't have a native "rename" support, we are basically creating a new file (keeping the code) and deleting the old one, also we don't have a direct control on the visibleFiles api, which I'm using to show the tabs.
there's a tricky solution that seemed to work:
(close all the tabs on the right, open the renamed file (this will open a new tab), re-open all the tabs that were on the right, call open on the renamed file again (switch focus back), delete old file

here I create a list of actions that I need to execute after a file is created, and then I execute step by step.
I can't execute all this actions right inside the onRename function since the openFile & closeFile are on the end of the day just a set state, and these actions won't "compound" (only the last action would execute)
do you have thoughts?
on my end this implementation doesn't create flashes or weird UI changes

Hmm, interesting. Can you make a short video to demo this?
Yo, check this out @aidenybai.

short demo:
https://github.com/aidenybai/million/assets/50559336/811ff52b-dcff-43fc-bdf5-a012ce64a585

yeah, it would be very cool!

Awesome!

cool, so I'm already on the discord if you guys wanna talk about this, aside of that is there anything else missing on this PR?
I want to submit another PR with Console already with this updates as base

cool, so I'm already on the discord if you guys wanna talk about this, aside of that is there anything else missing on this PR?
I want to submit another PR with Console already with this updates as base

Let's chat on the playground channel in the Discord. 🏃🏃🏃

any thoughts on showing the file path on the tab?
https://www.loom.com/share/60abcddfa6604950b958600444649f32?sid=f090ef51-1254-4814-8551-0204a0684f1b

I also need to know if there's some preferred icon library to use for "close" and "add" icons,
aside from that, I don't think there's much left to do in this PR, waiting for reviews on it

also, for reference about keyboard navigation, you can switch focus on tabs pressing Tab, while focusing on a tab, pressing Space will select it (make it the active code shown on the editor), and pressing Enter will start renaming, this is the behaviour of macos Finder, and seem to be intuitive, any thoughts?

LGTM :) @GuiBibeau?


README

[] Template
[] Summary
[] Site Picture
[] Deployed Link
[] Table of Contents
[] Technologies Used
[] Installation
[] Process
[] DEMO GIFs
[] Code Snippets
[] Authors
[] License
[] Acknowledgements

[ ]


base64 endpoint status 500 with binary data

I want to use httpbin to test different binary response types, in this case having a null value in the middle of a response like the following 8 bytes of hex response:
cb d2 7c 42 00 a9 78 c2

I tried to base64 encode the value to use with the base 64 endpoint (as GET with Accept: application/octet-stream):
http://httpbin.org/base64/y9J8QgCpeMI=

But that results in the following http response showing an error:
Incorrect Base64 data try: SFRUUEJJTiBpcyBhd2Vzb21l

I have the same problem, when trying to feed a Base64-encoded CRL in DER format to the /base64/ endpoint.

Maybe leaving the .decode("utf-8") away in https://github.com/postmanlabs/httpbin/blob/master/httpbin/core.py#L1309 would fix the problem?


UV - Transcript Search with Autocomplete

Descriptive summary
Add the UV transcript search behavior from MDL.
A couple MDL files of note:

IIIF Controller
MDL IIIF Search

Worthing adding that MDL appears to use Tesseract to populate a word_boundaries field in Solr:
https://github.com/Minitex/mdl_search/blob/develop/lib/mdl/process_document_for_search.rb#L71-L95


Error finding location

Error finding location: The operation couldn’t be completed. (kCLErrorDomain error 0.)
I just accepted the location permission message,but nothing happened,throw an error as above..

Did you put your app key there?

yes, i had put it

I changed info.plist key "Localization native development region" value to "China" , and it worked, but sometimes it would fail to get my location.

Thanks, I will update the readme file to cover that.
Jake
Sent from my iPhone

On 15 Jan 2016, at 12:46 AM, Woz<EMAIL_ADDRESS>wrote:
I changed info.plist key "Localization native development region" value to "China" , and it worked, but sometimes it would fail to get my location.
—
Reply to this email directly or view it on GitHub.


Fix clan member sync broken by API changes

Hello, i update this two files and sync finish without errors right now, but the clan members list on site doesn't open.
jinja2.exceptions.UndefinedError
UndefinedError: 'dict object' has no attribute u'executive_officer'
Traceback (most recent call last)
File "C:\Python27\lib\site-packages\flask\app.py", line 1836, in call
return self.wsgi_app(environ, start_response)
File "C:\Python27\lib\site-packages\flask\app.py", line 1820, in wsgi_app
response = self.make_response(self.handle_exception(e))
File "C:\Python27\lib\site-packages\flask\app.py", line 1403, in handle_exception
reraise(exc_type, exc_value, tb)
File "C:\Python27\lib\site-packages\flask\app.py", line 1817, in wsgi_app
response = self.full_dispatch_request()
File "C:\Python27\lib\site-packages\flask\app.py", line 1477, in full_dispatch_request
rv = self.handle_user_exception(e)
File "C:\Python27\lib\site-packages\flask\app.py", line 1381, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "C:\Python27\lib\site-packages\flask\app.py", line 1475, in full_dispatch_request
rv = self.dispatch_request()
File "C:\Python27\lib\site-packages\flask\app.py", line 1461, in dispatch_request
return self.view_functionsrule.endpoint
File "C:\Users\user\Desktop\whyattend\whyattend\webapp.py", line 152, in decorated_function
return f(args, *kwargs)
File "C:\Users\user\Desktop\whyattend\whyattend\webapp.py", line 1187, in clan_players
last_battle_by_player=last_battle_by_player)
File "C:\Python27\lib\site-packages\flask\templating.py", line 128, in render_template
context, ctx.app)
File "C:\Python27\lib\site-packages\flask\templating.py", line 110, in _render
rv = template.render(context)
File "C:\Python27\lib\site-packages\jinja2\environment.py", line 969, in render
return self.environment.handle_exception(exc_info, True)
File "C:\Python27\lib\site-packages\jinja2\environment.py", line 742, in handle_exception
reraise(exc_type, exc_value, tb)
File "C:\Users\user\Desktop\whyattend\whyattend\templates\players\players.html", line 1, in top-level template code
{% extends "layout.html" %}
File "C:\Users\user\Desktop\whyattend\whyattend\templates\layout.html", line 163, in top-level template code
{% block content %}{% endblock %}
File "C:\Users\user\Desktop\whyattend\whyattend\templates\players\players.html", line 70, in block "content"
{{g.roles[player.role]}}
File "C:\Python27\lib\site-packages\markupsafe_native.py", line 22, in escape
return Markup(text_type(s)
UndefinedError: 'dict object' has no attribute u'executive_officer'
And another thing is that the "payment" doesn't show in template.
Do you have any clues?

Hi, I added the missing role "executive_officer" to the configuration. If you are using a custom local_config.py make sure to update it (see config.py)
With "payment" you mean the "Gold paid out so far" column in the players table? That's not implemented yet unfortunately: https://github.com/ceari/whyattend/issues/2

Thanks for answer, i add this to config, but to make it work i must add too:
'combat_officer': 'combat_officer',
'intelligence_officer': 'intelligence_officer',
Now the clan members show but i stiil dont have a payment (not the "Gold paid out so far") just standard calculator to spend gold...

Furthermore:
ERROR:whyattend.webapp:Exception on /sync-players/ [GET]
Traceback (most recent call last):
  File "/home/cwtracker/cw.psqd.co/cw.psycho/local/lib/python2.7/site-packages/flask/app.py", line 1817, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/cwtracker/cw.psqd.co/cw.psycho/local/lib/python2.7/site-packages/flask/app.py", line 1477, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/cwtracker/cw.psqd.co/cw.psycho/local/lib/python2.7/site-packages/flask/app.py", line 1381, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/home/cwtracker/cw.psqd.co/cw.psycho/local/lib/python2.7/site-packages/flask/app.py", line 1475, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/cwtracker/cw.psqd.co/cw.psycho/local/lib/python2.7/site-packages/flask/app.py", line 1461, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/home/cwtracker/cw.psqd.co/whyattend/webapp.py", line 227, in sync_players
    player_ids = clan_info['data'][str(clan_id)]['members'].keys()
AttributeError: 'NoneType' object has no attribute 'keys'

After some more issues, local_config.py should have:

    'leader': 'Commander',
    'vice_leader': 'Deputy Commander',
    'commander': 'Field Commander',
    'junior_officer': 'Junior Officer',
    'executive_officer': 'Executive Officer',
    'personnel_officer': 'Personnel Officer',
    'combat_officer': 'Combat Officer',
    'recruitment_officer': 'Recr. Officer',
    'intelligence_officer': 'Intelligence Officer',
    'reservist': 'Reservist',
    'recruiter': 'Recruiter',
    'private': 'Soldier',
    'recruit': 'Recruit',
    'treasurer': 'Treasurer',
    'diplomat': 'Diplomat',

BUT. WG seems to have changed the rank for Clan Leader and now it's called Commander, not Leader which messes up the in-app access rigths.

To have the ability to pay out you need @biurokomplex to add the new roles to the PAYOUT_ROLE.

Thanks for the info @enbewu
I've updated the defaults in config.py according to https://api.worldoftanks.eu/wgn/clans/glossary/?application_id=demo - it seems the role names changed quite a bit. Let me know if there are roles missing.

You missed Junior Officer, in local_config.py should be:
ROLE_LABELS = {
    "personnel_officer": "Personnel Officer",
    "quartermaster": "Quartermaster",
    "executive_officer": "Executive Officer",
    "recruit": "Recruit",
    "private": "Private",
    "commander": "Commander",
    "reservist": "Reservist",
    "combat_officer": "Combat Officer",
    "recruitment_officer": "Recruitment Officer",
    "intelligence_officer": "Intelligence Officer",
    "junior_officer": "Junior Officer"
}

Sync and players list working fine with that.

Hi, all and thanks for help, now all work fine. I have one more question about "profile" when you are login, when you click on your nick and click on "profile" that happend:
KeyError
KeyError: 0
Traceback (most recent call last)
File "C:\Python27\lib\site-packages\flask\app.py", line 1836, in call
return self.wsgi_app(environ, start_response)
File "C:\Python27\lib\site-packages\flask\app.py", line 1820, in wsgi_app
response = self.make_response(self.handle_exception(e))
File "C:\Python27\lib\site-packages\flask\app.py", line 1403, in handle_exception
reraise(exc_type, exc_value, tb)
File "C:\Python27\lib\site-packages\flask\app.py", line 1817, in wsgi_app
response = self.full_dispatch_request()
File "C:\Python27\lib\site-packages\flask\app.py", line 1477, in full_dispatch_request
rv = self.handle_user_exception(e)
File "C:\Python27\lib\site-packages\flask\app.py", line 1381, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "C:\Python27\lib\site-packages\flask\app.py", line 1475, in full_dispatch_request
rv = self.dispatch_request()
File "C:\Python27\lib\site-packages\flask\app.py", line 1461, in dispatch_request
return self.view_functionsrule.endpoint
File "C:\Users\user\Desktop\whyattend\whyattend\webapp.py", line 152, in decorated_function
return f(*args, **kwargs)
File "C:\Users\user\Desktop\whyattend\whyattend\webapp.py", line 1837, in profile
performance = analysis.player_performance(played_battles, [g.player])
File "C:\Users\user\Desktop\whyattend\whyattend\analysis.py", line 42, in player_performance
replay_data['second'][0]['players'])
File "C:\Users\user\Desktop\whyattend\whyattend\replays.py", line 163, in player_performance
v = v[0]
KeyError: 0
Do you have the same error? if yes, please give me the clue how to fix it.
Thanks again for all...

I implemented some fixes regarding handling of older replay versions that lead to this error. Please try it now.

All work fine now. Scheduled Battles, Provinces owned and profiles too. Thanks for help and we can close this topic ;) bye


Get sum of value answers

Hi all,
on my QuestionStep:
QuestionStep(
title: 'Congestive heart failure within the past month',
answerFormat: const SingleChoiceAnswerFormat(
textChoices: [
TextChoice(text: 'Yes', value: '1'),
TextChoice(text: 'No', value: '0'),
],
defaultSelection: TextChoice(text: 'No', value: '0'),
),
),
I see the text and value for each answer, I'm not able to see the value of all the answers when I finish the survey, only the text.
My need is to sum all the value... there is a way to do it?

Hey, sorry for the late response.
Here is an example of one of my projects where i calculate a score from the answers:
var score = 0;
    for (var stepResult in result.results) {
      for (var questionResult in stepResult.results) {
        if (questionResult is SingleChoiceQuestionResult) {
          score += int.parse(questionResult.result?.value as String);
        }
      }
    }
    return score;


Can't Seem to fetch news : Undefined class constant 'BATTLEROYALE'

Hi, I am getting this error when trying to retrieve the BattleRoyale news:
PHP Fatal error:  Uncaught Error: Undefined class constant 'BATTLEROYALE'
Solved:
Used NewsType::'BATTLEROYALE'
instead of News::'BATTLEROYALE'

If you're using the most recent version, it should be News::BATTLEROYALE. I made that change a few weeks ago.


Random jump to extremely high CPU usage

Is there an existing issue for this?

[X] I have searched the existing issues

What happened?
I have a two node cluster. After some time, all of the cilium agents jump to using an incredibly high amount of CPU. The usage has a very consistent upper limit, and the jump was very square, so it doesn't seem to be scaling with traffic of any kind. There are no difference in logs which appear to correlate with the timing. It always appears to be one of the agents following the other after a few hours.
This has happened before, and the last time the jump occured more than once, leading to almost complete node CPU saturation (as in, can jump from 0-4K m, then from 4-8K m etc). The gaps between these jumps are in the range of 1-5 days. The last time this happened, restarting the agent daemonset reduced the CPU usage to normal levels (~50m).

Cilium Version
v1.14.4
Kernel Version
5.15.0-89
Kubernetes Version
v1.28.4
Sysdump
Way too much sensitive stuff in there - if there is anything specific you might need, I can upload individual files with redacted info.
Relevant log output
No response
Anything else?
No response
Code of Conduct

[X] I agree to follow this project's Code of Conduct

True to the nature of github issue search, I find https://github.com/cilium/cilium/issues/29175 after posting this issue. This is likely a duplicate. Will leave open for opinion.

Yes, as you said this is duplicate of #29175 which is fixed and will be part of the mid-December release. Thank you


Add flashswap Demo of uniswapV3

Contains complete uniswapv3 code and compiled
Contains an easy-to-understand test script

So many files change....cloud you remove uniswapV3 contracts file , use npm libaray instead?(like @uniswap/v2-core, @uniswap/v3-core etc)

Libraries are a great way to do this.  the reason why I did not use the library but use the source code is to better debug its call process, a deeper understanding of the call process.

So many files change....cloud you remove uniswapV3 contracts file , use npm libaray instead?(like @uniswap/v2-core, @uniswap/v3-core etc)

Libraries are a great way to do this. the reason why I did not use the library but use the source code is to better debug its call process, a deeper understanding of the call process.

Personally, I think hardhat's Console library is a great tool

Contains complete uniswapv3 code and compiled
Contains an easy-to-understand test script

I have done a litter here,   https://github.com/rebase-network/Dapp-Learning/tree/main/defi/Uniswap-V3/frontGuid/sdk
you may add some change on it.  Please add a link in task20  is enough.

So many files change....cloud you remove uniswapV3 contracts file , use npm libaray instead?(like @uniswap/v2-core, @uniswap/v3-core etc)

Libraries are a great way to do this. the reason why I did not use the library but use the source code is to better debug its call process, a deeper understanding of the call process.

Personally, I think hardhat's Console library is a great tool
There is no need to add sol test file too .

So many files change....cloud you remove uniswapV3 contracts file , use npm libaray instead?(like @uniswap/v2-core, @uniswap/v3-core etc)

Libraries are a great way to do this. the reason why I did not use the library but use the source code is to better debug its call process, a deeper understanding of the call process.

Personally, I think hardhat's Console library is a great tool
There is no need to add sol test file too .


Scale - values as opposed to percentages (ex: dBm)

Is your feature request related to a problem? Please describe.
Would it be possible to have scale defined as values rather than percentage from 0 to 100%?
The plugin auto fills in with the "rest" of the scale, and having negative values messes up the graphical representation of the scale
Describe the solution/feature you'd like
Have a drop down box with "values" rather than percentage.
Having the bandwidth to be an optional info on a link as it wouldn't be needed in this case.
Additional context
This comes in handy to graph levels in dBm, q factors, SNR, which are comparable for different links without a reference like total bandwidth.
thank you

I would love to see this also. Same problem here with negative numbers messing up the scale

One possible mitigation in my case would be to set a "link base color" for any values beyond the percentage range (i.e. negative values). However, the "link base color" appears to have a bug too https://github.com/knightss27/grafana-network-weathermap/issues/81


Investigate smarter approaches to frame limiting

Summary:
In 0.5.6, we switched from doing std::thread::yield_now at the end of the game loop to doing a 1ms std::thread::sleep. This was to avoid issues some people were having with high CPU usage when the game is minimized or when vsync is turned off.
This appears to be due to the fact that std::thread::yield_now doesn't guarentee the thread will yield - it'll only yield if there's work to do elsewhere. std::thread::sleep, on the other hand, guarentees that we'll yield for some amount of time, putting an effective cap on the max FPS and preventing the game from maxing the CPU core. This is the approach used by Love2D's default game loop, and I've not noticed any ill effects from it there.
That said, I would like to investigate whether there's a smarter approach to this, as sleeping for 1ms in all cases seems like a bit of a clunky solution (e.g. if the game is running slowly, you might want that extra headroom rather than a millisecond being wasted). I'm not entirely sure if it's necessary though.
Why is this needed?
Just for my own peace of mind, and to make sure that we're not leaving any performance on the table.

By the looks of it, the high CPU usage when minimized is due MacOS itself disabling vsync for windows that aren't visible 🤦 It's been reported on SDL itself too, and GLFW has implemented a workaround.

After doing a bit of research, it sounds like the most reliable way to do framerate capping is to use something like spin_sleep, which spends as much time as possible sleeping the thread and then busy loops for the remainder - this allows for much higher precision than relying on the OS scheduler alone.
FNA recently moved to using something like this as well (though the logic is a bit weird due to them inheriting the behaviour from XNA - they only do it for fixed timestep, with no built-in support for interpolated rendering).
Most people should probably still use vsync for frame limiting, but I'll look into adding this as another option (maybe in 0.7, as I'd like to tweak some of the timing APIs).

It's off-topic to ask you a question about English, but in English, do you describe doing a busy loop as a "spin"?

Yeah, looping to pause the thread while you wait for something to happen (rather than sleeping) is sometimes referred to as a 'spin loop', 'spin waiting', or just 'spinning'.


Github authentication added

Github authentication added with PAT.

Code efficiency is still a problem and user experience is still complex I feel can you restructure


Please Whitelist Google Drive

Google Drive links are not yet allowed to embed. Please whitelist google drive link to enable it to embed successfully. Thank you so much.

I believe Google Suite domain isn't allowed to be embedded, but I can check again. What type of file are you trying to embed?

Yes, I am unable to embed but when I tried, the suggestion that I should ask for the website to whitelisted on Github popped up. So I thought I'd do so, in case this an adjusted that can be done to the website.
I'd like to embed an audio stored on Google Drive.


Robust Message Queue Protocol

See the corresponding PR from Parabol.

there are still a few pain points with the current implementation:

queue is pretty small, sending 64 messages/x seconds is definitely possible
server can send a message at LEAST once, and we don't want to handle duplicates
client has to wait for the server timeout to resend the message. could be faster for the client to just request a message if it knows one is missing
this currently breaks the this.decode method since one could send all this stuff via some other protocol (msgpack, byte array, compressed, etc)

i'll take a crack at a new protocol & write it out for the client & see what you think about implementing it on server side

Close in favor of #2


User Mentions

When someone mentions your name, the message should be highlighted. Could also give some sort of notification in the tab, perhaps using favico.js.

Auto-complete names on typing @ - Github-style

I implemented a simplified version of tab completion in #34, let me know if that fits your second comment

It's a good start; perhaps later it could show a list to easier select a user. For example, if there are multiple users with names that are close to eachother:

a
aabb
ab

As soon as I hit @ I'd get a list of all users in the channel. As I type in a letter, it will narrow down to users starting with those letters. @a => ['a', 'aabb', 'ab'].
This could be reused for commands using / as a trigger.

I understand what you mean but was hesitant about modifying the UI without first getting @AndrewBelt's thoughts. He has done an excellent job at keeping it clean and simple, so perhaps he can chime in on whether we could have some type of pop-up list for usernames?

I like #34. I'll get to it tonight, maybe. I have to keep the production server stable tomorrow since I'll be gone all day, but it looks like a simple small change.

Looks like this issue can be closed since #34 is now merged.

no because we still have no highlighting when mentioned :(