text:
[R5] Move/refactor Get Shopcarts API into ShopcartResource class

As a developer
I need to move/refactor Get Shopcarts API into ShopcartResource class
So that Get Shopcarts API swagger doc would be available on the /apidocs page
Details and Assumptions

https://github.com/nyu-devops/lab-flask-restplus-swagger/blob/master/service/routes.py#L129

Acceptance Criteria
TBA
Given [some context]
When [action taken]
Then [outcome observed]

Hey team! Please add your planning poker estimate with Zenhub @emhao @LillisLuo @momo100110 @wl2484


text:
Generate icon variations with Deno

Why are we doing this?
So that we can have reproducible steps to generate all assets in a reproducible manner, enabling contributors to make modifications to the SVG asset with condifence.
Closes #18
What does this change?

Use resvg & resvg-js for rendering the css.svg, css.light.svg & css.dark.svg to PNG buffers (UInt8Array) and save them to disk
Use magick-wasm to generate variations for the following formats:

JPEG (square, no alpha)
JXL
AVIF
WebP
ICO (no multi-size optimisation)

Manually checked that the colours is indeed rebeccapurple / #639/ rgb(102 51 153) for images. The AVIF & JPEG versions are slightly off with their blue channel at 152.

That's annoying.. I mean at least it's better than before, but I wonder what we can do about it.

AVIF and PNG are lossy image formats that are optimised for small file size over visual perfection, and take for granted that blue sensitivity is lesser in most humans, so it’s probably an acceptable compromise?

todo 🚀

[ ] light/dark variants
[ ] square variants
[ ] 2x variants

@mxdvl @argyleink I managed to maintain the correct color with sharp. I'll open a PR once I'm done.

I’m not entirely sure what the benefit of the @2x variants is, as the files are all pretty small…

you've done great work here to spur the conversation and pave the path! looks like we're going to go with Sharp instead over at #22, so this can close. i feel like you should make a small edit to #21 so you can "co authored" the work, making sure you get cred for your influence and contributions.

you've done great work here to spur the conversation and pave the path! looks like we're going to go with Sharp instead over at #22, so this can close. i feel like you should make a small edit to #22 so you can "co authored" the work, making sure you get cred for your influence and contributions.

Agree!

Brill – I’ve got more things coming for this repo 😉 so I won’t be too sad if it’s complicated to get co-authorship this time.

source: gharchive/pull-request

authors: Que-tin argyleink mxdvl

license_type: permissive

license_source: github-api


text:
UI problem in mobile view

The buttons are not in the same grid line
Modify the styling, using Bootstrap CSS classes and rewrite a decent UI

Bonous

[ ] Add Bootstrap icons to Encrypt and Decrypt buttons

about bonus  is this ok :

@adithya-r-prabhu Yes it is
Try fixing the alignment also.

ya i will

is this still open as i'd like to give it a go?

@JamieCWW ok, Go Ahead

I've updated the buttons for mobile screens..i also noticed the NavBar wasn't sitting right on the screen so fixed that also.

great
make a PR

https://github.com/CSYClubIIITK/eco-crypt/pull/30

source: gharchive/issue

authors: JamieCWW adithya-r-prabhu sarthakg043

repo: CSYClubIIITK/eco-crypt

license: MIT


text:
question for the source code

Sorry to bother you again,I want to know some detail about the code which implements the way to find proper history input.In the 'search_proper_input' function,I think it doesn't fit the paper. In '3.2 Approximating History Inputs',it says in step 1 if  ||f(xt,Xt,l) − f(xt,Xt,k)||1 ≥ δ, then double l ,else l = ⌊l/2⌋. And there is also a limit to the renew times 'U'.But in the source code,I think they do not fit each other.Accually comparing to  In paper l = ⌊l/2⌋ ,I like the code.
#original code
def search_proper_input(self):
      step = 0  # Current step
      while step < self.step:
          for i in range(len(self.history_samples)):
              self.new_input = self.history_samples[-(i+1):]
              print(len(self.new_input))
              model = keras.models.load_model(self.model_path)  # Load the Keras model
              new_current_score  = model.predict(self.new_input,batch_size=1)
              current_score  = new_current_score [-1]
              print("searcheed current score", current_score)
              current_delta  = abs(current_score - self.original_score)
              if current_delta <= self.delta:
                return self.new_input  # Found proper input
          self.step += 1
          i *= 2  # Double the value of i
      return None  # Proper input not found within max_steps

Question 1 is the step is not renewed,but the self.step,it is meanlingless. Question 2 is it doesn't implement the l = ⌊l/2⌋ and the way to renew l = l * 2 is also wrong I think.
I suppose it may look like this:
def search_proper_input_new(self):
      step = 0  # Current step
      for i in range(len(self.history_samples)):
        while step < self.step:
          self.new_input = self.history_samples[-(i+1):]
          print(len(self.new_input))
          model = keras.models.load_model(self.model_path)  # Load the Keras model
          new_current_score  = model.predict(self.new_input,batch_size=1)
          current_score  = new_current_score [-1]
          print("searcheed current score", current_score)
          current_delta  = abs(current_score - self.original_score)
          if current_delta <= self.delta:
            return self.new_input  # Found proper input
          step += 1
          i *= 2  # Double the value of i
        return None
      return None  # Proper input not found within max_steps

Thanks for your paper and code,I'm a fresh man in this area,and your reply give me some power to go on.(My English is bad hh) 🤥

But I still think the variable 'i' has something wrong, out of the loop makes it can not be initialized if execute here
i *= 2  # Double the value of i

Thanks for your reply!!Accually I do not understand the whole process wholely,but I will study then know it! 😄

Your comments regarding the code are correct!!!  The tricky thing here is if I execute the double operation here as designed, the searching steps will be reduced to 2 or 3.
But when I write the demo code, I was thinking about showing more search steps which looks good but cost more resources. So I put the operation out of the loop.
I will update the code to clarify this issue!

Hi Trae1ounG, I have updated the demo  code. Please check it!

I have already seen it!!Thanks for you to apply it,I am so glad to make this contribute!!

Hi Trae1ounG, I have updated the demo code. Please check it!

Accually I'm a student from UESTC hh,I have to do a paper report so I read this one,and it's my namely first time to do this.It is kind of difficult but I'm very glad and surprise to hava a communication with you!! I hope I can do as good as you in the future!

Thank you  for reaching out to me! I'm thrilled to hear that you found my work helpful for your own research. Wishing you all the best in your studies and future achievements!

Thank you for reaching out to me! I'm thrilled to hear that you found my work helpful for your own research. Wishing you all the best in your studies and future achievements!

Hi,I'm here to say thanks again! With your help i'm in the Smart Internet Group in SIGS!And it's may have the similar research topic like you,so I also want to ask if I can have communication methods  with you such as wechat,I'm very curious about this topic!Thanks a lot!

Thank you for reaching out to me! I'm thrilled to hear that you found my work helpful for your own research. Wishing you all the best in your studies and future achievements!

Hi,I'm here to say thanks again! With your help i'm in the Smart Internet Group in SIGS!And it's may have the similar research topic like you,so I also want to ask if I can have communication methods with you such as wechat,I'm very curious about this topic!Thanks a lot!

Congratulations on your acceptance to the Smart Internet Group in SIGS! If you would like to discuss those research topics, please take a moment to send me an email at fengwei@buffalo.edu.

Thank you for reaching out to me! I'm thrilled to hear that you found my work helpful for your own research. Wishing you all the best in your studies and future achievements!

Hi,I'm here to say thanks again! With your help i'm in the Smart Internet Group in SIGS!And it's may have the similar research topic like you,so I also want to ask if I can have communication methods with you such as wechat,I'm very curious about this topic!Thanks a lot!

Congratulations on your acceptance to the Smart Internet Group in SIGS! If you would like to discuss those research topics, please take a moment to send me an email at fengwei@buffalo.edu.

Ok I know that,now I don't know many useful things,I'll have a communication with you in the future!

repo: CactiLab/code-xNIDS


text:
added new epoch data [resnet34] using Adam optimiser

I already updated the rundata sqlite database with the data from this run

Ok

https://s3.eu-central-1.amazonaws.com/phovea-data-packages/malevo_cifar10_lock.mdb
https://s3.eu-central-1.amazonaws.com/phovea-data-packages/malevo_cifar10_data.mdb
https://s3.eu-central-1.amazonaws.com/phovea-data-packages/malevo_cifar10_rundata.db

repo: Caleydo/malevo


text:
Organize models and remove EOF from app.blade

Hello.
I just organize things a little bit moving all the models to its own folders. IMHO, it looks better.
I also removed the EOF from app.blade.php it is now being added by a view composer class. Tbh, I don't recommend both but nothing came to my mind right now to solve it.

I'm not sure about moving models to a Models folder. If Laravel creates those in the top-level App directory by default, it's probably because it's the recommdended practice. (I couldn't see this mentioned anywhere on laravel-best-practices still.)
The rest of the changes look good to me.

I'm not sure about moving models to a Models folder. If Laravel creates those in the top-level App directory by default, it's probably because it's the recommdended practice. (I couldn't see this mentioned anywhere on laravel-best-practices still.)
Not to mention I find Laravel's directory structure a bit complex to follow, so having some simplicity here and there doesn't hurt.

About the models... It's just a nice practice, there is a reason why Laravel doesn't do it by default, and you can check it here. But I don't see any complexity to add it to the folder, once all the other classes have it's own folders. Actually, it cleans a lot the App structure, as well let it explicit that the classes living inside the model folder are actually model. Explicit better than implicit.

@rluders OK, let's keep the Models folder then.

Perfect. So, if you feel that it's ready to be merged, just do it. I also started to prepare some extra tests, so we can reach the 50% target, but... it is another PR.

@rluders I'd prefer testing this locally before merging (I'm not on my PC right now).

authors: Calinou rluders

repo: Calinou/godot-asset-library-laravel


text:
S hyperparameter evaluates to 0.00 leading to P(alive) = 1

I'm trying to implement the Pareto/NBD model based on some transactional data I have. In 2/3 datasets the 's' parameter of mu's gamma distribution evaluates to 0, leading to some customers having a probability of being alive = 1, or very very close to that. This means that it takes a veery long time for them to 'die'.
Any thoughts on why this happens? Are there criteria on the data used in terms of average transactions, duration etc that my datasets may not be meeting?
How would you recommend I approach this?

I don't know if this will be of big help but I had a similar problem that I posted on Issue #271.
I would suggest you take a sample of your data and share it here so other people can replicate your results. You could also share your graphs with us, sometimes it's enough to diagnose the problem.
In Schmittlein et al. 1987's paper, they mention that half the customers should become inactive after (2^(1/s) - 1)*beta units of time. If s is small, then that goes to a really big number, which does agree with what you said. They also mention that the average death rate is s/beta, maybe this could help diagnosing a problem, what is your beta value?
As a guess for why the customers are kept alive, I would say that they have a high periodicity, i.e., they make purchases very frequently. But do they actually? If so, it might not be proper to use Non-Contractual models.

repo: CamDavidsonPilon/lifetimes

license: mit

license_source: bigquery


text:
[WIP] Introduce load_and_authorize_resource! alias

In code reviews I find myself often asking wether usage of load_and_authorize_resource was safe.
Then I'll look it up in the source code and see that indeed authorize! is being used.
I'd like to suggest that code writers from now on per default use load_and_authorize_resource!
to transport the following message to the reviewer: "this is safe, no worries".

Please feel free to rebase and re-open.

authors: coorasse schmijos

repo: CanCanCommunity/cancancan


text:
bifilar, averrhoa

This pull request was generated by the 'mq' tool

/trunk merge

repo: Canva/mergequeue-trunk


text:
aftertime, fame

This pull request was generated by the 'mq' tool

/trunk merge


text:
fetcher, eucharistic

This pull request was generated by the 'mq' tool

/trunk merge


text:
glaucium, epistemologically

This pull request was generated by the 'mq' tool

/trunk merge


text:
antihalation, bobsleigh

This pull request was generated by the 'mq' tool

/trunk merge


text:
chilion

This pull request was generated by the 'mq' tool

/trunk merge


text:
Add support for SSL authentication

See https://github.com/CiscoCloud/microservices-infrastructure/blob/master/security-setup
https://github.com/CiscoCloud/microservices-infrastructure/blob/master/docs/security/security.rst

https://github.com/CiscoCloud/microservices-infrastructure/pull/195/files

i think we should wait for this to manage ssl certs https://github.com/hashicorp/terraform/pull/2778, as it will also bring support for letsencypt down the track

authors: tayzlor wallies

repo: Capgemini/Apollo


text:
Add custom idle time setting + skilling cooldown check

Description

Added customIdleTime configuration option to the plugin. This allows users to tweak the amount of time their specific skilling task requires without any overhead from developer to figure this out. Changed default to "4" to function correctly with Amethyst mining out of the box.
Added "skillingCooldownTicks", this is defaulting to 4 ticks. This means a player after being  detected as skilling will be considered to be skilling for a 4 tick window.  This will stop any flickering of the overlay if tasks have 1-3 ticks of idle time in between animations.

Comments
Just a suggestion of features if you have better means of implementation / naming by all means close this. Was having issues with Amethyst mining where the player sometimes will completely stop doing any mining animation with pickaxe and for that moment the overlay will disable and flicker.
Was testing for ~an hour and 4 ticks seems to be what is required to stop the flickering at Amethyst for the idle timing. I determined 3 ticks for the skilling cooldown.

Thank you for posting and the info on amethyst time intervals. I don't have an account that can mine there so it helps a lot.
The idle periods in skilling are making this a lot more complicated than I thought initially. How other plugins handle this variance is a large repository of actions and dependencies.
I think the delayed evaluation of animation state changes is probably the easiest approach right now. On its own, it does introduce latency when the screen should be lit up, or if the user clicks to cancel the overlay to gain visibility.
I can think of a few rules to skip the delay and immediately show the screen. If you can think of any more I would appreciate it

User clicks to walk/run
User's inventory fills to 28 filled slots from <28
26 of user inventory ID changes from x -> y

Thoughts?

Yeah, I think any of those alternative options you posted above would work as well. I just went with a quick solution and offered it up. Could for sure add extra checks for when a user walks / moves.

I can go ahead and close this , was more of a feature request anyway. I'm sure you will come up with something.

authors: BlitzOpen Car-Role

repo: Car-Role/Distraction-Reducer


text:
RecyclerView列表视频快速滑动错位

用demo试的。播放第一个视频全屏后切换回竖屏快速滑动到底部，底部还在播放着第一个视频。用ListView列表视频没有遇到。请问怎么解决？

这是是错位问题，在滚动监听那里做处理，划出了就释放。

新demo已经修复

新demo已经修复

authors: CarGuo wushangjun

repo: CarGuo/GSYVideoPlayer


text:
(bug)预加载完成会自动播放

问题描述：
根据#1215的问题，预加载视频，
先setStartAfterPrepared false 然后 startPrepare()，加载完成会调用onPrepared()方法，没有执行startAfterPrepared();但是视频还是播放了，应该是在onPrepared()方法之前加载完成就播放了。
找了很久没定位到自动播放的逻辑。可以帮忙看看吗
@Override
public void onPrepared() {
    if (mCurrentState != CURRENT_STATE_PREPAREING) return;

    mHadPrepared = true;

    if (mVideoAllCallBack != null && isCurrentMediaListener()) {
        Debuger.printfLog("onPrepared");
        mVideoAllCallBack.onPrepared(mOriginUrl, mTitle, this);
    }

    if (!mStartAfterPrepared) {
        setStateAndUi(CURRENT_STATE_PAUSE);
        return;
    }

    startAfterPrepared();
}

问题log（如果有）
#1215
xxxxxxx

demo怎么复现

在demo中，有两种情况。
1、在ListMultiNormalAdapter中的第82行，具体代码如下：
//使用setUpLazy方式
holder.gsyVideoPlayer.setUpLazy(url, true, new File(FileUtils.getTestPath()), null, "这是title");
holder.gsyVideoPlayer.setStartAfterPrepared(false);
holder.gsyVideoPlayer.startPrepare();
上面这种方式会回调到GSYVideoView.class的onError()方法，what是-10000.
2、      //使用setUp方式
holder.gsyVideoPlayer.setUp(url, true, new File(FileUtils.getTestPath()), null, "这是title");
holder.gsyVideoPlayer.setStartAfterPrepared(false);
holder.gsyVideoPlayer.startPrepare();
这种方式会缓冲完成直接播放，画面是黑的，但是有声音
GarGuo兄帮忙看看，赶集不尽！

话说 startPrepare 是不需要你调用的。
至于没有停止，可以试试继承重写下  onPrepared() ，
    @Override
    public void onPrepared() {

        if (mCurrentState != CURRENT_STATE_PREPAREING) return;

        mHadPrepared = true;

        if (mVideoAllCallBack != null && isCurrentMediaListener()) {
            Debuger.printfLog("onPrepared");
            mVideoAllCallBack.onPrepared(mOriginUrl, mTitle, this);
        }

        if (!mStartAfterPrepared) {
            setStateAndUi(CURRENT_STATE_PAUSE);
            onVideoPause();//todo 加上这个
            return;
        }

        startAfterPrepared();
    }

如果是想和点击一起联动，那么同时修改下
   /**
     * 播放按键点击
     */
@override
    protected void clickStartIcon() {
        if (TextUtils.isEmpty(mUrl)) {
            Debuger.printfError("********" + getResources().getString(R.string.no_url));
            //Toast.makeText(getActivityContext(), getResources().getString(R.string.no_url), Toast.LENGTH_SHORT).show();
            return;
        }
        if (mCurrentState == CURRENT_STATE_NORMAL || mCurrentState == CURRENT_STATE_ERROR) {
            if (isShowNetConfirm()) {
                showWifiDialog();
                return;
            }
            startButtonLogic();
        } else if (mCurrentState == CURRENT_STATE_PLAYING) {
            try {
                onVideoPause();
            } catch (Exception e) {
                e.printStackTrace();
            }
            setStateAndUi(CURRENT_STATE_PAUSE);
            if (mVideoAllCallBack != null && isCurrentMediaListener()) {
                if (mIfCurrentIsFullscreen) {
                    Debuger.printfLog("onClickStopFullscreen");
                    mVideoAllCallBack.onClickStopFullscreen(mOriginUrl, mTitle, this);
                } else {
                    Debuger.printfLog("onClickStop");
                    mVideoAllCallBack.onClickStop(mOriginUrl, mTitle, this);
                }
            }
        } else if (mCurrentState == CURRENT_STATE_PAUSE) {
            if (mVideoAllCallBack != null && isCurrentMediaListener()) {
                if (mIfCurrentIsFullscreen) {
                    Debuger.printfLog("onClickResumeFullscreen");
                    mVideoAllCallBack.onClickResumeFullscreen(mOriginUrl, mTitle, this);
                } else {
                    Debuger.printfLog("onClickResume");
                    mVideoAllCallBack.onClickResume(mOriginUrl, mTitle, this);
                }
            }
            if (!mHadPlay) {
                //todo 加上这个
                startAfterPrepared();
            }
            try {
                getGSYVideoManager().start();
            } catch (Exception e) {
                e.printStackTrace();
            }
            setStateAndUi(CURRENT_STATE_PLAYING);
        } else if (mCurrentState == CURRENT_STATE_AUTO_COMPLETE) {
            startButtonLogic();
        }
    }

GarGuo你好，我今天查阅了一下IJK的issues看到了一个问题
就是他们在prepareAsync()后会自动播放。
https://github.com/Bilibili/ijkplayer/issues/3961

@wbsen 是的，所以做了pause处理就可以了

authors: CarGuo wbsen


text:
全屏时候隐藏Statusbar引发crash

问题描述：
集成播放器全屏是调取startWindowFullscreen(this, true, true)引发空指针异常
问题机型/系统：
真机 小米9 Android9.0
GSY依赖版本
implementation 'com.shuyu:gsyVideoPlayer-java:7.0.2'
Demo中的复现步骤
1.新建项目继承自Activity(非AppCompatActivity)
2.点击全屏按钮调取startWindowFullscreen(this, true, true)引发空指针
原因:Activity继承自ContextThemeWrapper，所以会调取getAppCompActivity(((ContextThemeWrapper) context).getBaseContext());
此时的context为android.app.ContextImpl所以会直接返回null
问题代码：(如果有)
public static AppCompatActivity getAppCompActivity(Context context) {
        if (context == null) return null;
        if (context instanceof AppCompatActivity) {
            return (AppCompatActivity) context;
        } else if (context instanceof ContextThemeWrapper) {
            return getAppCompActivity(((ContextThemeWrapper) context).getBaseContext());
        }
        return null;
    }

问题log（如果有）
java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.Window androidx.appcompat.app.AppCompatActivity.getWindow()' on a null object reference
        at com.shuyu.gsyvideoplayer.utils.CommonUtil.hideSupportActionBar(CommonUtil.java:128)
        at com.shuyu.gsyvideoplayer.video.base.GSYBaseVideoPlayer.startWindowFullscreen(GSYBaseVideoPlayer.java:587)
        at com.shuyu.gsyvideoplayer.video.StandardGSYVideoPlayer.startWindowFullscreen(StandardGSYVideoPlayer.java:363)

所以继承 AppCompatActivity 不就可以了

FlutterActivity继承自Activity,这个时候如果想用你这封装成Flutter插件就有问题了

哦，你是在 flutter 里使用啊，兼容 Activity 的代码已经提交了，不过得下个版本更新，推荐你可以通过继承后重载解决。
不过，你是用的 PlatformView 方式集成的？还是新的页面打开的？

嗯。感谢，我用的PlatformView的方式~

authors: CarGuo UrielSun


text:
视频旋转错乱

问题描述：
横向旋转手机，等待视频播放完成，点击播放按键，继续播放。
竖向旋转手机，播放正常，横向旋转手机，播放界面异常。
问题机型/系统：
例全部机型
GSY依赖版本
例如 implementation 'com.shuyu:gsyVideoPlayer-java:7.0.1'
Demo中的复现步骤
Demo中的ListVideoActivity
/**

列表时是否需要支持重力旋转

@return 返回true为支持列表重力全屏
*/
public boolean getListNeedAutoLand() {
return true;
}

https://github.com/CarGuo/GSYVideoPlayer/commit/5f7da07245a65d4f5e1523d9c7ab010513aab058

@CarGuo  还是不行，你多旋转几次

复现步骤
横向旋转手机，等待视频播放完成，点击播放按键，继续播放。
竖向旋转手机，播放正常，横向旋转手机，播放正常有时正常
竖向旋转手机，播放界面异常。

authors: CarGuo zhangqilu


text:
您好，多平板同屏能看到10秒前的操作40秒左右回复正常

（！！！！请务必务必按照issue模板，修改 后提交问题！！！！，不按模板提Isuue删除处理）
（ps 首页问题集锦和demo请先了解一下！）
⚠提问前建议先看看： https://mp.weixin.qq.com/s/HjSdmAsHuvixCH_EWdvk3Q
问题描述：
尊敬的作者，CarGuo先生，您好：
我在做多平板同屏的时候遇到了一个问题，麻烦您看下：
华为matePad pro 在局域网进行同屏操作，A平板发起同屏，推送了流，10秒后，B平板和C平板进行跟随，这个时候B和C看到的是10秒前的内容，过了30秒到40秒，此问题基本消失，延迟维持在0.5秒左右。
项目是我新接手的，服务端用的red5_hls的一个开源项目，A平板先通过rtmp发送到服务端，B和C平板链接服务端读取流。
出现问题的视频流
类似于直播流，一个平板同步自己的界面给其它平板。
问题机型/系统：
华为matePad pro
GSY依赖版本
例如 implementation 'com.shuyu:gsyVideoPlayer-java:7.0.1'
implementation 'com.shuyu:GSYVideoPlayer-exo2:7.1.3'
implementation 'com.shuyu:gsyVideoPlayer-ex_so:7.1.3'
implementation project(path: ':gsyVideoPlayer-java')

Demo中的复现步骤
有三个平板A B C
1.平板A开启同屏，分享自己屏幕，推送rtmp流到一个服务端；
2.这时A平板进行操作，点击‘’会议议题‘’按钮，切换了页面，进行了一些操作（大概用了10s）；
3.B和C平板10秒后点击跟随，通过rtsp去拉取数据（我是一个java开发，原来一直做电商，这方面知识比较差，没太明白为什么推和拉用的协议不一样）；
4.A平板点击了“会议笔记”按钮进入了会议笔记界面；
5.B和C看到的还是 ‘’会议议题‘’的相关操作（就是A平板的第2步操作）；
6.过了大概40秒，能正常同屏。
问题代码：(如果有)
 videoPlayer =  (StandardGSYVideoPlayer)findViewById(R.id.videoPlayer);
        back = findViewById(R.id.tv_back_rtmp);
        speed = findViewById(R.id.tv_speed);
        /**此中内容：优化加载速度，降低延迟*/
        VideoOptionModel videoOptionModel = new VideoOptionModel(IjkMediaPlayer.OPT_CATEGORY_FORMAT, "rtsp_transport", "tcp");
        List<VideoOptionModel> list = new ArrayList<>();
        list.add(videoOptionModel);
        videoOptionModel = new VideoOptionModel(IjkMediaPlayer.OPT_CATEGORY_FORMAT, "rtsp_flags", "prefer_tcp");
        list.add(videoOptionModel);
        videoOptionModel = new VideoOptionModel(IjkMediaPlayer.OPT_CATEGORY_FORMAT, "allowed_media_types", "video"); //根据媒体类型来配置
        list.add(videoOptionModel);
        videoOptionModel = new VideoOptionModel(IjkMediaPlayer.OPT_CATEGORY_FORMAT, "timeout", 20000);
        list.add(videoOptionModel);
        videoOptionModel = new VideoOptionModel(IjkMediaPlayer.OPT_CATEGORY_FORMAT, "buffer_size", 1316);
        list.add(videoOptionModel);
        videoOptionModel = new VideoOptionModel(IjkMediaPlayer.OPT_CATEGORY_FORMAT, "infbuf", 1);  // 无限读
        list.add(videoOptionModel);
        videoOptionModel = new VideoOptionModel(IjkMediaPlayer.OPT_CATEGORY_FORMAT, "analyzemaxduration", 100);
        list.add(videoOptionModel);
        videoOptionModel = new VideoOptionModel(IjkMediaPlayer.OPT_CATEGORY_FORMAT, "probesize", 10240);
        list.add(videoOptionModel);
        videoOptionModel = new VideoOptionModel(IjkMediaPlayer.OPT_CATEGORY_FORMAT, "flush_packets", 1);
        list.add(videoOptionModel);
        //  关闭播放器缓冲，这个必须关闭，否则会出现播放一段时间后，一直卡主，控制台打印 FFP_MSG_BUFFERING_START
        videoOptionModel = new VideoOptionModel(IjkMediaPlayer.OPT_CATEGORY_PLAYER, "packet-buffering", 0);
        list.add(videoOptionModel);
        GSYVideoManager.instance().setOptionModelList(list);
        String source1 = getIntent().getStringExtra("url");
        videoPlayer.setUp(source1, true, "");
        videoPlayer.getTitleTextView().setVisibility(View.GONE);
        videoPlayer.startPlayLogic();

我以前没做过安卓，有描述的不到位的地方，请您多多见谅！
问题log（如果有）

xxxxxxx

请问怎么能够实现，B和C开启同屏跟随的时候，跟A看到的画面一致，而不需要等待40秒

我只能说，这是非 GSY 播放器 SDK 的问题，追帧和同步问题，自己搜索解决吧～播放器是在链接上的时候，拉当前的关键帧

authors: CarGuo oldTomatoCN


text:
继承了StandardGSYVideoPlayer，自定义播放器添加了UI横屏的时候修改UI状态没有反应

问题描述：
继承了StandardGSYVideoPlaye的一个播放器，我添加了一个ImageView，但是我要在接口返回一个Boolean的时候并且在横屏的时候才显示或者不显示，现在我在class MatchVideoPlayer : StandardGSYVideoPlayer {}里面写了一个方发
/**
* 开播或者关播的消息  ,是否进入全屏
*/
fun  broadcasting(show:Boolean,enter:Boolean){}
在接口返回的时候我保存了一个Boolean值，在横屏的时候我要根据这个Boolean值来显示或者隐藏这个ImageView，现在我在横屏的时候调用了    fun  broadcasting(show:Boolean,enter:Boolean)这个方法
fun  broadcasting(show:Boolean,enter:Boolean){
isBroadcasting=show
isFullscreen=enter
if(isBroadcasting){
if(lltNoLiveNew!=null){
lltNoLiveNew?.visibility= GONE
}
}else{
if(lltNoLiveNew!=null){
lltNoLiveNew?.visibility= VISIBLE
}
}
但是修改了没有效果，请问我想在切换横屏的时候修改我添加的view 的状态，而且要保存我穿进去参数的状态要怎么实现
GSY依赖版本
implementation 'com.github.CarGuo.GSYVideoPlayer:GSYVideoPlayer:v8.6.0-release-jitpack'

看 cloneParams 和 startWindowFullscreen 和 getCurrentPlayer 的用法

查看cloneParams和startWindowFullscreen和getCurrentPlayer的用法
大佬我看了一下·~确实没有看懂你这个。能请问一下~~首先怎么能接口回去到保存在播放器界面，然后怎么在切换横屏的时候把我保存的那个Boolean值来判断进行修改控件的状态谢谢了


text:
Error:(46, 0) Gradle DSL method not found: 'api()'

demo在android-studio2.3.2中报这个错，如果不更新android-studio版本到3.+版本，怎么解决?

修改为运来的compile啊，然后修改会gradle 2.2.3，去掉google仓库

解决了，多谢大佬指点。

authors: CarGuo xuefeiyao


text:
Add puzzles mode

Adds puzzles mode where you have to find the best move to make.

Hide reset button using, in the puzzles mode initialisation, $('body').dataset.mode = 'puzzles'. Then go into play.nvss and add
e.g. [mode="puzzles"] #reset {display:none;}.

Difficulty slider still needs to be implemented
Sometimes stops working after checking the king

authors: Nixinova akatenmore

repo: CarbonChess/CarbonSite

license: ISC


text:
Sentence/Round result await screen

Component that notifies the user that the other participants have not completed their prompt.
This screen should be capable of handling any timer updates form the server as well as possibly provide feedback to the user about how many users have completed their prompts. Since the 'users have completed count' depends on the server, the mvp implementation just tells the user to wait.

I will take this one.

Just finished it. Looks like this:

repo: CardenesMa/SummerCodeJam


text:
Weird behavior with intellisense autocomplete

The autocomplete get's appended to already typed letters if they were changed by the extension.
For example
if (a.foo) {
  b('Foo', a.foo);
}

results in
if (a.bar) {
  b('Babar', a.bar);
}

when I accept a.bar autocomplete suggestion after typing two letters.

Yea, true. It never bothered me, so I haven't tried to do anything about it. I might give it a go in the future or accept a PR. There is probably no API to detect autocomplete, as is the case for paste and undo/redo. You'd have to find a reliable way to detect autocomplete happening from text alone.


text:
Update navigation rules to match code and system for text choices

Previously when we created navigation rules that matched a specific text choice (representing a FHIR Coding), the ORKTextChoice would record only a string with the code in the result object, but as of PR #20 the ORKTextChoice records a dictionary in the result object that contains both the code and the system and so we need to match both when constructing our navigation rule.
The id and display elements were removed from the result dictionary, because these are not necessary in the QuestionnaireResponse, and impede matching in navigation rules since they are not present in the enableWhen expressions generated by our Survey Builder.

Codecov Report

Merging #28 (2a71ef2) into main (c201dca) will decrease coverage by 5.23%.
The diff coverage is 100.00%.

Additional details and impacted files

@@            Coverage Diff             @@
##             main      #28      +/-   ##
==========================================
- Coverage   34.90%   29.67%   -5.22%
==========================================
  Files           8        8
  Lines         599      600       +1
==========================================
- Hits          209      178      -31
- Misses        390      422      +32

Impacted Files
Coverage Δ

...RToResearchKit/QuestionnaireItem+ResearchKit.swift
46.03% <ø> (-16.75%)
:arrow_down:

...hKitOnFHIR/FHIRToResearchKit/NavigationRules.swift
29.55% <100.00%> (-0.27%)
:arrow_down:

Continue to review full report at Codecov.

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

authors: codecov-commenter vishnuravi

repo: CardinalKit/ResearchKitOnFHIR


text:
when creating raster layergroup interactivity is allowed but it fails

if you create a map with
{
    "layers": [
        {
            "options": {
                "cartocss": "#pop { raster-opacity: 0.2; }",
                "cartocss_version": "2.3.0",
                "geom_column": "the_raster_webmercator",
                "geom_type": "raster",
                "interactivity": [
                    "cartodb_id"
                ],
                "sql": "select * from pop"
            },
            "type": "cartodb"
        }
    ],
    "stat_tag": "API",
    "version": "1.0.0"
}

it works but if you requests grid.json tiles they raise an error:
error: "Postgis Plugin: ERROR: column "cartodb_id" does not exist LINE 1: ...ECT ST_AsBinary("the_raster_webmercator") AS geom,"cartodb_i... ^ in executeQuery Full sql was: 'SELECT ST_AsBinary("the_raster_webmercator") AS geom,"cartodb_id" FROM (select * from o_4_pop) as cdbq WHERE "the_raster_webmercator" && ST_SetSRID('BOX3D(-20037508.3 -1252344.271424327,1252344.271424327 20037508.3)'::box3d, 3857) LIMIT 1165535' "

I guess is because cartodb_id is not selected.
The question here is. Shouldn't that anonymous map fail in the creation? does make sense to have interactivity for raster ?

This happens because cartodb_id is not created in the overviews but as you are pointing it does not make sense to have interactivity in raster layers so I propose to throw an error if geom_type is raster and the layer is defined with interactivity.
What do you think?

ok for that, I'd say the same for torque

In the case of torque layers: do we want to throw an error or we just ignore if an interactivity option is given?
It could be as easy as:
diff --git a/lib/windshaft/renderers/torque/factory.js b/lib/windshaft/renderers/torque/factory.js
index 48d0432..ac91fec 100644
--- a/lib/windshaft/renderers/torque/factory.js
+++ b/lib/windshaft/renderers/torque/factory.js
@@ -83,6 +83,11 @@ TorqueFactory.prototype = {
             callback(new Error("layer " + layer + " is not a torque layer"));
             return;
         }
+
+        if ( layerObj.options.interactivity ) {
+            throw new Error("Torque layers do not support interactivity");
+        }
+
         var pgSQL = sql(dbParams, this.sqlClass);
         fetchMapConfigAttributes(pgSQL, mapConfig, dbParams, layer, function(err, params){
             if (err) {

In the mapnik I see useful to throw an error because interactivity is an optional property and doesn't make sense always. However in torque it does not even apply, so... wouldn't it be better to just remove from the torque layer options documentation: https://github.com/CartoDB/Windshaft/blob/master/doc/MapConfig-1.3.0.md#22-torque-layers-options?

for me in an error, torque interaction should be client side

authors: javisantana rochoa

repo: CartoDB/Windshaft


text:
fix on sending requests to bath sql api

requests library expects a headers argument, not http_headers

Looks good, yes .I guess you need to change the create method too, no?

create and the rest call this send method, I think there's no need to
change anything else
--
Jorge Sanz
CARTO - Predict through location
Sent from my phone, excuse my brevity.
El 11 ene. 2017 20:30, "Dani Carrión" notifications@github.com escribió:

Looks good, yes .I guess you need to change the create method too, no?
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
https://github.com/CartoDB/carto-python/pull/34#issuecomment-271969674,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AALfaCYNtLYn-mK3HRIjPdljDoskIqG9ks5rRS27gaJpZM4Lg87A
.

sorry, yes, my bad
:+1:

authors: danicarrion jsanz

repo: CartoDB/carto-python


text:
Allow to set the initial page size on TableWidget

Add an initialPageSize prop to TableWidget to set the number of rows per page when rendering the component first.
This number can be changed after by the user through the pagination UI, but it will change only the internal state of the component, resulting in a possible inconsistency of props vs. state.
The initial prefix is meant to emphasize this.

Pull Request Test Coverage Report for Build 1707307495

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 70.326%

Totals

Change from base Build 1698185862:
0.0%

Covered Lines:
1142

Relevant Lines:
1529

💛  - Coveralls

I like initial better and we should adapt the other RFC to be consistent.

authors: bbecquet borja-munoz coveralls

repo: CartoDB/carto-react


text:
Federated diagnostics latency

Add latency measurement to diagnostics function. E.g:
SELECT jsonb_pretty(cartodb.CDB_Federated_Server_Diagnostics(server => 'loopback'));
                jsonb_pretty
---------------------------------------------
 {                                          +
     "server_options": {                    +
         "host": "localhost",               +
         "port": "5432",                    +
         "updatable": "false",              +
         "extensions": "postgis",           +
         "fetch_size": "1000",              +
         "use_remote_estimate": "true"      +
     },                                     +
     "server_version": "11.3",              +
     "postgis_version": "2.5.1",            +
     "server_latency_ms": 0.0494956970214844+
 }
(1 row)

It takes 10 measurements of TCP connection time to determine latency

New, beautified latency stats:
contrib_regression=# SELECT jsonb_pretty(cartodb.CDB_Federated_Server_Diagnostics(server => 'loopback'));
DEBUG:  TCP connection localhost:5432 time=0.09 ms
DEBUG:  TCP connection localhost:5432 time=0.05 ms
DEBUG:  TCP connection localhost:5432 time=0.05 ms
DEBUG:  TCP connection localhost:5432 time=0.06 ms
DEBUG:  TCP connection localhost:5432 time=0.04 ms
DEBUG:  TCP connection localhost:5432 time=0.05 ms
DEBUG:  TCP connection localhost:5432 time=0.06 ms
DEBUG:  TCP connection localhost:5432 time=0.05 ms
DEBUG:  TCP connection localhost:5432 time=0.06 ms
DEBUG:  TCP connection localhost:5432 time=0.05 ms
LOG:  duration: 82.915 ms  statement: SELECT jsonb_pretty(cartodb.CDB_Federated_Server_Diagnostics(server => 'loopback'));
             jsonb_pretty
---------------------------------------
 {                                    +
     "server_options": {              +
         "host": "localhost",         +
         "port": "5432",              +
         "updatable": "false",        +
         "extensions": "postgis",     +
         "fetch_size": "1000",        +
         "use_remote_estimate": "true"+
     },                               +
     "server_version": "11.3",        +
     "postgis_version": "2.5.1",      +
     "server_latency_ms": {           +
         "avg": 0.056,                +
         "max": 0.09,                 +
         "min": 0.044,                +
         "stdev": 0.013,              +
         "n_errors": 0,               +
         "n_samples": 10              +
     }                                +
 }
(1 row)

Testing against a real external server (connection details omitted):
cartodb_dev_user_d3dc7398-c7be-4a9d-8328-f7f9dbf7bd71_db=> SELECT jsonb_pretty(cartodb.CDB_Federated_Server_Diagnostics(server => 'geographica'));
                      jsonb_pretty
--------------------------------------------------------
 {                                                     +
     "server_options": {                               +
         "host": "*****",                              +
         "port": "****",                               +
         "dbname": "*****",                            +
         "updatable": "false",                         +
         "extensions": "postgis",                      +
         "fetch_size": "1000",                         +
         "use_remote_estimate": "true"                 +
     },                                                +
     "server_version": "11.2",                         +
     "postgis_version": "2.5.2",                       +
     "server_latency_ms": {                            +
         "avg": 23.486,                                +
         "max": 24.656,                                +
         "min": 22.743,                                +
         "stdev": 0.601,                               +
         "n_errors": 0,                                +
         "n_samples": 10                               +
     }                                                 +
 }

figures look plausible and are consistent with ping:
11 packets transmitted, 11 received, 0% packet loss, time 10059ms
rtt min/avg/max/mdev = 23.025/24.031/26.513/0.905 ms

repo: CartoDB/cartodb-postgresql


text:
Language inconsistency between marketing and product "The Builder"

Context

Marketing has worked very hard to make sure our image of CARTO Builder as a product remains consistent. The product is not The Builder, the same way that it's not The Adobe Photoshop. While since the beginning this has been the case,  in the product itself the message and language is inconsistent (See below)

Steps to Reproduce

Open a new Builder account
Make a new map

Additional info
This is related to the urgent importance of https://github.com/CartoDB/learn/issues/173
Working document for standards with this issue commented is located here
@saleiva for product
@brittanymicek for content
@iancwalsh for visibility

Thanks
Interesting ...
On Nov 30, 2016 10:38 AM, "Santiago Giraldo Anduaga" <
notifications@github.com> wrote:

Context

Marketing has worked very hard to make sure our image of CARTO
Builder as a product remains consistent. The product is not The
Builder, the same way that it's not The Adobe Photoshop. While since
the beginning this has been the case, in the product itself the message and
language is inconsistent (See below)
[image: screen shot 2016-11-30 at 10 23 44 am]
https://cloud.githubusercontent.com/assets/9421671/20758544/27b57878-b6e8-11e6-8861-aa208f0c745b.png

Steps to Reproduce

Open a new Builder account
Make a new map

Additional info
This is related to the urgent importance of CartoDB/learn#173
https://github.com/CartoDB/learn/issues/173
Working document for standards with this issue commented is located here
https://docs.google.com/a/cartodb.com/document/d/1FL941fAxRQ7hf4acLc5IJYGPPRTABrLGqRkVBvDlnNo/edit?usp=sharing
@saleiva https://github.com/saleiva for product
@brittanymicek https://github.com/brittanymicek for content
@iancwalsh https://github.com/iancwalsh for visibility
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/CartoDB/cartodb/issues/10910, or mute the thread
https://github.com/notifications/unsubscribe-auth/AV-GTu_9gY2LBoSoPivrocvmzMXP--0sks5rDZiGgaJpZM4LAVRM
.

@namessanti @saleiva
Welcome to Builder, [username]! [1]
Discover the new and exciting analyses you can perform with location intelligence. [2]
[Take a Tour] [Create Map] [3]
NOTES:
[1] Dropped "the" as Santiago mentioned.
[2] Changed copy here because we should use more active and precise language that is on brand. What are these new and exciting "things"? Also it is unnecessary to reinforce that they are doing anything "with CARTO" since they are in CARTO, and even more specifically are in Builder. Also, "Let us" doesn't give our users any agency, which is contra to our ethos of self-service, etc. Additionally, the "Let us...with CARTO" inserts us into the user experience, when it really should be about them.
[3] Should "Edit Your Map" be "Create Map"? Why would they be editing a map if this is their introductory message? How would they already have a map or data to edit?

authors: brittanymicek iancwalsh namessanti

repo: CartoDB/cartodb


text:
Geocoding available_geometries "not working" with table names that start by "_"

The available_geometries function is returning [ ] when a table name starts by "_". This is blocking some geocoding methods as "postal code" that use the function to check the availability of the data.
Renaming a table from the dashboard to "_tablename" doesn't seem possible, the request sends the error
Request Method:PUT
Status Code:400 Bad Request
{"errors":["Error saving data"]}

but importing a table with that name is possible. (Get one here)
Steps:

Import previous dataset
Georeference > Zipcodes
Choose the first selector and the second one (selecting a column in both)
Check the available_geometries response

I'm guessing that maybe some other parts of the platform may be affected by this, but only catched this one atm.

PG gem is not supporting renaming tables to anything starting with '_'
rename_table('foo','_bar')

fails with exception PG::Error: ERROR:  type "_bar" already exists
I'm looking into the gem's source code to report the bug since standard postgres does allow renaming tables with '_' prefix.

Nice to know :)

The first part of this ticket concerning table renames with '_' prefix has been solved in PR #4752
The part about geocoding '_' prefixed tables can now be properly tested.

Identified Resque error on for geo referencing tables starting with ('_'):
LINE 1: UPDATE "public" AS "untitled_table" SET "cartodb_georef_stat...```

Working on it

PR #4752 now allows geocoding tables begging with an _
Other sequel_qualified_table_name instances and queries have removed and rewritten as to not to depend of the gem's bad behavior.
When the PR gets merged I'll close this issue.
cc @iriberri

authors: gfiorav iriberri


text:
Search input on pop-up section

Possibility to search a column between all

ping!

@saleiva I have been working on a solution.
You can see the mocks on https://invis.io/TR7TYKP74 (protected with password ask me)

Relate to https://github.com/CartoDB/design/issues/46

authors: saleiva urbanphes


text:
edit feature: suggest text in text fields

can be tested in ded04, still wip tests pending

/cc @saleiva

tests are green (they were just fixed) but this includes no specific tests for the feature, will work on them
CR @xavijam to briefly check that utils for the column row fetch

Ah, tests are not included, when you have them, please let me know and I'll test and review the PR again.

this is a first step, as explained, separated the Suggest editor from Select (thus, it won't affect current select components) but we are still relying in a re-render of the form to replace the text fields into Suggest fields, next step is doing this in the component itself (simlar to enabler editor?)
Anyway, I created the tests for this (struggled a lot 😞 ) and made some other small changes (when text in select item is only spaces, see attached)

to

CR @xavijam 🙏

Ah, ok, read it again your comment. Are we going to move that logic about String or Select to the component then?

it can be tested in ded04, I just need to confirm with arce the null cases but I tested this extensively and it didn't break (plus, tests pass)
I reverted the use of apostrophes as they are currently used (see attached), will open the discusion in a separate issue

I tried to build the suggest editor as much as I could but having the text field in it would take me a lot longer, I prefer to do it in a separate PR

🚀

authors: matallo xavijam


text:
1612 disable twitter

Closes https://github.com/CartoDB/support/issues/1612

Failing test is also failing in master (I'll take a look during my RT shift if possible, so to CR...).

Updated NEWS

authors: amartinj juanignaciosl


text:
Installation guide upgrade

Upgrades the installation guide to our modernized platform:

Ubuntu 16.04 Xenial
PostgreSQL 10 and PostGIS 2.4
Redis 4
Yarn for Windshaft
Static pages compilation
GDAL 2.2

I added some notes that might be helpful to non-Ubuntu users (based on classic mailing list questions), as well as removed a lot of now unneeded dependencies (mostly, transitive ones, that were pulled by other packages). Bonus rebrand CartoDB -> CARTO.
I have run this step by step in a brand new Ubuntu Server 16.04 image, and it works like a charm.
Please review:
@dgaubert (or engine). I updated WIndshaft install guide to use yarn, and Redis version to 4.
@ivanmalagon (or frontend). I added the step to compile static assets.
@alrocar. I updated GDAL to 2.2.2 in python_requirements (anyway it's what we use in prod, since it's handled by platform) but it should be checked. Also, I pull Ruby2.2 from a PPA instead of compiling it.
@juanignaciosl You were the last one to touch this guide, you may want to take a look. Completely optional, just in case you are interested.

Thank you :heart:

Thanks @javitonino 🤗

authors: dgaubert javitonino juanignaciosl


text:
Avoid showing tags from remote visualizations

Related: https://github.com/CartoDB/product/issues/208
In \tags we should only return the ones from visualizations with derived or table type.

You are right. I thought that remote visualizations were hidden, but I see they are shown in the data library tab from the old dashboard... I'll add the type parameter. Thanks!

@jesusbotella can you have a look to the front change? https://github.com/CartoDB/cartodb/pull/14661/commits/cf15eb2bcaf7976285ef6b6d5fb70fa85ff80790

retest this please

Acceptance 🍏

authors: alrocar gonzaloriestra


text:
Remove Twitter import steps no longer needed

Fixes #1689

Understood, fine by me :+1:

authors: Kartones rafatower


text:
Creating a layer does not create the associated source node

Creating a layer like createCartoDBlayer() does not create the analysis node for the source, so when you try to add a widget to the layer, it crashes.

"Dataview "formula-c40" is missing source.id attribute"


text:
Deploy sprint 1 to production

Deploy to production accepted User Stories:
#1
#2

abort this


text:
Updata translation strings PT BR (Portuguese Brazil)

I'm submitting a ...

[ ] bug report
[ ] feature request
[ x ] support request

General information
Please update pt-br language with latest items
https://files.xbmcbrasil.net/PluginsVideo/strings.po
One Request if possible try change in English po file
msgctxt "#30173"
msgid "NETFLIX ORIGINALS"
msgstr ""
to
msgctxt "#30173"
msgid "Netflix Originals"
msgstr ""
It's the only item in the menu items use Uppercase letters
Thanks

I kept uppercase to match the text obtained from netflix query,
but it can be done

@Smeulf you can update these,
and even remove the words "not use with HEVC" from 30137
in every language?

I'll update PT-br, lower case of 30173, and update 30137 in the evening.
PR will follow :)

@MediaBrasil don't you want the quotation mark for this translation?
msgctxt "#30191"
msgid "Do you want to export NFO files for the {} added to 'My List'?"
msgstr "Deseja exportar arquivos NFO para o {} adicionado em 'Minha Lista'"

Yes, need add
msgstr "Deseja exportar arquivos NFO para o {} adicionado em 'Minha Lista'?"

thankyou merged

authors: CastagnaIT MediaBrasil Smeulf


text:
Missing exports in kernel32.dll

Hello,
first of all, thank you for providing this library. It's been of great use for me lately.
Unfortunately, i've seem to run into a issue, where when iterating the exported functions of kernel32.dll (32bit), some exported functions seem to be missing.
These seem to be:
HeapAlloc
HeapReAlloc
InitializeSListHead
SleepConditionVariableSRW
WakeAllConditionVariable
AcquireSRWLockExclusive
ReleaseSRWLockExclusive
Here is how I iterate the exports:
                            pe.exports()?
                                .by()?
                                .iter_names()
                                .filter_map(|result| match result {
                                    (Ok(name), Ok(export)) => export
                                        .symbol()
                                        .map(|symbol| (name.to_string(), base + symbol as u64)),
                                    _ => None,
                                })
                                .collect::<HashMap<_, _>>()

Am I doing something wrong?

Exported symbols can be forwarded to another dll. Here with .symbol() you only get symbols implemented by kernel32.dll itself.
https://docs.rs/pelite/latest/pelite/pe32/exports/enum.Export.html#variant.Forward
There's another link for more information on how these work.

Ah I see, didn't think about that - Thank you for the quick response!

repo: CasualX/pelite


text:
Meter Sub-Menu

@felixrieseberg @ritazh how does this look to you guys?

Looks awesome! I think that should be merged as is, but out of curiosity: Could we (or the user) increase the inner dial radius?

Yeah all that stuff is exposed

PR coming right up!

Sweet!

I'll close this, since we do have the meter - but I'll write up an issue for the "advanced" meter submenu.

authors: felixrieseberg ritazh sedouard

repo: CatalystCode/radial-menu


text:
Only define snprintf for versions older than VS2015

Only define snprintf if the compiler is older than version 19.0

Thanks for the fix. We haven't switched from VS2013 yet and so hadn't hit that one.

I am working with VS2015, so I will keep pushing as I get it working.  I will do my best to not break 2013 in the process.

authors: Diltsman andymcn

repo: CausalityLtd/ponyc


text:
🛑 qinglong is down

In 5ae671f, qinglong (ql.hiripple.com) was down:

HTTP code: 530
Response time: 51 ms

Resolved: qinglong is back up in bea7440 after 1 hour, 6 minutes.

repo: CelestialRipple/ripplelog


text:
🛑 qinglong is down

In 86b5562, qinglong (ql.hiripple.com) was down:

HTTP code: 530
Response time: 48 ms

Resolved: qinglong is back up in 6b79985 after 39 minutes.


text:
🛑 qinglong is down

In 60b558c, qinglong (ql.hiripple.com) was down:

HTTP code: 530
Response time: 81 ms

Resolved: qinglong is back up in e01069c after 19 days, 4 hours, 44 minutes.


text:
Add SwifQL

Project Name: SwifQL
Project URL: https://github.com/MihaelIsaev/SwifQL
Project Description: Easily build flexible and type-safe SQL with pure Swift.
Why it should be added to awesome-vapor: it is already here in main readme and now it support Vapor 4!
[x] Project has at least 15 stars (if it’s a GitHub project)
[x] Project supports at least Vapor 3
[ ] Project supports at least Swift 5
[x] I used correctly sized dash and ended the entry with a full stop 🤓

Project supports at least Swift 5
Soon minimum Swift version will be increased to 5.1 but for now it is >=4.2

@MihaelIsaev I’m sorry for the confusion, but the vapor-4.md file is automatically generated by CI (which seems to be somehow broken though? 🧐 Unfortunately, I don’t quite have the time to look into this though… and without working CI, there’s no point in merging, as the filtered versions won’t get updated…) and should not be modified by any PR. Can you please look at other, previously merged PRs, to see how to submit PRs to this project?
Only editing the README.md file should be appropriate while keeping the required alphabetical order.

The CI was likely fixed in master, so please also rebase on top of the master branch when updating the PR 🙇♂

authors: Cellane MihaelIsaev

repo: Cellane/awesome-vapor


text:
[#OSF-6636] Add Contact Page to the COS website

Purpose
This PR is for the creation of a contact page.  The contact page's form connects to Salesforce, and then redirects to the Ambassador's page and pops up a 'Thank you' module.
Changes
There was a new file created for the contact page.  Some styling was changed for the form, and styling was also changed for the top navigation bar.  A tab was added to the navigation bar for the contact page, and some JavaScript was added to the Ambassador's page for the module function.

Ticket
https://openscience.atlassian.net/browse/OSF-6636

Looks good to me.

Pass done. 🎉 🐧 🎉

authors: baylee-d brianjgeiger


text:
Downgrade to ember-cli-template_lint 0.7.6

Purpose
ember-cli-template-lint 1.0 beta doesn't seem to be ready for prime time (despite being the default for ember-cli 3.4)
Summary of Changes

yarn upgrade ember-cli-template-line@^0.7.6
removed attribute-indentation rule config

Side Effects
n/a
Feature Flags
n/a
QA Notes
n/a
Ticket
n/a
Reviewer Checklist

[ ] meets requirements
[ ] easy to understand
[ ] DRY
[ ] testable and includes test(s)
[ ] changes described in CHANGELOG.md (no net change from master)

Pull Request Test Coverage Report for Build 1640

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 62.374%

Totals

Change from base Build 1637:
0.0%

Covered Lines:
3660

Relevant Lines:
5584

💛  - Coveralls

authors: coveralls jamescdavis

repo: CenterForOpenScience/ember-osf-web


text:
ERROR:  Error installing nokogiri:

Got below posted error when building image.
ERROR:  Error installing nokogiri:
ERROR: Failed to build gem native extension.
current directory: /usr/lib/ruby/gems/2.3.0/gems/nokogiri-1.6.8/ext/nokogiri

/usr/bin/ruby -r ./siteconf20160716-5-tikn92.rb extconf.rb --use-system-libraries
Using pkg-config version 1.1.7
checking if the C compiler accepts ... yes
Building nokogiri using system libraries.
checking for libexslt... yes
checking for xmlParseDoc() in libxml/parser.h... no
checking for xmlParseDoc() in -lxml2... no
checking for xmlParseDoc() in -llibxml2... no
libxml2 is missing.  Please locate mkmf.log to investigate how it is failing.
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/bin/$(RUBY_BASE_NAME)
--help
--clean
--use-system-libraries
--with-zlib-dir
--without-zlib-dir
--with-zlib-include
--without-zlib-include=${zlib-dir}/include
--with-zlib-lib
--without-zlib-lib=${zlib-dir}/lib
--with-xml2-dir
--without-xml2-dir
--with-xml2-include
--without-xml2-include=${xml2-dir}/include
--with-xml2-lib
--without-xml2-lib=${xml2-dir}/lib
--with-libxml-2.0-config
--without-libxml-2.0-config
--with-pkg-config
--without-pkg-config
--with-xslt-dir
--without-xslt-dir
--with-xslt-include
--without-xslt-include=${xslt-dir}/include
--with-xslt-lib
--without-xslt-lib=${xslt-dir}/lib
--with-libxslt-config
--without-libxslt-config
--with-exslt-dir
--without-exslt-dir
--with-exslt-include
--without-exslt-include=${exslt-dir}/include
--with-exslt-lib
--without-exslt-lib=${exslt-dir}/lib
--with-libexslt-config
--without-libexslt-config
--with-pkg-config
--without-pkg-config
--with-override-variables
--without-override-variables
--with-xml2lib
--without-xml2lib
--with-libxml2lib
--without-libxml2lib
To see why this extension failed to compile, please check the mkmf.log which can be found here:
/usr/lib/ruby/gems/2.3.0/extensions/x86_64-linux/2.3.0/nokogiri-1.6.8/mkmf.log
extconf failed, exit code 1
Gem files will remain installed in /usr/lib/ruby/gems/2.3.0/gems/nokogiri-1.6.8 for inspection.
Results logged to /usr/lib/ruby/gems/2.3.0/extensions/x86_64-linux/2.3.0/nokogiri-1.6.8/gem_make.out
ERROR: Service 'web' failed to build: The command '/bin/sh -c gem install -N nokogiri -- --use-system-libraries &&   gem install -N rails --version "$RAILS_VERSION" &&
echo 'gem: --no-document' >> ~/.gemrc &&   cp ~/.gemrc /etc/gemrc &&   chmod uog+r /etc/gemrc &&   bundle config --global build.nokogiri  "--use-system-libraries" &&   bu
ndle config --global build.nokogumbo "--use-system-libraries" &&   find / -type f -iname *.apk-new -delete &&   rm -rf /var/cache/apk/* &&   rm -rf /usr/lib/lib/ruby/gem
s//cache/ &&   rm -rf ~/.gem' returned a non-zero code: 1

@sandesh-TheAwakening I successfully installed nokogiri without the --use-system-libraries argument

authors: rodrigobdz sandesh-TheAwakening

repo: CenturyLinkLabs/alpine-rails


text:
Add timeout parameter to request

Description
For now, there is no way for server to control how long a request will be, although a client can cancel a request at any time, the server thread  will still be running, which wastes server resources.

Proposal
Add a timeout parameter for every request, then server can simply reject running when exceed this limit, besides it's best that the server can overwrite this value in case of client's misuse or administration.

Additional context
The proposal above don't deal with client disconnect, it's best the server can detect the disconnection, and cancel request afterwards.

This is a good functionality 👍
But before that, it seems like we don't have a canonical way to config parameters. The only place I know is table options that are set on creating a table (e.g. TTL). We should have richer parameters that can be configured on multiple levels. Timeout is one of them, we can set it for tenant, table, or query. Other parameters like max query concurrency, queue up timeout, max querier node, timezone or timestamp precision, batch size, etc. are also configurable (those params above are just some random examples).
These kinds of parameters are important parts of the user interface. I prefer to start by building an extensible parameter model rather than adding them one by one.

repo: CeresDB/ceresdb


text:
Added the Cesium Omniverse Python API with a function to create anchors

Resolves #493.
The implementation for the Cesium Omniverse Python API is pretty simple. A bigger issue here is around the changes to allow us to move the anchor to a lat/long/height early in the process. This is a bit hacky but it works. Probably needs a refactor pass in the future.
https://github.com/CesiumGS/cesium-omniverse/assets/284269/e7daf02a-0956-4ef2-ad52-aeaa54cd8912

The python script I used.
from asyncio import ensure_future
from cesium.omniverse.api.globe_anchor import anchor_xform_at_path

locations = [
    {"name": "NewYork", "latitude": 40.7128, "longitude": -74.0060, "population": 8336817},
    {"name": "LosAngeles", "latitude": 34.0522, "longitude": -118.2437, "population": 39776830},
    {"name": "Chicago", "latitude": 41.8781, "longitude": -87.6298, "population": 2716000},
    {"name": "Houston", "latitude": 29.7604, "longitude": -95.3698, "population": 2320257},
    {"name": "Phoenix", "latitude": 33.4484, "longitude": -112.0740, "population": 1680992},
    {"name": "Philadelphia", "latitude": 39.9526, "longitude": -75.1652, "population": 1584064},
    {"name": "SanAntonio", "latitude": 29.4241, "longitude": -98.4936, "population": 1547253},
    {"name": "SanDiego", "latitude": 32.7157, "longitude": -117.1611, "population": 1423851},
    {"name": "Dallas", "latitude": 32.7767, "longitude": -96.7970, "population": 1343573},
    {"name": "SanJose", "latitude": 37.3541, "longitude": -121.9552, "population": 1030119},
]

ctx = omni.usd.get_context()
stage = ctx.get_stage()

async def main():
    for location in locations:

        anchor_path = "/World/" + location["name"] + "_anchor"
        geom_path = anchor_path + "/" + location["name"]

        # Create the anchor prim
        omni.kit.commands.execute(
            "CreateMeshPrimWithDefaultXform", prim_type="Cylinder", prim_path=anchor_path
        )

        # Creat the actual prim geometry - keep object scaling separate from the globe anchor
        omni.kit.commands.execute(
            "CreateMeshPrimWithDefaultXform", prim_type="Cylinder", prim_path=geom_path
        )

        anchor_prim = stage.GetPrimAtPath(anchor_path)
        geom_prim = stage.GetPrimAtPath(geom_path)

        # Anchor the prim
        anchor_xform_at_path(anchor_prim.GetPath(), location["latitude"], location["longitude"], 0.0)

        geom_prim = stage.GetPrimAtPath(geom_path)
        geom_prim.GetAttribute("xformOp:scale").Set(
            (50000.0, 1000000.0, 50000.0)
        )

ensure_future(main())

repo: CesiumGS/cesium-omniverse


text:
Support reordering raster overlays

Raster overlays are currently applied in the order in which their OnEnable is called. There should be more explicit control over their order. For example, it should be possible to enable a layer at runtime that is drawn in between two existing ones.

This makes me wonder if we should implement some variant of the "Material Layer Key" property that Unreal uses. Given a string text field, you could assign raster overlays keys like Overlay0, Overlay1, etc. Then UnityPrepareRendererResources will put it into the corresponding shader variables, based on the N in OverlayN.
This may also be relevant to #64. In Unreal, clipping requires modifying the opacity / alpha mask, and it applies that through a special Layer Blend asset. The keyword "Clipping" is used to identify what raster overlay to use this blend asset on. But there's no exact equivalent for this in Unity, so how is the tileset going to know which overlay is the clipping one?

repo: CesiumGS/cesium-unity


text:
GroundPrimitive Render Error

I want to use PolygonGeometry and groundPrimitive to draw Hexagonal Grids on Terrain, but there is a problem with the color rendering of the hexagonal grid, which goes out of the edge grid.And I check the edge points to ensure points are correct.
`hexagonInstances.push(new Cesium.GeometryInstance({
geometry: new Cesium.PolygonGeometry({
polygonHierarchy: new Cesium.PolygonHierarchy(geoInfo.cartesian3Data as Cesium.Cartesian3[]),
vertexFormat: Cesium.PerInstanceColorAppearance.VERTEX_FORMAT
}),
id: "Hexagon-" + geoInfo.indexX + "_" + geoInfo.indexY,
attributes: {
color: Cesium.ColorGeometryInstanceAttribute.fromColor(this.config.showSatelliteImage?color.withAlpha(0.2):color.withAlpha(0.8))
}
}))
this.viewer.scene.primitives.add( new Cesium.Primitive({
geometryInstances: hexagonInstances,
interleave: true,
vertexCacheOptimize: true,
allowPicking: false,
asynchronous: false,
appearance: new Cesium.PerInstanceColorAppearance({
flat: true
})
}), 0)
`

Hi @BloodlustLR,
Where is the hexagon grid outline coming from? Can you provide a Sandcastle code example that replicates the issue? That would help us give us more context to determine the issue.
Thanks!

Hi @BloodlustLR,
Where is the hexagon grid outline coming from? Can you provide a Sandcastle code example that replicates the issue? That would help us give us more context to determine the issue.
Thanks!

`const border = {
"west": 121.62921213591129,
"south": 24.81999135320948,
"north": 24.865129705580536,
"east": 121.67205922150731
};
const data = [
[
[
121.63778155330164,
24.865129705580532
],
[
121.6463509706242,
24.860615882618365
],
[
121.6463509706242,
24.851588228512096
],
[
121.63778155330164,
24.84707439736872
],
[
121.62921213591129,
24.851588228512096
],
[
121.62921213591129,
24.860615882618365
],
[
121.63778155330164,
24.865129705580532
]
],
[
[
121.65492038781119,
24.865129705580532
],
[
121.66348980479482,
24.860615882618365
],
[
121.66348980479482,
24.851588228512096
],
[
121.65492038781119,
24.84707439736872
],
[
121.6463509706242,
24.851588228512096
],
[
121.6463509706242,
24.860615882618365
],
[
121.65492038781119,
24.865129705580532
]
],
[
[
121.62921213591129,
24.851588228512096
],
[
121.63778155330164,
24.84707439736872
],
[
121.63778155330164,
24.838046726903297
],
[
121.62921213591129,
24.833532887581978
],
[
121.62064271852094,
24.838046726903297
],
[
121.62064271852094,
24.84707439736872
],
[
121.62921213591129,
24.851588228512096
]
],
[
[
121.6463509706242,
24.851588228512096
],
[
121.65492038781119,
24.84707439736872
],
[
121.65492038781119,
24.838046726903297
],
[
121.6463509706242,
24.833532887581978
],
[
121.63778155330164,
24.838046726903297
],
[
121.63778155330164,
24.84707439736872
],
[
121.6463509706242,
24.851588228512096
]
]
];
const viewer = new Cesium.Viewer("cesiumContainer");
let cartesian3Data = [];
for(let hex of data){
let hexData = [];
for(let position of hex){
hexData.push(Cesium.Cartesian3.fromDegrees(position[0], position[1]));
}
cartesian3Data.push(hexData);
}
//drawOutline
let hexagonOutline = [];
for(let hex of cartesian3Data){
hexagonOutline.push(new Cesium.GeometryInstance({
geometry: new Cesium.GroundPolylineGeometry({
positions: hex,
width: 2
})
}));
}
viewer.scene.groundPrimitives.add(new Cesium.GroundPolylinePrimitive({
geometryInstances: hexagonOutline,
interleave: true,
allowPicking: false,
appearance: new Cesium.PolylineMaterialAppearance({
material: new Cesium.Material({
fabric : {
type : 'Color',
uniforms : {
color : Cesium.Color.WHITE.withAlpha(0.5)
}
}
})
})
}), 0);
//drawHexagon
let hexagon = [];
for(let hex of cartesian3Data){
let geometry = new Cesium.PolygonGeometry({
polygonHierarchy: new Cesium.PolygonHierarchy(hex),
vertexFormat : Cesium.PerInstanceColorAppearance.VERTEX_FORMAT
});
let instance = new Cesium.GeometryInstance({
geometry: geometry,
attributes: {
color: Cesium.ColorGeometryInstanceAttribute.fromColor(Cesium.Color.fromRandom())
}
});
hexagon.push(instance);
}
viewer.scene.groundPrimitives.add( new Cesium.GroundPrimitive({
geometryInstances: hexagon,
appearance: new Cesium.PerInstanceColorAppearance({
flat: true
})
}), 0);
//zoomToArea
let rectangle = Cesium.Rectangle.fromDegrees(border.west, border.south, border.east, border.north);
let entity = viewer.entities.add({
rectangle: {
height:0,
coordinates: rectangle,
heightReference: Cesium.HeightReference.CLAMP_TO_GROUND
}
});
viewer.zoomTo(entity).then(() => {
viewer.entities.remove(entity);
});
`
the hexagon grid outline is drawed by myself with GroundPolylinePrimitive.The code above is my Sandcastle code example, which color render incorrectly.Thanks!

Thanks @BloodlustLR!
I can confirm there seems to be artifacts based on the camera angle:
https://github.com/CesiumGS/cesium/assets/4439461/58cd7afb-ebcb-46ee-8a55-fd26f53df400

Thanks @BloodlustLR!
I can confirm there seems to be artifacts based on the camera angle:
2023-05-18.09-25-16.mp4

Yes,That's the problem.It seems a bug of GroundPrimitive.

Also reported in https://github.com/CesiumGS/cesium/issues/11292.

I also encountered this problem. However, during my testing, I found that this does not seem to happen when the area of each instance is small

Also reported on the forum here

@BloodlustLR @ggetz I also encountered this problem。 I find if you set ：viewer.scene.globe.depthTestAgainstTerrain = false，and use Primitive instead of GroundPrimitive，it worked perfect ! But i  want to set depthTestAgainstTerrain = true in my whole project！What should i do ? Please give me some advices，Thanks a lot !

@BloodlustLR @ggetz I also encountered this problem。 I find if you set ：viewer.scene.globe.depthTestAgainstTerrain = false，and use Primitive instead of GroundPrimitive，it worked perfect ! But i want to set depthTestAgainstTerrain = true in my whole project！What should i do ? Please give me some advices，Thanks a lot !

The reason for this error is that the intersections of the rendered polygons of the same level overlap, so in my project, the solution I am taking to temporarily avoid this problem is to divide them into odd and even rows and render them separately. The effect is very good. You can Take a similar approach. But I don’t think this is the best way, because dividing one rendering into two times will still increase the performance burden. I still hope that the official can help solve this BUG.

@BloodlustLR @ggetz I also encountered this problem。 I find if you set ：viewer.scene.globe.depthTestAgainstTerrain = false，and use Primitive instead of GroundPrimitive，it worked perfect ! But i want to set depthTestAgainstTerrain = true in my whole project！What should i do ? Please give me some advices，Thanks a lot !

Thanks for your solution ~ I also agree that the official can help solve this problem.

Reported on the forum again with an example showing a number of polygons in close proximity and being unable to select the specific one under the cursor due to the shadow volumes.

authors: BloodlustLR LTJhon ggetz jjspace wenzhihao123

repo: CesiumGS/cesium


text:
server param is not working

Hi @Ch00k, I'm trying to use the tool and I don't know if I'm using it wrong or there is a bug. With an env ORC_ORTHANC_SERVER works fine, but with a argument is failing with -s and --server
$ orthanc study list -s=http://localhost:8092
error: Found argument '-s' which wasn't expected, or isn't valid in this context

        If you tried to supply `-s` as a value rather than a flag, use `-- -s`

USAGE:
    orthanc study list [FLAGS] [OPTIONS]

also
orthanc study list -s http://localhost:8092
error: Found argument '-s' which wasn't expected, or isn't valid in this context

        If you tried to supply `-s` as a value rather than a flag, use `-- -s`

USAGE:
    orthanc study list [FLAGS] [OPTIONS]

For more information try --help

and
orthanc study list -- -s http://localhost:8092
error: Found argument '-s' which wasn't expected, or isn't valid in this context

        If you tried to supply `-s` as a value rather than a flag, use `-- -s`

USAGE:
    orthanc study list [FLAGS] [OPTIONS]

For more information try --help

Thank you!

-s is a "global" option (the one that applies to the parent command, as opposed to a subcommand), so you should put it after orthanc:
orthanc -s http://localhost:8092 study list

license: Unlicense


text:
Aimbot lag

Hello,
I tested it but when I play on a server where there is more than 10vs10, when I shoot with the aimbot, I have the fps going from 166 to 25... Would it be possible to correct this?

I noticed some FPS loss on very busy servers, especially when multiple explosions are present.
Do you maybe have any more details on when exactly you have FPS issues so I can reproduce the issue?

Hello,
it's only when I use the human aim at that I play on a server where there are 15 players vs 12 players.
And it's when u press aimkey :)
I have an i7 9700k with a 2060super and 32go ram...

Made it possible to adapt the aimbot trace-box step size in commit f2319ac51a09236c80c9ff66321ae873ec4094c5.
Default values have been increased to 0.5 and 0.3 from 0.1 each which results in significantly faster traces.
Of course the visible checks are now less accurate, you can always configure the accuracy by changing the step size in config.h.
The new values are named aimbotHeadBoxTraceStep and aimbotBodyBoxTraceStep.


text:
chore: add epoch date for nv18 upgrade on mainnet

Summary of changes

Changes introduced in this pull request:

Hygge will go live on mainnet 2023-03-14T15:14:00Z

Reference issue to close (if applicable)

Closes
Other information and links

Change checklist

[x] I have performed a self-review of my own code,
[x] I have made corresponding changes to the documentation,
[x] I have added tests that prove my fix is effective or that my feature works (if possible),
[x] I have made sure the CHANGELOG is up-to-date. All user-facing changes should be reflected in this document.

This issue also has to be worked on before we're ready for the mainnet upgrade: https://github.com/ChainSafe/fil-actor-states/issues/25

repo: ChainSafe/forest


text:
fix(bug): Mark subscribedEventsStream to true; Prevents double processing of headers

Signed-off-by: Daniel-K-Ivanov daniel.k.ivanov95@gmail.com
Motivation
This PR prevents double subscriptions thus double processing of headers
Description
onOptimisticUpdate and onFinalityUpdate functions call the subcribeEventStream function to subscribe to the 2 events they care about. The subscribeEventStream function checks whether the subscriptions are already turned on, but does not mark them as turned on after the initial subscription. This makes the client light to process every optimistic and finality header update twice.

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

authors: CLAassistant Daniel-K-Ivanov

repo: ChainSafe/lodestar


text:
OpenAI sync client duplicates tokens

Describe the bug
OpenAI Sync client duplicate tokens.
To Reproduce
from dotenv import load_dotenv
load_dotenv()

from openai import OpenAI
import chainlit as cl
client = OpenAI()

# Instrument the OpenAI client
cl.instrument_openai()

settings = {
    "model": "gpt-3.5-turbo",
    "temperature": 0
}

@cl.on_message
async def on_message(message: cl.Message):
    stream = client.chat.completions.create(
        messages=[
            {
                "content": "You are a helpful bot, you always reply in Spanish",
                "role": "system"
            },
            {
                "content": message.content,
                "role": "user"
            }
        ],
        **settings,
        stream=True
    )
    answer = cl.Message(content="")
    await answer.send()
    for part in stream:
        if token := part.choices[0].delta.content or "":
            await answer.stream_token(token)

    await answer.update()

Expected behavior
no duplicated tokens
Screenshots
If applicable, add screenshots to help explain your problem.

Fixed in the latest release

authors: constantinidan willydouhard

repo: Chainlit/chainlit


text:
Same Question Get No Answer

I got a problem, if one question be asked and answered, the next time you ask the same question will got no answer. Which config will affect this problem?
The tag in the following picture, the tag 1 is the same question.

it is --no-cache, I got it


text:
FYI: js2coffee v2.0.0 release due soon

https://github.com/js2coffee/js2coffee/issues/333
command-line API will remain unchanged, but the JavaScript API (specifically, the result of js2coffee.build()) will change.
https://github.com/js2coffee/js2coffee#programatic-api

and its now out!
https://github.com/js2coffee/js2coffee/blob/master/notes/Migration_guide.md

I wrote an Atom package with the new js2coffee API, well sorta, it's not doing anything all that complex.
https://github.com/LucasKA/coffee-porter

authors: LucasKA rstacruz


text:
CI for Node

Problem: Solving an activity
Solution: Using Node.js workflow template for solving the bug and committing against main branch

Run npm test failed

repo: Chandra-Gowsalya/github-actions-for-ci


text:
Testing an Issue

hello

haha

new to GH?

add something

repo: ChangGeeLow/github-slideshow


text:
使用railway搭建会出现(POST /v1/chat/completions这个问题,参数都填写了,请问怎么解决

删去BASE_URL和MODEL变量试试

删除 BASEURL 和 MODEL 以后重新部署，删除浏览器缓存，Railway 的浏览器缓存很严重。

还是不行,我换了个机器 换了一个浏览器重新部署还是这样

换个key就行了，我的也这样

我换了key了还是这个问题,是不是要换账号

我升级后也出现了这个问题

我是用 docker 部署的服务，OPENAI_API_BASE_URL 使用了 cloudflare  workers 绑定的域名，今天升级到新版本后也遇到了同样的问题，回滚到 v2.10.5 版本后使用正常

我删除重新部署已经好了，请浏览器缓存

我是用 docker 部署的服务，OPENAI_API_BASE_URL 使用了 cloudflare workers 绑定的域名，今天升级到新版本后也遇到了同样的问题，回滚到 v2.10.5 版本后使用正常

已经修复

请问怎么删除BASE_URL和MODEL

请问怎么删除BASE_URL和MODEL

不添加这两个环境变量就好了

谢谢

确实是账号问题,换了一个账号就好了,可能代码的提示错误不明确,希望明确下错误原因,可以提供下失败账号的key,作者可以测试下

authors: Chanzhaoyu DragonRollGH JeazW LanQian528 jykSS me4p0 zedpass

repo: Chanzhaoyu/chatgpt-web


text:
compare with WDSR and EDSR

Hi, thanks for the code. I notice that your model is developed by WDSR, would you please provide the comparision results with WDSR and EDSR? Thanks.
https://github.com/JiahuiYu/wdsr_ntire2018/blob/master/wdsr_b.py

@zhengsx  hello, in the paper, we add a comparison of our model and WDSR baseline. EDSR is a model with a large amount of parameters. So we didn't compare it to our model. But you can compare the baseline of WDSR and EDSR on the x2 scale on the DIV2K val dataset.

Network
Parameters
DIV2K (val) PSNR

EDSR Baseline
1,372,318
34.61

WDSR Baseline
1,190,100
34.77

AWSRN
1,396,872
34.81

I'm very appreciate that.

authors: ChaofWang zhengsx

repo: ChaofWang/AWSRN


text:
We need tests

We should run tests on every PR, before Chaosbot can merge them.

To facilitate testing, we should separate out lookAtPrs into multiple separate functions that perform single tasks, possibly into separate files as well.
In addition, we could clean up the code by moving to using async functions and awaiting promises instead of using .then, for example changing this:
function lookAtPrs() {
    repo.listPullRequests({
        state: "open",
        base: "master" //ignore non-master PRs
    }).then(function (prs) {
        prs = prs.data;
        // ...
    }
}
lookAtPrs()

to this:
async function lookAtPrs() {
    let prs = await repo.listPullRequests({
        state: "open",
        base: "master" //ignore non-master PRs
    });
    prs = prs.data;
    // ...
}
await lookAtPrs();


text:
🛑 Server 2 is down

In 1233901, Server 2 ($SERVER2) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Server 2 is back up in be312fa.

repo: Chapati-Systems/status


text:
quartata: Watch postpandit.com

quartata requests the watch of the watch_keyword postpandit.com. See the Metasmoke search here

!!/approve

authors: NobodyNada SmokeDetector

repo: Charcoal-SE/SmokeDetector


text:
Vickel: Watch +1 805 327 7444

Vickel requests the watch of the watch_number +1 805 327 7444. See the MS search here and the Stack Exchange search in text, in URLs, and in code.

Approved by Jeff Schaller in Charcoal HQ


text:
Cow: Watch replaceanything.cc

Cow requests the watch of the watch_keyword replaceanything\.cc. See the MS search here and the Stack Exchange search in text, in URLs, and in code.

Approved by Spevacus in Charcoal HQ


text:
Remove seositecheckup.com from pattern-matched websites

Seems to be a legitimate website, causing quite a few FPs:
https://metasmoke.erwaysoftware.com/domains/3980

Coverage remained the same at 65.236% when pulling 7d8321c1e2a8551e023cd64690ed4b0a15657d1a on Glorfindel83:master into fcef09564685d72b0da01b3a4548a079781078cb on Charcoal-SE:master.


text:
user12986714: Watch !$

user12986714 requests the watch of the watch_keyword !$. See the MS search here and the Stack Exchange search in text, in URLs, and in code.

!$ has been seen in 5 true positives, 6 false positives, and 0 NAAs.

authors: SmokeDetector metasmoke


text:
tripleee: Blacklist livana\Wlift

tripleee requests the blacklist of the following keyword(s):

livana\Wlift - MS search

livana\Wlift has been seen in 0 true positives, 0 false positives, and 0 NAAs.

Better search; 20 hits, all TP.
https://metasmoke.erwaysoftware.com/search?utf8=✓&title=&body_is_regex=1&body=livana[^A-Za-z0-9_]lift&username=&why=&site=&feedback=&reason=&user_rep_direction=>%3D&user_reputation=0&commit=Search

authors: SmokeDetector metasmoke tripleee


text:
Robert Longson: Watch sigmasoftwares.org

Robert Longson requests the watch of the watch_keyword sigmasoftwares\.org. See the MS search here and the Stack Exchange search in text, in URLs, and in code.

sigmasoftwares\.org has been seen in 1 true positive, 0 false positives, and 0 NAAs.

Approved by tripleee in Charcoal HQ


text:
Jesse: Watch Smart[\W_]+Vision[\W_]+(?:Clinic|Hospital)

Jesse requests the watch of the watch_keyword Smart[\W_]*+Vision[\W_]*+(?:Clinic|Hospital). See the MS search here and the Stack Exchange search in text, in URLs, and in code.

Smart[\W_]*+Vision[\W_]*+(?:Clinic|Hospital) has been seen in 1 true positive, 0 false positives, and 0 NAAs.

Approved by Spevacus in Charcoal HQ


text:
Auto updater

I got the icon that i need to update chatterino.

I tried to do the update.
It prompted me to install it on all users (*need admin, so allowed that), selected the folder i wanted to install in. "Z:\Chatterino 2" and removed the extra folder it wanted to create "Z:\Chatterino 2\Chatterino2"
The install was about to start and i got this error into a crash.

--
Updated from Github nightly and now it works but the icon still shows it wants me to update:

https://github.com/Chatterino/chatterino2/commit/7cbbd72e7fa49803070ded44266bdc6e8b12e808 Nightly on windows now won't show updates anymore.

This issue has been fixed and will be deployed in the next  update

authors: fourtf wigoor


text:
Milliseconds timestamp format.

What should be added?

An option under timestamp format to display milliseconds.
( 00:00:00.000 & 00:00:00.000 am/pm )

I've seen zneix at least has a working version of something like this from the chatterino on his stream.
I would try to make this myself, but building chatterino seems like its complicated, and I only started learning C++ like a week ago
Why should it be added?

Its useful information for people / developers making things that integrate with twitch chat, even if the typical user won't find any use for this I think I will, being able to easily see response times and compare them easily to other bots. 😃 And I like seeing information like this.  ( even though when you turn on logging this information is availible in the log files, it is very annoying to check through those )

You can enter a custom timestamp format into that dropdown field if none of the prepopulated formats fit your needs. hh:mm:ss.zzz or hh:mm:ss.zzz a will do what you want.
Timestamp format for reference: https://doc.qt.io/qt-5/qtime.html#toString

You can enter a custom timestamp format into that dropdown field if none of the prepopulated formats fit your needs. hh:mm:ss.zzz or hh:mm:ss.zzz a will do what you want.
Timestamp format for reference: https://doc.qt.io/qt-5/qtime.html#toString

I wanted to add this myself to the master branch quite some time ago, but wasn't sure if it would be accepted, as many chatterino users often WutFace'd me in other chats for having "too nerdy shit" in my chatterino, so I assumed it's not useful, but I was wrong. Created a PR to add this :)

I wanted to add this myself to the master branch quite some time ago, but wasn't sure if it would be accepted, as many chatterino users often WutFace'd me in other chats for having "too nerdy shit" in my chatterino, so I assumed it's not useful, but I was wrong. Created a PR to add this :)

Why was this closed? there's a PR for this

Why was this closed? there's a PR for this

Functionality is already in chatterino.

Functionality is already in chatterino.

I believe they were asking for an option in the menu, which does not currently exist:

I believe they were asking for an option in the menu, which does not currently exist:

authors: NotNotQuinn alazymeme apa420 sando zneix


text:
Buttons inside the top panel do not work

I wanted to add a button inside the  the top portion of the SlideUpPanel, but the clicked does not work. Tapping the button just toggles the panel in/out

Yes?

A button inside the panel should still get its clicked event and not toggle the menu. It works in the original lib, I have bound and tested it.

This might be due to this being behind in terms of fixes etc. which the original repo has.

i guess that my answer in the #14  can help you

authors: Cheesebaron Clancey Gr3gorywolf

repo: Cheesebaron/SlidingUpPanel


text:
Base Info for this issue

Version：pod 'CYLTabBarController/Lottie', '1.29.2'
Language of App ：Swift
iOS System Version：iOS15.0.1
Prototype（是否是真机）：YES
Issue Type：Bug

1. How to reproduce the problem.

1、自定义一个window，之后不管在什么地方调用cyl_popSelectTabBarChildViewController或selectedIndex会出现文字变色，图片没变化。
2、没有创建自定义window时是正常的。
例如：我现在tabBarController.selectedIndex = 0，自定义一个弹窗view，把它加在一个自定义的window上，一旦这个弹窗生成后，再通过代码调用cyl_popSelectTabBarChildViewController(at: 2, animated: true)，此时tabBarController.selectedIndex = 2，页面也切到了。但是，只有文字颜色变了，图片没变化，但是用手去切是正常的
2. Please help me in this way.

在自定义了window时，也可以正常的通过代码改selectedIndex
3. Here is a Demo.

4. Here is my Debug log

@ChenYilong 给个邮箱，我把demo发给你看看

CYLTabbarDemo.zip
@ChenYilong 这个是demo

@ChenYilong 幸苦了，谢谢🙏

@ChenYilong 我好像找到原因了，一旦设置了

，下次再通过代码跳转前得再设置了，把shouldSelect设为true才行

repo: ChenYilong/CYLTabBarController


text:
Stitching - Requests sent to remote schema with invalid json for variables

Description
When using schema stitching to send requests to a remote resource number variables are not given a trailing comma, therefore producing invalid json.
I've experimented with this and it seems if the remote schema is hotchocolate it will happily parse this invalid json, but other gql implementations won't.
To Reproduce

Set up schema stitching to consume a remote schema.
make a query of the remote schema using one or more number variables (issue exists for ints and floats).
Inspect the body of the http request made - note that number variables are not followed by commas, as they should per json spec.

Expected behavior
valid Json produced.
Additional context
I've put together a fix for this and a test describing the problem. I'll submit a PR

@michaelstaib i think this can now be closed

authors: chris-redhead erwan-joly

repo: ChilliCream/hotchocolate


text:
Colored noise

@trbromley Please review. I've added some two-qubit noise models. Depolarizing noise and colored noise are the two noise models that most realistically reflect the noise on photonic entanglement sources (see https://arxiv.org/pdf/quant-ph/0509027.pdf).

These changes are not breaking and designate a v0.1.1 release

repo: ChitambarLab/qNetVO


text:
issues with images with no manifest

Apparently (for whatever reason) some images are generated with no manifest, and this causes the action to fail.
Run Chizkiyahu/delete-untagged-ghcr-action@v2
  with:
    token: ***
    repository_owner: zaphiro-technologies
    repository: zaphiro-technologies/data-download-backend
    untagged_only: true
    owner_type: org
    except_untagged_multiplatform: true
Run actions/setup-python@v4
Installed versions
Run pip install -r /home/runner/work/_actions/Chizkiyahu/delete-untagged-ghcr-action/v[2](https://github.com/zaphiro-technologies/data-download-backend/actions/runs/5209690471/jobs/9400797548#step:3:2)/requirements.txt
Collecting requests (from -r /home/runner/work/_actions/Chizkiyahu/delete-untagged-ghcr-action/v2/requirements.txt (line 1))
  Downloading requests-2.[3](https://github.com/zaphiro-technologies/data-download-backend/actions/runs/5209690471/jobs/9400797548#step:3:3)1.0-py3-none-any.whl (62 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 62.6/62.6 kB 2.1 MB/s eta 0:00:00
Collecting charset-normalizer<[4](https://github.com/zaphiro-technologies/data-download-backend/actions/runs/5209690471/jobs/9400797548#step:3:4),>=2 (from requests->-r /home/runner/work/_actions/Chizkiyahu/delete-untagged-ghcr-action/v2/requirements.txt (line 1))
  Downloading charset_normalizer-3.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (199 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 199.2/199.2 kB 3.3 MB/s eta 0:00:00
Collecting idna<4,>=2.[5](https://github.com/zaphiro-technologies/data-download-backend/actions/runs/5209690471/jobs/9400797548#step:3:5) (from requests->-r /home/runner/work/_actions/Chizkiyahu/delete-untagged-ghcr-action/v2/requirements.txt (line 1))
  Downloading idna-3.4-py3-none-any.whl ([6](https://github.com/zaphiro-technologies/data-download-backend/actions/runs/5209690471/jobs/9400797548#step:3:6)1 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.5/61.5 kB 10.1 MB/s eta 0:00:00
Collecting urllib3<3,>=1.21.1 (from requests->-r /home/runner/work/_actions/Chizkiyahu/delete-untagged-ghcr-action/v2/requirements.txt (line 1))
  Downloading urllib3-2.0.3-py3-none-any.whl (123 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 123.6/123.6 kB 8.[7](https://github.com/zaphiro-technologies/data-download-backend/actions/runs/5209690471/jobs/9400797548#step:3:7) MB/s eta 0:00:00
Collecting certifi>=2017.4.17 (from requests->-r /home/runner/work/_actions/Chizkiyahu/delete-untagged-ghcr-action/v2/requirements.txt (line 1))
  Downloading certifi-2023.5.7-py3-none-any.whl (156 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 157.0/157.0 kB 10.9 MB/s eta 0:00:00
Installing collected packages: urllib3, idna, charset-normalizer, certifi, requests
Successfully installed certifi-2023.5.7 charset-normalizer-3.1.0 idna-3.4 requests-2.31.0 urllib3-2.0.3

Notice:  A new release of pip is available: 22.0.4 -> 23.1.2
Notice:  To update, run: pip install --upgrade pip
Run args="--token *** "
args: --token ***  --repository_owner zaphiro-technologies  --repository zaphiro-technologies/data-download-backend  --untagged_only true  --except_untagged_multiplatform true  --owner_type org
docker manifest inspect ghcr.io/zaphiro-technologies/data-download-api@sha256:023a074442207c9901a415ecb927b[8](https://github.com/zaphiro-technologies/data-download-backend/actions/runs/5209690471/jobs/9400797548#step:3:8)c5eca7e74e87bb26b745ff4772b6e3dce7
Traceback (most recent call last):
  File "/home/runner/work/_actions/Chizkiyahu/delete-untagged-ghcr-action/v2/clean_ghcr.py", line 231, in <module>
    delete_pkgs(
  File "/home/runner/work/_actions/Chizkiyahu/delete-untagged-ghcr-action/v2/clean_ghcr.py", line 131, in delete_pkgs
    deps_pkgs = get_deps_pkgs(owner, tagged_pkgs)
  File "/home/runner/work/_actions/Chizkiyahu/delete-untagged-ghcr-action/v2/clean_ghcr.py", line [9](https://github.com/zaphiro-technologies/data-download-backend/actions/runs/5209690471/jobs/9400797548#step:3:10)5, in get_deps_pkgs
    ids.extend(get_image_deps(image))
  File "/home/runner/work/_actions/Chizkiyahu/delete-untagged-ghcr-action/v2/clean_ghcr.py", line 100, in get_image_deps
    manifest_txt = get_manifest(image)
  File "/home/runner/work/_actions/Chizkiyahu/delete-untagged-ghcr-action/v2/clean_ghcr.py", line 110, in get_manifest
    raise Exception(res.stderr)
Exception: b'no such manifest: ghcr.io/zaphiro-technologies/data-download-api@sha256:023a074442207c9901a[41](https://github.com/zaphiro-technologies/data-download-backend/actions/runs/5209690471/jobs/9400797548#step:3:45)5ecb927b8c5eca7e74e87bb26b7[45](https://github.com/zaphiro-technologies/data-download-backend/actions/runs/5209690471/jobs/9400797548#step:3:49)ff[47](https://github.com/zaphiro-technologies/data-download-backend/actions/runs/5209690471/jobs/9400797548#step:3:51)[72](https://github.com/zaphiro-technologies/data-download-backend/actions/runs/5209690471/jobs/9400797548#step:3:77)b6e3dce7\n'
Error: Process completed with exit code 1.

Would it make sense to simply simply move to the next image and report warning for these cases?

Provenance information is probably the cause of your problem, give a look here
docker manifest inspect seams to fail to parse images with the attestation-manifest.

repo: Chizkiyahu/delete-untagged-ghcr-action


text:
A few options for taskbar Icon customizability

Basically, there's a few features that StartIsBack has that I would love to exist in an open source program like this one, as well as a few Taskbar Tweaker options that would well suited here

Change spacing between taskbar icons, SIB+ has various margin sizes to choose between that would be nice to enable here
Large taskbar icons; this is something 7+ Taskbar Tweaker has that's really nice
Remove little line under opened programs icons. I know some custom themes remove it but for the life of me I cannot figure out what they are doing so if anyone figures out how please let me know

To be able to focus on major/current bugs I had to close all issues. The issues section has gotten very messy to a point that I couldn't follow it anymore. Most issues are duplicates, very old or are already fixed/solved. Feel free to reopen this issue if you still have this issue on the latest version of TaskbarX to get my attention. All feature requests have been put in a list here: 💡| Feature requests #870
I hope you understand ❤


text:
CameraPitch and CameraYaw don't allow passing a Camera3D as ref

Issue description
Since the built-in first person camera doesn't let you easily change things like speed, I was implementing it myself. I got movement working but when trying to implement camera rotation with the mouse, I found that CameraPitch() and CameraYaw() both require Camera3D* but attempting to pass in my Camera3D using ref gives the error:
Argument 1 may not be passed with the 'ref' keyword
Attempting to pass in the Camera normally (not ref) gives the error:
Argument 1: cannot convert from 'Raylib_cs.Camera3D' to 'Raylib_cs.Camera3D*'
So it appears there is no winning.
Environment

Windows 11
Raylib-cs 5.0.0
.NET 7.0.401

My game so far is a pretty barebones FPS, following the examples pretty closely. The only real difference is my Camera3D is stored as a property of the Player class. I'm not using any UpdateCamera or UpdateCameraPro methods, I'm performing my own movement calculations and applying them directly to Camera.position and Camera.target, which is working out fine.
Using UpdateCamera with the default first person camera stuff would be ideal, but I needed to be able to control the speed of the camera, which doesn't seem possible.

Can you pls show us your code?

This works for me?

So whats the problem?

Properties are not compatible with ref, thats basic C#.
@ChrisDill this issue could get closed.

This works for me?

My bad, I forgot that he mentioned properties, so what you could do is this:
  public class MyClass
  {
         private Camera3D _myCam = new(/*whatever here*/);

         public ref Camera3D => ref _myCam;
  }

authors: CodingMadness MrScautHD leftbones

repo: ChrisDill/Raylib-cs

license: Zlib


text:
Fix minor version incrementation

Seems like a typo, which results in counting of major numbers when a minor tag is used.

Awesome, thank you for your contributions! I'll need to check everything before making a release. I can probably do that on the weekend ;)

authors: ChristianSch raucao

repo: ChristianSch/gitea-release-drafter


text:
🛑 TribLIVE is down

In e7a72e3, TribLIVE (https://.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: TribLIVE is back up in 2cf0968.

repo: ChristmanGit/test-up


text:
fix: added missing properties to map

Easy change to add the new properties to the Map schema and update the state checker logic

closes #121

repo: ChristopheBougere/asl-validator


text:
Add tests associated with #15, #16

See #15, #16

This should be handled by #20

repo: ChristopherChudzicki/mathbox-react


text:
Notification URLs

None of the twilio and email URLs from Apprise are working. Either the test notification is queued, but doesn't deliver or I receive an error message that the URL isn't valid. I've checked the Notification debug log and it hasn't updated since the first test. Am I missing something?

We are currently pinned to an older release of Apprise (0.9.6) which did not yet have support for the "mailto" tag.  I'll do some testing and see if we can sync up with the latest release.

Ok. Thanks. I tried many of the notification options and its not just the mailto that isn't working. That is the option I want to use most, however. The Twilio SMS option isn't working, Office365, Google Chat, Telegram, SendGrid, and Opsgenie too.

Yep! All working fine now. Thank you! @ChuckMac

repo: ChuckMac/ADRFinder


text:
pipeline 对外提供不 check 判断

兼容 no-hold 的逻辑

done

repo: ChunelFeng/CGraph


text:
输入验证码后程序出错

错误代码如下，请教是什么问题？
Traceback (most recent call last):
File "H:\Anaconda\lib\site-packages\wechatsogou\api.py", line 115, in __get_by_unlock
unlock_platform(url, resp, session, unlock_callback, identify_image_callback)
File "H:\Anaconda\lib\site-packages\wechatsogou\api.py", line 82, in __unlock_sogou
msg=r_unlock.get('msg')))
wechatsogou.exceptions.WechatSogouVcodeOcrException: [WechatSogouAPI identify image] code: 3, msg: éªè¯ç è¾å¥éè¯¯, è¯·éæ°è¾å¥ï¼
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "getwechatarticles.py", line 6, in
dictArticles = ws_api.get_gzh_article_by_history('厦门市图书馆')
File "H:\Anaconda\lib\site-packages\wechatsogou\api.py", line 370, in get_gzh_article_by_history
gzh_list = self.get_gzh_info(keyword, unlock_callback_sogou, identify_image_callback_sogou)
File "H:\Anaconda\lib\site-packages\wechatsogou\api.py", line 192, in get_gzh_info
info = self.search_gzh(wecgat_id_or_name, 1, unlock_callback, identify_image_callback)
File "H:\Anaconda\lib\site-packages\wechatsogou\api.py", line 239, in search_gzh
identify_image_callback=identify_image_callback)
File "H:\Anaconda\lib\site-packages\wechatsogou\api.py", line 119, in __get_by_unlock
raise WechatSogouVcodeOcrException(e)
wechatsogou.exceptions.WechatSogouVcodeOcrException: [WechatSogouAPI identify image] code: 3, msg: éªè¯ç è¾å¥éè¯¯, è¯·éæ°è¾å¥ï¼

我也遇到了这个问题

总感觉是触发了反爬策略，是爬了一会以后，前几次输入验证码都正确识别，之后才报错的，你加上编码后就没再报过错了吗，你的爬取时间间隔是多长时间啊

我爬取频率很低，3小时一次，只是针对一个微信号而已。目前加上编码后，没有再报错。还有待观察。

https://github.com/Chyroc/WechatSogou/issues/235

authors: Chyroc s277645013 zhxxmu

repo: Chyroc/WechatSogou