V2 updates

PR to comment. It doesn't change internal work of timeago lib, but reorganizes its architecture.

Great work^_^, but something:

prototype is one of the methods those can define an Object.
Why some private methods add on prototype.
The format, render method is not on global scope, add a timeagoFactory seem do nothing more.

@hustcc Hi! Thank you for review

Sorry, what would you like to say?
JavaScript by its nature doesn't have private or protected properties. I don't see a problem to put them near the public methods. Even if someone will use them - up to him :) All public API is described on the readme page, that's enough. Which issues do you see here?
Answered here. Also, factory method allows you to use library in only one right way. So never mind how will you call it:

const timeago = timeagoFactory();
// or
const timeago = new timeagoFactory();

Result will be the same. It's factory pattern.
4. There is no difference, because when you subtract from Date object, its internal valueOf() is called, which returns timestamp representation.

Private methods discussion on stackoverflow

Updated PR with correct jsdoc comments and formatDiff moved out of prototype

I usage some codes from this PR.

Code style.
Rounded with a factory to avoid global scope.
Remove getTime() of Date instance for reduce of library size.

I don't use prototype to create Object, because it has long character length.
Learn much from your PR and you, I'am a starter of front-end development. ^_^

@hustcc as a starter, you're doing well!
But you shouldn't avoid usage of prototype, it brings significant performance improvements in most of cases. But if your target is just to keep library size as minimal as it possible ignoring performance.. I think we can reduce it more ;)

I think this PR could be closed, do you?

OK, continue learning from it.

Why getNowDate , validateAndGetLocale , doRender  should be on prototype.

Because they are shared across all the instances of timeago.

So I extract some common methods. https://github.com/hustcc/timeago.js/blob/master/src/timeago.js

@hustcc much better. Now it's more clear where are the public API and where are the private


cargo build returns openssl compilation error

Not sure what I'm doing differently, but when installing hyper I get an error. I tried adding the #![feature(box_raw)] header to my main.rs file, but that doesn't seem to help. Any ideas what's going wrong? Thanks!
error
❯ cargo build
   Compiling openssl v0.7.4
/Users/yw/.cargo/registry/src/github.com-0a35038f75765ae4/openssl-0.7.4/src/ssl/bio.rs:42:
22: 42:35 error: use of unstable library feature 'box_raw': may be renamed
/Users/yw/.cargo/registry/src/github.com-0a35038f75765ae4/openssl-0.7.4/src/ssl/bio.rs:42
        (*bio).ptr = Box::into_raw(state) as *mut _;

                     ^~~~~~~~~~~~~
/Users/yw/.cargo/registry/src/github.com-0a35038f75765ae4/openssl-0.7.4/src/ssl/bio.rs:145
:5: 145:36 error: use of unstable library feature 'box_raw': may be renamed or moved out o
f Box scope
/Users/yw/.cargo/registry/src/github.com-0a35038f75765ae4/openssl-0.7.4/src/ssl/bio.rs:145
     Box::<StreamState<S>>::from_raw((*bio).ptr as *mut _);

     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
error: aborting due to 2 previous errors
Could not compile `openssl`.

To learn more, run the command again with --verbose.

openssl
openssl version -a returns:
❯ openssl version -a                                                                  <<<
OpenSSL 0.9.8zg 14 July 2015
built on: Jul 16 2015
platform: darwin64-x86_64-llvm
options:  bn(64,64) md2(int) rc4(ptr,char) des(idx,cisc,16,int) blowfish(idx)
compiler: -arch x86_64 -fmessage-length=0 -pipe -Wno-trigraphs -fpascal-strings -fasm-bloc
ks -O3 -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DL_ENDIAN -DMD32_REG_T=int -DOPENSSL_NO_ID
EA -DOPENSSL_PIC -DOPENSSL_THREADS -DZLIB -mmacosx-version-min=10.6
OPENSSLDIR: "/System/Library/OpenSSL"

Cargo.toml
This is my Cargo.toml
[package]
name = "playground-rust-hyper"
version = "1.0.0"

[lib]
path = "main.rs"

[dependencies]
hyper="0.7.1"

What version of rustc? Are you using current stable, 1.5?
On Tue, Dec 29, 2015, 10:38 PM Yoshua Wuyts<EMAIL_ADDRESS>wrote:

Not sure what I'm doing differently, but when installing hyper I get an
error. I tried adding the #![feature(box_raw)] header to my main.rs file,
but that doesn't seem to help. Any ideas what's going wrong? Thanks!
error
❯ cargo build
Compiling openssl v0.7.4
/Users/yw/.cargo/registry/src/github.com-0a35038f75765ae4/openssl-0.7.4/src/ssl/bio.rs:42:
22: 42:35 error: use of unstable library feature 'box_raw': may be renamed
/Users/yw/.cargo/registry/src/github.com-0a35038f75765ae4/openssl-0.7.4/src/ssl/bio.rs:42
(*bio).ptr = Box::into_raw(state) as *mut _;
                 ^~~~~~~~~~~~~

/Users/yw/.cargo/registry/src/github.com-0a35038f75765ae4/openssl-0.7.4/src/ssl/bio.rs:145
:5: 145:36 error: use of unstable library feature 'box_raw': may be renamed or moved out o
f Box scope
/Users/yw/.cargo/registry/src/github.com-0a35038f75765ae4/openssl-0.7.4/src/ssl/bio.rs:145
Box::<StreamState>::from_raw((*bio).ptr as *mut _);
 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

error: aborting due to 2 previous errors
Could not compile openssl.
To learn more, run the command again with --verbose.
openssl
openssl version -a returns:
❯ openssl version -a                                                                  <<<
OpenSSL 0.9.8zg 14 July 2015
built on: Jul 16 2015
platform: darwin64-x86_64-llvm
options:  bn(64,64) md2(int) rc4(ptr,char) des(idx,cisc,16,int) blowfish(idx)
compiler: -arch x86_64 -fmessage-length=0 -pipe -Wno-trigraphs -fpascal-strings -fasm-bloc
ks -O3 -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DL_ENDIAN -DMD32_REG_T=int -DOPENSSL_NO_ID
EA -DOPENSSL_PIC -DOPENSSL_THREADS -DZLIB -mmacosx-version-min=10.6
OPENSSLDIR: "/System/Library/OpenSSL"
Cargo.toml
This is my Cargo.toml
[package]name = "playground-rust-hyper"version = "1.0.0"
[lib]path = "main.rs"
[dependencies]hyper="0.7.1"
—
Reply to this email directly or view it on GitHub
https://github.com/hyperium/hyper/issues/712.

ahhh, think I've tracked it down: homebrew was returning I was using<EMAIL_ADDRESS>but my local env returns<EMAIL_ADDRESS>I must've made a duplicate install somewhere; I reckon this will pass using 1.5 so closing for now. Thanks!


Add support for temperature in Assistant settings

Everything but UI happening here: https://github.com/dust-tt/dust/pull/1554

Rest of work covered by #1552


Not updating GuestAdditions 5.1.28

On vagrant up,
I cut out some of it, because the installer seems to fail.
As you see in the output, vbguest does not uninstall the old version, and answers 'No' to the question do you wish to continue. How do I upgrade the GuesAdditions?
[default] GuestAdditions versions on your host (5.1.28) and guest (4.3.28) do not match.
Reading package lists...
Building dependency tree...
Reading state information...
dkms is already the newest version.
linux-headers-3.13.0-55-generic is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 139 not upgraded.
Copy iso file C:\Program Files\Oracle\VirtualBox\VBoxGuestAdditions.iso into the box /tmp/VBoxGuestAdditions.iso
Mounting Virtualbox Guest Additions ISO to: /mnt
mount: block device /tmp/VBoxGuestAdditions.iso is write-protected, mounting read-only
Installing Virtualbox Guest Additions 5.1.28 - guest version is 4.3.28
Verifying archive integrity... All good.
Uncompressing VirtualBox 5.1.28 Guest Additions for Linux...........
VirtualBox Guest Additions installer
This system appears to have a version of the VirtualBox Guest Additions
already installed.  If it is part of the operating system and kept up-to-date,
there is most likely no need to replace it.  If it is not up-to-date, you
should get a notification when you start the system.  If you wish to replace
it with this version, please do not continue with this installation now, but
instead remove the current version first, following the instructions for the
operating system.

If your system simply has the remains of a version of the Additions you could
not remove you should probably continue now, and these will be removed during
installation.

Do you wish to continue? [yes or no]

Cancelling installation.
An error occurred during installation of VirtualBox Guest Additions 5.1.28. Some functionality may not work as intended.
In most cases it is OK that the "Window System drivers" installation failed.
vboxadd: unrecognized service
Unmounting Virtualbox Guest Additions ISO from: /mnt
==> default: Checking for guest additions in VM...
    default: The guest additions on this VM do not match the installed version of
    default: VirtualBox! In most cases this is fine, but in rare cases it can
    default: prevent things such as shared folders from working properly. If you see
    default: shared folder errors, please make sure the guest additions within the
    default: virtual machine match the version of VirtualBox you have installed on
    default: your host and reload your VM.
    default:
    default: Guest Additions Version: 4.3.28
    default: VirtualBox Version: 5.1

Did you do a vagrant plugin update? Does vagrant plugin list show vagrant-vbguest (0.15.0)?

Yes, all versions are correct.
I was using the ScotchBox (Scotchbox.io), and it miserably failed. It was the box, not the plugin. ANd the owner of ScotchBox rep actually told me to buy the "premium" box from him instead of trying to fix the issue.
Out of curiousity I tried a few othe boxes I had, completely outdated. They were Debiand and Ubuntu based, and they updated just fine with this vbguest-plugin.


SvgCachedImage has some sort of padding

Description
I quickly prototyped my app with png exports of svg files. Now that i found FFImageLoading as a great way to load svg, i'm replacing them with their svg files. But now my layouts have changed. I have checked, and the viewbox defined in the svg covers just the paths.
Steps to Reproduce
export a svg file to png.
Add it once with CachedImage and once with SvgCachedImage.
SvgCachedImage will have some hidden margin.
Expected Behavior
Normally, with CachedImage, the parent grid would size to fit the image.
Actual Behavior
with svgCachedImage the grid suddenly becomes bigger, as if a there was a Margin.
The xaml was only changed to use a SvgCachedImage instead of CachedImage
Basic Information

Version with issue: <IP_ADDRESS>9
Last known good version: xxxxxxx
Platform:  Android

Screenshots

Reproduction Link / Code

<?xml version="1.0" encoding="UTF-8"?>
<Grid xmlns="http://xamarin.com/schemas/2014/forms"
      xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
      xmlns:forms="clr-namespace:FFImageLoading.Forms;assembly=FFImageLoading.Forms"
      xmlns:forms1="clr-namespace:FFImageLoading.Svg.Forms;assembly=FFImageLoading.Svg.Forms"
      x:Class="SaturdayMan.SMButton"
      Margin="0" Padding="0" RowSpacing="0" x:Name="Grid" SizeChanged="ContentView_SizeChanged" VerticalOptions="Start" BackgroundColor="AliceBlue">

    <forms1:SvgCachedImage x:Name="bgImage" Aspect="AspectFit" Margin="0" VerticalOptions="Start" />
    <BoxView HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand" x:Name="measureViewBox" />
        <Label x:Name="Label" FontFamily="{StaticResource NormalFont}" HorizontalTextAlignment="Center" VerticalTextAlignment="Center" VerticalOptions="Center" HorizontalOptions="Center" TextColor="White" Margin="0" />

</Grid>

Please attach your SVG file
Please notice, that SVG text support had a lot of fixes / improvements in recent 2.4.6 version.


translate ios screen location to pixel location for now to fix #47

see #47, we were using inconsistent units between ios and android
for now I'm making ios match android and use pixel space, but I intend to refactor this all to dp space afterwards
also adds some missing stuff to camerastate, and some temporary logging to one of the demos (will remove after the refactor mentioned above)

#48  👈 (View in Graphite)
main

This stack of pull requests is managed by Graphite. Learn more about stacking.


Group by with dotted notation fail

reproduce flow:
create data:
create vertex V set name="one"
create vertex V set name="two"
create vertex V set name="three"

create edge E from (select from V where name="one") to  (select from V where name="two") set weight=1
create edge E from (select from V where name="one") to  (select from V where name="three") set weight=2
create edge E from (select from V where name="two") to  (select from V where name="one") set weight=3

run this query, this will give a parsing error:
select in.name from (
select expand(outE()) from V
)
group by in.name

this work on the 2.0.x but fail in 2.1-rc3, you can work around using aliases.

fixed in develop branch


Snapshot config doesn't work in schema.yml

Validation is performed on SnapshotConfig objects when the snapshot node is parsed/created. This validation means that config must be set in the sql file and can't be set in the schema file.
To allow setting in schema files we would need to defer validation until after schema file parsing.

@gshank Ah! I now remember noticing this at one point, too. Thanks for keeping track of it and opening the issue.
The validation currently occurs within the validate method of SnapshotConfig, and I'm guessing that occurs before patching. Do you have a sense of where we could move the validation so that it happens post-patching?

It would have to happen as a post-schema-file parsing step, at about the same place in the manifest parser where we handle updating docs and refs.

Reopening this one as it's still relevant. Possibly related to the work Emily was just doing around models set to enabled: false in config .yml files (https://github.com/dbt-labs/dbt-core/issues/5869)

Workaround that functions, but doesn't feel great:
# dbt_project.yml
snapshots:
  # set defaults here to avoid validation errors during first parse
  strategy: check_cols
  unique_key: id
  target_schema: "{{ target.schema }}"

Then all snapshots will have the default values set when first parsed, allowing me to set snapshot-specific properties in other .yml files instead.
-- snapshots/my_snap.sql
{% snapshot my_snapshot() %}

    select
        1 as specific_id,
        current_timestamp as updated_at

{% endsnapshot %}

# snapshots/config.yml
version: 2
snapshots:
  - name: my_snapshot
    config:
      target_schema: specific_schema
      unique_key: specific_id
      strategy: timestamp
      updated_at: updated_at

@jtcohen6 - I hope everything is going well for you. Thanks for providing the workaround. Will try and update you

Opened a new issue in dbt-labs/docs.getdbt.com: https://github.com/dbt-labs/docs.getdbt.com/issues/5627


Bump safer-golangci-lint to 1.52.2

Bump golangci-lint to 1.52.2 and Go to 1.20.

[x] Targeted PR against main branch
[ ] Linked to Github issue with discussion and accepted design OR link to spec that describes this work
[x] Code follows the standards mentioned here
[ ] Updated relevant documentation
[x] Re-reviewed Files changed in the Github PR explorer
[x] Added appropriate labels

Codecov Report

Merging #304 (e47ae8c) into main (bc0184e) will increase coverage by 0.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main     #304      +/-   ##
==========================================
+ Coverage   64.61%   64.62%   +0.01%
==========================================
  Files          14       14
  Lines        7991     7991
==========================================
+ Hits         5163     5164       +1
  Misses       2152     2152
+ Partials      676      675       -1

see 2 files with indirect coverage changes


Added support for Comparator

This is a pull request implementing #78.
Currently I only allow l4 series to use the module but I think other MCU might also have it.

Great stuff! And I appreciate the detailed comments. Merging, then will adapt to other variants A/R. Thanks!


Auto Focus on angular-summernote Occus when i use ng-model in the summernote tag

i want to use ng-model to bind a variable to $scope. But when i reload the page, auto focus on angular-summernote occurs.
anyone else has the same question?

It is the issue that is related with https://github.com/summernote/summernote/pull/1569 . I confirmed it is fixed in develop branch of summernote. I expect it will be fixed in v0.7.2 of summernote.

Got It! Thanks


StereoAudioRecorder audio garbled on Safari

I'm trying to use a StereoAudioRecorder to record audio. Its working on all other browsers, but on Safari the audio is coming out garbled (very scratchy and crackly, and lacking in detail, as if only some audio frequencies are coming through, or something like that).
Here's the function that prepares the recorder:
function prepareRTC(callback) {
  if (!window.microphone) {
    captureMicrophone( micCallback );
    return;
  } else {
    console.log('mic already captured!');
  }

  var options = {
    mimeType: 'audio/wav',
    fileExtension: 'wav',
    numberOfAudioChannels: 1,
    bufferSize: 16384,
    checkForInactiveTracks: true,
    recorderType: StereoAudioRecorder,
    desiredSampRate: 22050,
  };
  if(window.browser == 'safari') {
    options.type = 'audio';
    delete options.desiredSampRate;
    options.sampleRate = 44100;
    options.bufferSize = 4096;
    options.numberOfAudioChannels = 2;
  }

  if (window.audioRecorderPH || window.audioRecorder) {
    window.audioRecorder.destroy();
    window.audioRecorder = null;
  }

  window.audioRecorderPH = new RecordRTCPromisesHandler(window.microphone, options);
  window.audioRecorder = window.audioRecorderPH.recordRTC;

  callback();
  return;
}

I use the options you suggest in your example. Instead of using an <audio> element, I use an AudioContext to play the audio, and I thought the problem might be related to that, but the audio is coming out messed up before it even gets to there (like if I try to play the blob using window.audioRecorder.toURL()). Here is a short recording of me, if you listen carefully you can hear I said "Recording on, on Safari."
Have you seen this kind of behavior before? Do you have any idea what might be causing it? Thank you for any help. And please let me know if any more details would be helpful.

@jonahjonah have you found out what was wrong?

Having this same issue using the following options
  mimeType: 'audio/wav',
  type: 'audio',
  recorderType: RecordRTC.StereoAudioRecorder,
  bufferSize: 4096,
  numberOfAudioChannels: 2,
  sampleRate: 44100,

I am also having this issue using these options.
Strangely, the example referenced does work properly in Safari.
I am having troubles determining what is different.

In my situation, the audio garbling appears to be caused by additional code using the AudioContext API. I used this to calculate the audio level for user visualization.
For the moment, I disabled this code in Safari and the audio recording is not garbled.
Perhaps it puts too much stress on the recording process in Safari.

@ccchapman I also create AudioContext, for sound/silence detection, and sound garbles, but if I remove line desiredSampRate: 44100,
all works, seems problem lies somewhere here,
not sure if this is couse of high rate or AudioContext with desiredSampRate safari issues, on chrome all works

or maybe safari using 48000 rate ?
anyone knows StereoAudioRecorder sample rate by default?

@DevJhns I think the default is 16000, per the README.
Your audio is not garbled when you remove desiredSampRate from your options? Mine still is.

@ccchapman seems so, I don't define buffersize and no desiredSampRate also no sampleRate

@ccchapman actually example above works on mac safari,
on ios safari it is still garble/robotic sound
I found this old safari bug https://github.com/Jam3/ios-safe-audio-context and this https://stackoverflow.com/questions/26336040/how-to-fix-changing-sample-rate-bug
in few words this happens couse of another apple fuc... mess up, as always.... sigh
for some reason audiocontext may take wrong value, and it changes sample rate few times, so this couse distortion, I added audio: { sampleRate: 48000 } in navigator mediaDevices
and sampleRate: 48000 for RecordRTC now I can at least hear my voice, with distortion, kind robotic, but understandable at least, if I change sampleRate to 44100, no sound at all, strange...

Per @ccchapman's comment, I too use the the AudioContext API to calculate the audio level for a visualization (example below).
I've tried all the possible combinations and still get the garbled/distorted sound. Using @DevJhns's recommendation to specify sampleRate in getUserMedia got me the closest, but recording still has some garbling/distortion.
  navigator.mediaDevices
    .getUserMedia({audio: {sampleRate: 48000}})
    .then(mediaStream => handleStreamSuccess(mediaStream))

  handleStreamSuccess(mediaStream) {
     const mediaRecorder = RecordRTC(mediaStream, {
        disableLogs: isProduction,
        mimeType: 'audio/wav',
        numberOfAudioChannels: 2,
        type: 'audio',
        checkForInactiveTracks: true,
        recorderType: RecordRTC.StereoAudioRecorder,
        bufferSize: 4096,
        sampleRate: 48000
      });
    }

@jonsadka your audio garbles/distortes only in ios?
What about audio from macbook safari ?

@DevJhns was happing on Macbook Safari, didnt test on iOS. Were you able to use ios-safe-audio-context sucessfully?

@jonsadka I haven't used it yet, wanna fix it without other libs,
my friend who have mac, said sound was ok, but this was before I added
{audio: {sampleRate: 48000}}
just with audio: true
and sampleRate: 48000 in recordrtc all worked there, but not on ios

@jonsadka  @ccchapman
Actually I found solution,
remove sampleRate: 48000 from audio, just set it to true or your settings,
and pass stream.clone() to your function with audiocontext
now I get clear sound on ios, sure it will be good on mac too, but....
now record work only once... any ideas, guys?

@jonsadka aslo passing stream.clone() to RecordRTC fix this
oh yeah, at last =)

@DevJhns nice! This workaround seems to work on the Apple devices tested below:
✅ MacBook Pro Safari 13.0.2
✅ iPhone X iOS 13.2
✅ iPhone 7 iOS 12.3.1
✅ iPhone 5 iOS 12.4.2
What a neat little hack. I do wonder what some of the performance implications are of cloning a stream (will try to dig into this a little deeper)

@jonsadka much better, than more external libs, huh?
Now it would be excellent if apple add mediarecorder support out of the box (now it in beta functions)
couse when I record with stereoaudiorecorder getting ~512 kb wav file 2-3 seconds vs ~8.8 kb webm... both 48000 rate

Hi Guys I don't have same luck than you with passing stream.clone to RecordRTC I still have cracks when I am speaking with a peer and recording my voice at the same time

@numerized show your recordrtc settings and what you do with stream except recording (libs, api, etc) ?

@numerized your issues coused by rate misssetings, hard to say where problem is without knowing your api/libs stack and settings

sorry guys I was travelling, so I don't get it, I'll try more soon, but I have the same crackling noises when using whereby.com on my IOS and no problem when I compile an actual cordova app and it's our new requirement, no IOS on Safari web so I'm good thanks all.

@DevJhns nice! This workaround seems to work on the Apple devices tested below:
✅ MacBook Pro Safari 13.0.2
✅ iPhone X iOS 13.2
✅ iPhone 7 iOS 12.3.1
✅ iPhone 5 iOS 12.4.2
What a neat little hack. I do wonder what some of the performance implications are of cloning a stream (will try to dig into this a little deeper)

I read your discussion carefully, unfortunately, I don’t know how to implement stream cloning.

@jonsadka aslo passing stream.clone() to RecordRTC fix this
oh yeah, at last =)

When the sampling rate is set to 16khz, the audio noise played back or saved is particularly large and severely distorted

Hi, guys, I'm stuck in this also...I tried stream.clone, but doesn't work, still have a bad recording, it's full of glitchs and shorter than it should be. Which are the right rate settings for Safari??

@Pmartbur @luckyxue this is the code I am using with the configuration. Is this still creating issues?
      const mediaRecorder = RecordRTC(mediaStream.clone(), {
        checkForInactiveTracks: true,
        disableLogs: isProduction,
        mimeType: 'audio/wav',
        numberOfAudioChannels: 2,
        recorderType: RecordRTC.StereoAudioRecorder,
        type: 'audio',
      });

For people still encountering this issue: do you have another audio/video element on the page (or did you ever have one) prior to the recording?  In my usage, it appears that as soon as another audio/video element is played on the page, any subsequent audio context is tainted/corrupted and produces distorted results.
Try reproducing the issue without any other audio/video elements present.  In my case, eliminating a video that is displayed before the recording seems to address the issue.  Furthermore, I can put the video I want to display inside of an iframe and as long as that iframe is removed from the page before recording, the audio seems ok.

The RecordRTC(mediaStream.clone(),  fixed my issue but it does feel like a dirty hack. Does anyone know why that can make it work or what distorts it?

adding .clone() worked also for me

Thank you guys so much! I saw this thread and changed my implementation from
recorder = new RecordRTC(stream, options);
to
recorder = new RecordRTC(stream.clone(), options);
and it solved all issues!


JRuby 1.7.19 fails to build on Ubuntu 14

I am unable to install jruby-1.7.19 on Ubuntu 14 using rbenv.
After some digging, I tracked down the problem to a C++ compile-time error while installing the jruby-launcher gem.  When I commented out the call to install_ruby_launcher in ruby-build, jruby installed with no problems and ran perfectly.
I'll be submitting a pull request shortly that makes jruby-launcher optional.

Currently still cannot install jruby via rbenv install jruby-1.7.19 on mac with jdk8.
Output:
Last 10 log lines:
         ^
1 error generated.
make[2]: *** [build/unix/Darwin/argparser.o] Error 1
make[1]: *** [.build-conf] Error 2
make: *** [.build-impl] Error 2

make failed, uncaught signal 2

Gem files will remain installed in /usr/local/var/rbenv/versions/jruby-1.7.19/lib/ruby/gems/shared/gems/jruby-launcher-1.1.1-java for inspection.
Results logged to /usr/local/var/rbenv/versions/jruby-1.7.19/lib/ruby/gems/shared/extensions/universal-java-1.8/1.9/jruby-launcher-1.1.1-java/gem_make.out

Still  have the jruby-launcher problem. will this fix be merged next release?

I tried just removing the install-jruby-launcher line in the ruby-build. it installed the jruby fine. but I cannot use gem after.
>> gem
>> /usr/local/var/rbenv/versions/jruby-1.7.19/bin/gem: line 4: syntax error near unexpected token `('
>> /usr/local/var/rbenv/versions/jruby-1.7.19/bin/gem: line 4: `load File.join(File.dirname(__FILE__), 'jgem')'

Also unable to install jruby-1.7.19 on osx 10.10 with jdk8 and getting the same errors as @zhaohanweng

Is JRuby 1.7 even compatible with JDK 8?

rbenv install jruby-1.7.20 works.

JRuby 1.7.x is EOL now. see https://github.com/jruby/jruby/issues/4112


Add runtime mark on title

Hey! I'm guessing this PR was meant for a different fork, so I'll go ahead and close this out now.


About removing read-only when marshaling

We received an issue which prevent the customer to upgrade version because of removing read-only param when marshalling here. I know it is by designed both in track1 and track2. But if customer need to use marshalling for other purpose, it will cause some extra effort for the read-only prarams.

We solve removing of R/O fields in track 2 in a different way that doesn't impact the JSON marshaller.  Can the customer try track 2?

@jhendrixMSFT perhaps an odd take, but since this is ultimately a workaround for a series of API bugs (where fields which are readonly in the request should be being ignored, but instead return an error) are there any plans to fix the API's here too, which would remove the need for the workarounds in both Track1 and Track2?

The need to remove the R/O content was something new added to RPaaS, so it seems unlikely (I can look into it though).  This does bring up a point that that non RPaaS shouldn't have this restriction.  I will investigate that further too.

We won't be changing this for the legacy SDK.


group_by produces 'minlength must be positive error' when applied to empty DataFrame

This used to work fine in previous versions but appears to be broken in 0.17.1
The following code:
import pandas as pd
df = pd.DataFrame({'A': [], 'B': []})
gb = df.groupby('A') .size()

Produces this error:
ValueError: minlength must be positive

In v 0.16.2 the same code produced an empty DataFrame. We'd really like to upgrade to 0.17.1 but heavily rely on this functionality so have to hold the upgrade. Checking for empty DataFrame is not going to work for us either as there are too many places where it can actually be empty.
If you can suggest any workaround in the meantime so we could upgrade that would be appreciated.
--
INSTALLED VERSIONS
commit: None
python: 2.7.10.final.0
python-bits: 64
OS: Linux
OS-release: 2.6.18-238.9.1.el5
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US
pandas: 0.16.2
...

cc @behzadnouri
@Sereger13 I don't think their is an easy way around this w/o resorting to patching DataFrame.groupby to catch this situation (which while messy and normally nor recommended may work for you temporarily).

I see...
We found that this code:
timeit gb.count().iloc[:, 0]
produces very similar results to size() and seems to be working for us - but does not look particularly attractive so still deciding whether to have it or not.
If you do decide to fix size() - is there any idea when the next version/patch is going to be available? Thanks..

will be fixed; 0.18.0 prob later january

Thanks.

@Sereger13 my point about patching is that you can avoid any code changes.
note again that is a 'hack' but will work.
e.g.
In [109]: df1 = pd.DataFrame({'A': [], 'B': []})

In [110]: df2 = pd.DataFrame({'A': [1,2,1], 'B': [1,2,3]})

In [116]: def size(self):
   .....:     try:
   .....:         return self.grouper.size()
   .....:     except ValueError:
   .....:         self._set_selection_from_grouper()
   .....:         return self._selected_obj[0:0]
   .....:

In [117]: pandas.core.groupby.GroupBy.size = size

In [118]: df1.groupby('A').size()
Out[118]:
Empty DataFrame
Columns: [B]
Index: []

In [119]: df2.groupby('A').size()
Out[119]:
A
1    2
2    1
dtype: int64

Great - thanks for your help.

This is more a bug in np.bincount because unnecessarily requires minlength to be strictly positive. though kind of ugly, the work-around would be simple:
diff --git a/pandas/core/groupby.py b/pandas/core/groupby.py
index e9aa906..d722ef8 100644
--- a/pandas/core/groupby.py
+++ b/pandas/core/groupby.py
@@ -1439,7 +1439,8 @@ class BaseGrouper(object):
         """
         ids, _, ngroup = self.group_info
         ids = com._ensure_platform_int(ids)
-        out = np.bincount(ids[ids != -1], minlength=ngroup)
+        mask = ids != -1
+        out = np.bincount(ids[mask], minlength=ngroup) if ngroup != 0 else []
         return Series(out, index=self.result_index, dtype='int64')

     @cache_readonly

Interesting... thanks for the update. Yes they could have made np.bincount() better indeed - allowing either None or 0 having the same meaning would make it more usable.
So it looks like simply setting ngroup to None should also do the trick:
if not ngroup:
    ngroup=None
out = np.bincount(ids[ids != -1], minlength=ngroup)

Not sure this is more readable than @behzadnouri's solution though. Looking forward for a new pandas with the workaround!


icloud3 lovelace Card download doesn't work

Hi,
the link for the tracking card is unfortunately not functioning.
https://gcobb321.github.io/icloud3_v3_docs/#/.../2.0-installing-and-configuring?id=step-6-set-up-a-lovelace-card-tracking-card
Can I download the card anywhere?
thanx & grtz
Holck

I'm guessing Gary took it down until he could fix an issue with it. Give it a couple of days.


Setup Telescope on Windows

Hi there, thank you for your work!
Just trying to launch Telescope on Windows 10 and got some issues. Hope this can save some time to other githubers!

bcrypt fails at the install script at node-gyp rebuild
I get this errors when trying to run npm install with "bcrypt"  as a dependency

error<EMAIL_ADDRESS>install: node-gyp rebuild
error Exit status 1
error Failed at the<EMAIL_ADDRESS>install script.
error This is most likely a problem with the bcrypt package,
error not with npm itself.
error Tell the author that this fails on your system:
error     node-gyp rebuild
error You can get their info via:
error     npm owner ls bcrypt
error There is likely additional logging output above.
error System Windows_NT 10.0.10586
Solution: Based on https://github.com/kelektiv/node.bcrypt.js/issues/432#issuecomment-230595650
I'm using bcrypt-nodejs module. You need to run this line in command line:
npm install --save bcrypt-nodejs && npm uninstall --save bcrypt

prestart_nova.sh fails after npm start
Then I get this message when i try to run project:
npm ERR! Failed at the<EMAIL_ADDRESS>prestart script 'sh prestart_nova.sh".
'sh' is not recognized as an internal or external command, operable program or batch file.

Solution for me:

delete "prestart" option from package.json file

rename sample_settings.json to settings.json

run npm start

This issue is already solved by Microsoft
http://vujade.co/nodejs-environment-setup-with-bcrypt-module/

@meteorplus I don't think that your solution is more easy than mine. But thanks for sharing! I hope this information will save some time to other diggers

well my solution you just install that software and it works!

Updated on devel to have the colors recognition in the script. This doesn't solve completely this issue however.
Would you mind doing a PR somewhere in the docs (nova-docs.telescopeapp.org) to refer windows usage?

@xavcz Ok, I can contribute to docs section about usage on Windows. Maybe later I'll find out somethings else...

Sweet!


Space in BAM view name breaks parsing

Updated regex is (?'viewName'[\w\s]+)\s*:\s*(?'groupNames'[\w\s,]+)$
This work item was migrated from CodePlex
CodePlex work item ID: '8119'
Assigned to: 'tfabraham'
Vote count: '1'

[UnknownUser@6/21/2011]
Resolved with changeset 59754.

[UnknownUser@2/21/2013]

[UnknownUser@5/16/2013]


Problem with my DocumentSnapshot, DocumentID

Hello after 2 days of testing and looking at all the GitHub posts I still don't understand why when I try to get my doc.ID I get null.
Its my Class to create question

import 'package:cloud_firestore/cloud_firestore.dart';

class Question {
  final String id;
  final String text;
  final String answer;
  final String authorId;
  final String receiverId;
  final Timestamp timestamp;

  Question({
this.id,
this.authorId,
this.text,
this.answer,
this.timestamp,
this.receiverId
  });

  factory Question.fromDoc(DocumentSnapshot doc){
    return Question(
      id: doc.documentID,
      text: doc["text"],
      answer: doc["answer"],
      authorId: doc["authorId"],
      receiverId: doc["receiverId"],
      timestamp: doc["timestamp"],
    );
  }
}

I create question after onPress

 final currentUserId = Provider.of<UserData>(context, listen: false).currentUserId;
      Question question = Question(
      text: _questionController.text,
      receiverId: widget.user.id,
      authorId: currentUserId,
      timestamp: Timestamp.fromDate(DateTime.now())
    );
    DatabaseService.sendQuestion(question: question);

I send data in my Database_service

  static void sendQuestion({Question question}) {
    questionsRef.document(question.id).collection("userQuestions").add({
      "question" : question.text,
      "receiverId" : question.receiverId,
      "authorId" : question.authorId,
      "timestamp" : question.timestamp,
    });
        DatabaseService.addActivityQuestion(question: question);
      }

and i create notification with addActivityQuestion

    static void addActivityQuestion({
    Question question,
  }) async {
     activitiesRef.document(question.receiverId).collection("userActivities").add({
        "authorId": question.authorId,
        "questionId": question.id,
        "question": question.text,
        "timestamp": Timestamp.fromDate(DateTime.now()),
      });

  }

And in my Database i have this : result in my database i have "null" for question.id why
Screen Database

What was the answer??


Windows 11 sudo upgrade -y failing

Windows Build Number
Microsoft Windows [Version 10.0.22000.100]
WSL Version

[X] WSL 2
[ ] WSL 1

Kernel Version
Kernel version: 5.10.43
Distro Version
Ubuntu 20.04
Other Software
No response
Repro Steps

Fresh install of Windows 11
installed wsl using this command wsl --install -d Ubuntu
Sudo apt update ran successful
Sudo apt upgrade -y

Expected Behavior
Should be possible to upgrade WSL2
Actual Behavior

Diagnostic Logs
No response

Can confirm the same issue on a fresh Windows 10 install on an x86_64 machine and a non-fresh Windows 10 on an ARM64 machine.
Both are Ubuntu 20.04, WSL2.

I'm facing the same problem on an x86_64 machine running Windows 10  Ubuntu 20.04 WSL2.

I'm facing the same problem on Windows 11 22000.100 Ubuntu 20.04.2 <IP_ADDRESS>-microsoft-standard-WSL2

@benhillis can you help us ?

Seems to be a bug in the package itself https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/1938097

Guys seems that I fixed that running these commands:
sudo apt remove --purge cloud-init
sudo apt install cloud-init
run sudo apt upgrade without problems

Guys seems that I fixed that running these commands:
sudo apt remove --purge cloud-init
sudo apt install cloud-init
run sudo apt upgrade without problems

Appreciate the fix! This worked for me as well.

Issue is in cloud-init package.


Add CI workflow templates

Resolves #81

Unless it's needed for another purpose, Github Actions should be disabled for this repository (it will never pass)

Unless it's needed for another purpose, Github Actions should be disabled for this repository (it will never pass)

@iHiD

@iHiD

Done and done. Thanks!

Done and done. Thanks!


Scan_Matcher "odom"-Frame Error

Hello,
the installation of the package went very smoothly and without problems.
But when i try to test it, with my ros2-bag, i got the following error only after i started to publish the data from the bag:

System: ubuntu 20.04
Ros: Foxy
Arm64 Architecture
I was working with the scanmatcher a few months ago and i didnt get any error like this with the tested ros_bags.
Do you know how i can get solve this problem?
If you need more information just ask.
Best
Lukas

Is the scanmatcher.use_odom in your yaml set to true? If you don't have odometry as a sensor input, you need to set use_odom to false.

Thanks, that solved the problem!
Best Lukas


"3 series with 2 scales" problem leads to no scale when some of series are hidden

Description
I'm not really sure if I should report it as a bug (it seems like a bug from user perspective) or a feature request (because that's simply a thing you can't do).

Steps to Reproduce

Follow the docs example: https://apexcharts.com/docs/chart-types/multiple-yaxis-scales/#3-series-2-scales
On example click Column A and Line C  to hide them, leave Column B visible.

Expected Behavior

Left scale should stay on the chart.
Please notice that example code shown in How to associate a series with a Y-axis? section of the docs are different than example code above the demo. The real demo maps series to scales as [AAC], while example above as [ABB]. That's why I expect left scale to stay on the real demo.

Actual Behavior

All scales are hidden.

Screenshots

Reproduction Link
https://codepen.io/junedchhipa/pen/wYOzjd - this is just the link from the docs, nothing is modified

Proposed solution
Let seriesName of yaxis accept an array, which in result should tie multiple series to single yaxis

I'm having the same issue and the proposed solution makes a lot of sense. Allowing seriesName to be an array would make things much simpler for multi-series graphs.

You can use showAlways property of the y-axis to prevent this from happening
yaxis: [
    {
      seriesName: 'Column A',
      showAlways: true,
      axisTicks: {
        show: true
      },
      axisBorder: {
        show: true,
      },
      title: {
        text: "Columns"
      }
    },
    {
      seriesName: 'Column A',
      show: false
    }, {
      opposite: true,
      seriesName: 'Line C',
      axisTicks: {
        show: true
      },
      axisBorder: {
        show: true,
      },
      title: {
        text: "Line"
      }
    }
  ],


Most linters not working

The only working linters seem to be php and phpmd. I'm switching to working with python and have installed pyflakes, pep8 and pylint. All of these work fine from command line. However, in sublime text, I'm getting no indication that the newcommers would be activated and no error message whatsoever.
The only visible problem I've found is that there seems to be some remnant SublimeLinter installation, since the Package Settings menu lists SublimeLinter twice (both pointing to the same settings files) and the right click menu has most options as duplicated. Removing SublimeLinter and all linters through package control leaves the extra menus in place. I've had a lot of trouble configuring xDebug and some other packages earlier, so I really wouldn't want re-install SublimeText from scratch. However, linting with phpmd works fine so I don't think the duplicate installation is the core issue here.
I'm running the latest SublimeText 3 Build 3083 on OsX 10.11.1.
Console output contains nothing about the inactive linters:
[2015-11-30 13:46:47,019 - WARNING  - process] Could not import subprocess32 module, falling back to subprocess module
first paint time: 4.72369
Package Control: No updated packages
reloading Packages/User/SublimeLinter.sublime-settings
[2015-11-30 13:47:12,728 - WARNING  - codeintel.pythoncile] Python Syntax Error in '/srv/www/analysis.XXX.com/usheat/main.py': invalid syntax (<unknown>, line 12)
SublimeLinter: php activated: /usr/bin/php
SublimeLinter: phpmd activated: /Users/wnurmi/.composer/vendor/bin/phpmd
SublimeLinter: chdir not set or invalid, using /srv/www/analysis.XXX.com/include/YYY
SublimeLinter: php: Db.php ['/usr/bin/php', '-l', '-n', '-d', 'display_errors=On', '-d', 'log_errors=Off']
SublimeLinter: php output:
No syntax errors detected in -

SublimeLinter.sublime-settings
{
    "user": {
        "debug": true,
        "delay": 0.25,
        "error_color": "D02000",
        "gutter_theme": "Packages/SublimeLinter/gutter-themes/Default/Default.gutter-theme",
        "gutter_theme_excludes": [],
        "lint_mode": "background",
        "linters": {
            "pep8": {
                "@disable": false,
                "args": [],
                "excludes": [],
                "ignore": "",
                "max-line-length": 80,
                "select": ""
            },
            "php": {
                "@disable": false,
                "args": [],
                "excludes": []
            },
            "phpmd": {
                "@disable": false,
                "args": [
                    "/users/wnurmi/Documents/phpmd-ruleset.xml"
                ],
                "excludes": [],
                "rulesets": "cleancode,codesize,controversial,design,naming,unusedcode"
            },
            "pyflakes": {
                "@disable": false,
                "args": [],
                "excludes": []
            },
            "pylint": {
                "@disable": false,
                "args": [],
                "disable": "",
                "enable": "",
                "excludes": [],
                "paths": [],
                "rcfile": "",
                "show-codes": true
            }
        },
        "mark_style": "outline",
        "no_column_highlights_line": false,
        "passive_warnings": true,
        "paths": {
            "linux": [],
            "osx": ["/usr/local/bin"],
            "windows": []
        },
        "python_paths": {
            "linux": [],
            "osx": ["/usr/local/bin"],
            "windows": []
        },
        "rc_search_limit": 3,
        "shell_timeout": 10,
        "show_errors_on_save": true,
        "show_marks_in_minimap": false,
        "syntax_map": {
            "html (django)": "html",
            "html (rails)": "html",
            "html 5": "html",
            "php": "html",
            "python django": "python"
        },
        "warning_color": "DDB700",
        "wrap_find": true
    }
}

I do think I have my paths setup (in both sublime settings and PATH):
$SHELL -l -c '/usr/bin/which pylint'
/usr/local/bin/pylint

Anyone ever tackled similar issues? Any help would be so much appreciated!

Does your Packages directory show a SublimeLinter folder? if there are remnants of an install you should be able to delete them from there. Try a full reinstall of SL through package manager after, and see if it doesn't clear up the issue.

Thanks Blake!
I removed an extra SublimeLinter folder from the packages user directory and the extra menu entries went with it. Unfortunately the pylint issue still persists after reinstalling. The only console log entries mentioning pylint are still
reloading plugin SublimeLinter-pylint.linter
SublimeLinter: pylint linter reloaded
Other than that, no activations, no errors, no nothing.

On 1Dec 2015, at 12:13, Blake Grotewold<EMAIL_ADDRESS>wrote:
Does your Packages directory show a SublimeLinter folder? if there are remnants of an install you should be able to delete them from there. Try a full reinstall of SL through package manager after, and see if it doesn't clear up the issue.
—
Reply to this email directly or view it on GitHub https://github.com/SublimeLinter/SublimeLinter3/issues/379#issuecomment-160778526.

Sweet! Well one error down.  Do you have debug mode on? Toggle that setting and restart SublimeText  then post all the console outputs. This will help me get s better idea of what's happening.
On Tue, Dec 1, 2015 at 3:59 AM, WilliamNurmi<EMAIL_ADDRESS>wrote:

Thanks Blake!
I removed an extra SublimeLinter folder from the packages user directory and the extra menu entries went with it. Unfortunately the pylint issue still persists after reinstalling. The only console log entries mentioning pylint are still
reloading plugin SublimeLinter-pylint.linter
SublimeLinter: pylint linter reloaded
Other than that, no activations, no errors, no nothing.

On 1Dec 2015, at 12:13, Blake Grotewold<EMAIL_ADDRESS>wrote:
Does your Packages directory show a SublimeLinter folder? if there are remnants of an install you should be able to delete them from there. Try a full reinstall of SL through package manager after, and see if it doesn't clear up the issue.
—
Reply to this email directly or view it on GitHub https://github.com/SublimeLinter/SublimeLinter3/issues/379#issuecomment-160778526.

Reply to this email directly or view it on GitHub:
https://github.com/SublimeLinter/SublimeLinter3/issues/379#issuecomment-160898774

I have "debug": true in SublimeLinter user settings file and this is all I get in Sublime Text console after restarting and loading opening py and php files with problems.
first paint time: 8.97995
[2015-12-01 16:32:45,555 - WARNING  - process] Could not import subprocess32 module, falling back to subprocess module
SublimeLinter: phpmd activated: /Users/wnurmi/.composer/vendor/bin/phpmd
SublimeLinter: chdir not set or invalid, using /srv/www/analysis.XXX.com/include/data_analysis2
SublimeLinter: phpmd: Db.php ['/Users/wnurmi/.composer/vendor/bin/phpmd', '@', 'text', '/users/wnurmi/Documents/phpmd-ruleset.xml', 'cleancode,codesize,controversial,design,naming,unusedcode']
SublimeLinter: phpmd output:

Warning: date_default_timezone_get(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /Users/wnurmi/.composer/vendor/phpmd/phpmd/src/bin/phpmd on line 24

/private/var/folders/9q/fxtzqpz50kj7yy9gwnm6wdgc0000gn/T/SublimeLinter3-wnurmi/Db.php:18	The class Db has a coupling between objects value of 41. Consider to reduce the number of dependencies under 13.

Not a whole lot. The chdir seems to stem from phpmd linting, since I do not see it if I disable that linter.
Again, thanks a lot for helping!

This ticket never solved?
Have pretty much the same issue: SublimeLinter w/o errors and with enabled pylint does nothing

@iad42  Pylint seems to have trouble getting started if you have more than one version of Python. See also this. Following the info in that issue I got it running by installing pylint for both Python3 and Python2 (running macOS Sierra).
There usually isn't a global problem with linters starting. I haven't seen cases where simply "nothing works". However, there are so many ways each of the linters may fail to work.
@WilliamNurmi from reading this I don't have a clear idea on what problems remain for you. It's also been a while... Anything I can help you debug?

🤷♂ We'll re-open if there's news.


rt build-clean always fails in 1.29.0

Due to this commit: https://github.com/jfrog/jfrog-cli/commit/0e5388520d79e02de54701932adabdfe830237b7 any calls to jfrog rt bc... fails with "[Error] Wrong number of arguments..."
Argument count check in cli.go line 2202 is wrong. Instead of
if c.NArg() > 1 {
it shall be
if c.NArg() > 2 {

Thanks for reporting this issue, @AndreGleichner!
This PR should resolve this.
You can downgrade to 1.28.0, or, if you need a snapshot version, please let us know.

Thanx for your fast response :)
Up until now some of my scripts can only update to the lastest available jfrog.exe version and distribute this to quite a bunch of machines where its used while building our SW. That script not only updates jfrog but updates a lot of our build machinery. So currently I'm in a situation where I can't update parts of our build stuff.
Most probably I'll now implement some kind of workaround to be able to stick with an older jfrog...
So no need for an urgent update.

Thank you @AndreGleichner for reporting this issue and pinpointing the cause and thanks @yahavi for fixing this so quickly!
Version 1.29.1 is released with this fix.

Sure @AndreGleichner -
We'll need to investigate how this bug slipped through defences.
The TestArtifactoryCleanBuildInfo function should have cought that.

Closing this one @AndreGleichner.
Let me know if further assistance is needed.


Testing a .txt file

Plz accept lols jk

If youre kelvin/test is off the develop branch then everything looks good! Gj. Seems clean.


Add missing US states

Fixes #54

That's a good point. There are plenty of cities that are found in more than one state.
Examples:

Portland

Oregon
Maine

Lake Forest

California
Florida
Illinois
Texas

etc

Super cool. Thank you very much 👍


User Profile - "You Did" gallery css is broken

e.g. http://staging.beta.dosomething.org/user/5

Same for search: http://staging.beta.dosomething.org/search/apachesolr_search/Food


Add ignore comments for auto generated files like sst-env.d.ts

Hi,
Since everyone has a different preference regarding formatting and code style it would be better of the generated sst-env.d.ts file adds the following to the top of the file.
/* tslint:disable */
/* eslint-disable */

Right now we have every sst deploy that changes the file so our PR linter can then complain about wrong format being used (we use ' instead of ") 🙈
Regards

i don't love the idea of having to maintain a potentially ever growing list here. can you ignore it with a pattern in your eslint config? i'll probably end up adding it just so it works for everyone out of the box but wish there was a better way

fixed in v0.0.341

@thdxr I think you made a small error and didn't account for newlines since the generated file now looks like
/* tslint:disable *//* eslint-disable */import "sst"
declare module "sst" {
  export interface Resource {
    Account: {
      name: string
      type: "sst.aws.Dynamo"
    }
    Loyalty: {
      name: string
      type: "sst.aws.Dynamo"
    }
  }
}
export {}

Notice how they are all on one line and the import 'sst' is now also commented out


coerce numbers to strings in hyperscript

Several times I've run into errors when I accidentally use a number:
var h = require('virtual-dom/h');
var create = require('virtual-dom/create-element');
var node = h('div', [ 'clicked ', 1337, ' times' ]);
console.log(create(node).toString());

Currently, the above code will cause this very unfriendly error:
tmp/node_modules/virtual-dom/virtual-hyperscript/index.js:75
        throw UnexpectedVirtualElement({
              ^
Error: Unexpected virtual child passed to h().
Expected a VNode / Vthunk / VWidget / string but:
got:
1337.
The parent vnode is:
{
    "tagName": "DIV",
    "properties": {}
}
    at UnexpectedVirtualElement (/tmp/node_modules/virtual-dom/virtual-hyperscript/index.js:111:15)
    at addChild (/tmp/node_modules/virtual-dom/virtual-hyperscript/index.js:75:15)
    at addChild (/tmp/node_modules/virtual-dom/virtual-hyperscript/index.js:70:13)
    at h (/tmp/node_modules/virtual-dom/virtual-hyperscript/index.js:56:9)
    at Object.<anonymous> (/tmp/main.js:3:12)
    at Module._compile (module.js:431:26)
    at Object.Module._extensions..js (module.js:449:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:311:12)
    at Function.Module.runMain (module.js:472:10)

But with this patch, numbers are coerced to strings for text nodes:

clicked 1337 times

see https://github.com/Matt-Esch/virtual-dom/pull/154

Error: Unexpected virtual child passed to h().
Expected a VNode / Vthunk / VWidget / string but:
got:
1337.

Seems like a clear error IMO. It expects a string but got a number. String(1337) and all is good.

@staltz Clearly the problem is not that there's no clear error message, it's that this should not be an error.
The function is already doing a typeof check, and VText really doesn't care about what it's passed because it too simply does String(text). So the oh so terrible type coercion is already happening at much lower levels of the library than virtual-hyperscript.
So why not just fix this annoying and inconsistent behavior?

Just started playing around with virtual-dom and some libraries that make use of it, and I have to agree, it's pretty unintuitive behavior.  I'm using the "vdt" library to turn JSX into a VDOM tree, and I was very confused when my first trivial sample wouldn't work.  Took me a while to figure out this was the reason.  Yes, I can do stuff like using
{"" + myNumber}
 in my template, but it's ugly and silly.  Just auto-converting child content to strings seems like a very reasonable way to handle things.

lgtm. Let's do this.

Let's make sure we also pass a string to the VText constructor. virtual-hyperscript should do the type conversion and the actual virtual nodes should be as strictly typed as possible.

Travis is messy; running tests locally.

Tests pass locally.

Published v2.1.0


Root node svgs disappear on second load

Created by: brollb
On second load the svgs in the root node disappear

Created by: brollb
Fixed by #145 (there was a rogue css rule that changed the fill to none)


Is there a way to use foreach in data-binding of modal body object?

I would like to pass a ko observable array to my template for the modal body and use foreach to populate the body with a row for each item in the observable array (I'm displaying search results for a location in the modal). I've been able to get the modal to show up and populated data in the header and modal body with a single item example,  but haven't been able to get it to work with foreach and was wondering if it is supported?

Hello,
Yes, it should be supported. Please, see this examples:
https://jsfiddle.net/faulknercs/dqqc807f/
https://jsfiddle.net/faulknercs/fpqw4r3d/
Hope, they will help you.

Awesome, those examples were very helpful. I was trying to go off the Knockout template docs and take the approach of the #2 fiddle, but I didn't have it quite right. Thanks again and thanks for putting out these bindings.


Discard the object body when doing metadata request to S3

Otherwise the client library issues a warning about potential waste.
There is waste but only 1 byte (Range header is used). I've kept an
info message for the cases where more than 1 byte is downloaded - just
in case if someone needs to investigate issues with the S3-compatible
service that doesn't understand Range headers and returns the whole
object instead.

Fixes #9932

@bot-gradle test this

OK, I've already triggered ReadyForMerge build for you.

@bot-gradle test this

OK, I've already triggered ReadyForMerge build for you.

@bot-gradle test QF

OK, I've already triggered QuickFeedback build for you.

@bot-gradle test and merge

Your PR is queued. See the queue page for details.

OK, I've already triggered a build for you.

@mlopatkin is there some way of triggering this behavior in a test?


Job pagination support

it takes around 10 seconds to load the entire job list for a cluster with more than 30k jobs. we should consider pagination to improve the job query performance.

This is not the case previously. I suggest to optimize the first.

Let’s do a profiling first to see where is the bottleneck.

updated the title

resolved. https://github.com/microsoft/pai/pull/3244


Parsing

A comment in #3 made me aware that things still need work regarding parsing. Let me know what issues you're running into, perhaps I can help.

I think we're having trouble using the makeExprParser, but we can see you about this in the office hours to show you what we have.


PHP 8.1 deprecation notice

Identical to this: https://github.com/spatie/wordpress-ray/issues/49
But it doesn't seem like a release was made? I tried pulling down latest master branch and its already up to date on my system

I've just created a new release that should fix this.

Should v1.5.4 fix this issue? I'm using it but I'm still getting the same PHP notice while using PHP 8.1. I don't know if it's the same issue or a different one but I'm getting the same notice


Upload Instructions Update

In order to meet the Oct 5th milestone the directions have been updated with naming convention information and better upload instructions.

Making changes to facilitate Oct 5th Milestone.  Changes include bucket naming convention and file naming conventions.  Also removed language mentioning alpha.

Closing. We are now using another approach for the doc site.


limiter gives wrong timeleft when minDifference is defined

How to reproduce issue:
I have a limiter defined as follow
var limiter = RateLimiter({
   redis: client,
   namespace: 'test',
   interval: 6000,
   maxInInterval: 2,
   minDifference: 1000
 });

consider I make the first request at t0, second request after 2 seconds at t1 and third request after 2 seconds at t2. So, instead of giving me 2 seconds as time left with 429 status code , it gives me a negative number as time left with 429 status code .
so from code I can see when tooManyInInterval is true and timeSinceLastRequest is greater than minDifference, it goes in if section and try to get min using following code:
Math.min(userSet[0] - now + interval, minDifference ? minDifference - timeSinceLastRequest : Infinity);

so as minDifference is defined and timeSinceLastRequest is greater than minDifference it gives result in minus
If minDifference is not defined code works fine

This has been merged and published as 0.1.7.  Sorry for the delays.


feat: Allow button=false on ion-item to disable click takeover and button behavior

Feature Request
Ionic version:
[x] 4.x
Describe the Feature Request
Right now, if I add an ion-checkbox inside an ion-item, it takes over the click function of the ion-item. If we add button=false on an ion-item, the expected result is that items placed within, such as a ion-checkbox, will not make the ion-item work like a button.
Describe Preferred Solution
Allow us to set button=false on ion-item and have it work regardless of whether there's an input inside.
Describe Alternatives
Right now, if I add an ion-checkbox inside an ion-item, it takes over the click function of the ion-item. A workaround is the place the ion-checkbox inside a  tag which has the shadowdom takeover the span instead of the ion-item, but this seems super janky and the ion-item itself still visually clicks like a button but just doesnt do anything. Setting button="false" doesn't solve the problem although it seems like it should based on the documentation.
Related Code

Temporary fix that doesn't quite do the job:
<ion-item mode="md">
    <ion-checkbox [(ngModel)]="allowEmailMarketing" class="ion-margin-end"></ion-checkbox>
    <ion-label class="ion-text-wrap">
Label text
</ion-label>
    <ion-icon id="email-info" name="information-circle-outline" slot="end"></ion-icon>
</ion-item>

Ideal solution:
<ion-item button="false" mode="md">
    <ion-checkbox [(ngModel)]="allowEmailMarketing" class="ion-margin-end" slot="start"></ion-checkbox>
    <ion-label class="ion-text-wrap">
Label text
</ion-label>
    <ion-icon id="email-info" name="information-circle-outline" slot="end"></ion-icon>
</ion-item>

Additional Context

Thanks for the issue! I'm kind of confused. You want the click events to remain on the checkbox, but not on the parent item? Or you want the click event to be disabled entirely?


Claim Borders still not appearing with newest version.

Newest version of GriefDefender and up to date versions of Sponge and Nucleus, and latest version of Pixelmon Generations.
Claim Borders will not visually appear no matter what action is taken, whether its investigating with the stick or shovel, creating the claim or attempting to resize the claim.

No pixelmon servers are experiencing this issue on GD discord. As this is an issue tracker , if you require support then buy the plugin.


Detected by AV

Just a quick message to say all three of the ways to run your script are being blocked by Windows Defendar since this morning on an up to date Win 10.
Can supply any more details if needed but I suspect you can reproduce rather easily.

I have decided to not invest more time in changing the AMSI signature. Its pretty easy to build an own bypass. Use one of the existing bypasses and change its signature/triggers - "https://github.com/S3cur3Th1sSh1t/Amsi-Bypass-Powershell".
If the script is detected by the file signature on the disk - dont put it on the disk 👍


new: make ACCEPT_{E,X} and ACCEPT_5_{E,X} converter-managed

What type of PR is this?

Uncomment one (or more) /kind <> lines:

/kind bug

/kind cleanup

/kind design

/kind documentation

/kind failing-test

/kind feature

Any specific area of the project related to this PR?

Uncomment one (or more) /area <> lines:

/area API-version

/area build

/area CI

/area driver-kmod

/area driver-bpf

/area driver-modern-bpf

/area libscap-engine-bpf

/area libscap-engine-gvisor

/area libscap-engine-kmod

/area libscap-engine-modern-bpf

/area libscap-engine-nodriver

/area libscap-engine-noop

/area libscap-engine-source-plugin

/area libscap-engine-savefile
/area libscap

/area libpman

/area libsinsp

/area tests

/area proposals

Does this PR require a change in the driver versions?

/version driver-API-version-major

/version driver-API-version-minor

/version driver-API-version-patch

/version driver-SCHEMA-version-major

/version driver-SCHEMA-version-minor

/version driver-SCHEMA-version-patch

What this PR does / why we need it:
This PR is part of https://github.com/falcosecurity/libs/pull/2068.
Which issue(s) this PR fixes:

Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?:

NONE

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: ekoops
Once this PR has been reviewed and has the lgtm label, please assign incertum for approval. For more information see the Kubernetes Code Review Process.
The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


fix(data/100): correct decl for item 20

This entry points to the wrong theorem called sum_two_squares.

Thanks!


SPFx for Disp- or NewForm

Hello,
is there an option in modern ui to overwrite the NewForm or DispForm URL as it was possible in classic ui? We need to link an SPFx UI (Webpart, as there are no other Options in the Moment) to a New- or DispFrom, and wont use PowerApps.
The idea is to Redirect the New- or DispForm to a normal modernpage and place the SPFx WebPart on there.
So what are the supported ways to do this in SPO and SP2019?
Thanks very much for your help!
Category

[X ] Question
[ ] Typo
[ ] Bug
[ ] Additional article idea

As far as I know there is no such option for now.

I implemented  my own SharePoint List web part. The New and the Edit button of that web part opens my custom form in a panel. It is not cool but it works.

@tsekityam  how you did it?

+1 We need this.


RichTextEditor a11y updates

Summary | Résumé

Adds title attributes to Toolbar buttons to provide a visual explanation (ie, tooltip)
Adds aria-pressed attribute to Toolbar buttons
Fixed the keyboard trap when tabbing into the editor (now no longer needs modifier to escape)

Tab, Tab, Tab

This tabbing to get out of the editor is much better :)

@thiessenp-cds I'll throw this over to you for testing / approval


virtual hosts

Hey,
Thank you for your work on this module, I've come across an issue.
I got this working on a subdomain of mine on with a certificate issued for both root and a number of subdomains, it works fine on the subdomain, but not on the root domain, both share same SSL configuration in nginx only diffs are folders and proxies.
##hmm strange, when I move the  commands to enable:
ssl_ct on;
ssl_ct_static_scts /etc/nginx/ssl/sct/;
to /etc/nginx/nginx.conf rather than each site in ../enabled-sites/
It works for all subdomains but not the root domain. any idea why this is?
I have two sites enabled,  both share same certificate, while one only responds to apps.mydomain.com other responds to www.mydomain.com and mydomain.com
the lather of which is the only one not reporting back as working with SSL labs like the others "Certificate Transparency	Yes (TLS extension)"

What version of OpenSSL/nginx are you using?

Hey,
I have two systems
nginx version: nginx/1.11.9
built by gcc 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.4)
built with OpenSSL 1.1.0c  10 Nov 2016
TLS SNI support enabled
and \
nginx version: nginx/1.11.9
built by gcc 6.2.0 20161005 (Ubuntu 6.2.0-5ubuntu12)
built with OpenSSL 1.1.1-dev  xx XXX xxxx
TLS SNI support enabled

There is also a bug when using TLSv1.3, the CT does not work at all.
Firefox reports 0 CT when using TLSv1.3 but does report when using TLSv1.2
this in on the
nginx version: nginx/1.11.9
built by gcc 6.2.0 20161005 (Ubuntu 6.2.0-5ubuntu12)
built with OpenSSL 1.1.1-dev  xx XXX xxxx
TLS SNI support enabled
configure arguments: --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --pid-path=/usr/local/nginx/nginx.pid --with-pcre=../pcre-8.40 --with-zlib=../zlib-1.2.11 --with-http_ssl_module --with-openssl=/hom
e/night/Downloads/openssl --with-openssl-opt=enable-tls1_3 --with-http_gzip_static_module --with-http_addition_module --with-http_dav_module --with-http_stub_status_module --with-http_sub_module --with-http_ssl_module --with-stream --
with-stream_ssl_module --with-mail=dynamic --with-http_v2_module --add-dynamic-module=/opt/nginx-ct --with-mail=dynamic

The first problem is probably the same issue as #13.
I'll take a look at the TLS 1.3 issue.

Yeah It does look a lot like #13, so this one can be closed, or do you want to to remain open for TLS1.3?
Since SSLLabs fails to test TLS1.3 only, Firefox does report back no CT for my domains when it is on TLS1.3

Closing (as it's covered by #13 and the new #21)


UX Issues

Review by @mustafa-x
General

[ ] The url bar is the same as the background, I would make it darker if possible just to frame the app a bit.
[ ] The app is a little sluggish, we spoke about this, could be the IDB api you are using to save and reload images. Because the camera will have its own photo quality setting set up by the user, is there a way to compress the images for display purposes to speed it up?

First screen / on launch

[ ] Not sure what the app is but It is asking access to my camera. I would probably do a start up screen that explains what the app is and that it will as for permission first.
[ ] Also, as the Android UI is blocking the screen, all I am seeing it a grey screen.
[ ] There is a is a floating 'X' button. It feels like this would be the second screen you would show in an order, so the first one would be explaining the app, then you come here.
[ ] There is a second dialogue appearing, only once I allowed access to my camera did I realize it is a dialogue asking me to add to the home screen.

First screen / on launch - Adding to home screen

[ ] You ask for this right away, I would delay asking if a user wants to add to home screen after they have taken a couple of pictures. That shows they like the app.

Taking picture mode

[ ] I would consider making the buttons for adjusting the camera / s bigger and adding labels. They currently seem quite small and floaty.
[ ] The Frame around the photo area isn't consistent. I would either make it full screen or give it a 'Polaroid' frame.
[ ] Switching cameras would be great if you 'flipped the screen' so it represents the switch.

Photo taken mode

[ ] The buttons seem very small, perhaps increase the height of the bottom bar where they sit.
[ ] Make the frame width consistent. OR make it full screen.
[ ] There seems to be a milli-second delay when I click on each tab / button / effect.
[ ] A reset button would be nice. So the photo returns to its original view.
[ ] Not sure how I save the image.
[ ] A tick just to confirm a save would reassure the user.
[ ] When I pressed 'X' Close button the screen went black and the error message below appeared. The url was /browse.
[ ] The loading of the images is very sluggish, i would do some sort of skeleton screen transition to make it feel more snappy and alive.

Photo library mode

[ ] I tried to take a second photo and Chrome crashed out on me. Maybe because of the large images.
[ ] The two icons are very similar, one is to upload a photo the second is to take another picture, I would make them a little more distinct.
[ ] UPLOAD: On mobile you can't drag and drop, so don't show that screen. Go direct to the upload. Also you can use the upload arrow as the icon here.

Shall we copy the list of things here so you can cross them off?

@mustafa-x How do you mean? The list in the issue description is actually tickable. https://github.com/blog/1375-task-lists-in-gfm-issues-pulls-comments

ooops didnt notice that 🍡


noAutoFocus for Vue 2 project

Hi,
I am trying to use an input element as a trigger for the <VDropdown />  component. The input element loses focus whenever the popover opens. After some searching I found out a possible fix was released for the Vue 3 version.
Is it possible to release the changes from this commit  to the @vue2 tag?

@Akryum can you update us please?
https://github.com/Akryum/floating-vue/pull/894

Done

You're awesome!
May both sides of your pillows always be cold and your bed warm and cozy! :bow: :pray:


Add conv2d bias fastgelu

Add conv2d+bias+fastgelu fusion API for some models.

@Yanxing-Shi  need fix conflict


Installation Issue with autoxgb in Kaggle Environment

Dear autoxgb Developers,
I am reaching out to report an installation issue encountered with the autoxgb package within the Kaggle notebook environment. During the installation process via pip, the operation fails due to a Cython compilation error related to the sklearn.ensemble._hist_gradient_boosting.splitting.pyx module.
Cython.Compiler.Errors.CompileError: sklearn/ensemble/_hist_gradient_boosting/splitting.pyx
...
error: metadata-generation-failed

I also faced the installation issue in kaggle/colab with or without GPU. Error logs-
`Collecting autoxgb
Downloading autoxgb-0.2.2-py3-none-any.whl.metadata (6.2 kB)
Collecting fastapi==0.70.0 (from autoxgb)
Downloading fastapi-0.70.0-py3-none-any.whl.metadata (23 kB)
Collecting loguru==0.5.3 (from autoxgb)
Downloading loguru-0.5.3-py3-none-any.whl.metadata (21 kB)
Collecting numpy==1.21.3 (from autoxgb)
Downloading numpy-1.21.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (2.1 kB)
Collecting optuna==2.10.0 (from autoxgb)
Downloading optuna-2.10.0-py3-none-any.whl.metadata (15 kB)
Collecting pyarrow==6.0.0 (from autoxgb)
Downloading pyarrow-6.0.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (2.9 kB)
Collecting pydantic==1.8.2 (from autoxgb)
Downloading pydantic-1.8.2-py3-none-any.whl.metadata (103 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 103.1/103.1 kB 7.2 MB/s eta 0:00:00
Collecting joblib==1.1.0 (from autoxgb)
Downloading joblib-1.1.0-py2.py3-none-any.whl.metadata (5.2 kB)
Collecting pandas==1.3.4 (from autoxgb)
Downloading pandas-1.3.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (12 kB)
Collecting scikit-learn==1.0.1 (from autoxgb)
Downloading scikit-learn-1.0.1.tar.gz (6.6 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 6.6/6.6 MB 59.3 MB/s eta 0:00:00
Installing build dependencies ... done
Getting requirements to build wheel ... done
error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
Preparing metadata (pyproject.toml) ... error
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.`


dataset

server error in challengeAI， can you provide dataset in another way please？thanks

Feel free to drop an email to my email inbox.


Hubot Unable to Connect

Am trying to add Hubot to Hipchat, I've created the user added the login details and host. But in the logs the only thing am getting is...
[Thu Sep 19 2013 05:21:21 GMT-0400 (EDT)] INFO Connecting HipChat adapter...
[Thu Sep 19 2013 05:21:23 GMT-0400 (EDT)] DEBUG Loading adapter hipchat
[Thu Sep 19 2013 05:21:23 GMT-0400 (EDT)] DEBUG HipChat adapter options: {"jid":"66792_466246@chat.hipchat.com","password":"","token":null,"rooms":"All","host":"chat.hipchat.com","autojoin":true}

I can't figure out why it can't connect, the three lines above just repeat continuously.
I've not followed the instructions exactly in the README.md as am trying to run this on my own VM rather than herkou.
Am also trying to keep the bot running using Supervisord.

hi @aranw , what did you do  to get it working?

Hey @rgalindo33, sorry I really can't remember what I did to fix this issue, but from my comment am guessing I might of missed the port configuration maybe?


Add some horiz padding to blog posts

Before
Text is wedged against the sides of the screen on mobile

After
Text has some space

https://app.shortcut.com/larder/story/19795


[BUG] - prom_ex.dashboard.publish finch not loaded?

This week we upgraded from 1.6 to 1.7.1. When running mix prom_ex.dashboard.publish both on our pipeline and local we are getting the following error. It looks as finch is not loaded.
`
22:06:03.477 [error] GenServer Mix.Tasks.PromEx.Publish.Uploader terminating
** (ArgumentError) unknown registry: Backend.PromEx.GrafanaClient
(elixir 1.13.2) lib/registry.ex:1343: Registry.key_info!/1
(elixir 1.13.2) lib/registry.ex:576: Registry.lookup/2
(finch 0.10.2) lib/finch/pool_manager.ex:44: Finch.PoolManager.lookup_pool/2
(finch 0.10.2) lib/finch/pool_manager.ex:34: Finch.PoolManager.get_pool/2
(finch 0.10.2) lib/finch.ex:236: Finch.stream/5
(finch 0.10.2) lib/finch.ex:275: Finch.request/3
(prom_ex 1.7.0) lib/prom_ex/grafana_client.ex:155: PromEx.GrafanaClient.get_folder/2
(prom_ex 1.7.0) lib/prom_ex/dashboard_uploader.ex:143: PromEx.DashboardUploader.get_folder_id/3
Last message: {:continue, :upload_grafana_dashboards}
State: %{default_dashboard_opts: [otp_app: :backend], prom_ex_module: Backend.PromEx}
PromEx was unable to upload your dashboards to Grafana because:
{%ArgumentError{message: "unknown registry: Backend.PromEx.GrafanaClient"},
[
{Registry, :key_info!, 1, [file: 'lib/registry.ex', line: 1343]},
{Registry, :lookup, 2, [file: 'lib/registry.ex', line: 576]},
{Finch.PoolManager, :lookup_pool, 2, [file: 'lib/finch/pool_manager.ex', line: 44]},
{Finch.PoolManager, :get_pool, 2, [file: 'lib/finch/pool_manager.ex', line: 34]},
{Finch, :stream, 5, [file: 'lib/finch.ex', line: 236]},
{Finch, :request, 3, [file: 'lib/finch.ex', line: 275]},
{PromEx.GrafanaClient, :get_folder, 2, [file: 'lib/prom_ex/grafana_client.ex', line: 155]},
{PromEx.DashboardUploader, :get_folder_id, 3,
[file: 'lib/prom_ex/dashboard_uploader.ex', line: 143]}
]}
`

Elixir version: 1.13.3
Erlang/OTP version: 23.2.5
Grafana version: 8.3.3
Prometheus version: 2.26

Thanks for opening up the issue @JowiM. I'll take a look at this over the weekend and provide a fix


Stream Reset error

Describe the bug
While i am running the main.py file by taking fmovies link the download process,video handling process and producer process are getting started but suddenly the process is terminated due to stream reset error "hyper.http20.exceptions.StreamResetError: (Stream forcefully closed)".
To Reproduce
Steps to reproduce the behavior:

Go to online video streaming website "https://ww5.fmovie.sc/"
Play online streaming video then right click on the page and click on inspect.
Go to Network option and got to XHR, u can see several names.
4.Click on .m3u8 extension link and on the right scroll down to copy the request headers to header.txt file in the project and save it
Scroll up and copy the url and run > python main.py url -c
See error

Expected behavior
what actually happens if there is no bug is the parser will parse all the links and download the chunks of the video in m3u8 format and later it is converted into mp4 format and into a single video.
Screenshots

Desktop (please complete the following information):

OS: Windows
Browser : Chrome
Version Chrome: 83

After debugging the application, it appears the links are being parsed properly. This is an issue with one of the external libraries "hyper", two possible ways of fixing it is either wait till hyper adds support for latest version of "h2" library or wait till requests3 is released in which case hyper will no longer be required. I'll close this issue for now.

issue #9 will be used to solve this issue.


UIOperation does not always finish

Related to #174 & #185.

Current coverage is 74.84%

Merging #188 into development will increase coverage by +0.01% as of 4fbee0c

@@            development    #188   diff @@
===========================================
  Files                51      51
  Stmts              3338    3343     +5
  Branches              0       0
  Methods
===========================================
+ Hit                2498    2502     +4
  Partial               0       0
- Missed              840     841     +1

Review entire Coverage Diff as of 4fbee0c

Powered by Codecov. Updated on successful CI builds.

Think that this is properly fixed now @bastianschilbe. Inside ViewControllerDisplayStyle's displayController method, we just ensure that the completion block is called.
Tested this using an AlertOperation in the Permissions example app. The table view gets its datasource set inside a BlockOperation which is dependent on an AlertOperation finishing. So, the app launches, shows an alert, and when you tap Okay, the alert dismisses and the table view has rows.
This should fix #174, although I've not specifically set up a test for this yet.

@bastianschilbe - actually just re-wrote my changes to the Permissions project pretty much as you have in the bug report for #174:
let config = configure()
let group = GroupOperation(operations: createInfoAlert())
config.addDependency(group)

queue.addOperations(config, group)

And this works, meaning that the group is correctly finished.


could not reponse login data for topflytech

Hi
recent my team was trying make listener for T8803pro , which that would need a response from the server , and they use traccar server as a data collector , any way , it seems the GPRS data consumed a lot (data gone within 3 days ) , then
I have tried to convert code to python, and  I found a problem us I could not pass the login , I response to the tracker but it still sending login data , I am not sure if the problem is my code , I am confusing what the thing is going one here . or I misunderstood something ?
so the issue still exist on traccar server  ? or the problem is the protocol or tracker ?  I download traccer server to install on my linux server to test but it would need sometime , which if you know the reall issue please let me know
and here what I try sending but no good results
    dt=str(datetime.now())

    s="232301001500010880316890233088"
    sent=clientsocket.send(s)
    print dt+"sent pure 1:"+str(s)

    dt=str(datetime.now())
    myb=bytearray(s)
    sent=clientsocket.send(s)
    print dt+"sent pure 1 array:"+str(myb)

    dt=str(datetime.now())
    s=binascii.b2a_hex(s)
    sent=clientsocket.send(s)
    print dt+"sent b2a:"+str(s)

    dt=str(datetime.now())

    dt=str(datetime.now())
    myb=bytearray(s)
    sent=clientsocket.send(s)
    print dt+"sent b2a array:"+str(myb)

    dt=str(datetime.now())
    s=binascii.a2b_hex(s)
    sent=clientsocket.send(s)
    print dt+"sent convert a2b"+str(s)

    dt=str(datetime.now())
    myb=bytearray(s)
    sent=clientsocket.send(s)
    print dt+"a2b array"+str(s)

    dt=str(datetime.now())
    s="232301000F00010880316890233088"
    sent=clientsocket.send(s)
    print dt+"sent pure:"+str(s)

    dt=str(datetime.now())
    myb=bytearray(s)
    sent=clientsocket.send(s)
    print dt+"sent pure arrat:"+str(myb)

    dt=str(datetime.now())
    s=binascii.b2a_hex(s)
    sent=clientsocket.send(s)
    print dt+"sent b2a:"+str(myb)

    dt=str(datetime.now())
    myb=bytearray(s)
    sent=clientsocket.send(s)
    print dt+"sent b2a array:"+str(myb)

    dt=str(datetime.now())
    s=binascii.a2b_hex(s)
    sent=clientsocket.send(s)
    print dt+"sent convert a2b"+str(myb)

    dt=str(datetime.now())
    myb=bytearray(s)
    sent=clientsocket.send(s)
    print dt+"a2b array"+str(myb)

here is some code
import socket
import string,sys
import thread
import struct
from datetime import datetime
#from protocol_handler import Protocol_Handler
import urllib2
import logging
import time
import sys
import binascii
Port=6661
_null_trans = string.maketrans("", "")
def start_server(argv):
#url=argv[0]
try:
Port=int(argv[0])
except ValueError:
print "Try again both value must be given!"
return
log_file=time.strftime("%Y-%m-%d.log")
logging.basicConfig(filename=log_file, level=logging.INFO)
sock=socket.socket(socket.AF_INET,socket.SOCK_STREAM)
sock.bind(('<IP_ADDRESS>',Port))
sock.listen(5)
print 'started on %s' % str(Port)
while (True):
newsock,address=sock.accept()
thread.start_new_thread(handler, (newsock, address))
def handler(clientsocket, clientaddr):
data = clientsocket.recv(1024)
print data
d=binascii.b2a_hex(data)
#binascii.hexlify(data)
print d
print binascii.a2b_hex(d)
myb=bytearray()
s="232301000F00010880316890233088".decode("hex")
#myb.append(s)
myb=bytearray(s)
sent=clientsocket.send(myb)
print "sent"+str(sent)
while(sent==0):
print "send again"
time.sleep(1)
sent =clientsocket.send(myb)
if(sent==0):
print "socket broken"
#binascii.a2b_hex(hexstr)
#binascii.unhexlify(hexstr)
close_connection(clientsocket,clientaddr)

def close_connection(sock,clientaddr):
print "close connection to ip %s" % str(clientaddr)
sock.shutdown(socket.SHUT_WR)
sock.close()
def istext(s):
if "\0" in s:
return "it contains binary"
if not s: # Empty files are considered text"
return "empty string"

# Get the non-text characters (maps a character to itself then
# use the 'remove' option to get rid of the text characters.)
t = s.translate(_null_trans, s)

# If more than 30% non-text characters, then
# this is considered a binary file
threshold=0.3
if float(len(t)) > threshold*float(len(s)):
    return str((float(len(t)/float(len(s)))*100))+" is binary"
return str((float(len(t)/float(len(s)))*100))+" is text"
if name=='main':
start_server(sys.argv[1:])

Traccar doesn't send any data to the device except some acknowledgement messages, so if your device used up the data, it must be device.
Not sure why you want to reimplement, but if you want someone to read it, you need to format it properly.

Hi I have found that the string that I prepared have some hidden characters which caused me trouble for 3 days
'##\x01\x00\x0f\x00\x01\t\x901h\x90#0\x99'
which I have to use regular express to purify the string before send or do any encoding
here is my full code, which I am confusing that what method I have to send the that string , Hex string , or something ?
server_listener.zip

It's a binary protocol. I don't understand why you are trying to operate with strings.

base on my code , I prepared the hex string and convert the string to binary data and send it
but the tracker still keep sending login data to the server
s="232301000F00010880316890233088" # data that I prepared
#data from tracker<PHONE_NUMBER>01850880316890233088140209625020
ps = filter(lambda x: x in string.printable, resp) # filter the string
sb="\x23\x23\x01\x00\x0F\x00\x01\x09\x90\x31\x68\x90\x23\x30\x99"
d=binascii.a2b_hex(ps)                # convert hex string to binary data
sent=clientsocket.send(d) #send binaray data to the tracker
time.sleep(1)

I would recommend to compare what you send with what Traccar sends. Use something like Wireshark to capture and compare network packets.

so you meant what I have done is correct for sending binary data to tracker, except that if the sent data is correct or not right , I am setting a sniffing program to test it

I haven't checked your code. I'm just suggesting what you can do to check if it's correct.

hi
I found in log and it seems it's very the same as I did for hex string
I convert that hex string to binary data
receive :  b'##\x01\x00\x15\x001\x03W6p1\x10\x84\x02\x14\x02\tbP '
what I sent: 232301000f00010880316890233088
resp=binascii.a2b_hex(resp) # use this method to encode
==> b'##\x01\x00\x0f\x00\x01\x08\x801h\x90#0\x88'
sent=clientsocket.send(resp) #a2b_hex
(I use python 2.6.6 seems very strange and unclear result, now I use python 3.5)
but I still could not get the new data from tracker except login data , which I did it before on windows  platform which now I don't have Windows any more
the main question here what I have done wrong ? or I missed something here or because or Linux or ?
your traccar is cool , but I don't want to throw my pieces and time ,
2016-09-19 02:46:35 DEBUG: [5E274B8A: 5094 < <IP_ADDRESS>] HEX:<PHONE_NUMBER>00120880316890233088140209625020
2016-09-19 02:46:35 DEBUG: [5E274B8A: 5094 > <IP_ADDRESS>] HEX: 232301000f00010880316890233088
2016-09-19 02:46:36 DEBUG: [5E274B8A: 5094 < <IP_ADDRESS>] HEX: 232303000f00000880316890233088
2016-09-19 02:46:36 DEBUG: [5E274B8A: 5094 > <IP_ADDRESS>] HEX: 232303000f00010880316890233088

Can you provide Wireshark logs?

here is some wireshark logs
for 5094 and 6666 ( my server)
it's very funny that my server there is no data that I sent , ... but when I test with chat server client, it's working fine then... so now it's beyond my mind now
6666.zip

sorry the 666 file was wrong one, here is the right one
6666__.zip

I have checked port 6666 and it looks fine to me. You've got a response for your command.

yes, I just found the same thing so the problem is I could not see the second command from trackers
the process

accept
waiting for data
get data
process
response
close connection
why from my console I could not see the second data , there is only one possible
I check the seconds and next data always alive with first connection
tracker would leave the current connect after some seconds only
I have to keep current connection alive for some seconds
if so this protocol would consume much server's energy
if so I have to settimeout for it , which how many seconds  , is it right ?

You need to keep connection open to communicate with device.

here we call "a small piece blind your eyes"
BIG THANKS
you help my days  , I give you some beers , CHEER!


fix: Nil method fails on nil pointer

When I test function like:
func foo() map[string]*Foo{
   // ...
}

it returns a map, the value of some keys are nil, and Nil method fails on that case since Nil take interface{} as parameter, which make nil-check inaccurate. See nil_error

This is an intentional design choice. ensure.Nil checks that the value is nil in addition to not carrying a type (see https://www.gmarik.info/blog/2016/understanding-golang-nil-value/ if you're not familiar with how nil in Go is special). For cases like yours something like ensure.True(t, val == nil) might work instead.

Hi @daaku , I know the difference between  {nil, nil} and {*other_type, nil}. Most test cases may  easily misuse with ensure.Nil(t, v):
   v, err := foo()
   ensure.Nil(t, err)
   ensure.Nil(t, v)

The intentional design choice does make sense. I think it should be well documented, or another ValueNil method gave to check value nil.


Issue Comment

Tasks

[x] Practice markdown formatting: bold, italic, strikethrough, et cetera
[ ] Optionally, review [Quick Reference Guide] (https://lab.github.com/public/communicating-using-markdown.pdf)
[ ] Optionally, review ["Writing On GitHub"] (https://help.github.com/categories/writing-on-github/)

The GitPages function was activated under the main branch; the 'Theme' settings weren't modified.

Determine the next step?


make errors : cannot find -lmxnet

Hi,I build the project follow the ReadME instructions.
and errors occur as blew when I run 'make -j4':
make -j4 Scanning dependencies of target mtcnn [ 11%] Building CXX object src/libmtcnn/CMakeFiles/mtcnn.dir/comm_lib.cpp.o [ 33%] Building CXX object src/libmtcnn/CMakeFiles/mtcnn.dir/mtcnn.cpp.o [ 33%] Building CXX object src/libmtcnn/CMakeFiles/mtcnn.dir/mxnet_mtcnn.cpp.o [ 44%] Building CXX object src/libmtcnn/CMakeFiles/mtcnn.dir/utils.cpp.o [ 55%] Linking CXX shared library ../../../lib/libmtcnn.so /usr/bin/ld: cannot find -lmxnet collect2: error: ld returned 1 exit status src/libmtcnn/CMakeFiles/mtcnn.dir/build.make:202: recipe for target '../lib/libmtcnn.so' failed make[2]: *** [../lib/libmtcnn.so] Error 1 CMakeFiles/Makefile2:106: recipe for target 'src/libmtcnn/CMakeFiles/mtcnn.dir/all' failed make[1]: *** [src/libmtcnn/CMakeFiles/mtcnn.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: *** [all] Error 2
any solution will be appreciated.

Did you find any solution yet?


Reading value from proto struct via protoreflect for optional fields

Hello,
I have more over a question about the behavior of protoreflect.Value for optional fields in proto message.
Let's have a simple message:
message Foo {
  optional string param = 1;
}

This one generates Go code struct like this:
type Foo struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	Param *string `protobuf:"bytes,1,opt,name=param,proto3,oneof" json:"param,omitempty"`
}

The Param here is nillable as expected.
When I try to read the value of that field via protoreflect, I'm basically not able to get the fact that the Param is nil. I'd expect that Value.IsValid() returns false because it can operate with nilType.
Let's have this test snippet:
foo := &Foo{}
descriptor := foo.ProtoReflect().Descriptor()
paramField := descriptor.Fields().ByTextName("param")

value := foo.ProtoReflect().Get(paramField)

assert.Equal(t, false, value.IsValid())
assert.Equal(t, nil, value.Interface())

I'd expect that this test will pass but IsValid returns true and calling Value.Interface() returns empty string "" (probably a default value of that field).
My goal is to know that the value is nil for the field Param. I achieved the result by this code, but I'm not sure it's the correct one:
isNil := !foo.ProtoReflect().Has(paramField) && paramField.HasOptionalKeyword()
assert.Equal(t, true, isNil)

Could you please explain me this behavior and why there is nilType not used in this case?
Thanks a lot.
Best,
Honza

Thanks for explanation. So my line of code getting to know isNil is basically correct, right?
For me, the curious thing is that protoreflect.Value inside works with nilType but basically, this can never happen, right?

The internal implementation of protoreflect.Value may need to consider things like a value being nil as it is sort of the “glue” between the protobuf data model, and the Go data model. But it only surfaces strictly the protobuf data model, and the internal Go data model is strictly an obscured implementation detail.

Thank you for clarification. I'm closing this topic now.


Created AuthorizationHandler interface.

I will update the return type of getACLforType after @whikloj updates #4 with the new interface name.

@mohideen, PR #4 is updated. cheers.

Just a point of clarification, are the add/replace/removeAuthorizations methods intended to be used for the editing of ACLs?

Yes, to manage acl:Authorization nodes in a given ex:Acl.

@mohideen I was under the impression that since we were making the acl:Authorization nodes LDP children under the ex:Acl container, that we would use the usual LDP methods for editing them (PUT to add and replace, DELETE to remove). In that case, do we need specialized methods in the AuthorizationHandler?

I was thinking about these in the context of UI. We might not need these then.

Agreed, @peichman-umd and @mohideen. We will likely be using straight LDP to update Authorizations, not object setters.

@mohideen, can you clarify the different purposes of the two getAuthorizations() methods in their Javadocs?

Wasn't sure if the delegate OR AuthorizationHandler will be implementing the logic for traversing up the tree to find if an ACL exists?

First method assumes it happens in delegate, second assume in AuthHandler. We will only need one.

My recollection from yesterday's discussion and from the Google doc work is that the is the delegate that would be doing the initial tree traversal to find the applicable ACL. @awoods, @acoburn, @whikloj, does that sound right?

I thought we just wanted the delegate to make the final decision with all relevant data, which puts it into the AuthHandler. But I don't know if we had a final decision on that.

Like @acoburn has mentioned, it would be ideal to keep jcr.Sessions (to the extent possible) from leaking outside of the Delegate.

Ok, so the Delegate checks for the ex:hasAcl and then passes that resource to the AuthHandler.

@whikloj, sounds good.

I think this should be closed due to work being done @acoburn

We can close this in favor of #8


Update README.md to match current API

Noticed the documentation is incorrect, maybe an update was not reflected in the documentation.

@lostinblue thank you!


Render width="" and height="" on  tag

Is it possible to render the image width and height based on the picture profile size(s) on the <img> tag? Google PageSpeed checks this.

Thanks for the suggestion. I will investigate what is best practice for img element in a picture element. But I'm guessing Google is right 😉.

It's not clear to me what the best approach is. It's not a problem adding height and width attributes for the <img> element, since the aspect ratio is the same for all images.
The height and width will give the browser a hint about the aspect ratio, and avoid CLS. But since height and width will be one of the values in sizes you need to set the actual size in css. And when you set the actual size/aspect in css, you will not have an issue with CLS, and the height and width are not needed(?).
Anyway, in version 1.3 it's possible to enable ImgWidthHeight in the Picture profile, and then height and width will be rendered.


It doesn't work with rails 4

It doesn't work with rails 4, it has railties 3.1 dependency.

I noticed this too. It's because @johnantoni merged #1 but didn't create another release. The workaround for now is to specify the git repo and sha1 in your Gemfile
gem 'backbone-queryparams-rails', git: 'https://github.com/johnantoni/backbone-queryparams-rails.git', ref: 'a4fae9b24fcaaa45071750a70ddb3ad5d8b172ce'

Thanks for the nudge.
Updated and published to rubygems.org
Apologies for the wait.

:+1: cool, thanks for spending time on this @johnantoni!

no worries


Type hint raises error, how should body look like ?

So I have and end point that looks like this:
def schedule_post(a: A, b: B):
    pass

With B and A:
class A(object):
    def __init__(self, a, b, c):
        pass

How should the request body look like to prevent this:
 "a": "__init__() missing 3 required positional arguments: 'a', 'b', and 'c'",
 "b" : "__init__() missing 3 required positional arguments: 'a', 'b', and 'c'"

Hmm found another way 😁

Maybe share it, just to help others if the same problem encountered? :D

Well, this is what I've end up doing:
@hug.post()
def endpoint(a: list,  b: dict):
    a = A.process_list(a)
    b = B.process_dict(b)

And both of these will return an instance of A and B.
@statsicmethod
def process_list(list_: list) -> 'A':
    return A(list_[0], list_[1], list_[2])

@staticmethod
def process_dict(dict_: dict) -> 'B':
    return A(dict_['a'], dict_['b'], dict_['c'])

Of course there is more logic going on, and with no magic values but this is just a simple example.
So then the body will look like this:
{
	"a": ["1", "2", "3"],
        "b": {
		"a": "test",
		"b": "test",
		"c": "test"
	}
}

Hope this helps you 😁