Contribute to Open Source. Search issue labels to find the right project for you!

Game need to populate board initially


Question: populate the tiles initially - Model or Controllers responsibility

Suggestion Controller: *In constructor of Controller - should populate board using e.g. method populateBoard() which goes through the tiles and adds walls, goals and robots

*Controller also need method addWall() & addGoal() which communicates to Model.addWall(walldirection, position) and Model.addGoal(position)

-have created a bug report for this assigned to me, so I fix but give recommendation where to put the method - Controller or Model

Updated 17/10/2017 09:18

View - size input


Should View still have size as input or should we decide on that this is fixed, also going forward between versions?

I think it can be of value to keep - let’s say we in the future would like to make a larger game?


Updated 17/10/2017 09:04



客户端:iOS11 我在开发的时候发现开启推流[kit.streamerBase startStream:url]不能连接到rtmp服务器,必须开启[kit startPreview:View]后才连接到服务器开始推流。 我这里有一个需求是自定义推流,不使用摄像头startPreview来采集数据推流。 我如何在不需要startPreview的情况下使用[kit.streamerBase processVideoSampleBuffer:(CMSampleBufferRef)sampleBuffer]来推自定义的数据流。

Updated 17/10/2017 09:19 3 Comments

Optimistic State Manager


A lot of actions have now got optimistic states, where we assume the network request will be successful and update the UI accordingly and then revert the change if we receive an error

The current solution isn’t really scalable and is pretty easy to make mistakes with (Found that out the hard way 😅)

In most cases we only have one case of storage for a change, for example locking/closing. If you close and then open a issue you only see one view added to the timeline (open) because that’s all we keep track of. If you refresh the feed, they all appear.

Just wondering if there’s a better way to be doing this?

Some considerations: - When we know it was successful, actually commit the change to the main model? - The same model might be added multiple times (new comments, open/close, etc) - They might pass/fail in a different order than they were triggered - Scalability for new actions

Updated 17/10/2017 08:10 1 Comments

UI Question: Move "Members" tab in study groups over to the main "Description" tab?


When I head over to a study group page (e.g., the first tab I want to click on is “Members,” because it’ll show the statuses of each study group member.

screen shot 2017-10-15 at 5 50 00 pm

I know to do this because I’m familiar with the feature, but newcomers might never know or think to click on the “Members” tab, and study group members themselves might not know that they can input their current status.

I’m tempted to remove the “Members” tab and move its content below the Description.

What does everyone think? Or does anyone have alternate suggestions for highlighting the feature found in “Members”?

Updated 17/10/2017 09:08

Abp Feature Quetions


Environment : .net core 2.0 , angular

Problem :

  • Use feature attribute in service image

  • Check the feature of Standard Edition image

  • Login with Host Admin And Tenant Admin

Result :

Tenant Admin work well , but Host admin

So , how can I avoid host admin to feature attribute

Updated 17/10/2017 08:11 1 Comments

Get rid of possible dns false pos's in the anomaly_detection example



From the start - I’m not sure if this is a good idea or not. It might have consequences that I have not thought about. However, here it goes…

In my experience there are quite a few vendors that use DNS for various purposes. A/V vendors, like Sophos[1] for example, uses lookups for detection. These lookups tends to be quite weird looking and generates quite a lot of noise in DNS exfil rules and other such tools.

I had a look in the script and sort of got an hamfisted piece of code together. It’s not very elegant and definitely not very efficient. But at least it shows the idea to a certain extent. I put the ‘’ domain in there since that works on the provided example dns.log file and shows what I’m trying to achieve.

        # These domains could cause false positives, ie - long queries/responses, 
        # weird domain names etc.
        known_good = set(['',  '']) 

        # Create a Pandas dataframe from a Bro log
        bro_df = log_to_dataframe.LogToDataFrame(args.bro_log)
        print('Read in {:d} Rows...'.format(len(bro_df)))

        # If the log type is dns and the known_good set is populated we will remove
        # rows if and when suitable/necessary.
        if log_type == 'dns' and len(known_good) > 0:
            print("Checking for 'known good' domains and will remove from the dataframe")
            for index, row in bro_df.iterrows():
                if any([domain in row['query'] for domain in known_good]):
                    # bro_df.drop(index, inplace=False)
                    bro_df.drop(index, inplace=True)
            print("We now have {:d} Rows...".format(len(bro_df)))

1 - As stated, not sure if this is a good idea or not?

2 - I don’t think I’m doing this in the most efficient way here - it seems to be quite an intensive operation in the way I’m doing it. I’ll have a look at seeing if there’s a better/more Pythonic way of doing it. Maybe there’s a very established way of doing this that I just don’t know about yet? Maybe it should even be done on the initial population of the dataframe somehow?

3 - I’m also aware that this could be done on the Bro side. Getting rid of these by using Bro scripting to never even log them would save both disk space and Splunk license costs and also resolve this issue. However, I think that being able to iterate through and ‘whitelist’ certain domains as you analyze your dns logs could be quite useful.

What’s your thoughts on this?

Cheers, Mike

[1] 1508220101.531867 CEypeHRT1TQrypVyk 57519 53 udp 21710 0.017866 1 C_INTERNET 16 TXT 0 NOERROR F F T T 0 TXT 3 x c 258.000000 F

Updated 17/10/2017 08:03

How to use the output files?


I’ve run some examples in the tutorial here: I get many output files and have now a few questions.

  • Where can I find the data model descriptions for all those files?

  • How can I compute from the output files the set of tiles that were observed in a given period of time (i.e. between January 21 2020 and February 24 2021)?

  • How can I find the dates and tiles where fiberassign is expected to run?

Updated 17/10/2017 06:40

Setting the input `value` directly without using `set()` does not work


Expected behavior

To be able to fill an input field’s value with jQuery’s val function.

Actual behavior

Sadly, it does not work with AutoNumeric 4. And I can not call any trigger on the field to store (or even just parse) the value which was loaded to the input by the val function. I have several AutoNumeric fields and it would be a huge (and risky) work to refactor all value set from this: $('#autonumeric_field1').val('60100').trigger('blur'); to this: AutoNumeric.getAutoNumericElement($('#autonumeric_field1').get(0)).set(60100); The first one was worked with AutoNumeric 1.9.

The main problem isn’t that it not formatting the value anymore but it doesn’t even store the value. If I set it with jQuery’s val, then I move the cursor to the field and move it out, the AutoNumeric restore the previous value to the field. It is a very, very dangerous behavior. The user can belive that the new value will be submitted but it isn’t if the AutoNumeric restore its value.

Steps to reproduce the problem

  1. Using autoNumeric 4.0.3 and the browser Chrome version 61.0.3163.100 (Official Build) (64-bit) on Windows 10,
  2. Set the field’s value with jQuery’s val function
  3. Move the cursor above the field then move it out.

Link to live example


Updated 17/10/2017 08:46 4 Comments

Add 'possible reason' to error messages?


Maybe also specify a possible error reason to messages? In most of the cases this text:

Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.

is caused by an unavailable host or a missing internet connection.

Updated 17/10/2017 06:10

RFC: errata / "micro boards" ?


This includes #649 - only the second commit is relevant here.

Errata no. 32 for the nrf52832 rev A makes it such that LEDS 2 and 4 don’t work correctly. Unfortunately, the fix basically shuts off debugging: (p20) Subsequent silicon revisions fix this bug: (p24)

More generally, how should we handle things like this in Tock?

One solution is cfg-gating fixes like is done here, then having the build system build all board revisions, and use an attribute to decide which hardware rev. I think you could automate all of this by listing cfg features in the chip’s Cargo.toml and pulling them out during build.

While this is maybe a bit heavy-handed for some LEDs, there’s more drastic chip errata that I imagine will come up in the future and we’ll want some mechanism for handling this. At the same time, I’m very wary of effectively re-introducing #define hell via cfg :/

Updated 17/10/2017 05:36

Configure the connection interval of Bluetooth GATT to speed up the data transfer rate (Question)



Tell us which versions you are using:

  • react-native-ble-manager v : 5.0.3
  • react-native v : 0.44.0
  • iOS/Android v. Android M 6.0

Expected behaviour

In my app, i am transferring almost 20 Mb of data from my master to client. i want to speed up the data transfer by setting the connection interval priority to high. Is it possible configure the connection interval parameter of Bluetooth GATT. If not possible, can i get to know, what is the option by default set our react native packager?

Actual behaviour

Would like to set to the connection interval of Bluetooth GATT.

Steps to reproduce

NA 1. 2. 3.

Stack trace and console log

Hint: NA

Updated 17/10/2017 08:10 1 Comments

[Question] Version 2


I see this issue #20.

My question is, why do you not release your v2-alpha or v2-dev in this repository? I think it’ll be greate, because we all can help you to release it faster and/or give feedback to some functions.

Updated 17/10/2017 05:53 1 Comments

Permission check spam.


mcMMOAction v2.0

Permission checks seem to constantly be spammed with McMMOAction. Turning on permission check verbose, this is spammed constantly.

[21:33:19] [main/INFO]: [CHAT] [LP] VB > mibby - mcmmoaction.display - true

I didn’t have any mcmmo action bar up. I was just standing still when monitoring permission checks. Perhaps it could be optimized a bit?

Updated 17/10/2017 07:19 1 Comments

Open Source License Issue


Related to PR #24 , there was a discussion about the License of Open Source. In the process of writing Travis script, i used some python scripts from Samsung/iotjs project.

In a general view, now we are using many 3rd party libraries, and there will be many cases using other project’s source code. (which allows its use)

Therefore, i think we need to discuss about the use of Open source and libraries, and the mention of Licenses which they have.

Let’s discuss about the way we mention the License of 3rd party libraries and Open Source Projects. (Now, in case of #24 , when i use the python code of Samsung/iotjs, i added some comment to our License file)

Updated 17/10/2017 04:45

How do I create Access Control Level (ACL) list object in bootstrap server and send it to client ?


Hi Team,

I would like to create an ACL object in bootstrap phase which will be later used by leshan server and client. I want client to support multiple servers, How do I enable this at client side ?

Tried with below ACL configuration changes in LWM2M_Access_Control-v1_0.xml

Added ACL owner as short server id <Item ID=“3”> <Name>123</Name> <Operations>R</Operations> <MultipleInstances>Single</MultipleInstances> <Mandatory>Mandatory</Mandatory> <Type>Integer</Type> <RangeEnumeration>0-65535</RangeEnumeration> <Units></Units> <Description><![CDATA[Short Server ID of a certain LwM2M Server; only such an LwM2M Server can manage the Resources of this Object Instance. The specific value MAX_ID=65535 means this Access Control Object Instance is created and modified during a Bootstrap phase only.]]></Description> </Item>

Could you please help me in this ?

Thanks, Muthu

Updated 17/10/2017 08:47 3 Comments

[Project Config] Verbose logging not available in Commands() calls


The logger is initialized on app.Before, which happens after commands are loaded and before the process of executing the selected command begins. As a result, cmd.Commands() is called for each command file before the verbose mode is activated. In fact, if any Command() function attempts to instantiate the logger it will keep logging non-verbose for the rest of the command execution because of the logger’s singleton pattern.

After some consideration I do not see a way to change this. Commands() needs to be called as part of the cli bootstrap. Anything called from Commands() needs to carefully not use the Logger class.

This seems like something we need to settle and put into a nascent

Updated 17/10/2017 04:21

Основное окно приложения


Для загруженных профилей добавить в выпадающее меню: - Открыть профиль (открывается окно профиля в правой части основной формы Для экспертов: - Открыть профиль (открывается окно профиля в правой части основной формы

Updated 17/10/2017 06:42 1 Comments

ActionBar is going behind Status Bar in Android after screen lock/unlock (sleep/wake)


Please, provide the details below:

Did you verify this is a real problem by searching Stack Overflow and the other open issues in this repo?


ActionBar Going behind Status Bar in Android after screen lock/unlock (sleep/wake)

Which platform(s) does your issue occur on?


“nativescript-pro-ui”: “^3.1.3”, tns –version 3.2.0 “tns-android”: { “version”: “3.2.0” }

As per the workaround suggested in I tried to remove <item name="android:windowTranslucentStatus">true</item> from my syles.xml as well.

git-2 git-1

Updated 17/10/2017 07:48 3 Comments

Exposing Binary Blob in SOAP using BigText encoding issue


Hi, I’m trying to expose a Binary Product’s Picture using a Soap CodeUnit and save the file in my DotNet Windows App .

TenantMedia.Content.CREATEINSTREAM(IStream , TEXTENCODING::Windows ); CLEAR(Content); ContentLine:=''; IStream.READTEXT(ContentLine ); Content.ADDTEXT( ContentLine); WHILE NOT IStream.EOS DO BEGIN IStream.READTEXT(ContentLine); Content.ADDTEXT( ContentLine); ContentLine:=''; END; Picture.ADDTEXT(Content); PictureType := TenantMedia."Mime Type"

I tried using different TextEncoding( Windows, MSDos and Default) and then I also tried multiple Encoding.GetBytes in Dot Net.

For Each oEncoding As System.Text.EncodingInfo In System.Text.Encoding.GetEncodings My.Computer.FileSystem.WriteAllBytes("c:\dev\" & oEncoding.CodePage & ".jpeg", oEncoding.GetEncoding.GetBytes(sPictureAsText), False) Next But each file that I saved wasn’t formatted correctly.

I would really appreciate any input I can’t seems to find what I am missing.

Updated 17/10/2017 08:03 1 Comments

Topics from Reddit?


Are there any thoughts or interest in sourcing slack topics from this subreddit? I’m hesitant to have a bot automatically post reddit threads, but it would be interesting to see posts like this and this.

def top_cscq_post():
    """Top post from for the past week."""
    cscq_url = ''
    cscq_soup = url_to_soup(cscq_url)
    cscq_table = cscq_soup.find('div', class_='sitetable linklisting')
    cscq_post = cscq_table.find('a', href=True)
    post_url = "{}".format(cscq_post['href'])

    return cscq_post.text, post_url, ''
Updated 17/10/2017 02:55

Is is possible to change the CF command name?


We want to change the cf command to some customized name. For example, instead of using the “cf apps”, we want to use “mvsp apps”. Instead of using the “cf push”, we want to use “mvsp push”.

I know we can use the alias command to create an alias for cf in Linux environment. But it is not a generic solution.

Is it possible to achieve that in the build and installation process? How to achieve that? Thank you!

Updated 17/10/2017 06:47 3 Comments

Add color selection as an option


This option type would randomly generate a color between #000000 and #FFFFFF at a specified increment (so as to not get two very similar colors like (#4D3C45 and #4D3C47 for example)

possible questions:

What color is your favorite? What color do you like least? Which color is most satisfying? Which color is the ugliest? If you had to dye your hair which color would you dye it? Which one of these would make the best color for sparkles? If you could paint your room any of these colors, which would it be?

Updated 17/10/2017 02:53

CTP TdApi 偶尔无法退出


int TdApi::exit() { //该函数在原生API里没有,用于安全退出API用,原生的join似乎不太稳定 this->api->RegisterSpi(NULL); this->api->Release(); this->api = NULL; return 1; }; 在Release之前不需要调用RegisterSpi(NULL);注销Spi的,如果这样做了,有可能导致CTP退不出的

Updated 17/10/2017 03:01 1 Comments

Работа с таблицей генотипов


“Контроль/эксперт” в главном окне не отображаются профиля с типом профиля “профиль”. Идея была в том, что “эксперт” и “профиль” внесены и сравниваются с загружаемыми профилями объектов (лиц), но в главном окне программы не отображаются, так как для непосредственной работы не нужны. А вот “контроль” отображается (и так же участвует в сравнении) для того, что бы при выводе таблицы генотипов выбрать нужный контроль, тот который использовался при производстве экспертизы, и включить его в генерируюмую таблицу из следов и лиц. Вообще необходимость отображения данного раздела в главном окне программы зависит от того как будет реализована функция “Таблица генотипов”. Например: 1. Как планировалось в описании: в списке следов (лиц) и контролей (левой части главного окна программы) проставляются “галки” возле каждого генотипа и контроля, затем нажимается кнопка “Таблица генотипов”, после чего открывается эксель с формированой таблицей. 2. Как вписывается в стилистику уже созданного: нажимается кнопка “Таблица генотипов” - открывается окно, в котором отображается весь список генотипов имеющийся в наличии в данном сеансе (загруженные профили + список из раздела “контроль/эксперт”), где выделются необходимые и нажимается кнопка “ок” - открывается ексель. Если честно, я не вижу разницы в удобстве работы каждого из двух вариантов, поэтому оставляю выбор за тобой, какой посчитаешь проще реализовать (может вообще третий вариант)

Updated 17/10/2017 02:25

Отключение не участвующих в расчете локусов


При прямой идентификации, при экспорте в эксель, учитывается и амелогенин - он не участвует в расчетах (как и еще некоторые локусы начинающиеся на “DYS….”, но эти локусы необходимы при выводе сводной таблицы генотипов. Может такие локусы как-либо отключать (исключать из расчетов) в редакторе локусов?

Updated 17/10/2017 02:23

depends_on ordering


What modifications to the final example in section 9.3.6 of the waf book would be necessary to make echo A run before echo B? I’m struggling to think of a use case where one would declare that the echo B rule depends on the echo A rule but you wouldn’t want echo A to run before echo B.

Updated 17/10/2017 06:14 1 Comments

Lack of fields in package.json of tns core module - utils


The package.json of the “utils” tns core module is as follows:

{ “nativescript”: {} }

When importing or requiring the utils module, it fails, for the package.json lacks name, main, types fields. I’ve not checked all other modules, and don’t know if other modules also have this issue. Please check thoroughly. Thank you.

More info:

  • CLI: 3.2.1
  • Cross-platform modules: 3.2.0
  • Runtime(s): 3.2.0
  • Plugin(s): no plugin used
Updated 17/10/2017 06:27 1 Comments

ghost (2nd) audio track playing when video starts


When I start an mp4 video in exoplayer, it starts a second audio stream from the video after a few seconds. If I hit pause on the player, the ghost audio track (from the video) is still playing while the one matched with the video has paused with the video. I have a SimpleExoPlayer based on the Demo app. Is my player initialization all wrong? I searched the issues for anything with 2 audio streams playing on one video but couldn’t find anything. Thanks for your help.

public class ExoPlayerActivity extends AppCompatActivity
    private static final String TAG = ExoPlayerActivity.class.getName();

    private static final DefaultBandwidthMeter BANDWIDTH_METER = new DefaultBandwidthMeter();

    private SimpleExoPlayerView playerView;
    private SimpleExoPlayer player;

    private boolean playWhenReady = true;
    private int currentWindow;
    private long playbackPosition;

    private Uri playbackUri;

    private ProgressDialog buffering;
    private boolean isSeekComplete;

    protected void onCreate(@Nullable Bundle savedInstanceState)


        playbackUri = Uri.parse(getIntent().getStringExtra(PlaybackActivity.EXTRA_VIDEO_URI));
        playbackPosition = getIntent().getLongExtra(PlaybackActivity.EXTRA_POSITION, 0);

        playerView = (SimpleExoPlayerView) findViewById(;

        buffering = new ProgressDialog(this);
        buffering.setMessage("Retrieving video file...");;

    public void onStart()

    public void onResume()

    private void hideSystemUi()
                | View.SYSTEM_UI_FLAG_FULLSCREEN
                | View.SYSTEM_UI_FLAG_LAYOUT_STABLE
                | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION);

    private void initializePlayer()
        final TrackSelection.Factory videoTrackSelectionFactory = new AdaptiveTrackSelection.Factory(BANDWIDTH_METER);
        final TrackSelector trackSelector = new DefaultTrackSelector(videoTrackSelectionFactory);

        player = ExoPlayerFactory.newSimpleInstance(this, trackSelector);


        final MediaSource mediaSource = buildMediaSource(playbackUri);


        player.addListener(new Player.EventListener()
            public void onTimelineChanged(final Timeline timeline, final Object manifest)
                Log.d(TAG, "ExoPlayer: Timeline Changed." + timeline.toString());

            public void onTracksChanged(final TrackGroupArray trackGroups, final TrackSelectionArray trackSelections)
                Log.d(TAG, "ExoPlayer: Tracks changed.");

            public void onLoadingChanged(final boolean isLoading)
                Log.d(TAG, "ExoPlayer: Loading changed.");

            public void onPlayerStateChanged(final boolean playWhenReady, final int playbackState)
                Log.d(TAG, "ExoPlayer: Player State Changed.");
                if (playbackState == Player.STATE_READY)
                    if (playbackPosition > 0 && !isSeekComplete)
                        player.seekTo(currentWindow, playbackPosition);
                        isSeekComplete = true;

            public void onRepeatModeChanged(final int repeatMode)
                Log.d(TAG, "ExoPlayer: Repeat Mode Changed");

            public void onPlayerError(final ExoPlaybackException error)
                Log.e(TAG, "ExoPlayer: Player Error.", error);

                final AlertDialog dialog = new AlertDialog.Builder(ExoPlayerActivity.this)
                        .setTitle("Playback Error")
                        .setPositiveButton(R.string.ok, new DialogInterface.OnClickListener()
                            public void onClick(final DialogInterface dialog, final int id)

            public void onPositionDiscontinuity()
                Log.d(TAG, "ExoPlayer: Position Discontinuity.");

            public void onPlaybackParametersChanged(final PlaybackParameters playbackParameters)
                Log.d(TAG, "ExoPlayer: Playback Parameters Changed.");

    private MediaSource buildMediaSource(final Uri uri)
        final DataSource.Factory dataSourceFactory = new DefaultDataSourceFactory(this,
                Util.getUserAgent(this, "myapp"), BANDWIDTH_METER);
        final ExtractorsFactory extractorsFactory = new DefaultExtractorsFactory();
        final MediaSource videoSource = new ExtractorMediaSource(uri, dataSourceFactory, extractorsFactory, null, null);

        return videoSource;

    private void releasePlayer()
        if (player != null)
            playbackPosition = player.getCurrentPosition();
            currentWindow = player.getCurrentWindowIndex();
            playWhenReady = player.getPlayWhenReady();
            player = null;

    public void onBackPressed()


Layout: ``` <?xml version=“1.0” encoding=“utf-8”?> <RelativeLayout xmlns:android=“” android:layout_width=“match_parent” android:layout_height=“match_parent”>


</RelativeLayout> ```

Updated 17/10/2017 09:02 2 Comments

use_reloader hangs background task


Background tasks hang if use_reloader=True (or debug=True) is passed to Example

#!/usr/bin/env python2
import sys
import time
import flask
import flask_socketio

app = flask.Flask(__name__)
socketio = flask_socketio.SocketIO(app)

def background():
    print 'background'
    while True:
        print time.time()


if __name__ == '__main__':
    use_reloader = '--use_reloader' in sys.argv
    print 'use_reloader:', use_reloader, host='', port=5500, use_reloader=use_reloader)

Sample output: ``` $ ./ background 1508196843.42 use_reloader: False 1508196844.42 1508196845.43 1508196846.43 ^C

$ ./ –use_reloader background 1508196855.79 use_reloader: True * Restarting with stat background 1508196856.21 use_reloader: True ^C ``` In the last example there is no further output after the second ‘use_reloader: True’ line. The app continues to serve requests, and less-minimal examples show that the background task never exits, so it seems that the eventlet scheduler has forgotten about the background task. I’ve tried checking $WERKZEUG_RUN_MAIN to make sure the background task only starts once, either before or after the initial reload, but this doesn’t seem to make any difference.

There’s also the issue of what happens to existing background tasks on reload. Is it possible to raise an exception in their execution context so they can clean up after themselves?

Python version: Python 2.7.14 (default, Oct 16 2017, 13:26:08) [GCC 4.4.7 20120313 (Red Hat 4.4.7-17)] on linux2 Virtualenv pip freeze: click==6.7 enum-compat==0.0.2 enum34==1.1.6 eventlet==0.21.0 Flask==0.12.2 Flask-SocketIO==2.9.2 greenlet==0.4.12 itsdangerous==0.24 Jinja2==2.9.6 MarkupSafe==1.0 python-engineio==1.7.0 python-socketio==1.8.1 six==1.11.0 Werkzeug==0.12.2

Updated 17/10/2017 05:19 1 Comments

Scanner Activity Questions


two questions here;

  1. Should I override the activity onCreate to load another layout instead of it’s default ? or is there a way to configure it ?
  2. How can I slowdown the activity shutdown once the barcode found ? (beside overriding)
Updated 17/10/2017 05:15 1 Comments

Info about state codes



Selecting data from mem-typical.csv I can obtain this information about state codes:

UF Unidade da Federação
11             Rondônia
12                 Acre
13             Amazonas
14              Roraima
15                 Pará
16                Amapá
17            Tocantins
21             Maranhão
22                Piauí
23                Ceará
24  Rio Grande do Norte
25              Paraíba
26           Pernambuco
27              Alagoas
28              Sergipe
29                Bahia
31         Minas Gerais
32       Espírito Santo
33       Rio de Janeiro
35            São Paulo
41               Paraná
42       Santa Catarina
43    Rio Grande do Sul
50   Mato Grosso do Sul
51          Mato Grosso
52                Goiás
53     Distrito Federal
BR               Brasil
RegC      Regional Centro
RegL       Regional Leste
RegN       Regional Norte
RegS         Regional Sul

Will this information suffer any modification in the future? Can I create a table or a dict using this information?

Updated 17/10/2017 00:22

Create a decent test bench


On the internet (for instance here) we can find a list of functions to use as a test bench and use it to make sure new changes made to the algorithm don’t break it. In this list and some others I’ve found out there most of the problems deal with continuous variables, so before we go into this we should:

  • Find some functions to test boolean/discrete variables.
  • Implement continuous and discrete modes #8.
Updated 16/10/2017 22:11

Investigate --namespace flag overrides


From @jessicayuen on September 29, 2017 23:21

As we discussed offline, there’s a few things that need to be investigated:

  1. Whether the client-go flags are necessary in the env commands?
  2. What are the side effects of overriding client-go’s --namespace flag with a custom flag of the same name? Does it behave as expected?

Related: #161

Copied from original issue: ksonnet/kubecfg#166

Updated 16/10/2017 22:15

Shortcut for copy tables into Jupyter/SoS


I often find a need to copy various information in tabular format to SoS as description of data. Right now, the easiest method to do so is to use Pandas' read_clipboard function

import pandas as pd

and get a table as output. The problems are

  1. The table is in a separate cell as output
  2. The table can not be modified. In case that there are some problems with the pasted table (e.g. empty cells got shifted), there is no way to modify it.

I am wondering if we can implement a shortcut or magic to

  1. use read_clipboard to read the table in.
  2. use from tabulate import tabulate print(tabulate(df, headers='keys', tablefmt='pipe')) to get markdown
  3. Insert the markdown to current markdown cell.

Note that we currently do not have magic for markdown cells because markdown cells are handled by Jupyter frontend so the SoS kernel cannot touch it. So if we are going to implement this, we will have to implement it in frontend, and the frontend has to communicate with backend in private (not as cell execution) to get the markdown representation of the table.

Updated 16/10/2017 21:50

runtime N dimensions array with intelligent storage



I am trying to understand if xtensor will be suitable for my use case. I am looking for a array class where the number of dimensions itself is only known at runtime, and which does not necessarily have a regular grid shape, but potentially a triangular shape.

Specifically, I have a number of positive integer variables w_i that sum up to 100. 0<=i < N where N is a runtime value, and is the rank of the array + 1.

Step1 : w_i are specified as input ranges of integers: w1 : [0 - 10] w2: [10-20] w3: 20 … w_n-1: [0-10]

Step1.1: is to eliminate from the ranges absurd cases like > 100 or <0

Step2: only the N-tuples that are such that sum w_i =100 are applicable. The Array container is required to store the value of some function f of the vector W made of w_i components, and be indexable by the w_i. Ideally storage can be optimized to be less than Product [ RangeWidth(w_i) ]

Is xarray such a container? Or does it only allow a regular mesh?

Updated 17/10/2017 07:06 5 Comments

Class Graduation Criteria (SP 6)


A possible area for improvement, rather than a bug per se.

In SP 6.4 “A class member must dance club level or be expected to dance club level soon to graduate.”

I feel like this clause often causes us angst at class grad meetings, because we aren’t good at predicting people’s performance. I don’t have any great suggestions though.

Options include specifying that they dance some subset well (dance through week 10 competently), under an assumption that it takes a couple weeks of practice to become proficient at a new call.

Club level is also pretty ill defined; does this mean callerlab plus (as in section 2), what Ted calls the week after graduation, median dancer performance on a Tuesday, hard fast Plus…

I think we in practice mean “the level we dance”, where some portion of our club membership does not dance club level.

Updated 16/10/2017 21:07

Suggestion, how to store filter params?


For example, imagine we add some text to search, then we click on couple facet refinements, then we open detail of some entry from return index, and we need to return back (so we have to go back in a browser history). Is there a way to easy return parameters of the last search?

Updated 16/10/2017 21:35 3 Comments

'Recipes' for reducers, selectors, etc?


@ShMcK @scottclayton

I’m just brainstorming… Not sure if this is something that we want to rematch to help with or not. But I’m wondering if it would be nice to have some pre-made ‘recipes’ for common state designs? Not sure if ‘recipes’ is the right word here… hmm.

@ShMcK We briefly chatted about this the other day. I think I said something along the lines of “I use a lot of similar reducers and selectors, I want to reuse them!”. And you said something along the lines of “What if we use object spread?”

So, here’s a brain-dump:

I find that as I develop my apps, I tend to come up with a state structure for common things. For example, I end up using the same state structure when dealing with a collection…

Someone: “Make me a todo-list” Me: “Ok” My brain:


  name: 'todos',
  // I might have state like this. I kinda like this pattern of ``
  state: {
    '2fc9acde': {
      text: 'release rematch to the wild',
      done: false
    'fb6bb0e4': {
      text: 'drink coffee',
      done: true
  // with reducers like this...
  reducers: {
    addItem: (state, payload) => { ... },
    removeItem: (state, payload) => { ... },
    updateItem: (state, payload) => { ... },
    clearList: (state, payload) => { ... },
    // etc.
  // and selectors like this...
  selectors: {
    getItem: (state, payload) => { ... },
    findById: (state, payload) => { ... },
    getIds: (state) => { ... },
    getItemProperty: (state, payload) => { ... },
    // etc.

Later on…

Someone: “Make me a shopping cart” Me: “Ok” My brain: “Hey, I liked the way I dealt with the collection in my todos model. I think I’ll use the same design for this part of my shopping cart…”

So, maybe I move my reducers and selectors somewhere so they can be reused…


export const reducers = {
  addItem: (state, payload) => { ... },
  removeItem: (state, payload) => { ... },
  updateItem: (state, payload) => { ... },
  clearList: (state, payload) => { ... },
  // etc.

export const selectors = {
  getItem: (state, payload) => { ... },
  findById: (state, payload) => { ... },
  getIds: (state) => { ... },
  getItemProperty: (state, payload) => { ... },
  // etc.

And then use them in models that deal with collections with the same state structure.


import { reducers, selectors } from './recipes/collection'
  name: 'todos',
  state: {
    '2fc9acde': {
      text: 'release rematch to the wild',
      done: false
  reducers: { ...reducers },
  selectors: { ...selectors },


import { reducers, selectors } from './recipes/collection'
  name: 'shoppingCart',
  state: {
    '9bd1e596': {
      item: 'reese peanut butter cups',
      quantity: 99
  reducers: {
    anotherReducer:  (state, payload) => { ... },
    // etc.
  selectors: {
    anotherSelector:  (state, payload) => { ... },
    // etc.
Updated 17/10/2017 00:38 1 Comments

getsockopt: connection refused


I’m trying to run an example project callme on nodejs but armv7

Expected Behaviour

Running on localhost:8080

Current Behaviour

“… cannot connect to OpenFaaS on URL: http://localhost:8080”

Steps to Reproduce (for bugs)

Same as in topic “Morning coffee with the OpenFaaS CLI” faas-cli deploy -f callme.yml (with or without –gateway “http://localhost:8080” )



Updated 17/10/2017 07:25 13 Comments

SRS Comments: Directed Rounding


\wss{You haven’t mentioned directed rounding. Is that relevant for your problem. Of course it isn’t a concern for real numbers and exact arithmetic, but mentioning the assumed differences from floating point arithmetic makes sense to me.}

Updated 16/10/2017 20:45

bulkhead ratelimit


So we’ve had our rx bulkhead operator in production for a while - so far so good.

An interesting use case came about recently - certain events on the platform (cache flushes, service restarts, etc) lead to a gate rush scenarios, were we’re very quickly ramping up traffic in a certain direction. Bulkhead does it’s job, but for a short period of time, a downstream service is overwhelmed with requests - itself possibly just restarted, jit not fully warmed up, etc, it might be struggling.

So the idea is to have an optional “backpressure” on the bulkhead - say releasing up to d% of max permits per minute, so it can reach the cap, but the speed at which it can do it is limited.

What do you guys think ? Is that more along the lines of what ratelimiter is supposed to be doing ?

@RobWin @storozhukBM

Updated 17/10/2017 07:39 2 Comments

SSH Problems



I have a fresh installed Raspbian Stretch Lite (Version 2017-09-07) and installed P4wnP1, but I’m not able to ssh into the pi. I already tried an older raspbian version, but it also didn’t work. I also tried a different USB port, so it can’t be that… The LED on the BOOTED pi off is this normal? I need some help there.

Updated 17/10/2017 08:47 3 Comments



Maybe it’s a good idea to have a setting to be able to discable the references.

Kind of like we have with the TypeScript settings in VSCode: typescript.referencesCodeLens.enabled

Updated 17/10/2017 08:01 1 Comments

Timeline format: Using param "timelinestart" and "timelineend" results in empty timeline



  • MW version: 1.28.2
  • DB (MySQL etc.): 5.5.56-MariaDB
  • PHP version: 5.6.31 (apache2handler)
  • SMW version: 2.5.2
  • SRF version: 2.5.2 (2b22309) 16:47, 15 October 2017
  • Browsers and versions (if applicable):


Use of the SRF Timeline parameters “timelinestart” and “timelineend” not only do not work, but they kill the ASK such that the timeline renders without complaint, but contains no events.

Is have tried various date formats such as: “12:00 01/01/2001” and just “01/01/2001”.

documentation does not exist (that I can find) on the timeline format beyond the basic usage from the timeline help page … specifically, the parameters in question are not elaborated on in the main help article at


Updated 16/10/2017 21:03 4 Comments

Investigate implementing Zulipbot as a probot plugin


Just wanted to put it on your radar:

Probot is an [as yet unreleased?] project of GitHub that aims to aims to make easy just the sort of automation that Zulipbot does. It doesn’t do anything out of the box, but is intended to be modular.

Potential benefits off top-of-head:

  • less code to maintain
  • taking the blessed path of GitHub (which their developers are working on with you)
  • ability to let anyone use your app without self-hosting
  • split zulipbot into multiple apps, so people can install each app for features they want. Yay unix philosphy!

Anyhow, love the premise of this project as-is! Just wanted to put this out there in case it’s helpful :)

Updated 17/10/2017 01:33 1 Comments

Track Bert sync and other latencies?


<a href=“”><img src=“” align=“left” width=“96” height=“96” hspace=“10”></img></a> Issue by tgoodlet Thursday Mar 17, 2016 at 23:45 GMT Originally opened as

Would it make sense to start tacking times to sync and desync to get an idea of audio connection delays? I know I had to up the timeout to 20 secs for vega. @moises-silva?

Updated 16/10/2017 19:48 1 Comments

Change default call_id_var and app_id_var


<a href=“”><img src=“” align=“left” width=“96” height=“96” hspace=“10”></img></a> Issue by tgoodlet Wednesday Mar 16, 2016 at 03:49 GMT Originally opened as

When stress testing external VoIP software, switchy attempts to track calls through an association of sessions (SIP legs) corresponding to each full media path. Having access to all sessions composing a call allows test apps to implement various higher level control logic. By default we have been appending X-headers using the outbound originate command (and thus SIP invite) which can be referenced on subsequent SIP legs/sessions known to FreeSWITCH. In other words, if the device under test (DUT) forwards custom headers then call tracking is supported by default. However, call tracking can be accomplished by using other SIP headers as is the case with stress testing our Vega product line.

Currently by default we: - track calls using a sip_h_X-switchy_originating_session header which should contain a unique id within the context of the test session / outbound calls set - activate switchy apps through a sip_h_X-switchy_app header which normally contains whatever name (str) the app was registered with

I propose instead to: - track calls by inserting a unique id into the FROM header’s display name

This is a good alternative to the current solution since it has nearly the same semantics (using a caller’s “id”-ish header to identify unique calls). - activate switchy apps using the request-uri user part

This falls inline with traditional notions of DIDs and extensions (i.e. routing semantics) when switchy is utilized as a call routing / dialplan alternative

I’m looking for any criticisms or foresight as to whether to go ahead with this @moises-silva, @ncorbic, @joegen.

Updated 17/10/2017 01:10 6 Comments

`waitfor` should unblock and raise an error on premature session hangup


<a href=“”><img src=“” align=“left” width=“96” height=“96” hspace=“10”></img></a> Issue by tgoodlet Thursday Aug 27, 2015 at 02:53 GMT Originally opened as

Found an interesting isssue today where a test was waiting on the EventListener.waitfor call using the DtmfChecker app. The app in fact was not being invoked due to a failure with session-to-call association (due to the DUT not supporting x-header passthrough) and resulted in the waited on session actually being hungup much before the waitfor timeout. Really, if the session you’re waiting on for a state change is hungup before any such change, an error should be raised immediately!

The solution will most likely include always setting events (if available) for waiters of a particular session on hangup here: by simply adding a second condtion:

if model.vars.get(varname) or model.hungup:
    map(Event.set, events)

In the latter case the waitfor logic will need to be adjusted to check for the hangup flag as well and raise an appropriate error in the calling thread somewhere here:

My only concern would be for the case where some waiter is actually waiting for the hangup event itself. In that case I’m not sure exactly what to do… Maybe add a no_err_on_hangup flag to waitfor??

Updated 16/10/2017 19:48

Bulanıklık Testi - Secchi Diski


Projemizin Wiki Sayfasında Secchi Diskinin tanımı vardır üzerinde genişletilebilir.

Mevcut uygulamadaki standart linkteki görsel gibi olsa bile. Benim bu bilgiyi okumadan önce hayal ettiğim görme testindekine benzer belli aralıkların olduğu bir çubuk. Ya da belli aralıklarla bir referans objesini yerleştirme şeklindeydi. Gerek standart ölçüm yöntemi olsun ya da üzerinde düşündüğüm yöntemler olsun. Bu yaklaşımın düşündüğüm olası problemleri:

  1. İnsanların yüzme- denizle ilişkisini rahatsız etmeden bunu nasıl sağlayabiliriz?
  2. Koyacağımız ölçüm araçlarının denizde kalmasında yaşayacağı tahribat ve ne kadar süre kullanılabileceği yöntemi?
  3. Sensörün ya da kameranın olduğu birimin yerleştirilmesi- hem dikkat çekmeyeceği bir şekilde olması gerekiyor.
  4. Yine olası ışık değişimlerinin deniz içindeki görünürlüğe olan etkisinin de bir şekilde hesaba katılması gerekiyor.

Direkt yüzme alanının değil ama tekne dubalarının hizasında duba görüntüsünün altında kamera ve diğer bir başkasının altında da referans objesini yerleştirebiliriz. Tabi sensörün bulunduğu yapının bir şekilde enerjisini de hesaba katmalıyız. Wiki sayfasındaki dinamik sistem örneği resminde güneş panelinin kullanıldığı görülebilir ama bu sefer de dikkat çekeceğimiz kesindir. İskelenin altında bu sistemi kurgulamak olasılıklardan bir tanesi ama oradaki örnek ne kadar gelen durumu gösterir emin olamadım. Sevgiler, İlk issue yazımla Mert :)

Updated 16/10/2017 19:25

CUDA team parallel_reduce with custom value class


A user on our Slack channel is asking about how to use parallel_reduce across a Team in CUDA where the value type is a class of their own, using lambdas.

I think the answer is either: - you can’t use lambdas with custom reduction types, use a functor - you have to specialize reduction_identity, then maybe it will work

Here is their reproducer (modified by me) and compile error: ```cpp

include <Kokkos_Core.hpp>

include <Kokkos_Complex.hpp>

using namespace std;

struct achtempStruct { Kokkos::complex<double> value[3]; KOKKOS_INLINE_FUNCTION void operator+=(achtempStruct const& other) { for (int i = 0; i < 3; ++i) value[i] += other.value[i]; } KOKKOS_INLINE_FUNCTION void operator+=(achtempStruct const volatile& other) volatile { for (int i = 0; i < 3; ++i) value[i] += other.value[i]; } };

int main(int argc, char** argv) { typedef Kokkos::Cuda ExecSpace; typedef Kokkos::CudaUVMSpace MemSpace; typedef Kokkos::LayoutLeft Layout; typedef Kokkos::RangePolicy<ExecSpace> range_policy; typedef Kokkos::TeamPolicy<> team_policy; typedef Kokkos::TeamPolicy<>::member_type member_type;

typedef Kokkos::View<Kokkos::complex<double>, Layout, MemSpace> ViewScalarTypeComplex; typedef Kokkos::View<Kokkos::complex<double>*, Layout, MemSpace> ViewVectorTypeComplex; typedef Kokkos::View<Kokkos::complex<double>**, Layout, MemSpace> ViewMatrixTypeComplex;

typedef Kokkos::View<int, Layout, MemSpace> ViewVectorTypeInt; typedef Kokkos::View<double, Layout, MemSpace> ViewVectorTypeDouble;

typedef Kokkos::View<int, Layout, MemSpace> ViewScalarTypeInt; typedef Kokkos::View<double, Layout, MemSpace> ViewScalarTypeDouble;

Kokkos::initialize(argc, argv); {

int number_bands = 32, ngpown = 32;


auto start_chrono = std::chrono::high_resolution_clock::now();

Kokkos::parallel_for(team_policy(number_bands, Kokkos::AUTO, 32) , KOKKOS_LAMBDA (const member_type& teamMember)
    const int n1 = teamMember.league_rank();
    Kokkos::complex<double>  achtemp[3];
    achtempStruct achtempVar = {{achtemp[0],achtemp[1],achtemp[2]}};

    int nstart = 0; int nend = 3;
    Kokkos::parallel_reduce(Kokkos::TeamThreadRange(teamMember, ngpown), [&] (const int my_igp, achtempStruct& achtempVarUpdate)
        for(int iw=nstart; iw<nend; ++iw) {
        Kokkos::complex<double>  expr;
        achtempVarUpdate.value[iw] += expr;

        },achtempVar); // for - ngpown

    }); // for - number_bands

auto end_chrono = std::chrono::high_resolution_clock::now();

std::chrono::duration<double> elapsed_chrono = end_chrono - start_chrono;

cout << "********** Chrono Time Taken **********= " << elapsed_chrono.count() << " secs" << endl;

} Kokkos::finalize(); } ```

/home/daibane/install/nvcc/Trilinos/include/Kokkos_Parallel_Reduce.hpp(101): error: incomplete type is not allowed
          detected during:
            instantiation of "void Kokkos::Experimental::Sum<Scalar, Space>::init(Kokkos::Experimental::Sum<Scalar, Space>::value_type &) const [with Scalar=achtempStruct, Space=Kokkos::HostSpace]" 
/home/daibane/install/nvcc/Trilinos/include/Cuda/Kokkos_Cuda_Team.hpp(752): here
            instantiation of "std::enable_if<<expression>, void>::type Kokkos::parallel_reduce(const Kokkos::Impl::TeamThreadRangeBoundariesStruct<iType, Kokkos::Impl::CudaTeamMember> &, const Closure &, ValueType &) [with iType=int, Closure=lambda [](int, achtempStruct &)->void, ValueType=achtempStruct]" 
rgayatri.cpp(58): here
Updated 16/10/2017 19:51 2 Comments

Question - how do I run on ARMHF or ARM64?


I’m experimenting with OpenFAAS from “Morning coffee with the OpenFaaS CLI”

Expected Behaviour

I should have a built docker image, isn’t it?

Current Behaviour

En error

Steps to Reproduce (for bugs)

Following the description Here is a picture image

Your Environment

Docker version 17.09.0-ce, build afdb6d4

  • Are you using Docker Swarm or Kubernetes (FaaS-netes)?

  • Operating System and version (e.g. Linux, Windows, MacOS): Linux odroid64 3.14.79-116 #1 SMP PREEMPT Tue Sep 26 01:19:06 BRT 2017 aarch64 aarch64 aarch64 GNU/Linux

Help me, please!

Updated 16/10/2017 20:25 8 Comments

Country not on list error text tweak


Propose simplifying the error text:

Current <img width=“919” alt=“screen shot 2017-10-16 at 2 50 23 pm” src=“”>

Proposed change <img width=“933” alt=“screen shot 2017-10-16 at 3 10 23 pm” src=“”>

Thoughts @lauraponce @billy22g @pjsumm

Updated 16/10/2017 19:10

Implement Inital Routes


This defines the routes expected by the client’s inital release. Those are:

  • [ ] HEAD /ping: Returns X-Up-For header to confirm uptime.
  • [ ] GET /version: Returns the expected client version and the server’s version.
  • [ ] POST /graphql: Provides the GraphQL interactivity layer.
  • [ ] POST /auths/new: Creates a new authenticated session.
  • [ ] DELETE /auths/:id: Destroys the provided session.
  • [ ] POST /users/new: Creates a new user.
  • [ ] DELETE /users/:id: Queues user for self-deletion after a week.
Updated 16/10/2017 18:57 1 Comments

Fork me on GitHub