text:
Only set the log level if bluetooth is available.

Without this change, setLogLevel inside FlutterBlue.instance throws a PlatformException

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

Please accept the CLA, so that someone can merge this. Or let us know if you don't want to, so I would create the PR.

It doesn't seem to be in the master yet, so if there's a PR open for it already, please link it and ask @pauldemarco to close this PR.

ah, hm. Okay. Let me get the CLA okay-ed by Google's lawyers since this change was done on company time. I'll get back with you shortly I hope!

Hi @andretietz I got the approval from Google lawyers. Can you take another look?

Looks good so far, I personally would remove the version change, since this is up to @pauldemarco to decide. If he merges something else before and increasing the version number, he will change this anyways.

made the requested changes

@efortuna Did you check that it doesn't crash, if there's a log before setting the loglevel?

Hi @efortuna @andretietz,
Sorry for the delay on this, I have some questions.
It was my intention that setting the log level should succeed whether or not Bluetooth is available. On future platforms, we may need to set verbosity during times when Bluetooth is unavailable.
It looks like this will only error out if FlutterBlue is being used on an unsupported platform... something other than Android/iOS. Was this the case?

It's been a long time since I encountered this issue so I could be wrong, but if memory serves, this happens if you run it on an Android or iOS simulator? IIRC you have to construct a FlutterBlue object to be able to check the "platform is supported" call (it's not a static method) so you have to construct an object to do that check. Hence this constructor dealing with the resulting crash of setting logging on an "unsupported platform" (aka a simulator).

It's basically crashing when (for some reason) running on a device that doesn't support bluetooth. Usually this cannot happen, since the play store is not showing apps to devices without bluetooth if bluetooth is required, but in cases of manually installing an apk and the emulator, this just crashes.

This happens every time you run on a simulator. Which is a very common occurrence if you're developing an app. And this plugin shouldn't crash just because a user has run it on some "unsupported device" (perhaps they have bluetooth off?).

authors: CLAassistant andretietz efortuna pauldemarco


text:
Scrollbar size issue in Chrome

Hi,
Scrollbar size is not proper in chrome. Please make the scrollbar size similar to Firefox browser.

Removing the css classes "jexcel_content::-webkit-scrollbar", "jexcel_content::-webkit-scrollbar-track", "jexcel_content::-webkit-scrollbar-thumb" in jexcel.css file the scrollbar looks nice.

I suspect you have some cache CSS. Can you please confirm, I have just tested on Chrome.

source: gharchive/issue

authors: Ilayaraja-n paulhodel

repo: paulhodel/jexcel

license: mit

license_type: permissive

license_source: bigquery


text:
🛑 Taqueria Bonjour is down

In 77569be, Taqueria Bonjour (https://bonjour.paulynomial.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Taqueria Bonjour is back up in ed61e81.

repo: paulkiernan/paulynomial-uptime

license: MIT

license_source: github-api


text:
Doesn't work with relative paths

Describe the bug
I'm trying to listening for changes in a set of .yaml files on a config folder. So I have set the path to relative ./config but it only checks on the root folder for changes and not on the config folder.
Versions (please complete the following information):

Chokidar version: 3.5.2
Node version: v16.1.0
OS version: Windows 10

To Reproduce:
Steps to reproduce the behavior. Include filename and chokidar config.
Ideally prove a problem by isolating and making it reproducible with a very short sample program, which you could paste here:
const chokidar = require('chokidar');
const watcher = chokidar.watch('./config', {
    persistent: true,
    ignored: (filename: string) => path.extname(filename) !== '.yaml',
    awaitWriteFinish: true
})

Most valuable could be one or more test cases for test.js to demonstrate the problem.
Expected behavior
Should listen for file changes on the config folder instead of the root one.
Additional context
The watcher is on a package that I created with a cli command that I can run anywhere from my laptop. It works fine with fs but not with chokidar.

does it work with absolute path? if not, then it's a problem isolated to your system

@paulmillr It does work fine with absolute path.

Found the issue but discovered another.
ignored: (filename: string) => path.extname(filename) !== '.yaml',
I thought that this was suppose to ignore all the files that don't end with the .yaml extension but it doesn't.
It will compare the folder name that in this case is called config and since it doesn't have the .yaml at the end it will fail and not add it which makes this feature kind useless if you only want to filter by a file type.

authors: esfomeado paulmillr

repo: paulmillr/chokidar


text:
Width and height must be > 0 Exception

I'm trying to get an example of an arrow in a list view. I initialized the SVG plugin when the app starts up. With one of my SVG's I just see an empty block and the other gives me the following exception. The SVG that is throwing the exception is came from The Noun Project referenced in the documentation (right_arrow.svg), and I don't remember where I got the other from (chevron_right.svg).
The exception:
Java.Lang.IllegalArgumentException: width and height must be > 0

My tag looks like this:
 <svg:SvgImage Grid.Row="0" Grid.Column="1"
                                SvgAssembly="{x:Static helpers:SvgHelper.Assembly}"
                                SvgPath="{x:Static helpers:SvgHelper.RightArrowPath}"
                                HeightRequest="40" WidthRequest="40"
                                BackgroundColor="{Binding ItemBackgroundColor}"
                                HorizontalOptions="Center"
                                VerticalOptions="Center" />

And the SvgHelper looks like this:
public static class SvgHelper
{
    private static Assembly _Assembly;
    public static Assembly Assembly
    {
        get
        {
            if (_Assembly != null)
                return _Assembly;

            return _Assembly = typeof(SvgHelper).GetTypeInfo().Assembly;
        }
    }

    public static string ChevronRightPath { get { return "InnlightenMobile.Content.Svg.chevron_right.svg"; } }

    public static string RightArrowPath { get { return "InnlightenMobile.Content.Svg.right_arrow.svg"; } }

}

I think the SvgReader only understands sizes if they are in "px" - open the SVG in a text editor and check the properties on the root  element

I have the same issue, px unit is present at x and y parameter so that is not the case.

Can you share the svg? I can take a look at the issue tonight, I'm troubleshooting the library anyway
Sent from my iPhone

On Jan 27, 2017, at 1:14 AM, zmayac notifications@github.com wrote:
I have the same issue, px unit is present at x and y parameter so that is not the case.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

Originally x and y were set to 0px, here i changed it to 40px, no difference.

In the SVG attached there are no width and height tags
Try this:
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" **width="100px" height="100px"**
	 viewBox="0 0 16 16" enable-background="new 0 0 16 16" xml:space="preserve">

Now i get blank image, no exception but image doesen't render.

Any solution?

I had this same issue.  Initially i was getting the width and height must be greater than 0 error.  Then i added those tags and it was resolved.  Then it wasn't rendering.  For me,  it was because the  line itself didn't have fill="color".  I had gotten the svg file from Google's material icon site and they were specifying the fill in the  tag so .  i moved the fill into the path tag (  ) and it began rendering.  I know this is a bit late, but hopefully it will help someone else having this problem.

authors: StenPetrov diasnicolas johnmangold rupe120 zmayac


text:
Python3 compatibility

We should make sure this script runs under Python3 as well as Python2.7
Here are the best practices for doing that:
https://github.com/nanograv/PINT/wiki/Python-Compatibility

Just went through, applied all the things in that doc, and pushed the edits

authors: owlreader paulray

repo: paulray/NICERsoft


text:
ESC key

ESC key can be useful in apps, but it's impossible to use it in emulator.
Can we use another key to force close the emulator window?
Maybe F12, ctrl-Q or Ctrl-ESC ?

Ctrl-ESC does actually work :)
The emulator uses the same skeleton program I've had for a while - there's a reason the Commander X16 debugger looks near identical, I wrote it.  This uses various function keys for set breakpoint and single step, and ESC to exit.  The machine itself uses both, so it's set up if you do Ctrl-ESC it behaves like you just do ESC.

authors: bocianu paulscottrobson


text:
Cross-compile error for Windows

I'm trying to build executable for Win10 platform, and get errors like:
► iMac@ykpiv$ GOOS=windows GOARCH=amd64 go build -o ykls.exe ykls.go
# pault.ag/go/ykpiv
src/pault.ag/go/ykpiv/tls.go:29:12: undefined: Slot

Everything is ok when building for darwin:
► iMac@ykpiv$ GOOS=darwin GOARCH=amd64 go build -o ykls.osx  ykls.go

and it works like charm (standalone). Same when running go run ......
But my main target is Windows-platform, and cross-compiling for windows (within osx) is best for developing my project.  So I need some newbie help !
Maybe I'm missing something :

header files (#include <ykpiv.h>)  ??
dll :s  ??  I have osx libykcs11.dylib in my project root
some cgo flags ??

Can you help to figure my toolchain for this cross-compile.
Otherwise cross-compiling (osx -> win) is working very well (at least with std.libs).
But cgo or cross-compiling is new to me :(

hey @paultag are you able follow up on this at all? I'm also trying to compile for windows and get the same error

Hey, I've not. I don't have any Windows machines handy, and I don't have a ton of time. If someone can track down why this is happening, I'd take patches, but I've never spent time getting this working on Windows.
FWIW, the #cgo directives in slot.go are #cgo linux may need to be tweaked or set for Windows, or maybe it's something with regards to not having the Windows .dll files. Not sure.
I don't know much about the Windows build toolchains, nor how well cgo cross-compiles work when you're targeting Windows :)

I'm still interested solving this. Now I use Node+Graphene(Electron) for my solution, but it had also some problems with Windows. Better solution for my project would be Golang. Haven't had time to play with this, so @ryandeivert if you have some ideas ...

So managed to make it work on Windows, here is a short instruction
https://github.com/luc-lynx/go-ykpiv#running-on-windows
and you must also add the following lines to the ykpiv.go:
#cgo windows CFLAGS: -I./win/include/ykpiv/
#cgo windows LDFLAGS: ./win/lib/libykpiv.dll.a

@luc-lynx awsome! I have the change locally; do you want to send a PR I can merge for this or should I just push the lines as is. Thank you for your help!

Scratch that I see your Windows commit. I pushed that as 3d7808f34fc02756d50feb404f20bd072d8fafec

authors: luc-lynx netmiller paultag ryandeivert

repo: paultag/go-ykpiv


text:
If the first row was not string, and first value was double, then any string later will be null

See this stackoverflow case
https://stackoverflow.com/a/28862382/4516125

I have the same problem.
Suggestion: When defining the mapping you could also specify a type to which the mapping should "convert" or extend the transformations in that way.

Can you show me an example? Mapping does not work for me.

My previous comment is not relevant, becasue OleDbDataAdapter "decides" what data types are the columns going to be. Based on my research you can't define a columns's data type when reading from excel (I have downloaded the solution in debugged it and seen how the dataadapter works). Normally it analyses the first 8 rows and defines the data type based on the pattern from this rows. You could change the number of how many rows should he read in the registry but I do not garanty that will work.
In my case there where 3 rows empty, then one had a number and the 5 where empty and the one had a string. So the adapter defined the column as a number which was wrong. The only thing that seem to work for me was to define the cell/column type from "general" to "text", then all the values where read as string.

Thank you very much, this conversion from "general" to "text" worked well with me

Is any other solution for this? that done by some setting in code.

repo: paulyoder/LinqToExcel


text:
Мультидерево, проблема обновления элемента

Доброго дня!
Есть таблица с множественными nested sets в ней.
При попытке обновить (не добавить!) отдельную запись, которая является вершиной дерева - происходит ошибка, выражающаяся в том, что treeAttribute оказывается равен id обновляемого элемента, а не id дерева. Хотя id дерева уходит правильный.
Проблема возникает потому, что treeChange в beforeUpdate заполняется только если изменено treeAttribute. Но, мне то надо просто имя корня дерева поменять.
Если строку $this->treeChange = $this->owner->getAttribute($this->treeAttribute); вынести из if, в который она обернута - код начинает корректно работать.

Либо необходимо сделать дополнительную проверку на $leave->getIsNewRecord() == false перед тем, как делать $leave->makeRoot()

Правильно, я понимаю, что вы хотите сделать существующий НЕ корневой узел, корневым, и при попытке это сделать, у вас не сохраняется заданный treeAttribute?

нет, я делаю update существующего корневого элемента.

treeChange проставляется только если вызвать makeRoot(), зачем делать makeRoot при update? У вас меняется treeAttribute?

Нет, я стремился свести к минимуму разницу между созданием и обновлением.
Сейчас там лишний if из-за этого.
А вот если кому-то реально понадобится сперва insert, а уже потом сделать makeRoot()?

authors: defk paulzi


text:
Add "dark" and "light" alias

Right now for --theme this reuses Rich's argument values. Create an alias for "ansi_dark" and "ansi_light"—"dark" and "light".

Closed by 06bd9be8dcf0b1a171c78d917eaef10ef63ebf73

repo: paw-lu/nbpreview


text:
🛑 Visit Gary is down

In c98a4b9, Visit Gary (https://visitgary.net) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Visit Gary is back up in 904f648 after 23 minutes.

repo: pawbyte/uptime


text:
Introduce KAnimator

This will fix #44.
Introduce a new extension group for Animator class: KAnimator. Contains (at the moment) an extension function to simplify calls to Animator.addListener().

Ok, thanks!

source: gharchive/pull-request

authors: MrHadiSatrio pawegio

repo: pawegio/KAndroid


text:
feat - Geocode API

Geocode API
장소의 주소를 통해 좌표를 요청하는 API입니다.
URI
GET /geocode
Request Fields

Field
Type
Description

key
String
요청 검증을 위한 키

address
String
주소(ex.서울시 군자동  능동로 209)

coordinate
String
결과가 복수일 시 거리에 따라 우선순위를 부여하기 위한 좌표

Response Fields

Field
Type
Description

branchAddress
String
지번주소

roadAddress
String
도로명주소

x
Number
좌표X(경도)

y
Number
좌표Y(위도)

added in e9d3d2cdb32b8bbd91dd3cc029f4ea6e4fe50c72

authors: LIMECAKE seongbuming

repo: pay-map/Paymap-Server


text:
Minor bug in admin ui - media items per page in media collection

Bug Report
When viewing media collections the paging is incorrect and leaves empty slots.

Steps to Reproduce

Upload media to payload
View the media collection listing page in admin

Other Details
The "per page" options need to be different for media libraries to ensure that a full page is shown at all responsive breakpoints. Simply adding 2 to the current options if its a media collection would suffice.

Thanks for reporting!
You are right this is a bug, but it is not one we are going to fix. We are planning to remove this separate list view for upload collections and instead use the table component.
In the future we will have other list view options. For now we can close the issue and move towards the single view.

@DanRibbens is there a way to show the upload (when) its an image as preview in the list view? So its regognizable in the list view?

@DanRibbens is there a way to show the upload (when) its an image as preview in the list view? So its regognizable in the list view?

I'm not sure I understand the question @dominikzogg. The list view shows a preview of images in a thumbnail size. Are you saying that is too small for your use?
You can make that larger by applying some custom CSS if you wish. We wrote this up for an enterprise client who asked this question so I'll share it for you also.
If you haven't done any custom css in your Payload app, you can see how from the docs: https://payloadcms.com/docs/admin/customizing-css#adding-your-own-css-scss
Then you can use these scss options below.
Here is the Payload default styles for reference, in your case you don't want images cropping this way.

Contain
Keeps square dimensions of base(3) x base(3) while preserving the original aspect ratio of image
.table {
  .file {
    .thumbnail {
      img, svg {
        object-fit: contain;
      }
    }
  }
}

Contain with max width
If square dimensions are not desired then &__thumbnail could be changed to whatever desired height or width & while preserving the original aspect ratio of image
.table {
  .file {
    &__thumbnail {
      // display: inline-block; Already exists
      max-width: base(6); // Originally base(3) - this can be changed to whatever is needed
      // height: base(3); Already exists
    }

    .thumbnail {
      img, svg {
        object-fit: contain;
      }
    }
  }
}

@DanRibbens now i know how it should look like, i dont have any preview currently in the list, probably i miss configured something. I am using it with the s3 plugin.

Ah, makes sense! This is probably what you're missing: https://payloadcms.com/docs/upload/overview#admin-thumbnails

@DanRibbens I got a preview in detail view and also in upload fields, but not in the list view (and there is also no DOM that indicates something could not be loaded)
import type { CollectionConfig } from 'payload/types';
import { isAdminOrHasRole } from '../access/is-admin-or-has-role';
import { createdByField } from '../fields/created-by';
import { updatedByField } from '../fields/updated-by';
import { mimeTypes } from '../fields/media';

export const media: CollectionConfig = {
  slug: 'media',
  admin: {
    useAsTitle: 'filename',
    defaultColumns: ['filename', 'alt', 'createdAt', 'createdBy'],
    group: 'System',
  },
  access: {
    create: isAdminOrHasRole('media_create'),
    read: isAdminOrHasRole('media_read'),
    update: isAdminOrHasRole('media_update'),
    delete: isAdminOrHasRole('media_delete'),
  },
  upload: {
    adminThumbnail: 'thumbnail',
    imageSizes: [
      {
        name: 'thumbnail',
        width: 175,
        height: 175,
        position: 'centre',
        fit: 'cover',
      },
    ],
    mimeTypes,
  },
  fields: [
    {
      name: 'alt',
      type: 'text',
      localized: true,
      required: true,
    },
    createdByField(),
    updatedByField(),
  ],
};

it seemed that that the following get ignored, except the group
admin: {
    useAsTitle: 'filename',
    defaultColumns: ['filename', 'alt', 'createdAt', 'createdBy'],
    group: 'System',
  },
  ``

@dominikzogg
defaultColumns are only applied the first time a user visits that collection list. After that you'll have preferences saved that take over the columns. Could that be the reason you don't see the filename column?
If you think this is a bug you should create a new issue that describes the issue better so we have it documented and can fix it.

@DanRibbens i did not know about the behavior of defaultColumns. It works know as excepted.

authors: DanRibbens dominikzogg hades200082

repo: payloadcms/payload


text:
Sometimes items is an empty array when clicking an item

downshift version: latest
node version: 8.4
npm (or yarn) version: 5.3.0

What you did:
Select an item per left mouse click
What happened:
Most of the time it would select the item as expected. However sometimes it will not.

Reproduction repository:
https://codesandbox.io/s/l2yk1qqqrm
Problem description:*
This is due to the fact that at the point of time the item is clicked it has not yet been added to the items array.
Suggested solution:
No idea yet how to solve this.

Thanks for the issue @ferdinandsalis!
Yeah, looking into this I've realized something kinda tricky about the way that downshift is implemented. We make the assumption that you'll render all items you need synchronously on every render. And you can make this work if the component you wrap is the whole downshift component rather than just the list (see this example and the Apollo example).
If for some reason you'd rather connect your menu, then maybe there's something we can do...
What if we exposed a clearItems method for you to call when the items load? Here's a demo of what that might look like: https://codesandbox.io/s/rwrjzyqm7q
In that example, I do some magic to simulate the built-in API, but it really would be as easy as calling clearItems anytime your list is rendered.
If you like that, then I welcome you to make a PR to add it. Here's what you'd need to do:

Document the new method in the README (under actions)
Test the new functionality (in the misc tests)
Add clearItems to getStateAndHelpers
Implement clearItems (somewhere around here maybe?)

Let me know what you think :)

You could also add TypeScript types.

Yeah, that'd be great! Should hopefully be pretty straightforward given the existing types and the simplicity of this API. It's just a function with no args and no return :)
One other thing, you could replace this with a call to clearItems

I am bit confused since you I am doing the same thing as in your Apollo example, or am I missing something? Also could you elaborate more on the problem, I dont yet understand it and how clearItems solves the problem?

The Apollo example wraps the component that renders <Downshift />, yours renders the items within the downshift component.
Downshift keeps track of all the items on its own instance. It clears them every render and adds them all to the list as they're rendered. The problem is that you're rerendering the menu yourself (or rather Apollo is), so the items don't get cleared between renders, leading to unpredictable contents in the items array.
So if you want to be able to dynamically render items without rerendering all of downshift, you'll have to clear the items yourself.
Of course, an alternative would be to wrap the whole component in Apollo (rather than just the menu) like the existing example... :)

@kentcdodds thanks for explaining! I will take a look.

Implemented in https://github.com/paypal/downshift/pull/187

That landed quickly. Thanks @kentcdodds. I guess I can close this.

Thank you! :tada:

@kentcdodds sorry for being a pest but sadly this did not fix the issue. One more detail I noticed about the issue is that when using the cursor keys and enter to select an item it always works. I think it must have to do with the mouse over and the re-renders. Every little movement will lead to a re-render and clearing of items and adding of new items. Sometimes a click will then stumble upon an empty items array. I hope this is clear. Happy to chat about it.

Yeah, that would be an issue... Do you not have any control over what props result in a new network request? You should only make a request when the input value prop changes... Does the higher order component have something for that?

Yes that is what I am doing. Only if inputValue changes a new network request is made. I dont see how this is related to the issue though. I am doing exactly same as your apollo example but also I am skipping the hoc if the inputValue is empty.
const withData = graphql(LIST_ITEM_SEARCH, {
  skip: ({ inputValue }) => {
    return inputValue == null || inputValue === '' ? true : false;
  },
  options: ({ inputValue, listId }) => ({
    variables: { searchString: inputValue, listId },
    fetchPolicy: 'cache-and-network'
  })
});

That logic isn't preventing a rerender when the input doesn't change. It's preventing rerender when the input is falsy.

Right, but why does this matter here. I have typed my search and received my results and now I want to select an item either by keyboard or mouse. Apollo wont do a network request at that point. I fear we are talking past each other. Sorry if my explanation is inadequate. Feel free to ignore this issue if you wish.

Oh, I think I understand now! What if you only clear the items when it's loading?

Or maybe only clear them after it's loaded?

Would you be open to quickly discussing this via skype or similar?

No, that did not work either. I am lost ☺

Sorry, we just had our 4th baby, so I'm afraid I'm a bit limited with what I can do to help at the moment 😅

I'm using the new clearItems API since I'm fetching results for autocomplete in my scenario. I believe that we should reset the highlightedIndex back to the default when clearItems is set. Otherwise, it gets maintained and can have a value larger than the number of items. Thoughts? If there is agreement, I can submit a PR.

Hmmm.... I'm not certain that'd be best. I can't think of all use cases, but I think what would be better is for you to just call setHighlightedIndex(0) or something 🤔
Otherwise we may make the wrong choice for people wanting to use the clearItems API in the future.

Oh yeah, good call. Didn't even realize setHighlightedIndex was exposed. Thanks (and congratulations! :wink:)

No worries and congratulations! I am still at number one 😊

Hi @kentcdodds, I looked at my problem again and I now understand that the complexity of the rendered children influenced wether I could select something with the mouse or not (apollo and the asynchronicity nature of the task was not an issue) .
For example I am using styled-components right now and I have few of those styled components that make up an item (see below for code). Apparently this was enough that sometimes when clicking the item the internal item array was not yet populated.
const Menu = ({
  highlightedIndex,
  selectedItem,
  getItemProps,
  data
}) => {
  const { items, loading } = data;
  if (loading || items.length === 0) {
    return null;
  }
  return (
    <List>
      {items.map((item, index) => (
        <Item
          {...getItemProps({
            item,
            index,
            key: item.id,
            disabled: item.isIncluded,
            active: R.equals(highlightedIndex, index),
            selected: R.equals(selectedItem, item)
          })}
        >
          <Work {...item.work} />
        </Item>
      ))}
    </List>
  );
};

const Work = pure(({ cover, title, artist }) => (
  <Flex>
    <Cover width={48} height={48} image={cover} />
    <Box ml={3}>
      <Text mb={1} bold>
        {title}
      </Text>
      <Text>{artist && artist.name}</Text>
    </Box>
  </Flex>
));

To mitigate this problem I have wrapped the Work component in pure hoc from recompose which implements shouldComponentUpdate  ☺ with a shallow compare of the props it gets passed. This has solved my problem. I can now select an item any time.
Clearly this was not a problem of downshift. However I assume a few other people will encounter this problem. What do you think? What could downshift do? For example to reduce the probability of this issue couldn’t we debounce the mouseover event?
Anyhow that all. I just wanted to give you a follow up.

Thanks for following up. I'm a little confused by this:

Apparently this was enough that sometimes when clicking the item the internal item array was not yet populated.

What actually makes it so the list of items is not yet populated?

Sorry my understanding of react internals and js are still limited. However my understanding is that on every render — which happens a lot when moving the mouse over the items — it also newly renders the children, thus there is quite a bit of work happening. So it should be possible that at the point of clicking an item this.items is not yet fully populated. Anyway since implementing shouldComponentUpdate solves the problem it seems to support my argument, no?

I think I understand. So if items have a slow render method, then the user can click before things have finished rendering? Hmm... If you could dig a little deeper then that'd be great, but I think the best we can/should do is add documentation that says folks should implement shouldComponentUpdate on their items.
Another thing you might consider is implementing windowing with react-virtualized.

Yes will dig deeper. Will be a great way to learn more. Thanks for the feedback.

@kentcdodds I'm dealing with the same issue. For me, from what I can tell, what happens is that when I click the first search result, it causes a new downshift render (which calls clearItems), and then subsequently rerenders my search results**. After that, the onClick handler executes and calls selectItemAtIndex.
** However, react-apollo has a shouldComponentUpdate, and it returns false for this rerender, so the items are cleared inside downshift, but there is no subsequent rerender so the items are left empty. I believe this theory to be the case because when I set my react-apollo component to have a prop such as <Component forcerender={() => {}} />, the problem is fixed.

Hi @dylanmoz,
Sorry, I'm afraid I don't have much time to dedicate to looking into this for you. If you could dig deeper and come up with a suggested solution (whether that be code or documentation) I'd be happy to look at it. Good luck!

Huh, I think I ran into this same issue in a different context.
In our case, we have a react Component inside our <Downshift> element that's responsible for actually rendering the menu, and it extends React.PureComponent. By sticking console.log statements inside Downshift itself, I found the same thing that others have found: under some set of circumstances, the items array gets cleared during a mouse enter. This alone might be okay, but in combination with setting defaultHighlightedIndex={0}, this means that when I mouse over the first item, because none of the props changed, the menu doesn't re-render (thanks, PureComponent), but if I then click on that first item, the items array is still empty, so it fails to find the item and the event handling ends.
In our case, I guess the solution is to not use PureComponent, but this kind of makes me think that making getItemProps populate internal state is a little bit of a footgun. I certainly like the behavior of Downshift and the API is nice overall, but I wonder if there's a better way of doing it. For my specific case, I suppose it could be solved by implementing something that prevents Downshift from re-rendering itself if none of its props/state changed (nothing should have changed because the hovered item was the defaultHighlightedIndex) but there might be other cases where that doesn't work. I don't fully understand the other issues because I haven't used react-apollo, but it sounds like it could be a similar problem with shouldComponentUpdate. Is it enough for Downshift itself to implement shouldComponentUpdate?

I guess the solution is to not use PureComponent

Bingo, that's your solution. Please don't use PureComponent without an associated benchmark showing that it's necessary because otherwise it causes more problems than it's worth.

making getItemProps populate internal state is a little bit of a footgun

To be clear, it's not populating state in the React sense, but an instance property. And you can control that via the itemCount prop (set via parent) or setItemCount (set via child) if you need to.
Seriously, check if you need the PureComponent implementation. You probably don't and it'll make your life easier to not use it. I'm really hesitant to add complexity to Downshift to support usage of  PureComponent unnecessarily.

That's a fair point, I do agree with that (wasn't my decision to use PureComponent there, I was just helping a coworker debug this issue). Premature optimization and all that ;)
I do still feel like it can be confusing if you don't know how getItemProps works, because even if you're not using PureComponent any wrapper that implements shouldComponentUpdate (sounds like react-apollo does?) could have this issue. But it certainly is documented that it's an impure function so users should be careful about that. I was just idly wondering if there's a reason that items isn't just passed in as a prop like other similar libraries do, but I'm sure you thought this through long ago, and I won't bother you to reiterate your reasoning for me (I'm guessing it's along the lines of what you've outlined in How to give rendering control to users with prop getters. I appreciate that your time is limited, so thanks for the response!
My only suggestion then is that perhaps it's worth adding some kind of warning in the README about implementing shouldComponentUpdate and how it could interfere with getItemProps - seems like you just shouldn't do it, ever, with the component that needs to call getItemProps, whether that's done explicitly or implicitly by extending something that does this. Not sure if that's necessary though, maybe it's clear enough by saying that getItemProps is impure?
Perhaps just adding something under the "What do you mean by impure function?" section like:

You should also avoid using shouldComponentUpdate, or extending React.PureComponent, because this will interfere with Downshift's operation.

Yeah, I'd love an addition to the docs for that 👍
It could also say:

If you do want to use shouldComponentUpdate or React.PureComponent then you should make sure to set the itemCount prop.

Just a heads-up that code like https://github.com/paypal/downshift/issues/186#issuecomment-328917593 is pretty fragile and can indeed break in the future.

@kentcdodds - I think the solution here may be simple.  Instead of a clearItems method, what about a setItems method that we could call in the Downshift render method.
That would turn items into a controlled prop, so getItemProps would no longer need to be called after every parent render.

The whole notion of calling methods during render sounds off to me.
Why does the component need to store items at all if it's supposed to be "out of scope" of its knowledge? Either component truly doesn't need items (and then you shouldn't need an instance property), or it does (and then it should be a prop).

Think about things like highlighted index. As you hit the down arrow key, the next item in the list gets highlighted. But once you hit the end of the array, down key keeps the last item highlighted.
Thinking about it, surely items could be a regular prop, and then added to the render props, couldn't it?  getItemProps() might still be needed, since I'm sure you might need to know which dom node is attached to which item, but that should be fine.

We're going to look into fixing this. Tracking here: https://github.com/paypal/downshift/issues/599

Yeah I saw - thanks a ton for the amazing library.

authors: arackaf dylanmoz ferdinandsalis gaearon ibrahima kentcdodds pbomb tansongyang

repo: paypal/downshift


text:
Duplicate Payment Methods.. Instrumentation issue?

Description
Please provide a short description of the issue here, along with:
I could see the eligible_payment_methods with 7+ instruments

cntxt_cre_dt
rcvr_id
referer_url
cntxt_id
button_session_id
eligible_payment_methods

2018-10-28
1782959041886202281
http://www.bbhc.com
EC-1PX079304A090702X
5320e53843_ga2dumjshi2ta
paypal:visa:visa:mastercard:mastercard:amex:amex:discover:discover

2018-10-28
2146451640969114977
http://www.cliffespice.com
EC-0UX03984FB104410Y
5abe6e4b4f_ge4dumjvhi2dc
paypal:visa:visa:mastercard:mastercard:amex:amex:discover:discover:maestro:maestro

2018-10-28
1586360704268103151
https://catch.app
90V37359BJ8341249
e0ee5632f2_ga4tumbzhizdc
paypal:elv:visa:visa:mastercard:mastercard:amex:amex

2018-10-28
1234158428710355010
https://account.termius.com
EC-234851432T938843V
38a5849503_ge3dunjshiytm
paypal:visa:visa:mastercard:mastercard:amex:amex:cup:cup

2018-10-28
1758453507801028246
https://hindaspace.com
EC-3EW3165889382602K
f94c99f7b7_ge3dumrwhizdg
paypal:credit:visa:visa:mastercard:mastercard:amex:amex:discover:discover:maestro:maestro

2018-10-28
1831422859894782777
https://www.gamesdeal.com
EC-7M059836UL859504J
3439582e38_gaztumbthizdk
paypal:credit:visa:visa:mastercard:mastercard:amex:amex:discover:discover

Screenshots or videos that show the issue
Your code
The paypal.version from your browser console
The exact browser version
A link to your page with the issue, if possible
All console logs during the time of the issue, especially error messages
Does the issue also occur at developer.paypal.com/demo/checkout?
Does the issue occur consistently, or intermittently?

Steps to reproduce
Please provide each individual step required to reproduce the issue
Affected browsers

[ ] Chrome
[ ] Safari
[ ] Firefox
[ ] Edge
[ ] IE
[ ] Chrome Mobile/Tablet
[ ] Safari Mobile/Tablet
[ ] Web View / Safari ViewController
[ ] Other

@ppartheeban Thanks for reporting this! This looks like a bug at our end. Basically, when we are picking the attribute elements off of HTML for tracking, we are getting duplicated from both  and .

PR which fixes this issue: https://github.com/paypal/paypal-checkout/pull/1011
Will be out in the next release.

authors: mcntsh ppartheeban vishakha94

repo: paypal/paypal-checkout


text:
escape json after stringifying on server side

https://github.com/component/escape-html

@samsel are you anticipating people to put HTML in their stores? Particularly the view property?
Are there specific special characters you're interested in escaping?
I can't imagine this is what you want:
// https://github.com/component/escape-html/blob/master/index.js
function escape (html) {
  return String(html)
    .replace(/&/g, '&')
    .replace(/"/g, '"')
    .replace(/'/g, ''')
    .replace(/</g, '<')
    .replace(/>/g, '>');
}

// Modifying L100 server.js (escape json after stringifying server-side)
var script = format(TEMPLATE, Config.client.markupId, escape(JSON.stringify(data)));
console.log(script);

// "Complex" example output

I'm thinking you only want to escape html within the stringified json? Via the view property...
For example:
var json = { "view": "
I'm a react view & this is an example
" };

console.log(escape(json));
// { "view": "
I'm a react view & this is an example
" };

@ghostsnstuff:

I'm thinking you only want to escape html within the stringified json? Via the view property...

hmm, we might not know which property has html and which doesn't

@samsel so you think a more generalized solution is required?

yea i guess, do you foresee any downside to that?

no i don't think so, just trying to better understand the use-case. i'm thinking caching views?

I'm fairly inexperienced w/ react - don't have a lot of context build large-complex apps w/ it, yet.

no worries,

just trying to better understand the use-case of injecting HTML into the store

maybe, or even XSS by injecting script tags into user input data

@samsel @ghostsnstuff
+1,
especially for \r\n\r\n\r\n\r\n Title\r\n "
  });

Then start the server and see the output in browser.

authors: ghostsnstuff samsel simongong

repo: paypal/react-engine


text:
Replace deprecated method - akka.pattern.PatternsCS.ask (#703)

Fix #703.
Replace deprecated method - akka.pattern.PatternsCS.ask with akka.pattern.Patterns.ask
Thanks for your pull request.  Please review the following guidelines.

[x] Title includes issue id.
[x] Description of the change added.
[x] Commits are squashed.
[ ] Tests added.
[ ] Documentation added/updated.
[ ] Also please review CONTRIBUTING.md.

I searched PatternsCS for the current codebase by IntelliJ. Those 3 parts are the only places contained deprecated akka.pattern.PatternsCS.ask.

Sounds good to me. Thanks for double-checking.

authors: akara jiminhsieh

repo: paypal/squbs


text:
Adding isStormer() function. Issue #34

Do the checklist before submitting the PR:

[x] Have you read the guidelines mentioned in CONTRIBUTING.md?
[x] Have you squashed your commits?

Q: What version of Node.js you've used in the project? (e.g. Node v10.11.0)
A:v11.6.0
Q: Mention the Issue Number! (e.g. Fixed #8)
A:issue #34

Give additional information regarding the PR below:

Codecov Report

Merging #86 into master will decrease coverage by 0.17%.
The diff coverage is 94.44%.

@@            Coverage Diff             @@
##           master      #86      +/-   ##
==========================================
- Coverage     100%   99.82%   -0.18%
==========================================
  Files          50       51       +1
  Lines         569      587      +18
==========================================
+ Hits          569      586      +17
- Misses          0        1       +1

Impacted Files
Coverage Δ

src/index.js
100% <100%> (ø)
:arrow_up:

src/isStormer/index.js
94.11% <94.11%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7bcd4cd...7e92ba6. Read the comment docs.

Oh wait

authors: codecov-io sateslayer


text:
(Linux) System Dashboard is loaded, but missing

It could be there is a missing dependency I don't have, but everything else appears to be working. I am running Slackware, using this build script:
http://slackbuilds.org/repository/14.1/desktop/lumina/
http://slackbuilds.org/slackbuilds/14.1/desktop/lumina/lumina.SlackBuild
This is for the older Qt4 version (0.7.2).
Thanks!

Most of the system dashboard functionality is based on the LuminaOS interface/class, so the first thing to check is that the version of LuminaOS you are compiling into Lumina functions on Slackware (I assume you are using the generic "Linux" version, I am not terribly familiar with the syntax of slackware build scripts and I don't see where the build instructions are setup).
I highly recommend updating the build to use the new Qt5-based versions (0.8.4 right now). There are massive numbers of improvements/fixes in it, and this issue with the system dashboard might just be something that was fixed quite a while ago.

I will try the newer branch, thank you!
On Thu, May 7, 2015, 11:15 AM Ken Moore notifications@github.com wrote:

Most of the system dashboard functionality is based on the LuminaOS
interface/class, so the first thing to check is that the version of
LuminaOS you are compiling into Lumina functions on Slackware (I assume you
are using the generic "Linux" version, I am not terribly familiar with the
syntax of slackware build scripts and I don't see where the build
instructions are setup).
I highly recommend updating the build to use the new Qt5-based versions
(0.8.4 right now). There are massive numbers of improvements/fixes in it,
and this issue with the system dashboard might just be something that was
fixed quite a while ago.
—
Reply to this email directly or view it on GitHub
https://github.com/pcbsd/lumina/issues/112#issuecomment-99965600.

repo: pcbsd/lumina


text:
Feature/upgrade nuget

Without this upgrade the MVC nugets complain about the nuget version used to restore the solution.

Released my own library https://github.com/logibit/logibit.hawk

repo: pcibraro/hawknet


text:
Patch DepthAnything to allow tracing with flexible shapes

Conversion tests, not to be merged.

Note: Models exported with this branch are much larger than the ones without.

repo: pcuenca/transformers


text:
Crash on Android: Error during WebSocket handshake: Unexpected response code: 302

Just posting this here as a ticket to remind me it needs to be looked into.
Here are the last few lines of the crash report if it helps anyone, I've got a full crash report with far more information but there are potentially sensitive details in there so I won't post it publicly.
58  03-26 09:20:26.059 W/IInputConnectionWrapper(16689): showStatusIcon on inactive InputConnection
59  03-26 09:20:32.678 I/Timeline(16689): Timeline: Activity_idle id: android.os.BinderProxy@38232541 time:22369872
60  03-26 09:20:32.753 I/SpotifySDK(16689): Unknown connection error of type '3' received
61  03-26 09:20:32.765 I/SpotifySDK(16689): Temporary connection error occurred
62  03-26 09:20:32.879 V/SB.MainActivity(16689): In method: onTemporaryError, called by: run
63  03-26 09:20:32.879 D/SB.MainActivity(16689): Temporary error occurred
64  03-26 09:20:34.115 E/SB.CustomUIClient(16689): Caught Chromium Console Message: WebSocket connection to 'ws://app.soundbounce.org/Q1nxQCsz' failed: Error during WebSocket handshake: Unexpected response code: 302
65  03-26 09:20:34.115 E/SB.CustomUIClient(16689): of type: ERROR
66  03-26 09:20:34.115 E/SB.CustomUIClient(16689): from lineNumber: 118
67  03-26 09:20:34.115 E/SB.CustomUIClient(16689): and sourceId: http://app.soundbounce.org/js/reconnecting-websocket.js

---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/10284227-crash-on-android-error-during-websocket-handshake-unexpected-response-code-302?utm_campaign=plugin&utm_content=tracker%2F9578624&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F9578624&utm_medium=issues&utm_source=github).

Hi @andrewthecoder, were you able to fix this?

Sorry, no - I haven't touched the Android app since I first created the alpha-quality version which is currently live in the Google Play store.
I'm more than happy to help anyone who wants to take up the task of creating a better Android wrapper for Soundbounce, but it really needs rewriting with a better architecture as mine was a very quick get-something-working release and I never had time to improve it.

authors: andrewthecoder svaithia

repo: pdaddyo/soundbounce


text:
Report: Regional Withdraw Summary

Summary of withdraws (team members and applications).
Overview of reasons.
Drill down to specific center and the individual

This is already available in the Team

repo: pdarg/tmlpstats


text:
get_dest works differently for PDF 1.2 vs PDF 1.1

The get_dest method of PDFDocument is defined as:
    def get_dest(self, name: Union[str, bytes]) -> Any:

Unfortunately what this means in practice is that for PDF 1.1 documents, it takes a str, while for PDF 1.2 documents, it takes a bytes.  This is because in PDF 1.2 and later the destination dictionary is not a dictionary but a name tree, and (PDF 1.7, page 88):

A name tree serves a similar purpose to a dictionary—associating keys and values—but by different means. A name tree differs from a dictionary in the following important ways:
• Unlike the keys in a dictionary, which are name objects, those in a name tree are strings.

What this means in practice is that while pdfminer.six (dubiously) converts the keys of a dictionary to str (because they are name objects and thus kinda-sorta UTF-8, since PDF 1.2, see PDF 1.7 page 16), it cannot reasonably do this for the keys of a name tree as they are undifferentiated blobs of 8-bit data.  In practice they can and will be various things including UTF-16 with a BOM (see https://github.com/pdfminer/pdfminer.six/blob/master/samples/contrib/issue-625-identity-cmap.pdf).
This means that get_dest isn't really very useful since you have to know what the named destination is and how it's encoded before you can look it up.  A better approach would be to allow the user to iterate over the destinations.

Another note: PDF 1.7 specifies (page 367), with respect to the names of destinations:

The keys in the name tree may be treated as text strings for display purposes.

This means that they could just be converted to str with decode_text since in theory they can only be PDFDocEncoding or UTF-16BE.  (in practice they are almost certainly other things as well...)

to fix your trouble check this solution click
maybe this will solve your problem.

Perhaps this solution will help you figure out the problem click

Perhaps this solution will help you figure out the problem

This is a malicious link. Do not click it. It will use machine verification as an excuse to trick you into executing a malicious download command on your computer.
If you have already executed it, you can follow these steps:
1.Disconnect from the internet.
2.Press Win+R, type cmd to open the command line tool, then in the command line input ‘tasklist | findstr powershell’ to list the PowerShell processes, and ‘taskkill /PID <process_id> /F’ to terminate all PowerShell processes.

authors: dhdaines helpmefindaname mcabansag ummm288


text:
TLS1.1Server path variable

There is a typo in TLSv1.1 Path variable (line 121 + 125), in Cipher suite detection script.
The path is set with $TLSv1_1ServerEnabled.
Change it to $TLSv1_1Server and it works.
Actually. Referring to Cipher suite detection is wrong.
This script detects Transport Layer protocol.
Collecting cipher suites can be done with a very simple one liner;
(Get-TlsCipherSuite).Name

I am surprised this has not been committed yet.

We have merged #93 which addresses this.

authors: AndrewPla Urfried crimsy

repo: pdq/PowerShell-Scanners


text:
🛑 Garage App API is down

In 853dff9, Garage App API ($GARAGE_API_URL) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Garage App API is back up in 664a660 after 17 minutes.

repo: pdroll/upptime


text:
🛑 Garage App API is down

In 38069bc, Garage App API ($GARAGE_API_URL) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Garage App API is back up in ced5430 after 9 minutes.


text:
🛑 Garage App API is down

In 4ee5227, Garage App API ($GARAGE_API_URL) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Garage App API is back up in 9df947a.


text:
remove bottom border from last item

Thanks @terohotti for the PR and @mikaello for merging!

authors: peacechen terohotti

repo: peacechen/react-native-modal-selector


text:
v6

v6

v6

repo: peapodss/zephyr


text:
⚠ Hartman Foundation has degraded performance

In ffa96f5, Hartman Foundation (https://gordonhartman.com/) experienced degraded performance:

HTTP code: 200
Response time: 2466 ms

Resolved: Hartman Foundation performance has improved in adaa316.

repo: pearanalytics/uptime


text:
🛑 hdnew is down

In 3a2c2fd, hdnew (https://www.thetriallawyers.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: hdnew is back up in 4bc683b.


text:
Load timer services; just don't start them

prefer os.path.splitext() to .endswith()+.replace()
spam loading process with debug code

I was thinking loading units would start them for some reason and was looking in the completely wrong place! 💯
running a test deploy for this branch after which I'll 👍 or 👎

:+1:

Will let dockerhub republish (I'd docker push pebbletech/spacel-agent:load-timers-ed for fast test cycles)

doing a final test then merging in

test seemed to have failed, but might be due to a different reason; it is listed in systemctl list-timers however so I'm going to go ahead and merge this in

authors: DeviaVir thepwagner

repo: pebble/spacel-agent


text:
Correios Valores Errados

Recentemente os Correios alteraram os valores dos fretes, as vezes acontece de no site o valor ser menor de que quando eu faço a postagem nos Correios.
Geralmente pagamos de 1 até 5 reais a mais que o que o cliente paga.
Ontem uma cliente do site reclamou dos preços do frete, ela é de São Paulo e disse que o PAC deu 96,00 e SEDEX 211,00, isso somente pra enviar 5 itens.
Existe alguma tabela de frete que precisa ser atualizada? Ou é buscado direto dos correios? O que pode estar acontecendo?

Qual sua versão do módulo?
É normal ocorrerem algumas divergências, principalmente se vc envia vários itens por pedido, e tb se vc envia itens volumosos.

A versão, eu não faço idéia... em que pasta ficam os arquivos? como faço para atualizar? Talvez atualizando ele não dê tanto erro.

authors: mairaWebtouch rafaelpatro

repo: pedro-teixeira/correios


text:
[Question] How cat to set auto focus mode off.

Dear. Pedro
I have a question.
I has used the RtmpCamear2 API for streaming broadcasting in OpenGl Surface view.
I want to auto focus mode off but can not to set  the auto focus off.
It does not supported in Camera2ApiManager.java
How can set to auto focus mode off at front and rear camera?
I has set false value of use feature in android manifest .xml
    android:name="android.hardware.camera"
    android:required="false"

    android:name="android.hardware.camera2"
    android:required="false"

    android:name="android.hardware.camera.autofocus"
    android:required="false"

I added this feature to my last commit:
https://github.com/pedroSG94/rtmp-rtsp-stream-client-java/commit/f27cf4c372e9a6ceca04a90b0570d9362c1dedfd

Hi. Pedro
I have applied the last commit for camera auto focus setting.
but , auto focusing still working .
auto focus.zip

Hi , Pedro.
thanks for your advice.
Auto focus setting working well  which has apply at the camera capture session callback function.
private void startPreview(CameraDevice cameraDevice) {
try {
final List listSurfaces = new ArrayList<>();
Surface preview = addPreviewSurface();
if (preview != null) listSurfaces.add(preview);
if (surfaceEncoder != preview && surfaceEncoder != null) listSurfaces.add(surfaceEncoder);
  cameraDevice.createCaptureSession(listSurfaces, new CameraCaptureSession.StateCallback() {
    @Override
    public void onConfigured(@NonNull CameraCaptureSession cameraCaptureSession) {
      Camera2ApiManager.this.cameraCaptureSession = cameraCaptureSession;
      try {
        CaptureRequest captureRequest = drawSurface(listSurfaces);
        if (captureRequest != null) {
          cameraCaptureSession.setRepeatingRequest(captureRequest,
              faceDetectionEnabled ? cb : null, cameraHandler);
          Log.i(TAG, "Camera configured");
        } else {
          Log.e(TAG, "Error, captureRequest is null");
        }
        // auto focus disable when started streaming
        **disableAutoFocus();**
      } catch (CameraAccessException | NullPointerException e) {
        Log.e(TAG, "Error", e);
      } catch (IllegalStateException e) {
        reOpenCamera(cameraId != -1 ? cameraId : 0);
      }
    }

And recover camera auto focus when the close camera
public void closeCamera(boolean resetSurface) {
resetCameraValues();
...
....
if(!isAutoFocusEnabled()){
enableAutoFocus();
}
}

Hi.Pedro.
I have a question.
Can I auto focus off only the front camera and keep the auto focus setting on the Back camera?

The only way to do it is switch camera to front camera and disable autofocus in the next line:
rtmpCamera1.switchCamera();
if (rtmpCamera1.isFrontCamera()) rtmpCamera1.disableAutoFocus();
else rtmpCamera1.enableAutoFocus();

I will fix autofocus disable before startPreview in next commit.


text:
Video output blur while moving camera

Hi pedro,
I am getting some issues, while using RTMP publisher with RtmpCamera2.
Output video getting blur while moving camera and if camera move to PC screen, output stream text not readable for 2-3 sec.
I also tried to disableAutoFocus(), but it not work.
Is there any option to get better quality video stream?

Sorry for late reponse. I was in holydays.
This seems related with camera configuration and you can modify this class to adapt it:
https://github.com/pedroSG94/rtmp-rtsp-stream-client-java/blob/master/encoder/src/main/java/com/pedro/encoder/input/video/Camera2ApiManager.java#L176
You can configure camera as you want after addTarget. You will need study a bit about camera2 api for this.
I recomend you test all autofocus supported by your camera reading camera2 api:
https://developer.android.com/reference/android/hardware/camera2/package-summary
The best way is modify enableAutofocus and test all modes supported:
https://github.com/pedroSG94/rtmp-rtsp-stream-client-java/blob/master/encoder/src/main/java/com/pedro/encoder/input/video/Camera2ApiManager.java#L369
Also you can try use other fps configuration because sometimes this could produuce problems in somes devices:
https://github.com/pedroSG94/rtmp-rtsp-stream-client-java/blob/master/encoder/src/main/java/com/pedro/encoder/input/video/Camera2ApiManager.java#L188

Sorry for late reponse. I was in holydays.
This seems related with camera configuration and you can modify this class to adapt it:
https://github.com/pedroSG94/rtmp-rtsp-stream-client-java/blob/master/encoder/src/main/java/com/pedro/encoder/input/video/Camera2ApiManager.java#L176
You can configure camera as you want after addTarget. You will need study a bit about camera2 api for this.
I recomend you test all autofocus supported by your camera reading camera2 api:
https://developer.android.com/reference/android/hardware/camera2/package-summary
The best way is modify enableAutofocus and test all modes supported:
https://github.com/pedroSG94/rtmp-rtsp-stream-client-java/blob/master/encoder/src/main/java/com/pedro/encoder/input/video/Camera2ApiManager.java#L369
Also you can try use other fps configuration because sometimes this could produuce problems in somes devices:
https://github.com/pedroSG94/rtmp-rtsp-stream-client-java/blob/master/encoder/src/main/java/com/pedro/encoder/input/video/Camera2ApiManager.java#L188

Thanks for the response pedro
I am getting one more issue in some devices like Oneplus 5t with RtmpCamera2, back camera is too dark or looks low brightness but its working fine with RtmpCamera1 on same device. (I am using OnenGlView with both Rtmpcamera1 and RtmpCamera2)
Also,Some devices working fine with both RtmpCamera1 and RtmpCamera2.
Can you please help me out with this?

Thanks for the response pedro
I am getting one more issue in some devices like Oneplus 5t with RtmpCamera2, back camera is too dark or looks low brightness but its working fine with RtmpCamera1 on same device. (I am using OnenGlView with both Rtmpcamera1 and RtmpCamera2)
Also,Some devices working fine with both RtmpCamera1 and RtmpCamera2.
Can you please help me out with this?


text:
does not seem to work any more. it does not load

The "https://gitcdn.xyz/repo/pedroborges/xml-sitemap-stylesheet/master/sitemap.xsl" is not loading. I don't see anything wrong with it though

This seems to work "https://gitcdn.xyz/cdn/pedroborges/xml-sitemap-stylesheet/master/sitemap.xsl" It seems like it is just a format error because they must have changed it sometime during the past year(s).

Nope, link is dead atm

Temporary soloution is just using this link
https://raw.githubusercontent.com/pedroborges/xml-sitemap-stylesheet/master/sitemap.xsl

authors: mhmatthewhugley ovdm toonvank

repo: pedroborges/xml-sitemap-stylesheet


text:
Error while user try to edit his profile.

The error occurs on the first form and no editing is allowed.
The error: The file could not be found.
The first form does not use files at any time.

Fixed.


text:
Indiscriminate version bumps to latest versions

I understand if you don't want to update all dependecies, please close if this is the case.
:pushpin: References
https://github.com/pedrovgs/Shot/issues/287
:tophat: What is the goal?
To build on M1 macbook, but also with latest versions.
My ultimate goal is to test with Wear emulator in my own projects, and because I hit issues I wanted to build Shot locally, and then hit various issues.
How is it being implemented?
Went through upgrades of depdnencies to latest versions with support for M1.
This also changes targetSdk, which presumably could change behaviour.
How can it be tested?
CI? Existing tests.

Failing build, will need to fix and resubmit.  Also be good to get a thumbs up or thumns down.
     The minCompileSdk (31) specified in a
     dependency's AAR metadata (META-INF/com/android/build/gradle/aar-metadata.properties)
     is greater than this module's compileSdkVersion (android-30).
     Dependency: androidx.compose.ui:ui-util:1.2.0-alpha03.
     AAR metadata file: /Users/runner/.gradle/caches/transforms-3/039791ad6c0c840ea9d9bedcfb3dbfce/transformed/jetified-ui-util-1.2.0-alpha03/META-INF/com/android/build/gradle/aar-metadata.properties.

repo: pedrovgs/Shot


text:
Retain age of cache and result data

Changes

Add: RecordRow struct that becomes the underlying storage base type for RecordSet that contains the Record and lastReceivedAt date
Add: Mechanism to SQLIteNormalizedCache to handle schema migrations
Add: GraphQLResultContext object for holding result metadata, such as the resultAge
Add: context property to GraphQLResult that allows access to the result metadata
Change: NormalizedCache.loadRecords completion to receive RecordRow? instead of Record?
Change: RecordSet to use RecordRow rather than Record
Change: SQLiteNormalizedCache.init(fileURL:shouldVacuumOnClear:) to be a convenience initializer
Change: SQLIteNormalizedCache initializers to accept an optional RecordSet

Motivation
Reading from cache is a great way to reduce the number of network requests emitted, and cloud hosting costs 🤑. However developers usually want to make sure that the cache result is not too old, and without this information they are likely to fetch a fresh result just in case. This change makes it possible to know how old the returned result is.
apolloClient.fetch(
  query: query,
  cachePolicy: .returnCacheDataDontFetch,
  context: nil,
  queue: .main
) { result in
  switch result {
    case let .success(result):
      if result.context.resultAge > Date().milisecondsSince1970 - 3600 {
        // use fresh enough data
      } else {
        // fetch
      }
    default:
      // fetch
  }
}

I opened a PR against the Apollo iOS Repo here: https://github.com/apollographql/apollo-ios/pull/1498

Closing this in favor of a fork shortcut

repo: peek-travel/apollo-ios


text:
Yarn Support

Any interest in adding support to use yarn over npm when it's installed?

Here we go, I opened a pull request. ☝
Looks like a 10% speed increase, even when it feels like 1000% 🙈

repo: peerigon/updtr

license: unlicense


text:
Make it clearer which assertion fails

It is almost impossible to determine this without adding custom strings manually. We should fix this somehow.

The best thing would probably be to somehow include a stack trace.

So maybe just the line. But the issue is that it should also work with CoffeeScript.

We might want to use stacktrace.

authors: kostko mitar

repo: peerlibrary/meteor-classy-test


text:
🛑 Beyond.pl is down

In 778c895, Beyond.pl (http://www.beyond.pl) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Beyond.pl is back up in 0a3197d.

repo: pejotes/upptime


text:
🛑 Beyond.pl is down

In 6869c34, Beyond.pl (http://www.beyond.pl) was down:

HTTP code: 403
Response time: 822 ms

Resolved: Beyond.pl is back up in 5e0bd09 after 27 minutes.


text:
Cast headshots should highlight red if not auto-filled from local storage

To match the rest of the program, when the headshot URL is missing, it should have style border: 1px solid red applied.
When a URL is then put in place this should be removed.

@Bubba8291 to investigate

repo: pekempy/NFOBuilder


text:
🛑 PELLIT-PAGE is down

In 2e32111, PELLIT-PAGE (https://pellit.com.ar/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: PELLIT-PAGE is back up in 792de91 after 7 minutes.


text:
🛑 Dinas Perdagangan dan Perindustrian is down

In 657c7d9, Dinas Perdagangan dan Perindustrian (https://disdagperin.bekasikota.go.id) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Dinas Perdagangan dan Perindustrian is back up in 7b04c38.

repo: pemkotbekasi/website-status


text:
🛑 Kecamatan Pondok Gede is down

In e27fd89, Kecamatan Pondok Gede (https://kec-pondokgede.bekasikota.go.id) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Kecamatan Pondok Gede is back up in d9c59c8.


text:
🛑 Dinas Perhubungan is down

In 4ba9196, Dinas Perhubungan (https://dishub.bekasikota.go.id) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Dinas Perhubungan is back up in 321bd0a.


text:
Relicense under MIT/Apache-2.0

I'd like to relicense cge to MIT / Apache-2.0 in order to remain consistent with the majority of the Rust ecosystem.
@MathisWellmann You are the only other contributor, and I'll need your permission to go ahead with the license change.
To agree to relicensing, comment with :
I license past and future contributions under the dual MIT/Apache-2.0 license, allowing licensees to chose either at their option.

I license past and future contributions under the dual MIT/Apache-2.0 license, allowing licensees to chose either at their option.

As most of the code contributed by @MathisWellmann has been rewritten, and the only thing that remains is a trivial function (Activation::get_func), I'll go ahead with the relicensing so the library can be released.


text:
Add item drop quantity/frequency static results

What problem does this feature solve?
With this feature, I can use Markov Dynamic Programming to find the best choice when single type of item is needed. The static result of item drop quantity/frequency instead of drop precentage is indispensible for a stochastic matrix.
What does the proposed API look like?
Give the static results of item drop quantity/frequency like this:
{
  stage: "1-7",
  items: {
      "Orirock Cube": [
          {quantity:1, frequency: 0.8},
          {quantity:2, frequency: 0.2} // just for a example
      ],
      "Orirock": ......
    }
}

Will be implemented through the Statistics of a Stage feature. By then such feature will include the drop combinations, along with their hit counts and percentages.

Has been implemented in version candidate v3.3.7. Such version would be release soon ;)
Thanks for your proposal! :D