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

Connect to wpa2 enterprise WI-FI


Our Arduino ESP8266 module can only connect to wpa2-personal and wpa Wi-Fi. But our school WI-FI is wpa2-enterprise. We can not connect to the internet. Now, we have two possible methods to solve this problem. 1. The ESP6266 repository has some useful code which maybe can help us to connect 2. We can use stem32. But this method is a little expensive. 3. Another solution from stack overflow 4. Fourth solution, also use ESP8266 to connect.

Updated 30/04/2017 16:26

ping to the default gateway and the name server


One more query. Thanks in advance!

Is it possible to ping to the default gateway and the name server, by automatically finding the addresses under DHCP environment?

The RTT to the default gateway tends to reflect the local Wifi congestion of our IoT device. Also the RTT to the name server tends to reflect the congestion of the uplink network beyond the local subnet (beyond the gateway) in cases like that a shopping mall with lots of people overwhelm ISP uplink bandwidth. Because of DHCP, no fixed addresses are available. If fping can figure out the address by itself using routing table or dig command output, that would be a great help for us.

Updated 30/04/2017 16:44 1 Comments

Zero-based graph for system.active_processes


Thank you for this great project. We are using netdata like a visual replacement of the aggregated system commands like top, vmstat, iostat, …,etc., because our target machine is head-less configuration (no keyborad, no screen, no mouse).

I have one query. Is it possible for me to draw system.active_processes zero-based? (any configuration parameter available?)

The sudden increase in the number of processes can be observed by system.forks graph, so we want to see the gradual increases of the total number of processes using system.active_processes. For that regard, zero-based graph is preferred.


Updated 30/04/2017 16:47 1 Comments

Topics: Community area data responsive to year drop-down?


A question came up in our recent usability test related to the indicator topic page “Teen Birth Rate.” It appears when you toggle from “City Wide” to “Community area” and then change the year in the drop-down, the data for each community area does not change.

The questions that came up were: - Is this is correct, and the data has stayed the same over the years? Or are there minor changes in data that we are not observing? - Is this community area data specific only to one year and, therefore, the user should not be able to change the year? - Do we have community area data for different years, and there is currently a bug causing it not to display?

Updated 30/04/2017 15:12

Should wxChartPanel and Chart classes be merged?


It seems to me that the only advantage of having separate classes for wxChartPanel and Chart is so that a chart can be completely replaced within an existing wxChartPanel.

However, this really seems to be an unusual case, except for the demo and IMHO introduces an unnecessary extra level of complexity.

Updated 30/04/2017 14:48

Consider a JS build tooling


A state-of-the-art website build using JS tooling would probably translate into one more opportunity to demonstrate the local community’s skills. Then, it would better integrate with other à la mode JS tools: test coverage, code quality, other badges, etc.

Updated 30/04/2017 15:31 1 Comments

Recover from bad redis connection



  • Master redis host goes down and the slave automatically failed-over (promoted to slave by sentinels).
  • When old master is back, it is made a slave of the new master.
  • But for some reason, a ganomede-invitation instance didn’t close the connection with the original redis master server. So it’s now connected with the slave.
  • All write operations fail (see error below), service is still marked as “healthy” (replies to ping), but never recover from this status
    failed to EXPIRE redis key `jeko` Error: READONLY You can't write against a read only slave.
        at ReplyParser.<anonymous> (/home/app/code/node_modules/redis/index.js:317:31)

Possible solutions:

  1. restart the worker in case of any redis error (throwing the error should do just that)
  2. run INFO REPLICATION on all linked redis databases from /ping/, to see if we’re connected to master instances. Fail if not.
    • This probably a general issue in all services. A clean change to the ping router (parametrized with all redis connection to check) should make it relatively to backport.

Maybe 1 is good enough and easy to put in place, since db requests are pretty centralized?

Updated 30/04/2017 16:44 2 Comments

installation synology



I tried a a installation on my synology, unfortunatly there is only Node v4 available.

During the installation I got some warnings about the node version, when I try to start I got the following:

tino@DiskStation:/usr/local/rf$ node node_modules/node-raumserver/test.js /usr/local/rf/node_modules/node-raumserver/lib/lib.raumserver.js:27 createLogger(logLevel = 2, path = “./logs”) ^

SyntaxError: Unexpected token = at exports.runInThisContext (vm.js:53:16) at Module.compile (module.js:373:25) at Object.Module.extensions..js (module.js:416:10) at Module.load (module.js:343:32) at Function.Module.load (module.js:300:12) at Module.require (module.js:353:17) at require (internal/module.js:12:17) at Object.<anonymous> (/usr/local/rf/node_modules/node-raumserver/test.js:2:18) at Module.compile (module.js:409:26) at Object.Module._extensions..js (module.js:416:10)

Is the node version too old for your package?

Best Regards, Tino.

Updated 30/04/2017 13:36 1 Comments

Are default endpoints really RESTful?

Route HTTP Verb Description
/media/sources GET Retrieve a list of media sources
/media/sources/:source GET Retrieve a list of top–level directories of a given media source
/media/sources/:source?path=assets%2Fimg GET Retrieve a list of media items and subdirectories of a given directory of a given media source
/media/sources/:source?path=assets%2Fimg%2Fturtle.jpg DELETE Delete a given media item of a given media source
/media/sources/:source?path=assets%2Fimg POST Upload files to a given directory of a given media source
/media/sources/:source?path=assets%2Fimg%2turtle.jpg&name=sea.jpg PUT Rename a given media item of a given media source
/media/sources/:source?path=assets%2Fimg&name=images PUT Rename a given directory of a given media source
/media/attachments/:source POST Serve a zip file build from posted form data with cd, cs, and list of zip-files[]

Updated 30/04/2017 15:22

Error with new API event AbstractUnregisterEvent


I checked everything. It is not working because of AuthMe. Error:

org.bukkit.plugin.IllegalPluginAccessException: Unable to find handler list for event Static getHandlerList method required!
        at org.bukkit.plugin.SimplePluginManager.getRegistrationClass( ~[spigot-1.11.2.jar:git-Spigot-54ec0b8-ac405c3]
        at org.bukkit.plugin.SimplePluginManager.getRegistrationClass( ~[spigot-1.11.2.jar:git-Spigot-54ec0b8-ac405c3]
        at org.bukkit.plugin.SimplePluginManager.registerEvents( ~[spigot-1.11.2.jar:git-Spigot-54ec0b8-ac405c3]
        at lt.TerZer.ServerCore.Listiners.FirstTimeListener.<init>( ~[?:?]
        at lt.TerZer.ServerCore.Main.loadListeners( ~[?:?]
        at lt.TerZer.ServerCore.Main.onEnable( ~[?:?]
        at ~[spigot-1.11.2.jar:git-Spigot-54ec0b8-ac405c3]
        at [spigot-1.11.2.jar:git-Spigot-54ec0b8-ac405c3]
        at org.bukkit.plugin.SimplePluginManager.enablePlugin( [spigot-1.11.2.jar:git-Spigot-54ec0b8-ac405c3]
        at org.bukkit.craftbukkit.v1_11_R1.CraftServer.enablePlugin( [spigot-1.11.2.jar:git-Spigot-54ec0b8-ac405c3]
        at org.bukkit.craftbukkit.v1_11_R1.CraftServer.enablePlugins( [spigot-1.11.2.jar:git-Spigot-54ec0b8-ac405c3]
        at org.bukkit.craftbukkit.v1_11_R1.CraftServer.reload( [spigot-1.11.2.jar:git-Spigot-54ec0b8-ac405c3]
        at org.bukkit.Bukkit.reload( [spigot-1.11.2.jar:git-Spigot-54ec0b8-ac405c3]
        at org.bukkit.command.defaults.ReloadCommand.execute( [spigot-1.11.2.jar:git-Spigot-54ec0b8-ac405c3]
        at org.bukkit.command.SimpleCommandMap.dispatch( [spigot-1.11.2.jar:git-Spigot-54ec0b8-ac405c3]
        at org.bukkit.craftbukkit.v1_11_R1.CraftServer.dispatchCommand( [spigot-1.11.2.jar:git-Spigot-54ec0b8-ac405c3]
        at org.bukkit.craftbukkit.v1_11_R1.CraftServer.dispatchServerCommand( [spigot-1.11.2.jar:git-Spigot-54ec0b8-ac405c3]
        at net.minecraft.server.v1_11_R1.DedicatedServer.aM( [spigot-1.11.2.jar:git-Spigot-54ec0b8-ac405c3]
        at net.minecraft.server.v1_11_R1.DedicatedServer.D( [spigot-1.11.2.jar:git-Spigot-54ec0b8-ac405c3]
        at net.minecraft.server.v1_11_R1.MinecraftServer.C( [spigot-1.11.2.jar:git-Spigot-54ec0b8-ac405c3]
        at [spigot-1.11.2.jar:git-Spigot-54ec0b8-ac405c3]
        at Source) [?:1.8.0_66]
Updated 30/04/2017 15:37 5 Comments








只需要增加await,等待异步执行完成后传接成功内容给http body,代码如下:

 await passport.authenticate('local', function(err, user, info, status) {.....}
Updated 30/04/2017 12:09








后端React 使用renderToString渲染 图片路径变为hash码名称|原因是由于Nodejs加载文件时,会自动转为hash名称|使用插件asset-require-hook钩子来返回正确的图片名称

  extensions: [
    'jpg', 'png', 'gif', 'webp'
  name: '[name].[ext]',
  limit: 2000
Updated 30/04/2017 12:08

【react热加载问题】引入react-hot-loader3之后报错 Warning: ExceptionsManager.js:76 <Provider> does not support changing `store` on the fly. It is most likely that you see this error because you updated to Redux 2.x and React Redux 2.x which no longer hot reload reducers automatically. See for the migration instructions. Warning: [react-router] You cannot change <Router routes>; it will be ignored



引入react-hot-loader3之后报错 Warning: ExceptionsManager.js:76 <Provider> does not support changing store on the fly. It is most likely that you see this error because you updated to Redux 2.x and React Redux 2.x which no longer hot reload reducers automatically. See for the migration instructions. 和 Warning: [react-router] You cannot change <Router routes>; it will be ignored


第一个问题未知,请参考client/redux的文件夹里面的设置可以解决 第二个问题是react-router组件v2和v3版本的问题,官方说并不影响热替换


react-router3 在使用react-hot-loader3时会出现报错的问题, 不需要管它, 这并不影响使用 如果想解决可以给router加随机数 <Router history={history} routes={routes} key={Math.random()}/> 或者更换react-router4 即可

Updated 30/04/2017 12:04

【react问题】控制台报错 ReactDOMComponentTree.js:113 Uncaught TypeError: Cannot read property '__reactInternalInstance$xvrt44g6a8' of null at Object.getClosestInstanceFromNode. 和 Uncaught RangeError: Maximum call stack size exceeded



控制台报错 ReactDOMComponentTree.js:113 Uncaught TypeError: Cannot read property ‘__reactInternalInstance$xvrt44g6a8’ of null at Object.getClosestInstanceFromNode. 和 Uncaught RangeError: Maximum call stack size exceeded




    <Provider store={store}>
), document.getElementById('root'));
    <Provider store={store}>
), document.getElementById('root'));
Updated 30/04/2017 12:05

【react问题】控制台报错 Warning: setState(...): Can only update a mounted or mounting component. This usually means you called setState() on an unmounted component. This is a no-op. Please check the code for the App component.



谷歌报错 Warning: setState(…): Can only update a mounted or mounting component. This usually means you called setState() on an unmounted component. This is a no-op. Please check the code for the App component.




class Timer extends React.Component {
  constructor(props) {
    this.state = {secondsElapsed: 0};

  tick() {
    this.setState((prevState) => ({
      secondsElapsed: prevState.secondsElapsed + 1

  componentDidMount() {
    this.interval = setInterval(() => this.tick(), 1000);

  componentWillUnmount() {

  render() {
    return (
      <div>Seconds Elapsed: {this.state.secondsElapsed}</div>
ReactDOM.render(<Timer />, mountNode);
Updated 30/04/2017 12:05

Undefined warnings `extended_pos/2`


The following program emits undefined warnings when loading:

:- meta_predicate test(1).

test :- test([a(_)]).

test(Goal_1) :- call(Goal_1, b).

These are the warnings:

$ swipl
Warning: /home/wbeek/
    Unknown message: extended_pos(list_position(47,53,[term_position(48,52,48,49,[50-51])],none),1)
Warning: /home/wbeek/
    Unknown message: extended_pos(list_position(47,53,[term_position(48,52,48,49,[50-51])],none),1)

I’m not sure what the warning message should be here? Suggestions?

Updated 30/04/2017 11:54

Usage of ui.forElement


The usage for ui.forElement and ui.forElements has been deprecate. We still have it in our Engine class though:

This makes a lot of noise, especially in tests.

Updated 30/04/2017 11:54

five best models now included in `udg`


Build 39 has the five best models included in udg, so no need to parse it separately. In the long term, we could use them instead of what we are doing now.

[1] "(0 1 2)(0 1 1)"

[1] -1.904

[1] "(1 1 1)(0 1 1)"

[1] -1.901

[1] "(1 1 2)(0 1 1)"

[1] -1.89

[1] "(0 1 1)(0 1 1)"

[1] -1.889

[1] "(2 1 1)(0 1 1)"

[1] -1.885

[1] "(0 1 2)(0 1 1)"
Updated 30/04/2017 10:20

serial communication error


Hi I have a problem with the rx and the tx pins, I am using a wemos d1 this is what I got above the Arduino UNO serial monitor with serial reading sketch uploaded hooked up to the wemos d1 and below the wemos d1 serial monitor schermafbeelding 2017-04-30 om 11 49 49 here are my settings schermafbeelding 2017-04-30 om 12 07 01

Updated 30/04/2017 16:34 11 Comments

Best Python data types for OData Geography and Geometry types?


OData v4 introduces the Edm.Geography and Edm.Geometry primitive types. I am interested to know what types, if any, I should bind these values to in Python?

For testing purposes it would be useful to have a library recommendation (and a few hints) that can evaluate the basic geo functions (particularly for Geography types) defined by the standard: geo.distance, geo.intersects and geo.length.

For Geometry I already have code that will do point intersection with Polygon (due to QTI hot-spot question requirements) so can roll-my own relatively easily but a better choice would be a type that I could expect to store natively through a Python DB interface to a database that understands such types.

Updated 30/04/2017 09:46

I can't login or register.


I can't login or register.

I have an account in your previous site. And i can't login or register here. Why?

fbitem-8b16037cf12b5f958bf6d374db1c1429764c1b51 Reported by: System: Opera 44.0.2510 / Windows 10 0.0.0 Referer: Window size: width 1536 - height 728 API log,time:(from:‘2017-04-30T09:29:05.493Z’,mode:absolute,to:‘2017-04-30T09:35:05.493Z’))&a=(columns:!(request,response,clientip),filters:!(),index:‘prod-varnish-’,interval:auto,query:(query_string:(analyze_wildcard:!t,query:‘response:%3E499%20AND%20(’)),sort:!(‘@timestamp’,desc))&indexPattern=uat-varnish-&type=histogram) Site log,time:(from:‘2017-04-30T09:29:05.493Z’,mode:absolute,to:‘2017-04-30T09:35:05.493Z’))&a=(columns:!(request,response,clientip),filters:!(),index:‘prod-varnish-’,interval:auto,query:(query_string:(analyze_wildcard:!t,query:‘response:%3E399%20AND%20(’)),sort:!(‘@timestamp’,desc))&indexPattern=uat-varnish-&type=histogram)

Updated 30/04/2017 09:34

Would an <organisationalConcept> annotation be useful?


We used this in EFO to indicate concepts which were mostly for organisational purposes (structuring the tree) and were not really intended for annotation. There are lots of examples of these in EDAM (including all terms at the topic level).

Should we do it for EDAM? I imagine the value could be in two parts: 1. to see what concepts we don’t think are very useful for annotation (and so, do we really need them?) 2. having use the annotation, e.g. as a hint for the end-user when picking terms

Thoughts welcome …

Updated 30/04/2017 08:26 1 Comments

Vote to skip?


The current playlist is planned hours in advance. I do think that occasionally playing a complete album is nicer than purely global shuffle, but it does mean we can’t really have a request form like r/a/dio. The next best thing is a link to vote to skip an upcoming track.


  1. Add an AJAX-powered button to send a “skip track” request to the backend.
  2. Keep track of number of listeners of the channel.
    • Maybe it should only be listeners who are listening via, rather than or other sites. Those other people won’t be voting.
    • The number of listeners on can be measured by logging unique IPs over a short time.
  3. Keep track of number of skip votes.
  4. Remove the track from the playlist when the skip votes reach a certain proportion of the listeners.
Updated 30/04/2017 11:15 2 Comments

Why is TWP all async?


Just wondering the design decision behind using async routines within TWP.

The responses received usually do not match the requests made by a browser.

I like the OnRequest & OnResponse events to trigger my custom code, but it seems like I have to do a lot work so I can understand which response goes with which request.

Because I could, I modified all async routines so TWP behaved in a synchronous manner. Kind of what I was expecting, so I have been wondering several months now why TWP was designed to be async?

Updated 30/04/2017 14:44 2 Comments

Traefik doesn't `hot` detect newly added containers when using the consul_catalog provider


<!– How to write a good issue?


And the contributing guide: –>

Do you want to request a feature or report a bug?


What did you do?

Up-scaling the number of web-app docker containers via Nomad, traefik picks up the changes from the consul catalog only after a restart.

On the other hand, down-scaling changes are picked up immediately.

I wonder what exactly am I doing wrong?

Output of traefik version: (What version of Traefik are you using?)

Using traefik ver1.2.3 (latest) with consul_catalog + nomad as  container orchestrator.

What is your environment & configuration (arguments, toml, provider, platform, …)?

debug = true
checkNewVersion = false
traefikLogsFile = "log/traefik.log"
accessLogsFile = "log/access.log"
logLevel = "DEBUG"
ProvidersThrottleDuration = 5
defaultEntryPoints = ["http"]

  endpoint = ""
  constraints = ["tag==public"]

    address = ":80"

  address = ":8080"

   RecentErrors = 10

  endpoint = ""
  watch = true
  prefix = "traefik"

<!– Add more configuration information here. –>

If applicable, please paste the log output in debug mode (--debug switch)

INFO[0062] Skipping same configuration for provider consul_catalog
Updated 30/04/2017 10:18 1 Comments

Question: How to pass messages to a Chrome extension?


I have a Chrome extension with the debugger permissions on, and I’m trying to use this module to try to pass messages to it.

I tried this -

function sendMessageToExtension(extensionID) {
        return CDP.List((err, targets) => {
            let target = targets.filter(target => target.url.startsWith('chrome-extension://'))
            target = target && target[0];
            if (!target) {
                throw new Error('No extensions were loaded!');
            return CDP({tab: 'ws://localhost:9222/devtools/browser'}, client => {
                const { Target } = client;
                return Target.createTarget({url: 'ws://localhost:9222/devtools/browser'}, target => {
                    return Target.sendMessageToTarget({ targetId:, message: 'xxx' }).then(x => {
                            console.log('final = ', x);
                            return x;

I also tried this -

function sendMessageToExtension(extensionID) {
        return CDP.List((err, targets) => {
            let target = targets.filter(target => target.url.startsWith('chrome-extension://'))
            target = target && target[0];
            if (!target) {
                throw new Error('No extensions were loaded!');
            return CDP({tab: 'ws://localhost:9222/devtools/browser'}, client => {
                const { Target } = client;
                return Target.attachToTarget({ targetId: }, done => {
                    console.log('ATTACH? ', done);
                    return Target.activateTarget({ targetId: }, done => {
                        console.log('ACTIVATE? ', done);
                        return Target.sendMessageToTarget({ targetId:, message: 'xxx' }).then(x => {
                            console.log('final = ', x);
                            return x;

Both functions throw a 'Target.sendMessageToTarget' wasn't found error. I’ve tried with the remote switch set to both possible values, and still no luck!

Updated 30/04/2017 11:18 1 Comments

Translated routes : No redirection with the right locale



I’m having troubles with translated routes. Here is what currently works:

  • (French for ‘home’)

When I don’t specify the locale in the URL, this also works:

  • => redirection => => Nice, that’s what I want

But this doesn’t work:

  • => not found => Not nice, I wanted a redirection to

Why ? If my last URL is, for example, , shouldn’t the locale be still set to English when I try to access it without the en/ in the URL ? I’m confused, do you have a solution ?

My web.php: ``` Route::localizedGroup(function () { Route::get(‘/’, ‘HomeController@index’);

Route::transGet('routes.home', function () {
    return "home";

Route::transGet('routes.about', function () {
    return "about";

}); ```


Updated 30/04/2017 16:38 2 Comments

Setting up an EV3 as a Bluetooth client for controlling BT peripherals?


I have a couple of BuWizz blocks that I was hoping to be able to use as additional motor/other controllers via Bluetooth. I have ask the BuWizz people whether they can provide an API/protocol for communicating with the blocks, but I also need some background about how to set this up from the client end on the EV3.

What is the best way to attack this given that BuWizz publish their protocol?

Updated 30/04/2017 09:37 5 Comments

Splash Screen


Hey guys,

Here is the final version of v.1 for our splash screen. Let me know if you think there are any necessary adjustments we need to make before I add it to our dictionary tomorrow…

<img width=“364” alt=“screen shot 2017-04-29 at 8 52 39 pm” src=“”>

<img width=“652” alt=“screen shot 2017-04-29 at 8 52 15 pm” src=“”>

Updated 30/04/2017 03:57

Quests LV tier 2 - Tico Tools tier 2 , unable to detect


I crafted an Tico Hammer with steel parts as stated in the “One Block mining is so Old School” quest. The quest does not detect my fresh made Steel hammer in part 2 of the quest.

Quest IDs; 742 743 744

Tested and affected quests are Hammer, Lumber axe

The excavator quest wants you to craft 2 Large Plates, but you only need 1 for the Excavator.

Suggestion to avoid this problem; Remove part 2 of the quest, so you only have to make the parts to build the hammer with, to complete the quest?

Updated 30/04/2017 09:41 3 Comments




浮动元素的特征:首先脱离文档正常流,根据设置的浮动方式向左或向右浮动,直到遇所处容器的的边框或其它浮动元素。 对父容器的影响:会使父容器高度塌陷; 对其它浮动元素的影响:会阻止其它浮动元素继续移动; 对普通元素的影响:普通元素就像感知不到浮动元素的存在,浮动元素会覆盖住普通元素; 对文字的影响:文字能够感知到浮动元素,会环绕浮动元素按顺序显示;

2. 清除浮动指什么? 如何清除浮动? 两种以上方法

清除浮动:浮动会造成的父容器塌陷,造成页面布局破坏;因此通过清除浮动来解决; 清除浮动方法:



让父容器形成BFC(Block Formatting Context),创建一个新的格式化上下文来清除浮动



释义:默认值,没有定位; 元素处于正常文档流中(忽视top,right,bottom,left和z-index的声明) 参考点:自己所处文档流中的位置; 定位规则:按照html文档布局规则排序; 使用场景:默认值;在不进行更改的情况下默认为static;


释义:相对定位的元素。 参考点:元素本身正常位置。 定位方式:通过top,right,bottom,left实现定位; 使用场景:层叠的卡片,微调icon位置


释义:绝对定位元素。 参考点:,right,bottom,left属性值为auto时:默认位置为最近的非static祖先元素的padding内侧; 2.设置top,right,bottom,left属性值后,参考的是非static祖先元素的border内侧;

定位方式:通过top,right,bottom,left实现定位; 使用场景:弹窗卡片(固定宽高)的水平竖直居中。


释义:绝对定位元素; 参考点:浏览器窗口; 定位方式:top,left,bottom,left; 使用场景:网页的回到顶部图标、页面固定显示的菜单栏。





4.z-index 有什么作用? 如何使用?

z-index 属性:指定了一个元素及其子元素的 z-order。 当元素之间重叠的时候,z-order 决定哪一个元素覆盖在其余元素的上方显示。 通常来说 z-index 较大的元素会覆盖较小的一个。 用法:元素必须定位为非static元素后,才能正常使用z-index属性; 1.默认情况属性值为auto,此时不会创建新的本地堆叠上下文;堆叠层级和父元素堆叠层级相同; 2.当为其赋值为整数后;整型数字是生成的元素在当前堆叠上下文中的堆叠层级。元素会立即创建一个堆叠层级为0的本地堆叠层级上下文;此时子元素不会与父元素外边的元素进行层级对比。

(和定位相似,先找祖先元素的层叠上下文;这是判断他们是否在同一个层叠上下文的依据;不是根据是父元素还是子元素来判断 Note: 值得记住的是,通常HTML的层次结构和层叠上下文的层次结构是不同的。在层叠上下文的层次结构中,没有创建层叠上下文的元素同其父级处于同一个层叠上下文(类似于同一个级别)。)



position:relative:移动后本身占据的位置还存在,也就是说对整个文档流的排序没有影响; margin:本质上就是挪动自己在文档流中的位置布局,其后面所有的元素也会因此而改变布局;

BFC 是什么?如何生成 BFC?BFC 有什么作用?举例说明

BFC:全称是Block Formatting Context,即块格式化上下文。它是CSS2.1规范定义的,关于CSS渲染定位的一个概念。


  2.浮动 (元素的 float 不是 none)
  3.绝对定位的元素 (元素具有 position 为 absolute 或 fixed)
  4.内联块 inline-blocks (元素具有 display: inline-block)
  5.表格单元格 (元素具有 display: table-cell,HTML表格单元格默认属性)
  6.表格标题 (元素具有 display: table-caption, HTML表格标题默认属性)
  7.块元素具有overflow ,且值不是 visible
     display: flow-root
  8.弹性盒 flex boxes (元素的display: flex或inline-flex);



  2.处于同一个BFC中的元素相互影响,可能会发生margin collapse;
  3.每个元素的margin box的左边,与容器块border box的左边相接触(对于从左往右的格式化,否则相反)。即使存在浮动也是如此;





Updated 30/04/2017 15:54

after ssr


After rendering the page, I observe the variable window.__NUXT__= { ... } in HTML code

1) Is it possible to somehow remove it from HTML? 2) If it is impossible to comply with paragraph 1, can it be better to apply obfuscation? So that the data is not available in explicit form (for some projects, this is a critical point)

Updated 30/04/2017 08:33

Connecting to React...


Hi this may not be an issue with react_on_rails but maybe you can help me. I implemented a small example project and it runs. But in Chrome when i go to the React tab it always is stuck on “Connecting to React…” Anyone else have this, know how to work around?

Updated 30/04/2017 10:13 1 Comments

Create Debian backport


The only dependency of netdata and netdata-data not already in Debian Stable is fonts-font-awesome, which already has a working backport. I was able to install the package from unstable without any issues (aside from #2135, which is unrelated), but it would be nice to have an official backport.

Updated 30/04/2017 16:48 1 Comments

cellForItem dequeing cell with IBOutlets == nil


Could there be any reason why my cell is dequeing with all IBOutlets being nil? Trying to literally load a basic cell but crashing on:

    cell.messageLabel.text = message?.text

with fatal error: unexpectedly found nil while unwrapping an Optional value

and Variables View / Console showing all other IBOutlets are nil (ie messageLabel = (UILabel!) nil hence my belief the reason for the crash. Here’s the Section Controller:

class MessageSectionController: IGListSectionController {
    var message: Message?

extension MessageSectionController: IGListSectionType {
    func numberOfItems() -> Int {
        return 1

    func sizeForItem(at index: Int) -> CGSize {
        guard let context = collectionContext, let message = message else {
            return .zero

        return MessageCollectionViewCell.size(for: context.containerSize.width, message: message)

 func cellForItem(at index: Int) -> UICollectionViewCell {

        let cell = collectionContext!.dequeueReusableCell(of: MessageCollectionViewCell.self, for: self, at: index) as! MessageCollectionViewCell

        cell.messageLabel.text = message?.text // crashes HERE

        // all other assignments here, commented out during testing and removed for simplicity

        return cell

    func didUpdate(to object: Any) {
        self.message = object as? Message

    func didSelectItem(at index: Int) {

And here’s the AdapterDataSource

extension MessagesViewController: IGListAdapterDataSource {
    func objects(for listAdapter: IGListAdapter) -> [IGListDiffable] {
        return returnDisplayedMessages()

    func listAdapter(_ listAdapter: IGListAdapter, sectionControllerFor object: Any) -> IGListSectionController {

            return MessageSectionController()


    func emptyView(for listAdapter: IGListAdapter) -> UIView? {
        return nil

With adapter assigned in MessagesViewController

// ...
    @IBOutlet weak var collectionView: IGListCollectionView! // connected via storyboard

    lazy var adapter: IGListAdapter = {
        return IGListAdapter(updater: IGListAdapterUpdater(), viewController: self, workingRangeSize: 0)

        self.adapter.collectionView = self.collectionView
        self.adapter.dataSource = self

And to add, not sure if it makes a difference but my Message model is a Realm Object

Updated 30/04/2017 08:41 2 Comments

After adding this to my Android project, normal JUnit tests fail


Using version 1.4.0.

I get this error:

java.lang.AbstractMethodError: org.powermock.api.mockito.internal.mockmaker.PowerMockMaker.isTypeMockable(Ljava/lang/Class;)Lorg/mockito/plugins/MockMaker$TypeMockability;

This test passed prior to adding mockito-kotlin. It complains on this line:

Thing thing = Mockito.mock(Thing.class); // Thing is a public INTERFACE defined in Java

If I remove that, the test still fails, but at a different line. I think it’s here:

@Mock Thing2 thing2; // Thing2 is a public non-final CLASS defined in Java

Other dependencies in build.gradle:

    testCompile 'junit:junit:4.12'
    testCompile 'org.hamcrest:hamcrest-library:1.3'
    testCompile 'org.mockito:mockito-core:2.0.5-beta'
    testCompile("org.powermock:powermock-api-mockito:$powermock_version") { // 1.6.2
        exclude module: 'hamcrest-core'
        exclude module: 'objenesis'
    testCompile("org.powermock:powermock-module-junit4:$powermock_version") {
        exclude module: 'hamcrest-core'
        exclude module: 'objenesis'
Updated 30/04/2017 16:35 2 Comments

Escape characters in attribute values


Attribute values are not decoded for escape characters. This may or may not be important depending on the types of the attribute. The only real issue here is that it means you can use ) in attribute values.

name and ID are not a problem, since ) is not a name character.

for language it could technically be a problem, but it is hard to think of an instance.

for condition expressions, the inability to use parens could be an issue. But how big an issue is it really? There are obvious workarounds using other brackets, and who would want to have to use escaped parents in their condition expressions.

The other issue would be the desire to use character entities for accented characters. But people who need to enter such characters regularly presumably have keyboard ways of entering them as unicode characters.

So far, then, I don’t think this is much of an issue. On the other hand, I’m not sure there is much of a downside to supporting escapes either, for the sake of uniformity.

Updated 29/04/2017 20:38

Twig Support


In Symfony, there is a clickable green Twig icon which can appear in the right gutter of a PHP file, leading to the associated Twig template. This icon or functionality is never seen using PHP Storm with Drupal 8 development.

twig 1 twig 2

Updated 30/04/2017 07:49 1 Comments

au aborts Windows batch execution


I’m submitting a bug report

  • Library Version: 0.27.0

Please tell us about your environment: * Operating System: Windows 10

  • Node Version: 6.2.3

  • NPM Version: 3.10.10

  • Browser: N/A

  • Language: TypeScript 2.3.1

Current behavior: The au command will abort any Windows batch execution. The problem can be reproduced by creating a 2 lines batch file:

au build
echo Finished

The second line will not be executed. This prevents the automation of a build + deploy batch.

Expected/desired behavior: The subsequent lines should be executed

Updated 29/04/2017 20:10 1 Comments

Caddy reverse proxy not working



i recently reinstalled my OVH server with Debian 8.7 and wanted to install netdata to monitor it. to make it short on my old server i was running Ubuntu 16.10 with caddy running as for my reverse proxys. but for some reason when i tried to setup netdata running on localhost:19999 with an reverse proxy such as this: { proxy / { transparent }

*as you can see Caddy follows the same layout as nginx almost but more easier to use.

netdata says the following File does not exist, or is not accessible: /usr/share/netdata/web/netdata/

i have setup netdata before many times on different servers so iam not sure if its an bug or mabey an typo somewhere in the code.

Updated 30/04/2017 08:05 4 Comments discussion


Hello guys, I was using artemis and saw that repository is using save() method to insert entities.

I was wondering that save can be either a insertion or an update. So I think would be more appropriate to use: repository.insert for insertions repository.update for updates

What do you think?

Updated 30/04/2017 12:55 1 Comments

Best pitch and onset method for voice


First, thanks for helping me for my previous question.

After digging around the other open and closed issues, I’m wondering if you just quickly know of the best pitch and onset detection methods for the voice. I would like an onset to mark the start of a new note – perhaps a new word, or the change of pitch while keeping the syllable in a melisma.

I’m writing a simple program that will hopefully detect what notes the singer sings, and when they sing them, so I can then pitch shift and add diatonic harmonies under their sung notes.

Thanks again, Alex

Updated 30/04/2017 14:19 1 Comments

aria-dropeffect on DropArea?


Indicates what functions can be performed when the dragged object is released on the drop target. This allows assistive technologies to convey the possible drag options available to users, including whether a pop-up menu of choices is provided by the application. Typically, drop effect functions can only be provided once an object has been grabbed for a drag operation as the drop effect functions available are dependent on the object being dragged.

Updated 29/04/2017 17:43

role="application" or just no?


When reading ARIA 5.4 one might think that role="application" would make sense for something like Eureka. It is more of an “app' than a page. But apparently, as discussed with @dengeist, the general consensus is don’t use role="application"?

A region declared as a web application, as opposed to a web document

Updated 29/04/2017 17:34

Make project more contributor friendly


I want to do contribution. I cloned project. It took me a lot of time to figure out how actually start development server to test new component. I would suggest following steps to make contribution simpler:

The project itself supper good. I believe it has potential to be the best React map out there, because MapboxGL is the fastest client side renderer (from personal experience), and project acknowledges React declarative approach.

Updated 30/04/2017 09:33 4 Comments

Tidying the repo wiki


It’s been suggested that docs for technical contributions (re #387) might live in the repo wiki. I was surveying its current contents and had a few questions for more experienced team members, as the last edit to this wiki was back in September 2016. If we’re going to put development guidelines here, I’d love to deprecate pages that are no longer used, and highlight those pages that are still being actively maintained:

  1. Wiki pages that listed editor&author guidelines for workflow are almost all now on public-facing pages on the PH site itself. I wouldn’t delete those wiki pages, because I don’t want to break links. But I would want to finish the job of removing all content from them, and boldly marking each as Deprecated with a link to the appropriate contribution page on the published site, and probably remove them from the wiki sidebar as well. Any objections to this?
  2. Other pages
    1. @acrymble You were the last person to update People who use the Programming Historian. Are you still using this page? How does it relate to Also, it looks like Scholarly activities has already been deprecated, yes?
    2. @amandavisconti You were the last person to update Editorial Roles. Thoughts?
    3. @jerielizabeth What about Lesson Pipeline?
    4. @amandavisconti Website Usability Testing would absolutely fit within the genre of development guidelines, so I think it should stay for now.

Final note: the wiki is actually its own git repo, so any content we delete from it will remain within the change history and will always be recoverable

Updated 29/04/2017 17:30 1 Comments

404 error when using reverse proxy


Bare with me here as I just started learning all this stuff about 2 days ago. So I have a domain setup and I also have an ssl certificate setup on my domain, which I’ve implemented into my server.conf file. I am able to access organizr by navigating to and it is secure so I know that my certificates are implemented correctly. My problem occurs when I add Sonarr (or any other) service as a page. I’m using a reverse proxy the looks like this in my server.conf file:

location /sonarr {
    #include C:/WPNXM/bin/nginx/conf/cookie_direct_blocking.conf;
        proxy_pass http://:;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

I’ve gone into Sonarr/Settings/General and put in the URL base “/sonarr” and restarted the sonarr service. When I create my tab in organizr, I’m using “” as my tab url. When I apply the changes and click on the tab, it works on the computer I’m using as the server. On any other computer connected to the same network, I can load organizr fine, but when I select the sonarr tab it shows a “404 not found” page. The weird part here is I can access sonarr by typing in and it works perfectly fine on other computers connected to the same network. Its only when im trying to access it through organizr that I get the 404. There must be some simple explanation for this. Thank you for your help in advance.

Updated 30/04/2017 13:31

seek resets song



using following code, i’m not able to seek the song to my progress. it just restarts the song songSlider.value)

songslider.value returns a correct float

am i doing something wrong?

Updated 30/04/2017 16:04 7 Comments

Problem compiling..


I am having some issues compiling the latest version of this. To be honest I forgot how to do this since I haven’t done it in awhile XD I keep getting an error saying the build has failed and that the program cannot find a JDK in which I do have installed…

Updated 29/04/2017 19:45 2 Comments

Copertura discordante


Sto vedendo di ampliare i test, anche in vista delle nuove aggiunte ma mi sono accorto che la copertura in coveralls non è giusta e non matcha quella di Android Studio.

Ad esempio, la classe Option è coperta al 100 % su Android Studio mentre su coveralls figura al 0%. Sembra che la build in Travis esegua i test ma non ne sono sicuro.

Updated 29/04/2017 16:34

The problem of replacing tiled by tilemap


We’ve been talking on IRC about replacing Tiled and its converters by tilemap and some converters. The advantages would be that all the tools would be local and then it would be easier to tweak stuff.

As a converter tool, we could have tiles being interpreted by a script to be deleted and replaced by the node they refer to (example : spikes, enemies, player,…)

The idea would be to have less Node2Ds per-level, but also to ease the editing of levels without having to use a ton of more tools (take a look at levels/ to see the mess)

BUT. Since my last changes, nearly all the nodes now are banks of sprites so can’t be used as tiles as they have several possible sprites. This puts a lot of nodes to be added to the converter script and makes the presence of the tiles sorted from the tilemap really minimal.

So what we have is : :+1: => Less third-party tools to work with and to keep on the repo :+1: => Faster and easier to edit levels :question: => Is it worth making it on performance-side ? :-1: => Some time of work and want to be taken to make it and to assure it works. Not so hard but needs someone to do it.

My most important question would then be : should we remove the sprite banks of : stones, dirt_mid, grassstone_mid and others ? ( tiles ). If we choose to remove them, I’d be totally for the new system. Else,…?

Updated 29/04/2017 16:13

deploy docs needed - how to specify port


nice work on kemal - we are switching from Sinatra

how to run kemal on a specific port ? crystal -p 8000 => fail -p 8000 => fail maybe answer is to run websocket but need to figure out how to integrate with nginx reverse proxy

deploying does not seem to be addressed in any samples or docs

Updated 29/04/2017 16:16 1 Comments

Why is this happening?


For some odd reason, most of the time, when I bounce of bounce gel, my computer brightness dims. But when I land, it goes back to normal. I wonder what is causing this.

Updated 30/04/2017 02:41 1 Comments

Program received signal SIGSEGV, Segmentation fault.


Crashes when pushing cpu to 100%. (compiling nodejs with make -j8)

Program received signal SIGSEGV, Segmentation fault.
#0  0x00007ffff764a99f in __memset_avx2_unaligned_erms () from /usr/lib/
#1  0x000000000040ab37 in Top () at corefreq-cli.c:4473
#2  0x000000000042530a in main (argc=1, argv=0x7fffffffde78) at corefreq-cli.c:5028
Updated 30/04/2017 10:02 5 Comments

Fork me on GitHub