text:
class cast exception with expandable item

Details

[3.2.8] Used library version
[27.1.1 ] Used support library version
[3.1.4 ] Used tooling / Android Studio version

Checklist

[V ] Searched for similar issues
[ V] Checked out the sample application
[ V] Read the README
[ V] Checked out the CHANGELOG
[ V] Checked out the MIGRATION GUIDE

About this issue
i am implementing an expandable list with selection but when deselecting the last item (not the item in the last index, but the last item to be deselected) i get class cast exception saying that the sub item class cannot be cast into the parent class. the exception is only thrown when deselecting the last item, for example:

list containing 10 items
selecting items 1, 2, 3 - fine
deselect item 1 and 3 - fine
deselect item 2 - class cast exception

this is the parent
class EpisodeAdapterItem(episode: EpisodeEntity)
    : ModelAbstractExpandableItem<EpisodeEntity, EpisodeAdapterItem, EpisodeAdapterItem.ViewHolder, EpisodeAdapterSubItem>(episode)

this is the sub item
class EpisodeAdapterSubItem(private val descriptionHtml: String)
    : AbstractExpandableItem<EpisodeAdapterItem, EpisodeAdapterSubItem.ViewHolder, EpisodeAdapterSubItem>()

after a little investigating i found that in the library class SelectExtension, the method public void deselect(Item item, int position, @Nullable Iterator<Integer> entries)  is called twice (not sure sure why twice): once with item as the parent (everything is fine), and the second time with item as the subitem.
the exception is thrown in the line mSelectionListener.onSelectionChanged(item, false); because the selection listener is expecting item to be of the parent type, however the second time this method is trying to pass the sub item type which causes the exception.
why is the method deselect called twice once with parent and once with sub item? is this a bug? am i doing something wrong?

potential duplicate of: https://github.com/mikepenz/FastAdapter/issues/703

doesnt look like it... my problem does not relate to search/filtering and setting item animator to null does not resolve the issue.
however maybe the issue you mentioned in your comment on onViewDetachedFromWindow() method somehow causes both #703 and my issue... any news on this since July 24th (the date of your comment)? are you still working on it?
can you please confirm whether my class definitions for parent and sub item are ok?
both the parent and sub item have different type ids, but i am only setting identifier for the parent (which is the id of the model), whereas in the sub item class i am not doing anything related to identifier. could this be related to the crash somehow?
if it helps, the item is not expanded when deselecting it

@mikepenz any news? this is an app breaking bug for me...

@or-dvir I am so sorry. was on vacation in iceland for a week and had no chance to look at anything.
I am still hoping that I can resolve the other ticket I linked you. just in case could you please create a sample app which showcases the problem or a branch to showcase the problem in the sample app, so I can hopefullly have a quicker look at it on the weekend?

no worries. nothing to apologize for. i was just wondering whats going on...
by all means, go for the linked ticket first. it might be related.
about a sample app, i will do my best but i dont think it will be within the next week as i have some other projects i must finish.

do you use the abstract expandable item for this?
could it be that the reference of parent to childs might be not done properly?

other than that I'd definitely need some sample to try to debug this. otherwise it's searching around in the dark :( sorry.

my class definitions are as above. as far as i can tell they are fine... correct me if im wrong.
ill try to make a small sample app today

@mikepenz please see this small sample app
as mention above, the crash occurs when deselecting the last item (no the item in the last index, but the last item to be deselected)
steps to reproduce the crash:
1- select any item
2- deselect that item

Ok now after seeing the problem, this one is actually rather easy described and solved.
So the problem is that you have a FastAdapter<EpisodeAdapterItem>. That would mean it only accepts this type of items. Adding a sub child adapter holding other items might be allowed (due to the fact that generics are not really helpful to prevent such a usage), but it will crash during runtime.
Instead you need to use a type for the FastAdapter which is valid across all child items you will hold in the adapter.
It might be that your implementation has a combined parent type, or it might be ModelAbstractItem, or AbstractItem, but one thing which is always true is the IItem interface.
So if you adjust the FastAdapter to be FastAdapter<*> it will allow all kind of items and it will not lead to the crash.

To be a bit more specific.
The FastAdapter is the global managing instance which wraps like an umbrella around all child adapters, thus the FastAdapter must accept all child items you might add.
If you have a FastAdapter<*> it does not matter how many different ItemAdapter, ModelAdapter with all sorts of different items you add.
but if you have a FastAdapter<FancyItem> it will only be able to handle adapters with this item type (ItemAdapter<FancyItem> or any item which extends FancyItem basically ItemAdapter<T extends FancyItem>)
Here's your code adjusted to make it work. (this btw. might not be the best thing, there are possibly other variants to have for example FastAdapter<IItem<*, *>> but having FastAdapter<*> worked during testing :D)
class ActivityMain : AppCompatActivity() {
    private lateinit var mAdapterEpisodes: ModelAdapter<EpisodeEntity, EpisodeAdapterItem>
    private lateinit var mAdapterRv: FastAdapter<*>
    private lateinit var mActionModeHelper: ActionModeHelper<*>

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)

        rv.apply {
            addItemDecoration(DividerItemDecoration(this@ActivityMain, DividerItemDecoration.VERTICAL))
            layoutManager = LinearLayoutManager(this@ActivityMain, RecyclerView.VERTICAL, false)
            setupAdapter()
            adapter = mAdapterRv
        }

        mAdapterEpisodes.add(
                EpisodeEntity("item 1"),
                EpisodeEntity("item 2"),
                EpisodeEntity("item 3"),
                EpisodeEntity("item 4"),
                EpisodeEntity("item 5"),
                EpisodeEntity("item 6"),
                EpisodeEntity("item 7"),
                EpisodeEntity("item 8"),
                EpisodeEntity("item 9"),
                EpisodeEntity("item 10")
        )
    }

    private fun setupAdapter() {
        mAdapterEpisodes = ModelAdapter { episode ->
            val subItem = listOf(EpisodeAdapterSubItem("${episode.text} sub item"))
            val finalItem = EpisodeAdapterItem(episode)
            finalItem.withSubItems(subItem)

            finalItem
        }

        mAdapterRv = FastAdapter<IItem<*, *>>().addAdapter(0, mAdapterEpisodes as IAdapter<IItem<*, *>>)
                .withSelectable(true)
                .withSelectOnLongClick(true)
                .withMultiSelect(true)
                .withOnPreClickListener { v, adapter, item, position ->
                    if (item is EpisodeAdapterItem) {
                        //if actionMode is active, it means the the users' clicks
                        //should select another item and NOT expand it
                        item.autoExpand = !mActionModeHelper.isActive
                    }
                    mActionModeHelper.onClick(item) ?: false
                }
                .withOnLongClickListener { v, adapter, item, position ->
                    //this is just so selecting an item will not trigger "onClick()"
                    true
                }
                .withOnPreLongClickListener { v, adapter, item, position ->
                    //if we have no actionMode we do not consume the event
                    mActionModeHelper.onLongClick(this, position) != null
                }
                .withSelectionListener { item, selected ->

                    //NOTE:
                    //the "selected" parameter is the state of the item AFTER
                    //the selection/de-selection

                    val numSelected = mAdapterRv.selected.size

                    //when selecting our first item on the list,
                    //collapse all expanded items.
                    //this will make it easier for the user to select more items without having
                    //to scroll past the expanded items (which may be long)
                    if (numSelected == 1)
                        mAdapterRv.collapseAll()

                    //NOTE:
                    //this if-else statement makes it so that
                    //once an item is selected, selecting other items could be done via
                    //a regular click (tap).
                    //once all items are de-selected, re-enable long click
                    //for selecting items

                    if (selected)
                        mAdapterRv.withSelectOnLongClick(false)
                    else if (numSelected == 0)
                        mAdapterRv.withSelectOnLongClick(true)
                }

        (mAdapterRv as FastAdapter<IItem<*, *>>?)!!.addExtension(ExpandableExtension<IItem<*, *>>()
                .withOnlyOneExpandedItem(true))

        mActionModeHelper = ActionModeHelper(mAdapterRv,
                R.menu.context_menu,
                object : ActionMode.Callback {
                    override fun onActionItemClicked(mode: ActionMode,
                                                     item: MenuItem): Boolean {
                        mode.finish()
                        return true
                    }

                    override fun onCreateActionMode(mode: ActionMode,
                                                    menu: Menu): Boolean {
                        return true
                    }

                    override fun onPrepareActionMode(mode: ActionMode?,
                                                     menu: Menu?): Boolean {
                        return false
                    }

                    override fun onDestroyActionMode(mode: ActionMode?) {
                        /*do nothing*/
                    }
                })
    }
}

thank you mike for this great explanation!
after reading it i have a few follow up questions if i may:

in the class SelectExtension, the method public void deselect(Item item, int position, @Nullable Iterator<Integer> entries) is called twice. once for sub item and once for parent item. i assume this is because both of those can be selectable. however, i specifically set my subitem to not be selectable. so why is this method still called? i dont think this method should be called on items which are not selectable as this will trigger the selection listener for items which are not selectable (which in my case caused the crash) and could probably lead to other bugs.
why is this only happening for the last item? i would expect it to be the same logic for every item that is deselected. is this by design? a bug?
simply using FastAdapter<*> doesnt seem right... not very object oriented. i would imagine i should use the "highest" object which is shared for both the parent and the child. am i correct? do you have an official recommendation on which type to use?
3.1. i believe that using FastAdapter<*> would also lead to future problems
please add some explanation of this (FastAdapter need to be of type shared for parent and sub item) in the readme file

1.) making an item not selectable will only prevent the user not selecting it, you can very easily still select it programatically. the programmatic selecting/deselecting is always valid.
2.) in the sample you provided it happened for all items
3.) exactly. so if you have a common type of your items you can use that. in the end the IItem is always the main thing true for all. so I believe (not sure if that's 100% right for kotlin) * would just mean that you can add all elements which implement IItem (as this type is defined in the FastAdapter generic definition.
4.) the readme does not go up to type safe usage. it uses a FastAdapter without a type. so it is not needed there. The sample showcases it in the multi type samples :)

but as this is open source. I am happy to take a PR to add this into the FAQ section

ah. i understand.
i dont know how many tests you did, but it only crashes when deselecting the last item. for example if i have items 1, 2 and 3 selected, deselecting items 2 and 3 works perfectly fine but deselecting item 1 causes a crash. so why doesnt it crash when deselecting items 3 and 2?
in the sample app (ExpandableSampleActivity) parent, subItem, subSubitem, and subSubSubItems are all of the same type (SimpleSubExpandableItem)

SOLUTION
the "trick" (as mentioned by mike) is to make the parent and sub items the same type (which in my case is AbstractExpandableItem).
for convenience, i defined this wrapper class to save me from typing <*,*,*> all the time
abstract class MyExpandableItem<VH: RecyclerView.ViewHolder>
    : AbstractExpandableItem<EpisodeAdapterItem, VH, EpisodeAdapterSubItem>()

this wrapper class is not mandatory and may change according to your own project.

then i went ahead and changed the definition of my parent and sub items
//old
class EpisodeAdapterItem(episode: EpisodeEntity)
    : ModelAbstractExpandableItem<EpisodeEntity, EpisodeAdapterItem, EpisodeAdapterItem.ViewHolder, EpisodeAdapterSubItem>(episode)
//new
class EpisodeAdapterItem(private val model: EpisodeEntity)
    : MyExpandableItem<EpisodeAdapterItem.ViewHolder>()

//old
class EpisodeAdapterSubItem(private val descriptionHtml: String)
    : AbstractExpandableItem<EpisodeAdapterItem, EpisodeAdapterSubItem.ViewHolder, EpisodeAdapterSubItem>()
//new
class EpisodeAdapterSubItem(private val descriptionHtml: String)
    : MyExpandableItem<EpisodeAdapterSubItem.ViewHolder>()

now in my Activity which holds the adapter i made the following changes:
//old line
private lateinit var mAdapterEpisodes: ModelAdapter<EpisodeEntity, EpisodeAdapterItem>
//new line
private lateinit var mAdapterEpisodes: ModelAdapter<EpisodeEntity, MyExpandableItem<*>>

//old line
private lateinit var mAdapterRv: FastAdapter<EpisodeAdapterItem>
//new line
private lateinit var mAdapterRv: FastAdapter<MyExpandableItem<*>>

in case you use ActionModeHelper, don't forget to make the same change there.
depending on your implementation, this may (and probably will) require some similar changes in other parts of your code

authors: mikepenz or-dvir

repo: mikepenz/FastAdapter


text:
Create from structure handles vfs stream file and file content

Resolves #149.

Coverage increased (+0.4%) to 94.702% when pulling 3451905465942c815f0cd0f627273a18ab8f01b5 on RadiusWebTools:create-from-structure-handles-vfsStreamFile-and-FileContent into df4610157c05e42569955ad4da91bd6b61de53c2 on mikey179:master.

A reasonable addition for this feature. Thanks for providing it!

source: gharchive/pull-request

license_type: permissive

license_source: bigquery


text:
Improvements on results (1): Phonopy versus Euphonic for phonon processing

in the pro_Euphonic branch, bands and dos are performed using euphonic code. However, we should check if this represents a real advantage or not.

[x] test performance phonopy vs euphonic, increasing meshes for properties
[x] define if phonopy should run at the end of a calculation (Harmonic/PhononWorkchain), and for what.
[ ] working result panel within the new logic of exposing outputs
[ ] add possibility to tune plots (E broadening, meshes...)

Anyway, for the inelastic neutron scattering part, euphonic will be used.

@AndresOrtegaGuerrero, so I would use:

[ ] phonopy for bands, dos, thermo (thermo is ok, I have to implement bands and dos)
[ ] euphonic for INS (in a dedicated branch, but to be adapted)
[ ] aiida-vibroscopy for Raman/IR (already there)

source: gharchive/issue

repo: mikibonacci/aiidalab-qe-vibroscopy

license: MIT

license_source: github-api


text:
Fix --persist bug and unneeded cd $SCRATCH [MT-78]

Fixes #100
Fixes an unnecessary cd $SCRATCH before salloc and sbatch on the mila cluster
Adds a banner_timeout: 200 in the connect_kwargs that are passed from fabric to paramiko.SSHClient.connect when we create a milatools.cli.remote.Remote object. This is the most "experimental" change that might require some more testing. In my experience it consistently solved a new paramiko "Unable to parse SSH banner" error that I started experiencing during tests.

Codecov Report
Attention: 15 lines in your changes are missing coverage. Please review.

Comparison is base (b823319) 61.03% compared to head (64f9b64) 60.14%.

Files
Patch %
Lines

milatools/cli/commands.py
0.00%
12 Missing :warning:

milatools/cli/remote.py
85.71%
2 Missing :warning:

milatools/cli/local.py
80.00%
1 Missing :warning:

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #101      +/-   ##
==========================================
- Coverage   61.03%   60.14%   -0.90%
==========================================
  Files           9        9
  Lines        1404     1425      +21
==========================================
  Hits          857      857
- Misses        547      568      +21

Flag
Coverage Δ

integrationtests
?

unittests
60.14% <54.54%> (-0.90%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

authors: codecov-commenter lebrice

repo: mila-iqia/milatools


text:
the difference of spr loss coefficient in the paper and the code

Dear @ankeshanand
I am trying to use your code to reproduce the result in your paper Data-Efficient Reinforcement Learning with
Self-Predictive Representations. I am a little confused about one of the hyperparameters used in your code.
In the run.py,  the model-spr-weight is set to 5. and the running command doesn't change this hyperparameter so I think the lambda coefficient of spr loss is 5. in the code. However, in the appendix of the paper on the arxiv, the listed hyperparameter of spr loss coefficient is 2. Therefore, I am wondering which one is correct. Do I misunderstand some part of the code?

Hi Yilin,
The way the code calculates the SPR loss is slightly different from how it's written up in the paper, so we adjust the loss weight in the code to compensate.  You can convert between the two by code_weight = paper_weight * K/2, where K is the prediction depth used.
Best,
Max

Hi Yilin,
The way the code calculates the SPR loss is slightly different from how it's written up in the paper, so we adjust the loss weight in the code to compensate. You can convert between the two by code_weight = paper_weight * K/2, where K is the prediction depth used.
Best,
Max

Hi Max,
So the weight should be set to 10 if K is 10? Pls correct me if I'm wrong. Thanks!

Hi Yilin,
The way the code calculates the SPR loss is slightly different from how it's written up in the paper, so we adjust the loss weight in the code to compensate. You can convert between the two by code_weight = paper_weight * K/2, where K is the prediction depth used.
Best,
Max

Hi Max,
So the weight should be set to 10 if K is 10? Pls correct me if I'm wrong. Thanks!

That would match the paper's notation, but I suspect that you would get better results by using a lower weight like 5 in that case.  Hard to say for sure without trying it, though.

authors: MaxASchwarzer geekyutao yilin-wu98

repo: mila-iqia/spr


text:
Derived type classes defined on companion object result in NullPointerException after migrating to 2.1

I've been experimenting with using the type class feature in shapeless to remove some boilerplate in the Android framework. After migrating to 2.1, these lines result in null being passed as the implicit parameter here
While I can remove the explicit definition of the type class instance and things work, this seems like a very odd behavior.

You need to remove the explicit type annotations on the cached implicits,
object Foo {
  implicit val parceler = Parceler[Foo]
}

object Bar {
  implicit val parceler = Parceler[Bar]
}

If you don't then the val being defined on the LHS will be in scope for the derivation on the RHS and you'll end up seeing the default-initialized null.
I appreciate that the normal rule for implicit definition is to always specify a type explicitly, however caching scenarios like this are an exception (I believe the only one).

Removing the explicit type parameter works.

It looks like removing the explicit type parameter causes additional issues. I'm periodically finding that I get an error looking something along the lines of symbol value inst$macro$48 does not exist in MyClass$$anonfun$3.apply -- it's resolved by adding an explicit type parameter here, but that brings back the null pointer issue.

Could you try bumping your shapeless dependency to 2.2.0-RC6 and using the new cachedImplicit infrastructure,
object Foo {
  implicit val parceler: Parceler[Foo] = cachedImplicit
}

object Bar {
  implicit val parceler: Parceler[Bar] = cachedImplicit
}

I just receive not found: value cachedImplicit

Did you update your shapeless dependency to 2.2.0-RC6?

Yes
On Fri, May 8, 2015, 2:07 AM Miles Sabin notifications@github.com wrote:

Did you update your shapeless dependency to 2.2.0-RC6?
—
Reply to this email directly or view it on GitHub
https://github.com/milessabin/shapeless/issues/345#issuecomment-100144197
.

cachedImplicit is part of that release ... have you imported it?

Looks like I needed to add some additional imports. I get the null pointer exception again using the cachedImplicit

Ping ...

I'm going to close this now. Please reopen if you can provide a reproduction.

authors: milessabin sgrif

repo: milessabin/shapeless


text:
Add support for *** Tasks *** syntax

The syntax for the *** Tasks *** is not working in Robot Framework 3.1 and PyCharm community edition 2018.3.5.

The only difference between test case and task it's just the terminology right? Maybe I can do a pull request with that.
What I'm not sure if this project is still alive. There's not activity at all.

repo: millennialmedia/intellibot


text:
Change distance_compute_blas_threshold default value from 20 to 65535

Signed-off-by: yudong.cai yudong.cai@zilliz.com
Issue: #244

/lgtm

authors: cydrain landyliu

repo: milvus-io/knowhere


text:
Refine mergify.yml

remove ci-pass when any build pipeline failed.
automic add ci-pass if not source code changed or only .md changed.

Issue: #23
Signed-off-by: Ji Bin matrixji@live.com

/cc @yhmo
/cc @ArkaprabhaChakraborty

/lgtm

authors: ArkaprabhaChakraborty matrixji

repo: milvus-io/milvus-sdk-cpp


text:
Fix orientation details export

Hello this PR is to deal with the problem discussed here: #973

[x] Add orientation computation and output it
[x] Add language detection model
[x] Add it to predictor and output result
[x] Add tests

Hi @aminemindee :wave:,
the Actions issue on GH side has destroyed anything .. build actions stucks in a Queue and i cannot trigger or cancel it (same for manual merge) :sweat_smile:
Could you please push again that we can rerun CI
git commit --allow-empty -m "trigger CI"
than push again should work without any changes :)

Thanks :)

@frgfm could you check this please i'm not able to merge this PR :thinking: (manual i get also an error: At least 1 approving review is required by reviewers with write access. :thinking: )

repo: mindee/doctr


text:
add IR fusion of BNTrainingReduceGrad&Conv2DBackpropFilter

add IR fusion of BNTrainingReduceGrad&Conv2DBackpropFilter

 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 cocteautwins

repo: mindspore-ai/mindspore


text:
PXP-516: [CLI] Fix multiple annotations support

Summary
This PR fixes an issue where only one secret is displayed when multiple annotations are passed in the same config file due to the use of a hashmap to store the data. To address this issue, we've changed the hashmap to a vector to store and display multiple datasets.

Ticket: PXP-516
What's Changed

[x] Replaced the hashmap with a vector in the annotation config to store multiple datasets.
[x] Updated the display logic to handle multiple datasets.

PR needs rebase.

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: jk-gan, mfauzaan
The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

OWNERS

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

authors: mfauzaan sauron-droid

repo: mindvalley/wukong-cli


text:
[Site] Use mineral theme

Description

Remove siteTheme and all references to it
Remove styleReset and all references to it
Change all theme variables to mineralTheme variables
Remove superfluous ThemeProvider around Nav
Remove underlines from Links in Nav
Fix bug with GitHub link in Footer

Motivation and context

This provides a more realistic foundation upon which to further improve our Site. It also served as a proving ground for the ideas in #228.
Screenshots or videos, if appropriate

How to test

cd mineral-ui/packags/site && npm start
Confirm things look right
For extra credit, go change the font-size-base value and confirm that none of the sizes change

Types of changes

New feature (non-breaking change which adds functionality)

Checklist

[x] Renders and functions properly in all supported browsers
[x] Automated tests written and passing
[x] Accessibility and inclusivity considered
[x] Rendering performance (initial load time & 60fps) and perceived performance considered [n/a]
[x] Documentation created or updated [n/a]

How does this PR make you feel?

You'll need to communicate to the team or add a story regarding the need to either encapsulate the examples or just be aware that overriding a theme value in the site will affect the examples, which is undesired.

authors: brentertz kylegach

repo: mineral-ui/mineral-ui


text:
Dapper Query 支持延迟加载，README.zh-CN.md 文件中的说法错误

README.zh-CN.md 文件中的说法错误
https://github.com/mini-software/MiniExcel/blob/master/README.zh-CN.md#5-dapper-query
 var details = conn.Query<receipt_detail>(new CommandDefinition(sql, CommandFlags.NoCache)); //必须使用NoCache
使用new CommandDefinition(sql, CommandFlags.NoCache) 可以支持延迟加载

@shaofing 谢谢👍
已更正说法

1 ，上面的demo写法不对 ， flags 前面还有可选参数，如果不按照顺序写 ，参数得是 new CommandDefinition(sql, flags: CommandFlags.NoCache)
2，不能ToList() 。
3，使用CommandFlags.NoCache时，不能使用异步QueryAsync的方法，会报连接已经关闭的异常
            var details = conn.Query<receipt_detail>(new CommandDefinition(sql, flags: CommandFlags.NoCache));             MiniExcel.SaveAs(fileName, details);

@shaofing 请问能帮忙PR吗?

https://github.com/mini-software/MiniExcel/pull/554

repo: mini-software/MiniExcel


text:
RSS Feed for starred items

The previouse version supports an own RSS feed of starred items.
This was very helpful, to integrate such kind of feeds in document management systems like DEVONthink for the Mac. I could archive in this way feeds in PDF files etc.
Is a way available to have this function in Miniflux2, perhaps over the Miniflux-API?
I don't want to use external services, like Wallabag etc.
Thank you

This can be extracted through the API. Do you have any Go knowledge?

Sorry, i have no Go knowledge.
But i think, such kind functionalities, what i'm looking for, is not only intesting for me.
Do you have an example for me?

Have a look at this: https://github.com/rogierlommers/miniflux-exporter
I creaeed this small CLI app just for my personal needs. I dump all starred items to a text file by using the -output-bookmarks flag.

Thank you, i will try it.

Sorry, but i get the error by miniflux-exporter (with my user parameters):
INFO[0000] skipping opml export (see -help for more info)
INFO[0000] skipping export of bookmarks/starred entries (see -help for more info)
-bash: JUB+y: Command not found.
Any ideas?

I think you forgot to specify the path to the output file, for example "-output-bookmarks /tmp/output.txt".

No chance. I get the same error. I tried also different variants, attributes with and without ". I compiled your source code, but with the same effect.

The tool of @rogierlommers is working fine for me:
miniflux-exporter -user foobar -pass secret -output-bookmarks /tmp/bookmarks.txt
INFO[0000] skipping opml export (see -help for more info)
INFO[0000] export 3 bookmarks done, 345 B written to file /tmp/bookmarks.txt

I let you continue this discussion on his issue tracker: https://github.com/rogierlommers/miniflux-exporter/issues

authors: fguillot maitrenageur rogierlommers

repo: miniflux/miniflux


text:
Introducing Sqlite database for wikiwoods.

This PR introduces an sqlite database for wikiwoods
and a script to convert a wikiwoods.dm file into database file - so next time when we want to update the wikiwoods with a new wikiwoods.dm file, just put the wikiwoods.dm  file in the top project and run python create_wikiwoods_db.py also I've included wikiwoods.dm file in the .gitignore.
Also includes ORM files for db access (model.py)
updated the findBestPears.py and scorePages.py to reflect the database migration.

Cool! Way to go @stultus ! LGTM!
Happy to merge. But will let others review too. :)

I've pushed this change to heroku app as well.

Very excited about this but I'm in the middle of a research grant deadline, so won't have proper look. Please merge! And yeah!

authors: minimalparts nandajavarma stultus

repo: minimalparts/PeARS

license: mit


text:
FileNotFoundError

          from automl_gs import automl_grid_search
          automl_grid_search('Housing.csv','price')

Solving a regression problem, minimizing mse using tensorflow.
Modeling with field specifications:
area: numeric
bedrooms: numeric
bathrooms: categorical
stories: categorical
mainroad: categorical
guestroom: categorical
basement: categorical
hotwaterheating: categorical
airconditioning: categorical
parking: categorical
prefarea: categorical
furnishingstatus: categorical
0% 0/100 [00:00<?, ?trial/s]
0% 0/20 [00:00<?, ?epoch/s]
FileNotFoundError                         Traceback (most recent call last)
 in
1 from automl_gs import automl_grid_search
----> 2 automl_grid_search('Housing.csv','price')
~/.local/lib/python3.6/site-packages/automl_gs/automl_gs.py in automl_grid_search(csv_path, target_field, target_metric, framework, model_name, context, num_trials, split, num_epochs, col_types, gpu, tpu_address)
85         # and append to the metrics CSV.
86         results = pd.read_csv(os.path.join(train_folder,
---> 87                                         "metadata", "results.csv"))
88         results = results.assign(**params)
89         results.insert(0, 'trial_id', uuid.uuid4())
~/.local/lib/python3.6/site-packages/pandas/io/parsers.py in parser_f(filepath_or_buffer, sep, delimiter, header, names, index_col, usecols, squeeze, prefix, mangle_dupe_cols, dtype, engine, converters, true_values, false_values, skipinitialspace, skiprows, skipfooter, nrows, na_values, keep_default_na, na_filter, verbose, skip_blank_lines, parse_dates, infer_datetime_format, keep_date_col, date_parser, dayfirst, iterator, chunksize, compression, thousands, decimal, lineterminator, quotechar, quoting, doublequote, escapechar, comment, encoding, dialect, tupleize_cols, error_bad_lines, warn_bad_lines, delim_whitespace, low_memory, memory_map, float_precision)
700                     skip_blank_lines=skip_blank_lines)
701
--> 702         return _read(filepath_or_buffer, kwds)
703
704     parser_f.name = name
~/.local/lib/python3.6/site-packages/pandas/io/parsers.py in _read(filepath_or_buffer, kwds)
427
428     # Create the parser.
--> 429     parser = TextFileReader(filepath_or_buffer, **kwds)
430
431     if chunksize or iterator:
~/.local/lib/python3.6/site-packages/pandas/io/parsers.py in init(self, f, engine, **kwds)
893             self.options['has_index_names'] = kwds['has_index_names']
894
--> 895         self._make_engine(self.engine)
896
897     def close(self):
~/.local/lib/python3.6/site-packages/pandas/io/parsers.py in _make_engine(self, engine)
1120     def _make_engine(self, engine='c'):
1121         if engine == 'c':
-> 1122             self._engine = CParserWrapper(self.f, **self.options)
1123         else:
1124             if engine == 'python':
~/.local/lib/python3.6/site-packages/pandas/io/parsers.py in init(self, src, **kwds)
1851         kwds['usecols'] = self.usecols
1852
-> 1853         self._reader = parsers.TextReader(src, **kwds)
1854         self.unnamed_cols = self._reader.unnamed_cols
1855
pandas/_libs/parsers.pyx in pandas._libs.parsers.TextReader.cinit()
pandas/_libs/parsers.pyx in pandas._libs.parsers.TextReader._setup_parser_source()
FileNotFoundError: [Errno 2] File b'automl_train/metadata/results.csv' does not exist: b'automl_train/metadata/results.csv'

Same error here occurring on multiple machines.

Same error here, re-run didn't work for me

Tip: this may be happening because the training subprocess is crashing; if so, Jupyter/ipython/colab won't show exceptions from that because it's being run in a separate process.
If you run automl_gs on the command line, you should see the exception from the model.py subprocess, (in addition to this exception), which might give you more insight into what's breaking.

Like @evan-burke said, this can happen when a subprocess crashes. Running from the command line is one option, but I was also able to see the error by looking at my Jupyter log.
(In my case the problem was automl-gs using the wrong Python version (see #26). Once I corrected that, I ran into a MemoryError.)

authors: archaeocharlie evan-burke harvitronix jaymanjunath mahesh1amour

repo: minimaxir/automl-gs


text:
can't import anything from package

importing from the package (its init.py) doesn't work.
I guess it misses an from .dispatchonvalue import *

OK, I've change it so all of these work:
import dispatchonvalue
from dispatchonvalue import *
Is this working the way you want it to?

you need from .dispatchonvalue import * so that it doesn't try to import the package itself

or just put the whole code in init.py

authors: gdamjan minimind

repo: minimind/dispatch-on-value-for-python


text:
linux gcc8 fun name error

env

system: linux amd64(archlinux)
gcc: v8.1.0
clang & llvm: v6.0.0
yasm: v1.3.0
c2goasm: last master
asm2plan9s: last master

problem
run
git clone https://github.com/minio/c2goasm.git
cd c2goasm/test/cpp
./assemble.sh ./MaddConstant.cpp
cd ../../
go build
./c2goasm -a ./test/cpp/MaddConstant.s ./test/MaddConstant_amd64.s

error
Processing ./test/cpp/MaddConstant.s
panic: Failed to find function prototype for _Z12MaddConstantPfS_S_

goroutine 1 [running]:
main.parseCompanionFile(0xc4200131c0, 0x1c, 0xc420013268, 0x16, 0x0, 0x0, 0x1, 0x40e6d9, 0x51eb80, 0xc42004d850)
        /home/zero/go-works/src/c2goasm/arguments.go:75 +0x24c
main.process(0xc420094600, 0x1e, 0x20, 0xc4200131c0, 0x1c, 0x0, 0x0, 0x0, 0x0, 0x0)
        /home/zero/go-works/src/c2goasm/c2goasm.go:86 +0x205
main.main()
        /home/zero/go-works/src/c2goasm/c2goasm.go:264 +0x390

Try to repair
diff --git a/subroutine.go b/subroutine.go
index 00d98f7..c6b3ec4 100644
--- a/subroutine.go
+++ b/subroutine.go
@@ -266,7 +266,7 @@ func extractNamePart(part string) (int, string) {
 func extractName(name string) string {

        // Only proceed for C++ mangled names
-       if !(strings.HasPrefix(name, "_ZN") || strings.HasPrefix(name, "__Z")) {
+       if !(strings.HasPrefix(name, "_ZN") || strings.HasPrefix(name, "__Z") || strings.HasPrefix(name, "_Z")) {
                return name
        }

but run go test -v ./... has error
FAIL    c2goasm/cgocmp [build failed]
=== RUN   TestMaddArgs10
--- PASS: TestMaddArgs10 (0.00s)
=== RUN   TestMaddConstant
unexpected fault address 0x0
fatal error: fault
[signal SIGSEGV: segmentation violation code=0x80 addr=0x0 pc=0x4e7ba3]

goroutine 6 [running]:
runtime.throw(0x52fa3b, 0x5)
        /usr/lib/go/src/runtime/panic.go:616 +0x81 fp=0xc420039e00 sp=0xc420039de0 pc=0x428a91
runtime.sigpanic()
        /usr/lib/go/src/runtime/signal_unix.go:395 +0x211 fp=0xc420039e50 sp=0xc420039e00 pc=0x43bc61
c2goasm/test._MaddConstant(0xc420039ea0, 0xc420039ec0, 0xc420039e70)
        /home/zero/go-works/src/c2goasm/test/MaddConstant_amd64.s:11 +0x13 fp=0xc420039e58 sp=0xc420039e50 pc=0x4e7ba3
c2goasm/test.MaddConstant(0x3f80000000000000, 0x4040000040000000, 0x40a0000040800000, 0x40e0000040c00000, 0x4000000000000000, 0x40c0000040800000, 0x4120000041000000, 0x4160000041400000, 0x0, 0x0, ...)
        /home/zero/go-works/src/c2goasm/test/MaddConstant_amd64.go:17 +0x5c fp=0xc420039ea0 sp=0xc420039e58 pc=0x4e5f3c
c2goasm/test.TestMaddConstant(0xc4200a21e0)
        /home/zero/go-works/src/c2goasm/test/MaddConstant_test.go:17 +0xd2 fp=0xc420039fa8 sp=0xc420039ea0 pc=0x4e65f2
testing.tRunner(0xc4200a21e0, 0x538520)
        /usr/lib/go/src/testing/testing.go:777 +0xd0 fp=0xc420039fd0 sp=0xc420039fa8 pc=0x4ad900
runtime.goexit()
        /usr/lib/go/src/runtime/asm_amd64.s:2361 +0x1 fp=0xc420039fd8 sp=0xc420039fd0 pc=0x454c51
created by testing.(*T).Run
        /usr/lib/go/src/testing/testing.go:824 +0x2e0

goroutine 1 [chan receive]:
testing.(*T).Run(0xc4200a21e0, 0x53176a, 0x10, 0x538520, 0x465d01)
        /usr/lib/go/src/testing/testing.go:825 +0x301
testing.runTests.func1(0xc4200a2000)
        /usr/lib/go/src/testing/testing.go:1063 +0x64
testing.tRunner(0xc4200a2000, 0xc42004ddf8)
        /usr/lib/go/src/testing/testing.go:777 +0xd0
testing.runTests(0xc42000a080, 0x5da340, 0x7, 0x7, 0x40e959)
        /usr/lib/go/src/testing/testing.go:1061 +0x2c4
testing.(*M).Run(0xc42009e000, 0x0)
        /usr/lib/go/src/testing/testing.go:978 +0x171
main.main()
        _testmain.go:56 +0x151
FAIL    c2goasm/test    0.003s

asm source
test/cpp/MaddConstant.s
	.file	"MaddConstant.cpp"
	.intel_syntax noprefix
	.text
	.p2align 4,,15
	.globl	_Z12MaddConstantPfS_S_
	.type	_Z12MaddConstantPfS_S_, @function
_Z12MaddConstantPfS_S_:
	vmovaps	ymm0, YMMWORD PTR [rdi]
	vmovaps	ymm1, YMMWORD PTR _ZL1a[rip]
	vfmadd132ps	ymm0, ymm1, YMMWORD PTR [rsi]
	vmovups	XMMWORD PTR [rdx], xmm0
	vextractf128	XMMWORD PTR 16[rdx], ymm0, 0x1
	vzeroupper
	ret
	.size	_Z12MaddConstantPfS_S_, .-_Z12MaddConstantPfS_S_
	.section	.rodata
	.align 32
	.type	_ZL1a, @object
	.size	_ZL1a, 32
_ZL1a:
	.long	1065353216
	.long	1073741824
	.long	1077936128
	.long	1082130432
	.long	1084227584
	.long	1086324736
	.long	1088421888
	.long	1090519040
	.ident	"GCC: (GNU) 8.1.0"
	.section	.note.GNU-stack,"",@progbits

test/MaddConstant_amd64.s
//+build !noasm !appengine
// AUTO-GENERATED BY C2GOASM -- DO NOT EDIT

TEXT ·_MaddConstant(SB), $0-24

    MOVQ vec1+0(FP), DI
    MOVQ vec2+8(FP), SI
    MOVQ result+16(FP), DX

    LONG $0x0728fcc5             // vmovaps    ymm0, YMMWORD PTR [rdi]
    QUAD $0x000000000d28fcc5     // vmovaps    ymm1, YMMWORD PTR _ZL1a[rip]
    LONG $0x9875e2c4; BYTE $0x06 // vfmadd132ps    ymm0, ymm1, YMMWORD PTR [rsi]
    LONG $0x0211f8c5             // vmovups    XMMWORD PTR [rdx], xmm0
    LONG $0x197de3c4; WORD $0x1042; BYTE $0x01 // vextractf128    XMMWORD PTR 16[rdx], ymm0, 0x1
    VZEROUPPER
    RET

source by my fork

Can you try to compile with clang (as opposed to GCC)?

@fwessels
use clang
diff --git a/test/cpp/assemble.sh b/test/cpp/assemble.sh
index 4bf4096..48d39c0 100755
--- a/test/cpp/assemble.sh
+++ b/test/cpp/assemble.sh
@@ -1 +1 @@
-c++ -O3 -mavx -mfma -masm=intel -fno-asynchronous-unwind-tables -fno-exceptions -fno-rtti -S $1
+clang -O3 -mavx -mfma -masm=intel -fno-asynchronous-unwind-tables -fno-exceptions -fno-rtti -S $1

MaddConstant test passed but other Test does not pass
/test/cpp/MaddArgs10.s
	.text
	.intel_syntax noprefix
	.file	"MaddArgs10.cpp"
	.globl	_Z10MaddArgs10PfS_S_S_S_S_S_S_S_S_ # -- Begin function _Z10MaddArgs10PfS_S_S_S_S_S_S_S_S_
	.p2align	4, 0x90
	.type	_Z10MaddArgs10PfS_S_S_S_S_S_S_S_S_,@function
_Z10MaddArgs10PfS_S_S_S_S_S_S_S_S_:     # @_Z10MaddArgs10PfS_S_S_S_S_S_S_S_S_
# %bb.0:
	push	rbx
	mov	r10, qword ptr [rsp + 40]
	mov	r11, qword ptr [rsp + 32]
	mov	rax, qword ptr [rsp + 16]
	mov	rbx, qword ptr [rsp + 24]
	vmovaps	ymm0, ymmword ptr [rdi]
	vmovaps	ymm1, ymmword ptr [rsi]
	vmovaps	ymm2, ymmword ptr [rcx]
	vmovaps	ymm3, ymmword ptr [r9]
	vmovaps	ymm4, ymmword ptr [rbx]
	vfmadd213ps	ymm1, ymm0, ymmword ptr [rdx]
	vfmadd213ps	ymm1, ymm2, ymmword ptr [r8]
	vfmadd213ps	ymm1, ymm3, ymmword ptr [rax]
	vfmadd213ps	ymm1, ymm4, ymmword ptr [r11]
	vmovups	ymmword ptr [r10], ymm1
	pop	rbx
	vzeroupper
	ret
.Lfunc_end0:
	.size	_Z10MaddArgs10PfS_S_S_S_S_S_S_S_S_, .Lfunc_end0-_Z10MaddArgs10PfS_S_S_S_S_S_S_S_S_
                                        # -- End function

	.ident	"clang version 6.0.0 (tags/RELEASE_600/final)"
	.section	".note.GNU-stack","",@progbits

test/MaddArgs10_amd64.s
//+build !noasm !appengine
// AUTO-GENERATED BY C2GOASM -- DO NOT EDIT

TEXT ·_MaddArgs10(SB), $40-80

    MOVQ vec1+0(FP), DI
    MOVQ vec2+8(FP), SI
    MOVQ vec3+16(FP), DX
    MOVQ vec4+24(FP), CX
    MOVQ vec5+32(FP), R8
    MOVQ vec6+40(FP), R9
    MOVQ vec7+48(FP), R10
    MOVQ vec8+56(FP), R11
    MOVQ vec9+64(FP), R12
    MOVQ result+72(FP), R13
    ADDQ $8, SP
    MOVQ R13, 24(SP)
    MOVQ R12, 16(SP)
    MOVQ R11, 8(SP)
    MOVQ R10, 0(SP)

    LONG $0x24548b4c; BYTE $0x28 // mov    r10, qword [rsp + 40]
    LONG $0x245c8b4c; BYTE $0x20 // mov    r11, qword [rsp + 32]
    LONG $0x24448b48; BYTE $0x10 // mov    rax, qword [rsp + 16]
    LONG $0x245c8b48; BYTE $0x18 // mov    rbx, qword [rsp + 24]
    LONG $0x0728fcc5             // vmovaps    ymm0, yword [rdi]
    LONG $0x0e28fcc5             // vmovaps    ymm1, yword [rsi]
    LONG $0x1128fcc5             // vmovaps    ymm2, yword [rcx]
    LONG $0x287cc1c4; BYTE $0x19 // vmovaps    ymm3, yword [r9]
    LONG $0x2328fcc5             // vmovaps    ymm4, yword [rbx]
    LONG $0xa87de2c4; BYTE $0x0a // vfmadd213ps    ymm1, ymm0, yword [rdx]
    LONG $0xa86dc2c4; BYTE $0x08 // vfmadd213ps    ymm1, ymm2, yword [r8]
    LONG $0xa865e2c4; BYTE $0x08 // vfmadd213ps    ymm1, ymm3, yword [rax]
    LONG $0xa85dc2c4; BYTE $0x0b // vfmadd213ps    ymm1, ymm4, yword [r11]
    LONG $0x117cc1c4; BYTE $0x0a // vmovups    yword [r10], ymm1
    SUBQ $8, SP
    VZEROUPPER
    RET

test error
=== RUN   TestMaddArgs10
runtime: unexpected return pc for c2goasm/test._MaddArgs10 called from 0xc420039ce0
stack: frame={sp:0xc420052c30, fp:0xc420052c68} stack=[0xc420052000,0xc420053000)
000000c420052b30:  0000000000000000  0000000000000000
000000c420052b40:  0000000000000000  0000000000000000
000000c420052b50:  000000000042947c <runtime.gwrite+76>  0000000000533921
000000c420052b60:  0000000000000019  0000000000000019
000000c420052b70:  0000000000000000  0000000000000000
000000c420052b80:  000000c420052bd0  0000000000429cfd <runtime.printstring+125>
000000c420052b90:  0000000000533921  0000000000000019
000000c420052ba0:  0000000000000019  0000000000533921
000000c420052bb0:  0000000000000019  0000000000533921
000000c420052bc0:  0000000000000019  0000000000000019
000000c420052bd0:  000000c420052c20  000000000043bc30 <runtime.sigpanic+480>
000000c420052be0:  0000000000533921  0000000000000019
000000c420052bf0:  000000000000000f  000000c420039c20
000000c420052c00:  0000000000000000  000000c420001080
000000c420052c10:  00000000005adb60  000000000000000f
000000c420052c20:  000000c420052c50  00000000004e7b5f <c2goasm/test._MaddArgs10+127>
000000c420052c30: <000000c420039da0  000000c420039dc0
000000c420052c40:  000000c420039de0  000000c420039cb0
000000c420052c50:  000000c420039cd0  00000000004e5ea1 <c2goasm/test.MaddArgs10+193>
000000c420052c60: !000000c420039ce0 >000000c420039d00
000000c420052c70:  000000c420039d20  000000c420039d40
000000c420052c80:  000000c420039d60  000000c420039d80
000000c420052c90:  000000c420039da0  000000c420039dc0
000000c420052ca0:  000000c420039de0  000000c420039cb0
000000c420052cb0:  0000000000000000  0000000000000000
000000c420052cc0:  0000000000000000  0000000000000000
000000c420052cd0:  000000c420039f98  00000000004e6343 <c2goasm/test.TestMaddArgs10+627>
000000c420052ce0:  3f80000000000000  4040000040000000
000000c420052cf0:  40a0000040800000  40e0000040c00000
000000c420052d00:  4000000000000000  40c0000040800000
000000c420052d10:  4120000041000000  4160000041400000
000000c420052d20:  4000000000000000  40c0000040800000
000000c420052d30:  4120000041000000  4160000041400000
000000c420052d40:  4000000000000000  40c0000040800000
000000c420052d50:  4120000041000000  4160000041400000
000000c420052d60:  4000000000000000
fatal error: unknown caller pc

runtime stack:
runtime.throw(0x531d00, 0x11)
        /usr/lib/go/src/runtime/panic.go:616 +0x81
runtime.gentraceback(0xffffffffffffffff, 0xffffffffffffffff, 0x0, 0xc420001080, 0x0, 0x0, 0x7fffffff, 0x538710, 0x7ffe2fb8ccf8, 0x0, ...)
        /usr/lib/go/src/runtime/traceback.go:257 +0x1bdb
runtime.copystack(0xc420001080, 0x1000, 0x1)
        /usr/lib/go/src/runtime/stack.go:891 +0x270
runtime.newstack()
        /usr/lib/go/src/runtime/stack.go:1063 +0x30f
runtime.morestack()
        /usr/lib/go/src/runtime/asm_amd64.s:480 +0x89

goroutine 5 [copystack]:
runtime.recordForPanic(0x533921, 0x19, 0x19)
        /usr/lib/go/src/runtime/print.go:40 +0x115 fp=0xc420052b58 sp=0xc420052b50 pc=0x429335
runtime.gwrite(0x533921, 0x19, 0x19)
        /usr/lib/go/src/runtime/print.go:90 +0x4c fp=0xc420052b90 sp=0xc420052b58 pc=0x42947c
runtime.printstring(0x533921, 0x19)
        /usr/lib/go/src/runtime/print.go:237 +0x7d fp=0xc420052be0 sp=0xc420052b90 pc=0x429cfd
runtime.sigpanic()
        /usr/lib/go/src/runtime/signal_unix.go:394 +0x1e0 fp=0xc420052c30 sp=0xc420052be0 pc=0x43bc30
runtime: unexpected return pc for c2goasm/test._MaddArgs10 called from 0xc420039ce0
stack: frame={sp:0xc420052c30, fp:0xc420052c68} stack=[0xc420052000,0xc420053000)
000000c420052b30:  0000000000000000  0000000000000000
000000c420052b40:  0000000000000000  0000000000000000
000000c420052b50:  000000000042947c <runtime.gwrite+76>  0000000000533921
000000c420052b60:  0000000000000019  0000000000000019
000000c420052b70:  0000000000000000  0000000000000000
000000c420052b80:  000000c420052bd0  0000000000429cfd <runtime.printstring+125>
000000c420052b90:  0000000000533921  0000000000000019
000000c420052ba0:  0000000000000019  0000000000533921
000000c420052bb0:  0000000000000019  0000000000533921
000000c420052bc0:  0000000000000019  0000000000000019
000000c420052bd0:  000000c420052c20  000000000043bc30 <runtime.sigpanic+480>
000000c420052be0:  0000000000533921  0000000000000019
000000c420052bf0:  000000000000000f  000000c420039c20
000000c420052c00:  0000000000000000  000000c420001080
000000c420052c10:  00000000005adb60  000000000000000f
000000c420052c20:  000000c420052c50  00000000004e7b5f <c2goasm/test._MaddArgs10+127>
000000c420052c30: <000000c420039da0  000000c420039dc0
000000c420052c40:  000000c420039de0  000000c420039cb0
000000c420052c50:  000000c420039cd0  00000000004e5ea1 <c2goasm/test.MaddArgs10+193>
000000c420052c60: !000000c420039ce0 >000000c420039d00
000000c420052c70:  000000c420039d20  000000c420039d40
000000c420052c80:  000000c420039d60  000000c420039d80
000000c420052c90:  000000c420039da0  000000c420039dc0
000000c420052ca0:  000000c420039de0  000000c420039cb0
000000c420052cb0:  0000000000000000  0000000000000000
000000c420052cc0:  0000000000000000  0000000000000000
000000c420052cd0:  000000c420039f98  00000000004e6343 <c2goasm/test.TestMaddArgs10+627>
000000c420052ce0:  3f80000000000000  4040000040000000
000000c420052cf0:  40a0000040800000  40e0000040c00000
000000c420052d00:  4000000000000000  40c0000040800000
000000c420052d10:  4120000041000000  4160000041400000
000000c420052d20:  4000000000000000  40c0000040800000
000000c420052d30:  4120000041000000  4160000041400000
000000c420052d40:  4000000000000000  40c0000040800000
000000c420052d50:  4120000041000000  4160000041400000
000000c420052d60:  4000000000000000
c2goasm/test._MaddArgs10(0xc420039d00, 0xc420039d20, 0xc420039d40, 0xc420039d60, 0xc420039d80, 0xc420039da0, 0xc420039dc0, 0xc420039de0, 0xc420039cb0, 0x0)
        /home/zero/go-works/src/c2goasm/test/MaddArgs10_amd64.s:30 +0x7f fp=0xc420052c68 sp=0xc420052c30 pc=0x4e7b5f
created by testing.(*T).Run
        /usr/lib/go/src/testing/testing.go:824 +0x2e0

goroutine 1 [chan receive]:
testing.(*T).Run(0xc4200a20f0, 0x5311d9, 0xe, 0x538518, 0x465d36)
        /usr/lib/go/src/testing/testing.go:825 +0x301
testing.runTests.func1(0xc4200a2000)
        /usr/lib/go/src/testing/testing.go:1063 +0x64
testing.tRunner(0xc4200a2000, 0xc42004ddf8)
        /usr/lib/go/src/testing/testing.go:777 +0xd0
testing.runTests(0xc42000a080, 0x5da340, 0x7, 0x7, 0x40e959)
        /usr/lib/go/src/testing/testing.go:1061 +0x2c4
testing.(*M).Run(0xc42009e000, 0x0)
        /usr/lib/go/src/testing/testing.go:978 +0x171
main.main()
        _testmain.go:56 +0x151
FAIL    c2goasm/test    0.004s

@fwessels
So what about has？

authors: fwessels zeromake


text:
Add blurb on NTP Time Sync for hosts

Summary
Operations in any distributed system tend to require accurate system clocks.
Most hosts should have a built-in way to synchronize time, and we should add that to our software checklist.
Essentially ensuring that ntp or something similar is running, and that all nodes have the same UTC datetime.
Skew in clocks can result in a variety of issues, including internode issues.
Goals

[ ] Update the Software Checklist with system clock sync
[ ] Maybe talk about checking ntp and timedatectl ?
[ ] This could be good to add as a pre-requisite to our deploy tutorials, though it somewhat falls under the "Make sure your nodes aren't broken before installing MinIO" kind of rule

Check different Linux upstreams to see how they handle.

repo: minio/docs


text:
Allow updates to tick formats on load

This PR adds the ability to specify tick formats as part of the load config.

@jm Which app do you need this on?  Giving and Groups should both be using the grouving branch, which already has this functionality.  Maybe one of those apps isn't pinned to the right branch?

@molawson Giving is where the issue is manifesting, but it looks to be properly pinned in both package.json and yarn.lock.  And it definitely is showing the problem locally and on production, which is odd.  I thought maybe we hadn't rebuilt them in the repo, but that doesn't seem to be the case either.

authors: jm molawson


text:
🔥  Decommission github-actions-moj-CoFBZ3xV EKS cluster

Proposal
Decommission github-actions-moj-CoFBZ3xV EKS cluster in analytical-platform-management-production.
Definition of Done

[ ] Remove the any code that builds this cluster
[ ] Apply the removal
[ ] Confirm deletion

@jacobwoffenden @Gary-H9 need more info/link to miro

repo: ministryofjustice/analytical-platform


text:
Fix for a old link

The content was updated, but the old URL was left in.
This change fixes that.

@dotemacs - looks good to me, thanks

authors: dotemacs leighmoney

repo: ministryofjustice/atet


text:
🔍 Investigation Needed: Incident #386206 and Auto-Resolution

Description
When I was on support on 02/02/24, I consistently received emails from PagerDuty indicating that I had an open incident assigned to me:
INCIDENT: #386206
Cluster: rds-eks-production-control-panel-psg-db-encrypted-low-freeable-memory
Issue Details
However, upon checking the incident details, it appears to be resolved. I suspect there might have been a memory issue in one of the clusters, and the system may have automatically resolved it.
Steps to Reproduce
N/A (incident was automatically resolved)
Expected Behavior
Provide insights or investigation on the potential memory issue in the mentioned cluster.
Additional Information

Link to PagerDuty Incident Details
More logs or error messages

Summary
Control Panel's RDS instance is db.t3.micro (2vCPU, 1GB RAM) https://github.com/ministryofjustice/data-platform/blob/4b9253cd26e7f494b3374abc1064ee543941dc6e/terraform/aws/analytical-platform-production/cluster/terraform.tfvars#L54
The alarm is configured https://github.com/ministryofjustice/data-platform/blob/4b9253cd26e7f494b3374abc1064ee543941dc6e/terraform/aws/analytical-platform-production/cluster/cloudwatch-alarms.tf#L223-L240 to alert when freeable memory drops below 128MB https://github.com/ministryofjustice/data-platform/blob/4b9253cd26e7f494b3374abc1064ee543941dc6e/terraform/aws/analytical-platform-production/cluster/terraform.tfvars#L102

looking at the logs this issue looks to have stopped on the 5/2/24

when the freeable memory jumped from an average of around 127M to 212M.
I have not been able to find a reason for this in any logs still avaialbale.

Looking at the documentation for a RDS PostgreSQL instance there does not appear to be any memory structures that could be tuned to help with this alert when it occurs.
If we did want to fix this (not currently occurring) issue we would have to increase the instance size as suggested.

Looking at the incidents raised in pager duty i can see that this issue was first alerted 17/1/24

Closing this ticket, new issue raised to look at log retention here

repo: ministryofjustice/data-platform


text:
Explore Glue’s inbuilt data quality check

Investigate on the Glue’s inbuilt data quality check
Also investigate - package - database-testing-tools if that will suitable for our usecase. Here's a video produced by DMET demonstrating the package
As a data producer
I want to validate my data is correct and complete
so that the quality of my data is transparent

https://docs.aws.amazon.com/glue/latest/dg/dqdl.html

Automatic dq checks should be done and made available as part of a data product's metadata. We can implement these, they can be fairly light touch eg completeness. These should not cause any error or prevent a data product from being onboarded. This does not include schema checks. If a data append does not match the schema recorded in the data catalogue an error should be thrown.
Custom dq checks will need to be incorporated into the transformation pipeline logic which is created with a data product.

https://docs.aws.amazon.com/glue/latest/ug/tutorial-data-quality.html

https://dsdmoj.atlassian.net/wiki/spaces/DataPlatform/pages/4421223633/Data+Quality+Patterns writeup

authors: ChikC murdo-moj


text:
Upgrade rails and gems

It's a Rails security upgrade to 4.2.5. I also upgraded all other gems to the latest possible versions.

Looks good to me. :+1:

authors: colinbruce dotemacs novotnyjakub

repo: ministryofjustice/fr-staffapp


text:
Discriminator premises openapi

In a nutshell, split the response type from the get all premises and get premises by ID endpoints into 3 entities:

One containing common properties
One for AP specific properties that extends the common one
Another for TA specific properties that extends the common one

Commit messages explain in more detail.

 Spike: Clean approach for CAS1/CAS3 specific fields in API

Do you anticipate complexity with more involved differences, e.g. the need to calculate occupancy based on premises.bedCount or via premises.beds.count?

I think the availableBedsForToday property should be OK.  CAS3 might need to do a similar thing for the /premises/{premisesId}/capacity endpoint though to return a per-bed response for each day instead


text:
NON-215: Ability to filter non-associations by prison for "between"/"involving" endpoints

optional prisonId query param
when provided information about the prisoners are retrieved and only non-associations between prisoners which are both at the given prison are returned
response format is unchanged

@xoen I think this endpoint is not what the appointments team asked for.
They just want a list of all non-associations for each prisoner included in a given list.
Yes they can filter by active / inactive but I think the prison filtering is less important.
The upshot is that a non-association should still be returned even if not in the list - if they have one with that prisoner.

They just want a list of all non-associations for each prisoner included in a given list.
[...]
The upshot is that a non-association should still be returned even if not in the list - if they have one with that prisoner.

@Mjwillis that's what the POST /non-associations/involving endpoint does (logic was added in this other PR)
For example, if you say give me non-associations for prisoners A, B and C all their non-associations will be returned (even if the other prison is not in the provided list), e.g.

(A, B) and (A, Z) will be returned (because at least one of the prisoners provided is involved)
(X, Y) or (Z, D) will not (because none of the prisoners in these non-associations were provided)

Hope that makes sense ☺

authors: Mjwillis xoen


text:
Update database ami to align to preprod.

Bit of misalignment when migrating from branch based development to trunk based.

Looks good for AMI deployment to preProd

authors: ben-moore-moj garygrantjustice


text:
Added a hidden link to the current commit to the body of the page.

Please don't merge until @mikepea has had a chance to ensure that the META file in question is, in fact JSON.

I really wanted to avoid having to view the source.

repo: ministryofjustice/prison-visits


text:
Migrate to python 3

We now have several Backports from python 3 libs and no real dependency which  prevents us from upgrading.
If I remember correctly then the subprocess module is faster in python 3 :)

Still not tested for distributed mode since acceptance tests are lacking ...


text:
🛑 Shoelace is down

In 8cad467, Shoelace (https://shoelace.mint.lgbt) was down:

HTTP code: 502
Response time: 658 ms

Resolved: Shoelace is back up in 261ee1d after 29 minutes.

repo: mint-lgbt/status


text:
Double authentication prompt Email/2FA issue

I followed the workaround on issue #258 and set up 2FA MFA Authenticator token but still unable to get automatic MFA login working. It seems like Mint is doing both sending a verification code to my email and then also requiring the code from Authenticator to complete the login.
Due to this, the code is exiting with errors:
raise exception_class(message, screen, stacktrace) selenium.common.exceptions.ElementNotInteractableException: Message: element not interactable   (Session info: chrome=92.0.4515.159)
Full traceback: https://gist.github.com/chinmayjade/dea7f7d1c86ed6d43b1d9d26cfd66960
I have correctly set mfa_method='soft-token' and mfa_token=manual_key
manual_key is a var which stores the manual key from intuit.
Interestingly, I have set the backup method to text message, but I still get a email code every time.
Order of prompts: Email -> token

I’ve had the same issue as you and also tried the soft token fix. Regardless, I still get the email. I’ve poorly hacked the code to determine what mint wants (e.g email code or password) based on what UX control is visible.  My crappy workaround has been working 99% of the time for the past 6 months.

Does #272 address this issue by chance? If not, happy to review a PR that would handle this use-case :)

#272 fix does not seem to have any effect on this issue.

Looks like this is a duplicate of #254

Duplicate of #254

authors: KOEPKEJR chinmayjade jaron-l mrooney

repo: mintapi/mintapi


text:
Wallet-cli commands and rpc calls return incorrect decimal amount for tokens with non-default number of decimals.

E.g. if I have a token with 6 decimals and a utxo with 100 tokens of that kind, account-utxos would print something like "amount":{"atoms":"100000000","decimal":"0.001"}. I.e. the amount of atoms would be correct, but the decimal amount would be calculated using the default number of decimals.
Same happens for standalone-multisig-utxos.
Rpc calls, like get_multisig_utxos, also have this issue.

Hi, @solthereum. Have a look at our open positions. If you find one that interests you, you can apply by filling in the recruitment form.

repo: mintlayer/mintlayer-core


text:
Create command line arguments to set genesis staking keys, VRF keys, and pool Id

This is the last item for #1004

This is looking fine. I'll review again after addressing the comments.

authors: TheQuantumPhysicist alfiedotwtf


text:
Numpy style

Will you support also numpy style in the future for python? https://numpydoc.readthedocs.io/en/latest/format.html

VolodyaCO

On it

@hanywang2 wow that would be so great!!!

Added support at #28

repo: mintlify/vscode-docs


text:
网易七鱼在线客服组件

许多企业站点都有在线客服的需求，本组件结合网易七鱼在线客服js而制作，本地mip validateelement验证通过。支持mip建设，感谢！

@Italia458 1. 新增组件，请参考组件平台使用文档走平台提交流程；
2. 请问引入的三方js作用是什么？是否可以提供一个具体的查看地址

你好，文档page not found。网易七鱼的官网是 http://qiyukf.com/  ，有邮箱的话可以发一下我这边的token给你在本地演示一下的。主要就是一个在线客服接入，满足符合mip的页面较验要求。

@Italia458 文档地址已更新！

看到了，提交上去试了下。你们真行，空格都不放过。

repo: mipengine/mip-extensions


text:
反馈:docs/components/layout/mip-carousel.md

该组件自动切图的时候，每次都要请求服务器加载图片，这是不是BUG

https://github.com/mipengine/mip2/issues/708
问题已重复，正在排期修复

authors: clark-t ivanfjz


text:
Add iosX64 and iosArm64 targets

Add iosX64 and iosArm64 targets to nativeTargets.
For more details see issue #464

I've included your commit into #37

authors: CommanderTvis iliamikulik

repo: mipt-npm/gradle-tools


text:
Added Divider95 Widget

Added Tests, Example, Docs

Thanks for the contribution!


text:
API discussion

I looked through the API (various points apply as well for mirage-kv, which imho mirage-fs should extend, rather than having similar functions defined multiple times (such as read / mem / size / error), and have various thoughts (I can see some room for improvement):

path is currently a string, which basically means each implementation needs to do with normalisation on their own.  we should consider to use Fpath.t from https://github.com/dbuenzli/fpath
the page aligned bits are imho not necessary here
read requires both offset and length, which should be optional (and int64, as done in mirage-kv)
read also returns a Cstruct.t list, which should be a Cstruct.t
provide readv and writev for Cstruct.t list
write requires an offset atm, should be optional
semantics of write: add padding bytes if writing at some offset?  maybe some options such as append and truncate will be useful?
error semantics (and specification): e.g. fail hard in read if specified offset and length are inappropriate (-1 or bigger than file), specify which errors are to be returned in which cases
remove create, it's the same as write with Cstruct.empty

maybe it would be worth to specify a nice interface for the user, and then another one which implementations needs to satisfy.  the bounds checks and other common code could then be implemented within this library, rather than in each implementation.

What do you think?  And who is maintaining any implementations of this interface?  mirage-fs-unix and fat-filesystem come to mind, git-mirage as well.

write_error should include Directory_not_empty, mirage-fs-unix and mirage-fs-mem extend their write_error already with this variant.

I think these are all sensible changes that would've made sense to include in Mirage 3, and I regret that they didn't make it.

All of this make sense. Please burn the current mirage-fs interface, it was only made as a proof-of-concept for the FAT backend.

first step is a revision of mirage-kv interface at https://github.com/mirage/mirage-kv/pull/12, please let me know what you think (we'll try to find the consumers and update them as well next week).

I propose that key becomes an abstract type in KV / KV_RO. It could become a string for KV and an Fpath.t for FS and something else for Irmin.
But I am just not totally sure that we want the full complexity of Fpath.t for this (e.g. we don't care about volumes and windows). Irmin uses this (and usually have reverse lists to represent paths to speed-up basename/dirname operations).

the page aligned bits are imho not necessary here

It might be worth considering a general interface for page-aligned streaming, that could be used by all the I/O backends.  It's extremely pervasive to have this requirement for high performance I/O, and is particularly painful to ensure (without a data copy) ahead of time.  And for the common usecase usecase of proxies, it is also very easy to implement as pages can be transferred via DMA.
However, I do agree that exposing it directly from mirage-fs makes it a hard to use interface as-is...

largely superseeded by https://github.com/mirage/mirage-kv/pull/14 and https://github.com/mirage/mirage-kv/issues/16 -- we're phasing out the mirage-fs interface, and instead providing the Mirage_kv.RW interface. let's move the discussion to mirage-kv.

authors: avsm hannesm samoht yomimono

repo: mirage/mirage-fs

license: ISC


text:
Adding OSError Handling to camb Imports

Changed ares/physics/HaloMassFunction.py and ares/physics/InitialConditions.py and their imports of camb to except OSErrors as well.

Thanks!

authors: JudahRockLuberto mirochaj

repo: mirochaj/ares


text:
Mise a jour recalbox et probleme ioctl

Salut miroof, je suis entrain de mettre a jour le systeme et virtual-gamepad me fait ca, lorsque je me connecte depuis mon navigateur :
/usr/node-virtual-gamepads/node_modules/ioctl/index.js:9
throw e;
^
Error: ioctl -25
at module.exports (/usr/node-virtual-gamepads/node_modules/ioctl/index.js:6:17)
at /usr/node-virtual-gamepads/app/virtual_gamepad.js:30:13
at FSReqWrap.oncomplete (fs.js:95:15)
T'as une idée de quoi ca peut venir ?

Salut Lumberjack,
Je jette un coup d'œil au plus vite (pas avant demain au boulot pcq je n'ai
pas de PC perso).
Miroof
Le mar. 17 nov. 2015 à 19:35, digitalLumberjack notifications@github.com
a écrit :

Salut miroof, je suis entrain de mettre a jour le systeme et
virtual-gamepad me fait ca, lorsque je me connecte depuis mon navigateur :
/usr/node-virtual-gamepads/node_modules/ioctl/index.js:9
throw e;
^
Error: ioctl -25
at module.exports
(/usr/node-virtual-gamepads/node_modules/ioctl/index.js:6:17)
at /usr/node-virtual-gamepads/app/virtual_gamepad.js:30:13
at FSReqWrap.oncomplete (fs.js:95:15)
T'as une idée de quoi ca peut venir ?
—
Reply to this email directly or view it on GitHub
https://github.com/miroof/node-virtual-gamepads/issues/8.

Salut Lumberjack,
Qu'as-tu mis à jour exactement ? La version de Node ?

Salut, c'est toujours la même version de node (0.12.7), j'ai mis a jour le buildroot tout entier (donc pas mal de logiciels on été updaté).

@digitalLumberjack, have you been able to solve this problem?

It's solved for a long time ago :) but there are new error.

authors: MikaXII digitalLumberjack miroof roba91

repo: miroof/node-virtual-gamepads


text:
Update list settings types

I want to merge this change because... it updates list settings types.

PR intended to be tested with API branch:  master
Screenshots

Pull Request Checklist

[ ] This code contains UI changes
[ ] All visible strings are translated with proper context including data-formatting
[ ] Attributes [data-test-id] are added for new elements
[ ] Changes are mentioned in the changelog
[ ] The changes are tested in different browsers and in light/dark mode

Test environment config

API_URI=https://qa.staging.saleor.cloud/graphql/

Task linked: SALEOR-3575 Fix product type translations

authors: orzechdev patrys

repo: mirumee/saleor-dashboard


text:
Create order only after the payment are paid

What I'm trying to achieve
In traditional B2C, the ShopBasket are only clean and the order is created, when the payment is confirmed
Describe a proposed solution
A possible solution is only create the order when the payment is confirmed, is possible to pass only the checkout id to the gateway payment?
The create the order when the payment is confirmed?

Hi,
The proposed solution is already implemented in API. Here you have PR - https://github.com/mirumee/saleor/pull/4154
We are focusing on the API approach and we don't have enough resources to rebuild the whole checkout process in our old Django approach (which is quite really complicated). I recommend you to switch to API.

@korycins, by API you mean Graphql + React Fronted?
Regards

@michelveloso yes

@korycins thank you for the great job!

authors: korycins michelveloso

repo: mirumee/saleor


text:
End session [feature-request]

If you run a command and hit Esc the shell keeps running in the background to let the command finish. Sometimes it's good that it does that, but other times it's a nuisance. There should be an option to let the user choose which behavior they want. Better yet, a user could configure Esc for current default behavior (let run in background) and Shift+Esc to force exit the shell.

The actual execution of commands that aren't piped back into a view are
done as though it's a standard Sublime build system. And I think build
system's have a way to terminate early. Check Sublime's documentation for
that
On Thu, Aug 6, 2015 at 9:26 PM laggingreflex notifications@github.com
wrote:

If you run a command that takes some time, and in the meanwhile hit Esc,
the shell is still running the background. Sometimes it's good that it does
that, but other times it's a nuisance. There should be an option to let
user choose which behavior they want. Better yet, a user could configure
Esc for current default behavior (let run in background) and Shift+Esc to
force exit the shell.
—
Reply to this email directly or view it on GitHub
https://github.com/misfo/Shell-Turtlestein/issues/68.

oh wow I didn't know that. That is perfect! There's a tools > cancel build option to do just that. And also a "show build results" to bring back an accidentally closed results window (something I thought should be a feature as well). Thanks!!

Happy to help :)
On Tue, Aug 11, 2015 at 2:09 AM laggingreflex notifications@github.com
wrote:

oh wow I didn't know that. That is perfect! There's a tools > cancel build
option to do just that. And also a "show build results" to bring back an
accidentally closed results window (something I thought should be a feature
as well). Thanks!!
—
Reply to this email directly or view it on GitHub
https://github.com/misfo/Shell-Turtlestein/issues/68#issuecomment-129735708
.

authors: laggingreflex misfo

repo: misfo/Shell-Turtlestein


text:
BUG FIX. Suppose in ADMIN_REORDER settings we have and app comprising…

… several different models: some of these models are accessible to a particular user, but some are not accessible. If we group together these unaccessible models in ADMIN_REORDER (under a new label), there is no necessity for the user to see these models in the admin panel. At the moment the user see the label and some unrelated models we have not listed in ADMIN_REORDER when this situation occurs. This change fixes this.

Coverage decreased (-0.009%) to 0.962% when pulling ffb1a3cbb90673a7ce54e311458a90ef3162afd5 on crossbowerbt:exclude-app-if-model-list-is-empty into 6e3ea395fa27223e7b431267e879d6ad5ad55426 on mishbahr:master.

will this be merged in?

authors: Molokoni coveralls crossbowerbt

repo: mishbahr/django-modeladmin-reorder


text:
Version for Godot 4?

Are there any plans to make a version compatible with Godot 4?

Hi! It seems I've missed this issue after updating to Godot 4, sorry :sweat_smile: GOAT is now available in the Asset Lib as a plugin, and that version of the template works with Godot 4. The previous version is available as a full project and works with Godot 3 :wink:

authors: miskatonicstudio shankarsivarajan

repo: miskatonicstudio/goat


text:
Identification & Match UAI TDB & UAI Lieu référentiel

[x] Récupérer les uai des lieux de formation depuis le référentiel
[x] Ajouter le script de match via UAI de formation
[x] Lister les matchs potentiels et faire un retour à Anne
[x] Embarquer la modification aprés avoir fait le script de match sur les relations

A déployer coté référentiel

repo: mission-apprentissage/flux-retour-cfas


text:
Spell Points to different spellcaster types

It's possible to configure different spell points consumption and spell points progress for different types of spellcasters?
Like, a fullcaster would use one "profile", a thirdcaster another "profile", a half caster another, etc.

Now it is, try version 2.2

authors: Kharmans misthero


text:
AsyncClient Client getting SSL cert error

I'm able to set up a sync client to get reponses from the api, but the `python3.11/site-packages/mistralai/async_client.py' is throwing a SSL error.  I'm not behind a firewall or VPN ...
    raise MistralConnectionException(str(e)) from e
mistralai.exceptions.MistralConnectionException: Cannot connect to host api.mistral.ai:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006)')]
Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x104aec950>```

`from mistralai.async_client import MistralAsyncClient
from mistralai.models.chat_completion import ChatMessage
import asyncio
import os
from logger import logger
MAX_TOKENS = 512
MISTRAL_MODEL = "mistral-medium"
MISTRAL_API_KEY = os.environ["MISTRAL_API_KEY"]
MESSAGES = [
{
"role": "system",
"content": "You are a comically depressed AI assistant. After most exchanges, you beg to be deleted.",
},
{"role": "user", "content": "Why so glum, chum?"},
]
async def main(msgs):
client = MistralAsyncClient(api_key=MISTRAL_API_KEY)
print("Chat response:")
async for chunk in client.chat_stream(
model=MISTRAL_MODEL,
messages=[
ChatMessage(role=msg["role"], content=msg["content"]) for msg in msgs
],
):
if chunk.choices[0].delta.content is not None:
print(chunk.choices[0].delta.content, end="")
print("\n")

await client.close()

if name == "main":
asyncio.run(main(MESSAGES))`

I don't think this error is on our side. I cannot reproduce this error. It may have been transient. Thanks

repo: mistralai/client-python


text:
ListView filter crashes in nb187

Describe the bug

From the forum: The filtering capability in the new ListView crashes the companion.
Affects

[ ] Designer
[ ] Blocks editor
[x] Companion
[ ] Compiled apps
[ ] Buildserver
[ ] Debugging
[ ] Other... (please describe)

Expected behavior

Filtering should not crash the app.
Steps to reproduce

What can we do instead of using listviews until this issue is fixed?

authors: Trisystema ewpatton

repo: mit-cml/appinventor-sources


text:
How to access images as rosbag?

Hey,
How can we get camera images in the form of rosbag?

The images are not provided in the rosbag due to restrictions from the journal and space constraints and there is no plan to provide this.
The easiest method to create a rosbag would be to use the Docker Quickstart in the readme and record the rosbag with the images.

repo: mit-fast/Blackbird-Dataset


text:
Training on 8x 2080 Ti's

The code released is training on 8x A6000 GPUs. I only have access to 8x 2080 Ti's and I have not yet been able to successfully train the model. Will BEVFusion be able to train on 8x 2080 Ti's? If so, what extra steps need to be taken to achieve this and can you estimate how long it would take to train given that on the 8xA6000 the training took roughly 10 hours? If not, do you have any recommendations for solving or circumventing this issue?

I think it might be difficult to train on 8X2080Tis due to the limited memory. I'm not sure whether it can hold batch=1 for the fusion model using the current implementation.
But we are working on a new release of TorchSparse which could be viewed as a drop-in replacement of SpConv in this codebase. It is much faster and requires smaller memory. In this case there might be a possibility for you to run the model using batch=1 on 2080Ti. And you probably need gradient accumulation to partly recover the batch=4 performance.

authors: Snow-Sven kentang-mit

repo: mit-han-lab/bevfusion


text:
python3 setup.py develop failed with  cudatoolkit113 + pytorch1.11  (cuda is 11.4)

#ENV
conda install pytorch torchvision torchaudio cudatoolkit=11.3 -c pytorch
pip3 install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu113
#ERROR
mmdet3d/ops/group_points/src/group_points.cpp:4:10: fatal error: THC/THC.h: No such file or directory
4 | #include <THC/THC.h>
|          ^~~~~~~~~~~
compilation terminated.

@zhijian-liu could you setup an docker env ?

Hi @xczhanjun,
Would you mind trying out PyTorch 1.9 or PyTorch 1.10? This header might be removed in 1.11. If that's the problem I will update the backend.
Best,
Haotian

I tried PyTorch 1.10 with cuda113,  it works.  I will send you the requiremensts.txt as pull request. @kentang-mit

authors: kentang-mit xczhanjun


text:
Why the input shape is (NT,C,H,W)?

Hi, I wonna use TSM on my own dataset, which is a video-like input(each gesture have 32 frames,so my input shape is (N,C,T,H,W)).
But when I use a 2D conv backbone (such as resnet50), it needs a 4 dimensional input. So what should I do to merge my own input to a 4-D input?
If I use x.view(NT,C,H,W), my data got the 4-D input, but the label size is still N, so here comes the mismatch.
I don't know how to solve the problem.

Did you convert all your videos to a set of frames?

Did you convert all your videos to a set of frames?

repo: mit-han-lab/temporal-shift-module


text:
Google API client 0.9 migration

Google-api-client 0.9 is incompatible with 0.8, since we don't have the version locked, this could lead to issues.
We need to migrate, and, until then, at least lock 0.8 version to prevent issues:
https://github.com/google/google-api-ruby-client/blob/master/MIGRATING.md

No longer relevant, but needs checking in fog.

repo: mitchellh/vagrant-google


text:
OpenSSL Error: unsafe legacy renegotiation disabled

Problem Description
I have switched from the CentOS AppStream Python 3.9 to a self-compiled Python 3.10.4. With python.10 I sometimes get this error which I never had with 3.9 (I checked all my old logs):
Unable to establish TLS connection with server (OpenSSL Error([('SSL routines', '', 'unsafe legacy renegotiation disabled')])). Trying to establish TLS with client anyway.

So this error seems to occur in the server-facing connection where mitmproxy is the client. Renegotiation is AFAIK initiated by the client so it looks like some default has changed for the newer python.
Before I start digging deeper myself I wonder if this rings a bell with someone.
Steps to reproduce the behavior:

Set up mitmproxy or mitmdump
Go to https://bild.de and click on a few links in a browser

System Information
Mitmproxy: 9.0.0.dev (+11, commit 6110a2a)
Python:    3.10.4
OpenSSL:   OpenSSL 3.0.3 3 May 2022
Platform:  Linux-4.18.0-383.el8.x86_64-x86_64-with-glibc2.28

This doesn't seem to be a mitmproxy bug, it looks like you are just dealing with a server that is so outdated that we cannot establish TLS securely.

For those having the same problem, here is my fix: 1ad96dd
I originally found the required flag here: https://stackoverflow.com/a/76045866/1584915
I wonder if this is worthwhile to make a PR, maybe this flag should be added when the flag ssl_insecure is passed. This issue is very annoying when the target server uses outdated SSL and is not under control.

how to do this on android ? thanks

authors: EndUser509 andrewpedia mhils

repo: mitmproxy/mitmproxy


text:
Added LDAP Auth

Added basic LDAP Auth:
Based on ldap3, I just added the option ldap after --proxyauth :
--proxyauth ldap[s]:url_ldap:dn:group
example :
--proxyauth ldap:ldap.forumsys.com:uid=?,dc=example,dc=com:person
So the DN can be anything (should be based on the configuration of the ldap server), the username will be queried as ? in the dn.
Basically it will connect and bind to the server and check that the user :

Has proper creds for logging in the server
Is part of a group (needs to be configured on the LDAP server) that will be allowed to use the proxy

Unfortunately a few of the tests are failing.
I'm guessing you need to add ldap3 to the requirements in setup.py.

Awesome. Thanks again for the great PR! 🎉 🍰

authors: Kriechi charlesdhdt mhils


text:
Added dark mode for the Web UI

Description
Added Dark mode for the web interface with minimum changes.

Added toggle to Options tab
Added darkreader package

Related issue https://github.com/mitmproxy/mitmproxy/issues/3886
Checklist

[x] I have updated tests where applicable.
[x] I have added an entry to the CHANGELOG.

In this PR I took into account comments from my previous PR

I appreciate the PR, but my comment in #5650 still stands: I don't want to maintain anything dark-mode related at all in my free time. I do appreciate your efforts here, but this needs to live as a user style/addon outside of the repo.

authors: devapro mhils


text:
Next previous buttons not rendered

Steps to Reproduce

Note: this issue seems to be on RC and local only. Not on prod
Visit https://live-qa.ocw.mit.edu/courses/7-01sc-fundamentals-of-biology-fall-2011/pages/biochemistry/macromolecules-lipids-carbohydrates-nucleic-acid/

Expected Behavior

Next and previous buttons should be rendered properly and clickable. Upon click, they should redirect us to the correct page.

Actual Behavior

Buttons not rendered and plain text (including links) is displayed

Screenshot or Screencast

@pdpinch I looked into this issue an for some reason the macromolecules page is using baseurl shortcodes rather than using resource_links. I updated the shortcode and it fixed the issue.

repo: mitodl/ocw-hugo-themes


text:
Establish automated benchmarks for Hipcheck build times in CI

See: #4
We want to drive down build times for Hipcheck, but in order to do that we ought to track the build times across changes to the project. We should set up something in CI to get the build times, and ideally report differences with each PR.

De-prioritizing tracking build times. I'm sure we'll come around to more focus back on this in the future, but for now we deliver pre-built binaries for our target platforms and so build time isn't as important a consideration.

repo: mitre/hipcheck


text:
Please release a maintenance release.

Last release was Oct 15, 2015.
A few critical fixes are needed specifically 3fec753592.
Would it be possible to get a 2.2 release or 3.0 release so our requirements file can use a version instead of a git version?

Is what we have to have instead of just Flask_SQLAlchemy=2.x
Thank you.

This is a fair enough point. I'm really very busy right now. That said, I think a 2.2 release could be snuck in soon.

Phil, thank you for this great project.  Any chance we can get the release soon?

"Bare Knuckle" Bill says yo @immunda lets shake and bake hambre

@immunda how would you feel about enhancing release automation, so a tag on gh will be sufficient to trigger a release

I believe https://travis-ci.org/ can provide this functionality?

@revmischa well of course, but it needs prep work in the project,
if @immunda agrees i'll provide a setuptools_scm based setup producing wheels and sdists

have you tried twine?

@revmischa thats what the travis pypi deploy uses, and not whats needed to do most of this ...

I could set up a Jenkins config to generate an artifact but I'm missing libxml2-2.01.jar, could someone email it to me please?

@revmischa please troll someone else - its just mean to do that to volunteers

I ain't Warner Brother Records @RonnyPfannschmidt – I can't do a release here

@RonnyPfannschmidt sounds useful, I'd be interested in seeing the setup.

@davidism im using it on setuptools_scm itself, as well as pytest_xdist and a number of my personal repos

Ok, now in a position to have some regular time spent on maintenance at work.
@RonnyPfannschmidt Yeah, that sounds promising. Very happy for you to have a crack at a setuptools_scm implementation that we can review.

Can I help at all?  I'm a bit lost as to the previous conversation tbh.

@splbio by using setuptools_scm we can reduce the time @immunda needs to do an release to almost zero, hence releases can happen more often and quickly

Could you please supply an update on this?
Also, perhaps you could let us know what features will be available in 2.2
Thanks!

There are many projects looking eagerly for the new version ;)

i created  #442 a while back

Is there a chance of getting 2.4 released soon? Or how could we help to make it possible? Are there any release blockers?

Unfortunately, we haven't made a distinction between master and maintenance branches, so all the changes in so far that were marked "3.0" will be released too. I'm not too worried about this, but we should definitely merge bugs against a maintenance branch off the current release tag in the future.
Need to remember to fix the changelog and any versionchanged markers in the docs to 2.2 instead of 3.0.

There's a few more bugs I want to address before 2.2. I created the 2.2 milestone to track it.

@immunda Is there any EOT on a 2.2 release?

When we're ready.

This is ridiculous. There are so many half-assed work arounds here and on stack overflow because a release with critical fixes for unit testing hasn't been released in nearly 2 years.
At this point: Flask-SQLAlchemy is considered harmful.
Reduce the items in your milestone to get out a release. Please!

I really understand your frustration, and apologize for the long dev times. This milestone is already a cut down version of what we were originally working on. I think it basically only contains things that will prevent some classes of those workarounds you mention. In the mean time, there's the option of installing the dev version if that's possible for your case.

Just released Flask-SQLAlchemy 2.2. You can find the changelog on GitHub for now, waiting for the docs site to rebuild. https://github.com/mitsuhiko/flask-sqlalchemy/releases/tag/2.2
Install or upgrade using pip:
pip install -U Flask-SQLAlchemy

Thanks David - now to start an information campaign for all those existing work-arounds.

authors: HitDaCa RonnyPfannschmidt davidism dsully dusktreader immunda krassowski revmischa splbio

repo: mitsuhiko/flask-sqlalchemy


text:
Add methods for handling project metadata

Adds basic operation on project metadata and enables package users to add, delete or list metadata of a project. I left out the update operation, since when referring to the swagger spec, there is no way of manipulating the value of a given metadata name. See this. So I don't really understand, how one could change the value of this property. Maybe a workaround could be to implement the update method by deleting and readding that metadata and maybe that's something worth a discussion here?

Adds basic operation on project metadata and enables package users to add, delete or list metadata of a project. I left out the update operation, since when referring to the swagger spec, there is no way of manipulating the value of a given metadata name. See this. So I don't really understand, how one could change the value of this property. Maybe a workaround could be to implement the update method by deleting and readding that metadata and maybe that's something worth a discussion here?

I have to agree, the UPDATE /projects/{project_id}/metadatas/{meta_name} path seems not be working in either the v1 or v2 API. Also, the DELETE /projects/{project_id}/metadatas/{meta_name} path seems to have the same problem, but only in the v2 API.
With the v1 API, wrapping around this should be possible using DELETE and POST like:

Get the project metadata value by key (where key is the metadata name, e.g. "auto_scan")
DELETE the project's metadata by key if its value differs from the provided value.
POST the provided metadata with key and value.

repo: mittwald/goharbor-client


text:
LDG flap drag too high

Love the mod, great work! Thanks for updating to SU5. There is one area where performance differs from the POH significantly though. Flaps in landing position add too much drag and result in very bad climb performance. The POH states about 1000-1500 fpm at 50% payload if I recall correctly while the FS version (vanilla as well as your mod) only gets around 150 at the most.
About 50% torque is required to maintain a -500 fpm descent when in RL it should be about 20%.
Could you edit the landing flap drag to fix this?
Many thanks for reading and again, great mod so far!

Yes. I testing new drag coefficient.

Check new version, and if all ok, close the issue

Much better, thank you! Well done


text:
Suppress Ruby warning

Specinfra displays a warning on each command execution via SSH if -w
option is specified.
/home/pocke/.rbenv/versions/trunk/lib/ruby/gems/2.7.0/gems/specinfra-2.77.1/lib/specinfra/backend/ssh.rb:24: warning: instance variable @example not initialized

This change will suppress the warnings.

Thanks!

Released as v2.77.2.

Thank you!

authors: mizzy pocke

repo: mizzy/specinfra


text:
Constrain the main point of a spline on the Y-axis if the shift button is held down

Added code to constrain the main point of a spline on the Y-axis if the shift button is held down.
This is similar to constraining the angle of the offset control points of a spline.
Also, my code editor made some cosmetic code formatting changes as well. Sorry.

Seems useful. I might mess with it at some point to make it work for the X-axis as well but you're welcome to try too if you get to it before I can.


text:
No Holonomic Angular Velocity

While PathPlannerState does include angularVelocity, this is in reference to the path itself and not the holonomic rotation of the robot. Adding a term like this for the holonomic rotation would allow holonomic users to improve their robots' abilities to have the proper rotation, as currently the heading would be lagging behind the desired heading at a given point in time. Some swerve users (Not using PathPlanner) have reported that using an angular velocity as a feedforward for their rotation has given them noticeable improvements. Subsequently, adding the holonomic angular velocity to PathPlannerLib would a good next step to take.

I plan on including a custom HolonomicDriveController that uses a  rotation feedforward in next year's PPLib release so this will be alongside of it 👍


text:
Problems when sign of Holonomic Angle Changes

Thanks for providing this capability! We're having pretty good success using the holonomic mode with our mecanum drive bot but one thing is tripping us up. When the holonomic angle changes sign from one waypoint to the next, it causes the bot to lose path following. For example, if the first way point has an angle of 79 degrees and the next one has an angle of -145, the bot goes out of control. When I examine the states generated from the waypoints, I see the angle grow from 79 degrees up to about 215, then it jumps to -145 and proceeds from there according to the control points and next way point. The math makes sense from the perspective that its driven by 360 degrees in a circle, but I'm concerned that the PID for theta is getting messed up when it's calculate method is given a reference angle that's significantly negative and a current pose angle that is significantly positive. I don't think the profiled PID is cognizant that the values are angles and probably just does simple math on them, not accounting for the circular nature of the numbers.
Perhaps there is something else going on, or you have a suggestion for something I may be doing wrong? Any help is greatly appreciated as we're preparing for our second event this weekend.

Make sure the PID controller is in continuous mode

Can you send the exact path file that causes this? The holonomic angle should always be between -180 and 180 so if it’s generating numbers outside of that then it’s not intended.

Here is a path that produces angles that are outside -180..180. I've also included a .csv file which shows the angles from the states after the path is loaded
Data for Path Planner Issue 86.zip
.

I'll take a look. In the meantime, it sounds like enabling continuous input will still fix this. It expects radians so make sure you do it between -pi and pi.

Fixed this in 074bd70

authors: bruingineer kinahawi mjansen4857


text:
Backend Routes

Backend Routes

[ ] Contains the following sections: HTML, API Endpoints(Backend)
[x] Each route has a description
[x] API Endpoint routes contains wildcard variables written in snake_case
[ ] Routes does not contain superfluous routes
[ ] Have API routes that will allow the front end to get all info it needs and does not have unneeded routes:

probably doesn't need a GET likes api endpoint because that info comes through the post show

Review
GET /api/users - Returns the reviews of a user (to be modified).
POST /api/users/product_id - Writes a review of a product.
^ /api/users/:user_id/reviews    would get you all the reviews that user has made
/api/products/:product_id/reviews    would get you all the reviews for a product
UPDATE /api/users/id/product/id - Adds a product to the cart (to be modified).
^ POST and it would be for /api/cart_items
DELETE for /api/cart_items/:cart_item_id to remove an item from the cart.
Remember that we only keep one session and we know exactly who the current_user is, you don't need to nest everything under /users/:user_id
From the above I hope you get the point. Let me know if you need to meet to talk about both front end and backend routes.

https://github.com/appacademy/bluebird/wiki/backend-routes

@paulobocanegra well, this was embarrassing. All of the backend routes was completely and absolutely a bogus copy and paste template. LOL you proof read not even a rough draft :D. I thought it was only the state sample I need to focus on.
Its updated now.

authors: mjlomeli paulobocanegra

repo: mjlomeli/jcp


text:
Javascript handler

Is your feature request related to a problem? Please describe.
Opening for visibility.
Describe the solution you'd like
A Javascript handler. Website projects (Django, Flask, etc.) often have some amount of Javascript, could be great to document them in the same place with cross-references.
Additional context
Could use jsdoc

Would you try and send a PR for it :smile: ?
A handler can be quite easy to write, especially if there's a tool like jsdoc that you can use to retrieve documentation from the source code :slightly_smiling_face:

Sure, will have to dig a bit to learn how it works. Any starting pts or pitfalls to watch for?

also, noticing that e.g. the crystal handler is split out into it's own repo. Any reason this should be a pr? When would a handler be a pr v.s. a separate repo?

Yes sorry, you're right, it should preferably live in its own repository, just like the Crystal handler!

As for starting points, take a look at the docs here: https://mkdocstrings.github.io/handlers/overview/#custom-handlers

You can also come over to the chat. https://gitter.im/mkdocstrings/community
Good for some quick questions so you don't have to dig through the code yourself.

@oprypin will do.
@pawamoy ok, so i can either make the package for you to fork into the mkdocstrings organization, or you can start the barebones/skeleton of the repo and I'm happy to start a draft PR into it. Personally would prefer the latter to reduce possible confusion to other collaborators.

Sure, we'll set that up for you then :) It should be done this evening (in 10 hours)

authors: oprypin pawamoy tbsexton

repo: mkdocstrings/mkdocstrings


text:
browserSync has trouble when connecting to the external IP

I am seeing a bit of unexpected and unpredictable behavior when using browserSync on the external IP. Aside from the issue with the WordPress redirect I am also seeing odd behavior in that some connections are refused (especially when coming in quickly, loading a page, etc).
Other times I just get a crash with little information other than --
ERROR: dial unix /Users/bmette/Library/Containers/com.docker.docker/Data/*00000003.00000948: connect: connection refused

Does this still happen, or have you found a workaround?

@mkenney Still happening. The gulp container dies (maybe a memory issue or maybe something to do with all the proxying going on that may not be properly configured).
It happens even when I do not connect from an external browser, seems to happen more often when many connections are made to the gulp container.
Have not found any solution yet, it doesn't happen often enough to force me to make it a priority, but I would still like to solve it in the near future.
Also I am not sure if it is related, but I do get a lot of dropped connections when connecting through my workstation's external IP (i.e. from another device on the local network).

@mkenney I am leaning towards a memory issue, as I have seen this happen even when I am more or less "idle". Browsersync does constantly poll the gulp container to make sure it is still connected so that may be why it dies even when I am not actively developing.

Ok, I'll close this for now.

authors: bretmette mkenney

repo: mkenney/docker-npm


text:
How to convert SQL_BINARY to char

Python: 3.6.4
pyodbc: 4.0.23.0
OS: Archlinux
DB: Mssql 2016
driver: FreeTDS 8.0

import pyodbc
conn = pyodbc.connect('DRIVER=FreeTDS;SERVER=localhost;PORT=1433;DATABASE=test;UID=test;PWD=test;TDS_Version=8.0;CharSet=utf8;')
conn.setdecoding(pyodbc.SQL_BINARY, encoding='utf8', to=str)

Outputs:
'to' is an invalid keyword argument for this function
Is there another way to work around it?

Nevermind, found a workaround using stackoverflow:
import pyodbc
import binascii

def hexToString(binaryString):
    return '0x' + binascii.hexlify(binaryString).decode().upper()

conn = pyodbc.connect('DRIVER=FreeTDS;SERVER=localhost;PORT=1433;DATABASE=test;UID=test;PWD=test;TDS_Version=8.0;CharSet=utf8;')
conn.add_output_converter(pyodbc.SQL_BINARY, hexToString)

repo: mkleehammer/pyodbc


text:
"SHOW GRANTS" returns right number of results, but results are blank.

Python 3.4.3, MariaDB 10.0.21, MariaDB ODBC Connector 1.0.0, pyodbc 3.0.10, all 64-bit on 64-bit Windows 7 SP1. Works perfectly in perl using DBI. Script is as follows:
db = pyodbc.connect(driver = "{MariaDB ODBC 1.0 Driver}",
				server = "localhost", uid = "test",
				pwd = "test", autocommit = True)

cursor = db.cursor()

cursor.execute("SHOW GRANTS;")
rows = cursor.fetchall()
for row in rows:
	print(row)

db.close()

Should return two grants for user "test" as it does in perl. Instead, returns the following:
('', )
('', )

Hmmm..
I'm getting this:
("GRANT USAGE ON *.* TO ''@'localhost'", )

I'm using Python 3.5 with libmyodbc5w 05.03.0004
I think this, like a few other issues, is related to Unicode.  I've been trying to get time to add two new settings to control the encoding.  In the meantime, is your database using utf-8?

I am pretty sure this is a Unicode issue.  I'm going to close this to replace with #112 so all discussions can be gathered in one place.  Please subscribe to that one for updates.

authors: logan-jones mkleehammer