add support for unix socket binding service

[x] Rebased/mergable
[x] Tests pass
[ ] CHANGELOG.md updated
[x] Sign [CLA]

Feature Request in #7075 and #4877. I tested the code, just like the UDP service.
start
[root@LT influxd]# ./influxd run

 8888888           .d888<PHONE_NUMBER>b.  888888b.
   888            d88P"  888                   888  "Y88b 888  "88b
   888            888    888                   888    888 888  .88P
   888   88888b.  888888 888 888  888 888  888<PHONE_NUMBER>888K.
   888   888 "88b 888    888 888  888  Y8bd8P' 888    888 888  "Y88b
   888   888  888 888    888 888  888   X88K   888    888 888    888
   888   888  888 888    888 Y88b 888 .d8""8b. 888  .d88P 888   d88P
 8888888 888  888 888    888  "Y88888<PHONE_NUMBER>888P"  8888888P"

[run] 2016/08/09 14:30:03 InfluxDB starting, version unknown, branch unknown, commit unknown
[run] 2016/08/09 14:30:03 Go version go1.6.2, GOMAXPROCS set to 2
[run] 2016/08/09 14:30:03 Using configuration at: /etc/influxdb/influxdb.conf
[store] 2016/08/09 14:30:03 Using data dir: /var/lib/influxdb/data
[subscriber] 2016/08/09 14:30:03 opened service
[monitor] 2016/08/09 14:30:03 Starting monitor system
[monitor] 2016/08/09 14:30:03 'build' registered for diagnostics monitoring
[monitor] 2016/08/09 14:30:03 'runtime' registered for diagnostics monitoring
[monitor] 2016/08/09 14:30:03 'network' registered for diagnostics monitoring
[monitor] 2016/08/09 14:30:03 'system' registered for diagnostics monitoring
[shard-precreation] 2016/08/09 14:30:03 Starting precreation service with check interval of 10m0s, advance period of 30m0s
[snapshot] 2016/08/09 14:30:03 Starting snapshot service
[admin] 2016/08/09 14:30:03 Starting admin service
[admin] 2016/08/09 14:30:03 Listening on HTTP: [::]:8083
[continuous_querier] 2016/08/09 14:30:03 Starting continuous query service
[httpd] 2016/08/09 14:30:03 Starting HTTP service
[httpd] 2016/08/09 14:30:03 Authentication enabled: false
[httpd] 2016/08/09 14:30:03 Listening on HTTP: [::]:8086
[retention] 2016/08/09 14:30:03 Starting retention policy enforcement service with check interval of 30m0s
[monitor] 2016/08/09 14:30:03 Storing statistics in database '_internal' retention policy 'monitor', at interval 10s
[unixsocket] 2016/08/09 14:30:03 Started listening on unix socket: /tmp/i.sock
[run] 2016/08/09 14:30:03 Listening for signals

write points example code:
package main

import "net"
import "time"
import "fmt"

func main() {
        addr, err := net.ResolveUnixAddr("unix", "/tmp/i.sock")
        if err != nil {
                panic(err)
        }
        c, err := net.DialUnix("unixgram", nil, addr)
        if err != nil {
                panic(err)
        }
        for {
                _, err := c.Write([]byte("cpu,host=serverA,region=us_west value=0.64\n"))
                if err != nil {
                        fmt.Println(err)
                }
                time.Sleep(1e9)
        }
}

query via influx
[root@LT influx]# ./influx
Visit https://enterprise.influxdata.com to register for updates, InfluxDB server management, and monitoring.
Connected to http://localhost:8086 version unknown
InfluxDB shell version: unknown
> show databases
name: databases
---------------
name
unixsocket
_internal

> use unixsocket
Using database unixsocket
> select * from cpu limit 10
name: cpu
---------
time                    host    region  value
1470725065606349352     serverA us_west 0.64
1470725066606549012     serverA us_west 0.64
1470725067606678699     serverA us_west 0.64
1470725068606809610     serverA us_west 0.64
1470725069606963202     serverA us_west 0.64
1470725070607052270     serverA us_west 0.64
1470725071607210170     serverA us_west 0.64
1470725072607312210     serverA us_west 0.64
1470725073607432441     serverA us_west 0.64
1470725074607556441     serverA us_west 0.64

shutdown
[run] 2016/08/09 15:15:53 Signal received, initializing clean shutdown...
[run] 2016/08/09 15:15:53 Waiting for clean shutdown...
[monitor] 2016/08/09 15:15:53 shutting down monitor system
[monitor] 2016/08/09 15:15:53 terminating storage of statistics
[shard-precreation] 2016/08/09 15:15:53 Precreation service terminating
[snapshot] 2016/08/09 15:15:53 snapshot listener closed
[continuous_querier] 2016/08/09 15:15:53 continuous query service terminating
[retention] 2016/08/09 15:15:53 retention policy enforcement terminating
[unixsocket] 2016/08/09 15:15:53 unix socket listener closed
[unixsocket] 2016/08/09 15:15:53 Service closed
[subscriber] 2016/08/09 15:15:53 closed service
[run] 2016/08/09 15:15:53 server shutdown completed

@oiooj thanks for this PR, it looks great. It will need some input from some other core team members.
I'm not sure why the TestContinuousQueryService_Run test is failing. I don't think it is to do with your changes. Maybe @jsternberg or @dgnorton could look into that.

@e-dard updated, and all checks have passed. It's strange.

I don't think this resolves the issue from #7075. As I understood that, they wanted to be able to use the entire HTTP service using a unix socket so it would basically expose that service.
I like this method of configuration better, but I think it would be good to mimic the http service rather than only the write protocol. That way, someone can communicate using HTTP over the unix socket similar to how Docker works. I think it would be possible by just opening a unix socket listener and then passing it to the same handler we use for httpd. See the httpd service for an example.

@jsternberg  I don't think so, TCP UDP unix socket, this three protocols are independent. And HTTP over the TCP, unix socket is similar to UDP service , just as a client to write points, high performance is very important., and the line protocol is simple enough.

TCP UDP unix socket, this three protocols are independent. And HTTP over the TCP, unix socket is similar to UDP service

Not true. A unix domain socket can be either SOCK_STREAM, or SOCK_DGRAM. SOCK_STREAM is what TCP uses. SOCK_DGRAM is what UDP uses.

Unix sockets act more similar to TCP than UDP. I'm sure @phemmer is right though and unix sockets can also be opened as a datagram socket, but that's not the only way of using it.
The reason why I'm saying using the HTTP handler would be more efficient is because it gives more freedom to be able to specify which database and which retention policy you want to write to while also making the query endpoint available. So you would just have to configure it once rather than configure it once per database/retention policy (with having no ability to query points).
I personally think this functionality should just be implemented within the HTTP service itself. In this section of the code, you would just have to open a "unix" listener similar to how docker does it (although I don't know which parts of this function we need and which parts we don't).

I mean in this project unix socket service is similar to UDP service. Maybe you are right, should we expose HTTP service over UDP as well?

@oiooj I'm a bit confused. What do you mean by unix sockets being similar to udp service? That would be a design decision rather than a technology decision. Unix sockets can be opened as a stream socket and can support HTTP.
UDP cannot support HTTP. HTTP requires a bidirectional stream which the UDP protocol can't support. It's OK for UDP to have its current limitations because UDP doesn't have the capability of doing something more complicated. It's possible to do more with unix sockets and #7075 doesn't seem to be focused only on writes.

@jsternberg sorry, I'm confused. lol

No problem. That's why we do these code reviews. 😄

Don't forget to tell me the final decision，I will fix this if I'm free

I think we're going to go with building the unix socket binding into the httpd service. If you can update your PR to do that instead, that would be very helpful.

check #7135 and close this PR


Fix hsv2Rgb when object is passed in

Sorry to do this piecemeal - just working on it as I go!

You are welcome :) I want to expand the library to other formats, do you specially miss any format?

I'd be interested in CMYK approximations, but I understand that it's difficult to do that.

I have added rgb2cmyk and cmyk2rgb here https://github.com/netbeast/colorsys/pull/5
Other functions are pretty straight forward


The codepens for 12.1a and 12.1b have the same code

Currently the codepens for 12.1a and 12.1b both have the same code. IMO the examples ought to be on git instead of in codepen, so that errors like this can be referenced correctly

@philipwalton Feel free to correct me and/or add more information which I might have missed.
Hi @sipec, thanks for bringing this to our attention. First of all, I can't seem to reproduce 12.1.a bug in the version of IE11 installed on my Windows 10 machine (version screenshot below) - and I do not have access to older versions of IE.

However, I verified that there is indeed a difference in the CSS on both examples. In the 12.1.b workaround, I noticed this extra piece of CSS rule:
.FlexContainer::before,
.FlexItem {
  display: block;
}

There is an ongoing effort to move these examples from Codepen into GitHub for a different reason - see issue #274 and PR #276.

@philipwalton Feel free to correct me and/or add more information which I might have missed above.
On a related note, I can't seem to find any difference in the outputs between the 12.1.a bug and 12.1.b workaround in the version of IE11 installed on my Windows 10 machine (11.657.18362.0 - version screenshot below). And I do NOT have access to older versions of IE.
I was expecting to see a difference between the ::before element as per the following statement mentioned on the description of this bug.

IE 11 fixed this bug with regular inline element, but it still affects the ::before and ::after pseudo-elements.

Looks like the latest patch of IE11 might have fixed the issue on the ::before and ::after pseudo-elements.
My IE11 Version

Output of 12.1.a bug

Output of 12.1.b workaround

My bad, I the difference now. I just didn't scroll down :sweat_smile:


Test that default container image is as expected

We should have tests for jib-maven-plugin and jib-grade-plugin that creates an image and walks the generated images to verify that all files and directories have the expected timestamps and permissions (#1648), that the file and directories are properly ordered, and that there is no duplication between layers.

close as not planned


Add unit of the “Total Rewards” on Overview Page

Please help add the unit of Total Rewards on each network.

Got it

resolved


Keybase startup error, maybe related to flaky internet connection

I get the following error when trying to start keybase (either autostart after logon or manually launching the app):

Task timed out: /Applications/Keybase.app/Contents/SharedSupport/bin/keybase -d --log-format=file install --format=json --components=service

The only hint I have is that my internet connection is flaky at the moment – either I don't have WiFi, or I do but there is no routing to the internet. After ensuring I have a connection to the internet and restarting the app, I get no error.
Machine: MBA 2012, OS X 10.11.6
Keybase GUI Version: 1.0.17-20160930202009+0229d49
Details:
Installer: 1.1.42
Privileged Helper: Installed, Bundle Version: 1.0.29, Version: 1.0.29
Updater: Installed, PID: 1046
Service: Unknown, Install Error: Task timed out: /Applications/Keybase.app/Contents/SharedSupport/bin/keybase -d --log-format=file install --format=json --components=service
Fuse: Unknown,
Mount directory: Unknown,
KBFS: Unknown,
CLI: Unknown,

Log:
Version: 1.1.42
Installables: (
    "<KBHelperTool: 0x7fcab9e3ff50>",
    "<KBUpdaterService: 0x7fcab9d4caa0>",
    "<KBService: 0x7fcab9d54600>",
    "<KBFuseComponent: 0x7fcab9d54890>",
    "<KBMountDir: 0x7fcab9d556c0>",
    "<KBFSService: 0x7fcab9d55900>",
    "<KBCommandLine: 0x7fcab9d55b60>"
)
Install: Privileged Helper
Connecting to keybase.Helper (privileged=1)
Connected
Helper version: {
    version = "1.0.29";
}
Helper version: {
    version = "1.0.29";
}
Install: Updater
Task: /Applications/Keybase.app/Contents/SharedSupport/bin/keybase -d --log-format=file install --format=json --components=updater
Task EOF
Completed
Task (out): {
  "componentResults": [
    {
      "name": "updater",
      "status": {
        "code": 0,
        "name": "OK",
        "desc": "OK",
        "fields": null
      }
    }
  ],
  "status": {
    "code": 0,
    "name": "OK",
    "desc": "OK",
    "fields": null
  },
  "fatal": false
}

Task (err): 2016-10-22T12:58:37.809847 ▶ [DEBU keybase globals.go:288] 001 Created Identify2Cache, max age: 5m0s
2016-10-22T12:58:37.810018 ▶ [DEBU keybase globals.go:291] 002 Created LinkCache, max size: 65536, clean dur: 1m0s
2016-10-22T12:58:37.810101 ▶ [DEBU keybase globals.go:293] 003 Created CardCache, max age: 5m0s
2016-10-22T12:58:37.815960 ▶ [DEBU keybase ui.go:557] 004 Can't set GPG_TTY; discover failed
2016-10-22T12:58:37.816045 ▶ [DEBU keybase globals.go:271] 005 Keybase CLI 1.0.17-20160930202009+0229d49
2016-10-22T12:58:37.816086 ▶ [DEBU keybase globals.go:271] 006 - Built with go1.7.1
2016-10-22T12:58:37.816110 ▶ [DEBU keybase globals.go:271] 007 - Visit https://keybase.io for more details
2016-10-22T12:58:37.816162 ▶ [DEBU keybase main.go:144] 008 + configureProcesses
2016-10-22T12:58:37.816201 ▶ [DEBU keybase main.go:242] 009 + configureLogging
2016-10-22T12:58:37.816230 ▶ [DEBU keybase main.go:251] 00a Disabling log forwarding
2016-10-22T12:58:37.816254 ▶ [DEBU keybase main.go:244] 00b - configureLogging
2016-10-22T12:58:37.816276 ▶ [DEBU keybase main.go:146] 00c - configureProcesses -> <nil>
2016-10-22T12:58:37.816481 ▶ [DEBU keybase install_osx.go:405] 00d Installing components: [updater]
2016-10-22T12:58:37.816600 ▶ [DEBU keybase install_osx.go:895] 00e Using updater path: /Applications/Keybase.app/Contents/SharedSupport/bin/updater
2016-10-22T12:58:37.836721 ▶ [DEBU keybase install_osx.go:911] 00f No status, needs install
2016-10-22T12:58:37.844944 ▶ [DEBU keybase launchd.go:141] 010 Output (launchctl remove):
2016-10-22T12:58:37.845121 ▶ [DEBU keybase launchd.go:146] 011 Nothing to stop (keybase.updater)
2016-10-22T12:58:37.845153 ▶ [DEBU keybase install_osx.go:928] 012 Installing updater service
2016-10-22T12:58:37.845362 ▶ [INFO keybase launchd.go:236] 013 Saving /Users/[~]/Library/LaunchAgents/keybase.updater.plist
2016-10-22T12:58:37.845411 ▶ [DEBU keybase util.go:173] 014 + Writing to /Users/[~]/Library/LaunchAgents/keybase.updater.plist
2016-10-22T12:58:37.846182 ▶ [DEBU keybase util.go:175] 015 | Temporary file generated: /Users/[~]/Library/LaunchAgents/keybase.updater.plist.7VHAALDCB4XWFOC6CQBCJTAQKTIDLYIV
2016-10-22T12:58:37.846472 ▶ [DEBU keybase util.go:194] 016 - Wrote to /Users/[~]/Library/LaunchAgents/keybase.updater.plist -> ok
2016-10-22T12:58:37.846564 ▶ [INFO keybase launchd.go:95] 017 Starting keybase.updater
2016-10-22T12:58:37.857967 ▶ [DEBU keybase launchd.go:98] 018 Output (launchctl load):
2016-10-22T12:58:37.869150 ▶ [DEBU keybase launchd.go:111] 019 Service status: &launchd.ServiceStatus{label:"keybase.updater", pid:"1046", lastExitStatus:""}
2016-10-22T12:58:37.880708 ▶ [DEBU keybase out_of_date.go:13] 01a + PrintOutOfDateWarnings
2016-10-22T12:58:37.880779 ▶ [DEBU keybase util.go:386] 01b + GetSocket
2016-10-22T12:58:37.880809 ▶ [DEBU keybase util.go:387] 01c - GetSocket -> ok
2016-10-22T12:58:37.880836 ▶ [DEBU keybase socket.go:73] 01d | empty socket wrapper; need a new one
2016-10-22T12:58:37.880873 ▶ [DEBU keybase socket_nix.go:96] 01e Dialing unix:/Users/[~]/Library/Group Containers/keybase/Library/Caches/Keybase/keybased.sock
2016-10-22T12:58:37.881122 ▶ [DEBU keybase socket_nix.go:96] 01f Dialing unix:/Users/[~]/Library/Caches/Keybase/keybased.sock
2016-10-22T12:58:37.881247 ▶ [DEBU keybase socket.go:88] 020 | DialSocket -> ERROR: There were multiple errors: dial unix /Users/[~]/Library/Group Containers/keybase/Library/Caches/Keybase/keybased.sock: connect: no such file or directory; dial unix /Users/[~]/Library/Caches/Keybase/keybased.sock: connect: no such file or directory
2016-10-22T12:58:37.881289 ▶ [DEBU keybase out_of_date.go:18] 021 Ignoring error in printOutOfDateWarnings: There were multiple errors: dial unix /Users/[~]/Library/Group Containers/keybase/Library/Caches/Keybase/keybased.sock: connect: no such file or directory; dial unix /Users/[~]/Library/Caches/Keybase/keybased.sock: connect: no such file or directory
2016-10-22T12:58:37.881325 ▶ [DEBU keybase out_of_date.go:19] 022 - PrintOutOfDateWarnings
2016-10-22T12:58:37.981816 ▶ [DEBU keybase globals.go:321] 023 Calling shutdown first time through
2016-10-22T12:58:37.981915 ▶ [DEBU keybase login_state.go:1003] 024 + Account "LoginState - Shutdown"
2016-10-22T12:58:37.982010 ▶ [DEBU keybase login_state.go:916] 025 - LoginState: Leaving request loop
2016-10-22T12:58:37.982040 ▶ [DEBU keybase login_state.go:1005] 026 - Account "LoginState - Shutdown"
2016-10-22T12:58:37.982086 ▶ [DEBU keybase globals.go:372] 027 exiting shutdown code=0; err=<nil>

Checking launchd status for updater
Task: /Applications/Keybase.app/Contents/SharedSupport/bin/keybase --log-format=file launchd status --format=json updater
Task EOF
Completed
Task (out): {
  "version": "",
  "label": "keybase.updater",
  "pid": "1046",
  "lastExitStatus": "",
  "bundleVersion": "",
  "installStatus": 4,
  "installAction": 1,
  "status": {
    "code": 0,
    "name": "OK",
    "desc": "OK",
    "fields": null
  }
}

Task (err):
Install: Service
Task: /Applications/Keybase.app/Contents/SharedSupport/bin/keybase -d --log-format=file install --format=json --components=service
Task error: Error Domain=Keybase Code=-210 "Task timed out: /Applications/Keybase.app/Contents/SharedSupport/bin/keybase -d --log-format=file install --format=json --components=service" UserInfo={NSLocalizedDescription=Task timed out: /Applications/Keybase.app/Contents/SharedSupport/bin/keybase -d --log-format=file install --format=json --components=service, NSLocalizedRecoveryOptions=(
    OK
)}
Task EOF
Already completed, skipping (completion)
Install complete
Privileged Helper: Installed, Bundle Version: 1.0.29
Version: 1.0.29
Updater: Installed, PID: 1046
Service: Install Error: Task timed out: /Applications/Keybase.app/Contents/SharedSupport/bin/keybase -d --log-format=file install --format=json --components=service

(Log anonymized)

I think this was fixed in a recent version, but can you post the ID generated by doing keybase log send?


fix: spelling and grammar improvements

 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.Maarten Stolte seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.


Log-log Scaling

I'd like to be able to use this to generate log-log visualizations of a spectrum for looking at things like the frequency response of a digital filter. Looking at the spectrum-analyzer it's easy to scale "power gain" to log with something like the provided scale_20_times_log10 but there isn't a way to do that for the frequency (at least that produces nice output).
For example:

Hi @mtthw-meyer
that's a great feature request! Unfortunately the current state of this project is that I quickly created a more or less dirty code base to get fast results. And at least in the next 10 days I probably don't have much time for it :(


As a user I want to copy my temporary password so I can easily login to an exchange

Low on the list


Naming of this standard makes it extremely hard to discover/search/query it

I'm sure it was brought up before but couldn't find anything in closed issues.
It's very hard to find information on the json:api and google for it. Most people who hear about it want to compare it to something they know. So googling something like 'odata vs json:api' will not yield any useful resources.
I think naming of this standard has to be updated to make it searchable.

I understand the concern, but there's already a media type registration with the name, and we've been using it for years. The name isn't going to change.


Winner Error: Object reference not set to instance of object.

Hello,
So I have another error. This error occurs when the site picks a winner and when the bot has to trade the items to the winner. The first time I tried the site it worked and send the winner the items. However the second and third time it didn't work. It gave me this error:
https://gyazo.com/46062a5cb990223b358f2020b44e5bc3
Im not sure what I am doing wrong, however could it have something to do with the fact that my timer is broken? This is the thread to my timer issue
https://github.com/ztizzlegaming/CSGOWinBig/issues/86
Thanks.

Update your files to newest one.

Well they are updated, unless there was an update today. They are a day old
:/
On Wed, Dec 2, 2015 at 9:58 AM, Jacek<EMAIL_ADDRESS>wrote:

Update your files to newest one.
—
Reply to this email directly or view it on GitHub
https://github.com/ztizzlegaming/CSGOWinBig/issues/87#issuecomment-161381121
.

Yes, just load fresh files

Ok
On Dec 3, 2015 2:35 AM, "Jacek"<EMAIL_ADDRESS>wrote:

Yes, just load fresh files
—
Reply to this email directly or view it on GitHub
https://github.com/ztizzlegaming/CSGOWinBig/issues/87#issuecomment-161590904
.


Jira widget shows me all 0's

Team,
Can someone please help me with configuring Jira dashboard. Looks like Im able to see my project details, and other stuff while configuring widget, but I'm seeing all 0's (Open: 0, WIP: 0, Done: 0).. I see some exceptions in console.. please find the below.
Console output
2016-12-12 18:41:46,096 INFO  com.capitalone.dashboard.Application - Started Application in 13.629 seconds (JVM running for 16.009)
2016-12-12 18:42:00,000 INFO  c.c.d.collector.CollectorTask - Running Collector: Jira
2016-12-12 18:42:00,009 INFO  c.c.d.collector.CollectorTask - -----------------------------------
2016-12-12 18:42:00,009 INFO  c.c.d.collector.CollectorTask - https://Mycompany.atlassian.net/
2016-12-12 18:42:00,009 INFO  c.c.d.collector.CollectorTask - -----------------------------------
2016-12-12 18:42:07,534 INFO  c.c.d.collector.CollectorTask - Team Data               3        7s
2016-12-12 18:42:08,405 INFO  c.c.d.collector.CollectorTask - Project Data            3        0s
2016-12-12 18:43:03,610 ERROR o.a.h.n.p.HttpAsyncRequestExecutor - http-outgoing-1 [CLOSED] HTTP protocol exception: null
java.nio.channels.ClosedChannelException: null
        at sun.nio.ch.SocketChannelImpl.ensureReadOpen(SocketChannelImpl.java:257) ~[na:1.8.0_111]
        at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:300) ~[na:1.8.0_111]
        at org.apache.http.nio.reactor.ssl.SSLIOSession.receiveEncryptedData(SSLIOSession.java:340) ~[httpcore-nio-4.2.2.jar!/:4.2.2]
        at org.apache.http.nio.reactor.ssl.SSLIOSession.isAppInputReady(SSLIOSession.java:366) ~[httpcore-nio-4.2.2.jar!/:4.2.2]
        at org.apache.http.impl.nio.reactor.AbstractIODispatch.inputReady(AbstractIODispatch.java:118) ~[httpcore-nio-4.2.2.jar!/:4.2.2]
        at org.apache.http.impl.nio.reactor.BaseIOReactor.validate(BaseIOReactor.java:220) [httpcore-nio-4.2.2.jar!/:4.2.2]
        at org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:284) [httpcore-nio-4.2.2.jar!/:4.2.2]
        at org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.java:106) [httpcore-nio-4.2.2.jar!/:4.2.2]
        at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(AbstractMultiworkerIOReactor.java:604) [httpcore-nio-4.2.2.jar!/:4.2.2]
        at java.lang.Thread.run(Thread.java:745) [na:1.8.0_111]
2016-12-12 18:43:03,611 ERROR c.c.d.collector.FeatureCollectorTask - Failed to collect jira information
java.lang.RuntimeException: java.net.SocketTimeoutException
        at com.google.common.base.Throwables.propagate(Throwables.java:160) ~[guava-14.0.jar!/:na]
        at com.atlassian.httpclient.apache.httpcomponents.DefaultHttpClient$3.apply(DefaultHttpClient.java:256) ~[atlassian-httpclient-apache-httpcomponents-0.13.2.jar!/:na]
        at com.atlassian.httpclient.apache.httpcomponents.DefaultHttpClient$3.apply(DefaultHttpClient.java:249) ~[atlassian-httpclient-apache-httpcomponents-0.13.2.jar!/:na]
        at com.atlassian.util.concurrent.Promises$Of$2.apply(Promises.java:276) ~[atlassian-util-concurrent-2.4.0-M9.jar!/:na]
        at com.atlassian.util.concurrent.Promises$Of$2.apply(Promises.java:272) ~[atlassian-util-concurrent-2.4.0-M9.jar!/:na]
        at com.atlassian.util.concurrent.Promises$2.onFailure(Promises.java:167) ~[atlassian-util-concurrent-2.4.0-M9.jar!/:na]
        at com.google.common.util.concurrent.Futures$4.run(Futures.java:1145) ~[guava-14.0.jar!/:na]
        at com.google.common.util.concurrent.MoreExecutors$SameThreadExecutorService.execute(MoreExecutors.java:293) ~[guava-14.0.jar!/:na]
        at com.google.common.util.concurrent.ExecutionList$RunnableExecutorPair.execute(ExecutionList.java:150) ~[guava-14.0.jar!/:na]
        at com.google.common.util.concurrent.ExecutionList.execute(ExecutionList.java:135) ~[guava-14.0.jar!/:na]
        at com.google.common.util.concurrent.AbstractFuture.setException(AbstractFuture.java:203) ~[guava-14.0.jar!/:na]
        at com.google.common.util.concurrent.SettableFuture.setException(SettableFuture.java:68) ~[guava-14.0.jar!/:na]
        at com.atlassian.httpclient.apache.httpcomponents.SettableFuturePromiseHttpPromiseAsyncClient$1$2.run(SettableFuturePromiseHttpPromiseAsyncClient.java:59) ~[atlassian-httpclient-apache-httpcomponents-0.13.2.jar!/:na]
        at com.atlassian.httpclient.apache.httpcomponents.SettableFuturePromiseHttpPromiseAsyncClient$ThreadLocalDelegateRunnable$1.run(SettableFuturePromiseHttpPromiseAsyncClient.java:197) ~[atlassian-httpclient-apache-httpcomponents-0.13.2.jar!/:na]
        at com.atlassian.httpclient.apache.httpcomponents.SettableFuturePromiseHttpPromiseAsyncClient.runInContext(SettableFuturePromiseHttpPromiseAsyncClient.java:90) ~[atlassian-httpclient-apache-httpcomponents-0.13.2.jar!/:na]
        at com.atlassian.httpclient.apache.httpcomponents.SettableFuturePromiseHttpPromiseAsyncClient$ThreadLocalDelegateRunnable.run(SettableFuturePromiseHttpPromiseAsyncClient.java:192) ~[atlassian-httpclient-apache-httpcomponents-0.13.2.jar!/:na]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_111]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_111]
        at java.lang.Thread.run(Thread.java:745) [na:1.8.0_111]
Caused by: java.net.SocketTimeoutException: null
        at org.apache.http.nio.protocol.HttpAsyncRequestExecutor.timeout(HttpAsyncRequestExecutor.java:279) ~[httpcore-nio-4.2.2.jar!/:4.2.2]
        at org.apache.http.impl.nio.client.LoggingAsyncRequestExecutor.timeout(LoggingAsyncRequestExecutor.java:128) ~[httpasyncclient-4.0-beta3-atlassian-1.jar!/:4.0-beta3-atlassian-1]
        at org.apache.http.impl.nio.DefaultHttpClientIODispatch.onTimeout(DefaultHttpClientIODispatch.java:136) ~[httpcore-nio-4.2.2.jar!/:4.2.2]
        at org.apache.http.impl.nio.DefaultHttpClientIODispatch.onTimeout(DefaultHttpClientIODispatch.java:50) ~[httpcore-nio-4.2.2.jar!/:4.2.2]
        at org.apache.http.impl.nio.reactor.AbstractIODispatch.timeout(AbstractIODispatch.java:169) ~[httpcore-nio-4.2.2.jar!/:4.2.2]
        at org.apache.http.impl.nio.reactor.BaseIOReactor.sessionTimedOut(BaseIOReactor.java:257) ~[httpcore-nio-4.2.2.jar!/:4.2.2]
        at org.apache.http.impl.nio.reactor.AbstractIOReactor.timeoutCheck(AbstractIOReactor.java:494) ~[httpcore-nio-4.2.2.jar!/:4.2.2]
        at org.apache.http.impl.nio.reactor.BaseIOReactor.validate(BaseIOReactor.java:207) ~[httpcore-nio-4.2.2.jar!/:4.2.2]
        at org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:284) ~[httpcore-nio-4.2.2.jar!/:4.2.2]
        at org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.java:106) ~[httpcore-nio-4.2.2.jar!/:4.2.2]
        at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(AbstractMultiworkerIOReactor.java:604) ~[httpcore-nio-4.2.2.jar!/:4.2.2]
        ... 1 common frames omitted
2016-12-12 18:43:03,613 ERROR o.a.h.n.p.HttpAsyncRequestExecutor - http-outgoing-1 [CLOSED] HTTP protocol exception: null
java.nio.channels.ClosedChannelException: null

Please add these properties to debug and attach the debug output:

logging.level.com.capitalone.dashboard=DEBUG
logging.level.com.capitalone.dashboard.collector=DEBUG
logging.level.com.atlassian.jira=INFO

What java version? Jira version? Did this happen before the recent jira changes?
@pxk5958

Hi,
added logging level properties and surprisingly I don't see any errors after my restart.. But still I'm seeing all 0's in open,WIP,Done.. when I verified in "feature" table of mongo db.. I can see all the stories/issues with "open, InProgress & done" state. For every refresh I can see some issues in progress.. but the count always remains the same to 0.  Not sure what else I'm missing here..
"What java version? Jira version? Did this happen before the recent jira changes?"
--> My Java version is openjdk version "1.8.0_111"
--> Jira version is JIRA v1000.621.2
--> This is first time I have started my Jira collector. (Infact even Im new to HYGIEIA).
Here is the log after updating above properties.
2016-12-14 16:05:21,609 INFO  c.c.dashboard.config.MongoConfig - Initializing Mongo Client server at: XXXX
2016-12-14 16:05:21,609 INFO  org.mongodb.driver.connection - Opened connection [connectionId{localValue:3, serverValue:17}] to 192.168.XXX.XX:27017
2016-12-14 16:05:21,611 INFO  org.mongodb.driver.cluster - Monitor thread successfully connected to server with description ServerDescription{address:27017=192.168.XXX.XXX, type=STANDALONE, state=CONNECTED, ok=true, version=ServerVersion{versionList=[3, 0, 14]}, minWireVersion=0, maxWireVersion=3, electionId=null, maxDocumentSize=16777216, roundTripTimeNanos=981769}
2016-12-14 16:05:21,618 INFO  org.mongodb.driver.cluster - Cluster created witings {hosts=[192.168.XXX.XX:27017], mode=SINGLE, requiredClusterType=UNKNOWN, serverSelectionTimeout='30000 ms', maxWaitQueueSize=500}
2016-12-14 16:05:21,628 INFO  c.c.dashboard.config.MongoConfig - Connecting to Mongo: Mongo{options=MongoClientOptions{description='null', readPreference=primary, writeConcern=WriteConcern{w=1, wtimeout=0, fsync=false, j=false, codecRegistry=org.bson.codecs.configuration.ProvidersCodecRegistry@987df09e, minConnectionsPerHost=0, maxConnectionsPerHost=100, threadsAllowedToBlockForConnectionMultiplier=5, serverSelectionTimeout=30000, maxWaitTime=120000, maxConnectionIdleTime=0, maxConnectionLifeTime=0, connectTimeout=10000, socketTimeout=0, socketKeepAlive=false, sslEnabled=false, sslInvalidHostNamesAllowed=false, alwaysUseMBeans=false, heartbeatFrequency=10000, minHeartbeatFrequency=500, heartbeatConnectTimeout=20000, heartbeatSocketTimeout=20000, localThreshold=15, requiredReplicaSetName='null', dbDecoderFactory=com.mongodb.DefaultDBDecoder$1@4963f030, dbEncoderFactory=com.mongodb.DefaultDBEncoder$1@7b17aaeb, socketFactory=javax.net.DefaultSocketFactory@826ca40, cursorFinalizerEnabled=true, connectionPoolSettings=ConnectionPoolSettings{maxSize=100, minSize=0, maxWaitQueueSize=500, maxWaitTimeMS=120000, maxConnectionLifeTimeMS=0, maxConnectionIdleTimeMS=0, maintenanceInitialDelayMS=0, maintenanceFrequencyMS=60000}, socketSettings=SocketSettings{connectTimeoutMS=10000, readTimeoutMS=0, keepAlive=false, receiveBufferSize=0, sendBufferSize=0}, serverSettings=ServerSettings{heartbeatFrequencyMS=10000, minHeartbeatFrequencyMS=500}, heartbeatSocketSettings=SocketSettings{connectTimeoutMS=20000, readTimeoutMS=20000, keepAlive=false, receiveBufferSize=0, sendBufferSize=0}}}
2016-12-14 16:05:21,681 INFO  org.mongodb.driver.connection - Opened connection [connectionId{localValue:4, serverValue:18}] to 192.168.XXX.XXX:27017
2016-12-14 16:05:21,683 INFO  org.mongodb.driver.cluster - Monitor thread successfully connected to server with description ServerDescription{address:27017=192.166.XXX.XXX, type=STANDALONE, state=CONNECTED, ok=true, version=ServerVersion{versionList=[3, 0, 14]}, minWireVersion=0, maxWireVersion=3, electionId=null, maxDocumentSize=16777216, roundTripTimeNanos=1117496}
2016-12-14 16:05:23,047 INFO  c.c.dashboard.config.MongoConfig - ReplicaSetfalse
2016-12-14 16:05:23,047 INFO  c.c.dashboard.config.MongoConfig - Initializing Mongo Client server at: 192.168.XXX.XXX:27017
2016-12-14 16:05:23,048 INFO  org.mongodb.driver.cluster - Cluster created with settings {hosts=[192.168.XXX.XXX:27017], mode=SINGLE, requiredClusterType=UNKNOWN, serverSelectionTimeout='30000 ms', maxWaitQueueSize=500}
2016-12-14 16:05:23,052 INFO  c.c.dashboard.config.MongoConfig - Connecting to Mongo: Mongo{options=MongoClientOptions{description='null', readPreference=primary, writeConcern=WriteConcern{w=1, wtimeout=0, fsync=false, j=false, codecRegistry=org.bson.codecs.configuration.ProvidersCodecRegistry@987df09e, minConnectionsPerHost=0, maxConnectionsPerHost=100, threadsAllowedToBlockForConnectionMultiplier=5, serverSelectionTimeout=30000, maxWaitTime=120000, maxConnectionIdleTime=0, maxConnectionLifeTime=0, connectTimeout=10000, socketTimeout=0, socketKeepAlive=false, sslEnabled=false, sslInvalidHostNamesAllowed=false, alwaysUseMBeans=false, heartbeatFrequency=10000, minHeartbeatFrequency=500, heartbeatConnectTimeout=20000, heartbeatSocketTimeout=20000, localThreshold=15, requiredReplicaSetName='null', dbDecoderFactory=com.mongodb.DefaultDBDecoder$1@4963f030, dbEncoderFactory=com.mongodb.DefaultDBEncoder$1@7b17aaeb, socketFactory=javax.net.DefaultSocketFactory@826ca40, cursorFinalizerEnabled=true, connectionPoolSettings=ConnectionPoolSettings{maxSize=100, minSize=0, maxWaitQueueSize=500, maxWaitTimeMS=120000, maxConnectionLifeTimeMS=0, maxConnectionIdleTimeMS=0, maintenanceInitialDelayMS=0, maintenanceFrequencyMS=60000}, socketSettings=SocketSettings{connectTimeoutMS=10000, readTimeoutMS=0, keepAlive=false, receiveBufferSize=0, sendBufferSize=0}, serverSettings=ServerSettings{heartbeatFrequencyMS=10000, minHeartbeatFrequencyMS=500}, heartbeatSocketSettings=SocketSettings{connectTimeoutMS=20000, readTimeoutMS=20000, keepAlive=false, receiveBufferSize=0, sendBufferSize=0}}}
2016-12-14 16:05:23,118 INFO  org.mongodb.driver.connection - Opened connection [connectionId{localValue:5, serverValue:19}] to 192.168.XXX.XXX:27017
2016-12-14 16:05:23,120 INFO  org.mongodb.driver.cluster - Monitor thread successfully connected to server with description ServerDescription{address:27017=192.168.XXX.XXX, type=STANDALONE, state=CONNECTED, ok=true, version=ServerVersion{versionList=[3, 0, 14]}, minWireVersion=0, maxWireVersion=3, electionId=null, maxDocumentSize=16777216, roundTripTimeNanos=992351}
2016-12-14 16:05:24,619 INFO  o.s.j.e.a.AnnotationMBeanExporter - Registering beans for JMX exposure on startup
2016-12-14 16:05:24,640 INFO  com.capitalone.dashboard.Application - Started Application in 14.604 seconds (JVM running for 16.802)
2016-12-14 16:06:00,001 INFO  c.c.d.collector.CollectorTask - Running Collector: Jira
2016-12-14 16:06:00,018 INFO  c.c.d.collector.CollectorTask - -----------------------------------
2016-12-14 16:06:00,019 INFO  c.c.d.collector.CollectorTask - https://mycompany.atlassian.net/
2016-12-14 16:06:00,019 INFO  c.c.d.collector.CollectorTask - -----------------------------------
2016-12-14 16:06:00,024 DEBUG c.c.d.client.team.TeamDataClientImpl - Constructing data collection for the feature widget, team-level data...
2016-12-14 16:06:04,333 DEBUG c.c.d.client.team.TeamDataClientImpl - Size of paged Jira response: 3
2016-12-14 16:06:04,472 INFO  c.c.d.collector.CollectorTask - Team Data               3        4s
2016-12-14 16:06:04,476 DEBUG c.c.d.c.p.ProjectDataClientImpl - Constructing data collection for the feature widget, project-level data...
2016-12-14 16:06:05,136 DEBUG c.c.d.c.p.ProjectDataClientImpl - Size of paged Jira response: 3
2016-12-14 16:06:05,180 INFO  c.c.d.collector.CollectorTask - Project Data            3        0s
2016-12-14 16:06:05,188 DEBUG c.c.d.c.story.StoryDataClientImpl - Constructing data collection for the feature widget, story-level data...
2016-12-14 16:06:05,965 DEBUG c.c.d.c.story.StoryDataClientImpl - Obtaining story information starting at index 0...
2016-12-14 16:06:07,015 DEBUG c.c.d.client.DefaultJiraClient - Processing issues 0 - 0 out of 0

I'm not sure what jira v1000.621.2 is. It should be something like 5.x, 6.x, or 7.x.
To get estimates to show up your jira must be configured to have estimates on story points. There is no count of the number of issues currently - #940
You also need to make sure you configured the estimate fields
feature.jiraIssueTypeNames=Story
feature.jiraStoryPointsFieldName=customfield_10002
There are some trouble shooting steps listed in the readme here: https://github.com/capitalone/Hygieia/tree/master/collectors/feature/jira

Check what values you have for time/story points estimate. JIRA lets you turn off estimates so it feeds Hygieia nulls for those fields, which then get turned into 0.

The below are the properties configured for my JIRA.. Please check once if i'm missing something.

logging.file=./logs/jira.log
feature.pageSize=100
feature.deltaStartDate=2016-03-01T00:00:00.000000
feature.masterStartDate=2016-03-01T00:00:00.000000
feature.deltaCollectorItemStartDate=2016-03-01T00:00:00.000000
feature.cron=0 * * * * *
feature.queryFolder=jiraapi-queries
feature.storyQuery=story
feature.epicQuery=epic
feature.jiraBaseUrl=https://MyCompany.atlassian.net/
feature.jiraQueryEndpoint=rest/api/2/
feature.jiraCredentials=dmlzaG51dmFyZGhhbiXXXXXXGFjaGljb25zdWx0aW5nLmNvbTkaGFuQDEyMw==
feature.jiraOauthAuthtoken=
feature.jiraOauthRefreshtoken=
feature.jiraOauthRedirecturi=
feature.jiraOauthExpiretime=
feature.jiraIssueTypeNames=Story
feature.jiraSprintDataFieldName=customfield_10000
feature.jiraEpicIdFieldName=customfield_10002
feature.jiraStoryPointsFieldName=customfield_10003
feature.jiraTeamFieldName=customfield_10703
One sample record from my mongo DB: (Please check if something I have forgot to fill it in Jira itself?)
{
"_id" : ObjectId("584ea3198ebde6XXX1e70d93"),
"_class" : "com.capitalone.dashboard.model.Feature",
"collectorId" : ObjectId("584ea1308ebdXXXcecbcef46"),
"sId" : "10104",
"sNumber" : "ABCD-7",
"sName" : "Implementation of my test feature.",
"sTypeId" : "10001",
"sTypeName" : "Story",
"sStatus" : "Done",
"sState" : "Done",
"sEstimate" : "0",
"sEstimateTime" : 0,
"sUrl" : "https://myCompany.atlassian.net/browse/ABCD-7",
"changeDate" : "2016-03-12T01:54:20.0000000",
"isDeleted" : "False",
"sOwnersID" : [
"v.vangala"
],
"sOwnersIsDeleted" : [],
"sOwnersChangeDate" : [],
"sOwnersState" : [
"Active"
],
"sOwnersUsername" : [
"vvangala"
],
"sOwnersFullName" : [
"vishnu vangala"
],
"sOwnersShortName" : [
"vvangala"
],
"sTeamIsDeleted" : "False",
"sTeamAssetState" : "",
"sTeamChangeDate" : "",
"sSprintIsDeleted" : "False",
"sSprintChangeDate" : "",
"sSprintAssetState" : "",
"sSprintEndDate" : "2016-20-12T01:54:20.0000000",
"sSprintBeginDate" : "2016-03-12T01:54:20.0000000",
"sSprintName" : "",
"sSprintID" : "",
"sEpicIsDeleted" : "False",
"sEpicChangeDate" : "",
"sEpicAssetState" : "",
"sEpicType" : "",
"sEpicEndDate" : "",
"sEpicBeginDate" : "",
"sEpicName" : "",
"sEpicNumber" : "",
"sEpicID" : "",
"sProjectPath" : "",
"sProjectIsDeleted" : "False",
"sProjectState" : "",
"sProjectChangeDate" : "",
"sProjectEndDate" : "",
"sProjectBeginDate" : "",
"sProjectName" : "My Project",
"sProjectID" : "10000"
}

sEstimate and sEstimateTime are 0, they're populated by story points and time estimates data from JIRA which you likely didn't set. Thus when it aggregates how much time is in each queue it becomes zero. You can confirm by changing the values in your mongodb database to be another number (e.g. 1 and you'll see it reflected on your dashboard)

I am seeing the dashboard as below:

Open : 0
WIP:2
Done:0
Although the particular task/story is done.. not sure why it is showing as 0. I have selected 'hours' from the dropdown

Also, when I see all the field as 0 if I select ,my project team from the dropdown.
But when i select 'Any' from the dropdown from Team Field.. it starts showing me data as above screenshot

If you select hours, it'll show whatever hours you assigned as estimates to the tasks. Please check how many hours/story points you assigned to the tasks in Jira.
Regarding your second comment, If you don't select your particular team, it'll aggregate data from other teams in your project, so that's why it shows the points.

@pxk5958 For first comment: If I select hours and it will show the estimated hours assigned for the story/task..then what is the significance of having OPEN , and DONE field. Under what circumstance I can see data in those field?
To the second comment: I have only one Team associated with the project which I have mentioned in the application.properties file. On selecting Team from the dropdown, I was expecting it to show the data related to my Team?
When I don't select any team then in that case it shows data, which is slightly misleading to me.

@pxk5958 @Mahendra1260
@leahxu
After changing the value of sEstimate and sEstimateTime now I'm able to see some numbers over there.. what I understood is.. the widget shows the number of sEstimate hours in "Open"/"WIP", and it shows only when I select KANBAN but not showing in sprint..
Even though if I select all teams.. the widgets shows me all 0's. Not sure of what exactly it is happening.. but need a clear understanding of this widget..

To show scrum sprints you must (1) have the collector property configured, and (2) have a project/team have an active ending sprint. If a sprint exists but has no end date it will be treated as a kanban sprint.
@vishnuvangala as is the case with most of the jira issues reported here the cause has been the jira collector not being correctly configured. Note that if you make a change to the collector config the change will only apply to newly collected jira items. Hence, you may need to wipe your jira data and recollect it.
sEstimate comes from the story point estimates that are put on stories. sEstimateTime comes from time estimates that are put on subtasks of stories. Hours estimates for tasks keep track of the total estimate and how much time has been put into the issue. From these open, wip, and done values can be deduced.
@Mahendra1260 double check your configuration. Note that if a sprint is not active (start date <= now <=(?) end date) it will not show up. If you do not select any team than "Any team" is assumed.

@vishnuvangala The feature widget now has an option to display metrics based on the number of tickets instead of estimates. This is for setups that do not use estimates.
Functionality merged in https://github.com/capitalone/Hygieia/pull/1054 Use latest codebase. You’ll also need to follow cleanup instructions provided in https://github.com/capitalone/Hygieia/pull/1137


[jasper] freeglut is not a dependency in macOS

Describe the pull request
Removing freeglut from macOS list of dependencies.

What does your PR fix? Fixes issue

Broken Qt 5 in macOS after commit https://github.com/microsoft/vcpkg/commit/f8165f72709cce797058164b389a105ca4c412a9#diff-5df6afe35378f98a8c68a59e1faed145

duplicate #9680. This one should probably be closed because the source repo has been deleted?

@Neumann-A Closing. Yes, #9680 is the good one.


Add github action to build docker image

Adds a Github action that will prepare, build and push a Docker Image of the app up to Azure Container Registry for deployment

These secrets will need to be added to the repo once they have been sourced in order for the Github action to pass
DEVELOPMENT_AZURE_ACR_CLIENTID
DEVELOPMENT_AZURE_ACR_SECRET
DEVELOPMENT_AZURE_ACA_CREDENTIALS

@paullocknimble confirmed the secrets have been added to the Repo so this can now be reviewed and merged.


Octokit::NotFound in Communication::Website::UpdateThemeVersionJob@elephant

Error in Osuny
Octokit::NotFound in Communication::Website::UpdateThemeVersionJob@elephant
GET https://api.github.com/repos/florimondmanca/osuny-test: 404 - Not Found // See: https://docs.github.com/rest/repos/repos#get-a-repository
View on Bugsnag
Stacktrace
app/services/git/providers/github.rb:144 - default_branch
app/services/git/providers/github.rb:148 - branch_sha
app/services/git/providers/github.rb:175 - tree
app/services/git/providers/github.rb:162 - tree_items_by_path
app/services/git/providers/github.rb:156 - tree_item_at_path
app/services/git/providers/github.rb:110 - git_sha
app/services/git/providers/github.rb:49 - update_theme
app/services/git/repository.rb:31 - update_theme_version!
app/models/communication/website/with_git_repository.rb:88 - update_theme_version_safely
app/jobs/communication/website/update_theme_version_job.rb:3 - execute
app/jobs/communication/website/base_job.rb:28 - perform

View full stacktrace
Created automatically via Bugsnag

@SebouChu Ça devrait pas être une souris ça ?

@arnaudlevy si


backend/lightning: don't expose mnemonic words for lightning

This commit ensures the mnemonic words created
for lightning wallet are not exposed to frontend.

Plase, also remove the mnemonic from the frontend object :)

Removed.

@Beerosagos @benma
I recreated the lightning config without a mnemonic in the handler, PTAL


its not downloading

Problem encountered on https://dotnet.microsoft.com/download/linux-package-manager/rhel/sdk-2.2.107
Operating System: Linux RHEL - x64
Provide details about the problem you are experiencing. Include your operating system version, exact error message, code sample, and anything else that is relevant.

Can you please provide more information about your problem? What is the link that you could not download?

Closing due to inactivity. @ishha100 feel free to reopen if you have more info, we will be happy to help.


consider using coinparams.json to support more blockchains.

Since bitcoin-php already offers support for several coins and testnets, I thought the library might benefit from integrating coinparams to support hundreds more without manual effort for each.
coinparams is a little project I made to parse github source repos for altcoins and parse out blockchain specific parameters.  So far about 340 coins, many with testnet and regtest networks.
Data for all coins is available in coinparams.json, as well as individual json files for each coin.
simple php/composer bindings are available.
I've been using this in a wallet derivation tool, and I created some classes that extend from bitcoin-php Network and PrefixRegistry to support using data from coinparams.json instead of the builtin classes.
There is likely a better/cleaner way, but at least these give an idea of the concept...
FlexNetwork.php
NetworkCoinFactory.php
MultiCoinRegistry.php

Hehe, I was write a parser for coinparams also at one point ;) sick of having to go looking for those!
It's actually why I'd really like to remove other networks parameters from this library. One person needing newer address versions would cause a BC break for everyone else. Having a separate package for that is a nice way to achieve it.
Maybe those classes could be published as (eg) coinparams-bitwasp-addon which is tagged along with a bitcoin-php release? Also - there have been 35 releases due to BC breaks, so having it somewhere we can both tag from would be great!

Maybe I could suggest we publish those as (eg) coinparams-bitwasp-addon which is tagged along with a bitcoin-php release? Also - there have been 35 releases due to BC breaks, so having it somewhere we can both tag from would be great!

yeah that sounds good.  I can make that project tomorrow if you like and give you commit access.  Or if you want to make it that's fine too.

@afk11  Hi, I created coinparams-bitwasp-addon as you suggested.  Please have a look and let me know what you think.   You should be able to push commits or tags if you need to.
A few things worth pointing out:

In coinparams and in MultiCoinRegistry class I'm using the convention x,y,z and Y,Z to indicate different extended key types.  I guess this is kinda sorta standard, but not really.  Also I invented X to indicate p2sh/p2pkh in MultiCoinRegistry which is kinda gross.  Let me know if you have a better idea.

The coinparams json currently uses the xpub, ypub, and zpub from BTC for altcoins if each one is not already defined.   For ypub and zpub, it is only defined for BTC.  All such cases of this are flagged in the coinparams json with "undefined_used_btc": true.   So in the MultiCoinRegistry class, I defaulted to NOT using the BTC defaults, but provide an option to use them.   I'm sort of torn about whether it is ever a good idea to use them for alts, or not.  It gets weirder when the alt does define prefixes for x, but then y and z keys look different when defaulted to BTC.    any thoughts on this?

LTC is annoying in two ways.  3rd party wallets started using Ltub prefixes and slip132 lists them.  But Litecoin-core uses xpub prefixes.  So coinparams uses xpub to match official client, but lists an alternate set for Ltub.  Either can be accessed via 'alternate' option to MultiCoinRegistry.   examples/bip39.php shows this.

The other thing is that litecoin-core has 2 scripthash prefixes.  The second is more recent.  coinparams.json includes scripthash and scripthash2.  MultiCoinNetwork chooses scripthash2 if present.  This can be easily overridden by a child class.  Presently documented only in code.  We could make it an option.
I copied over some examples from bitcoin-php and modified them.  Please try them out and let me know if you see anything wrong.   Maybe also we can figure out a way to not have duplicate examples in both codebases, or anyway if you modify them in bitcoin-php please also do so in this addon.

Thank you, You made my day.

Hi, @dan-da, sorry it took so long to respond to this PR! I've reviewed the adapter, and like how it's turning out! I've given the examples a look also and don't see anything major out of place
I did see a PHP notice while running the bip39 example - I'm running 7.2, which maybe is more strict about nonexistent keys?
PHP Notice:  Undefined index: Ypub in /home/tk/git/coinparams-bitwasp-addon/src/MultiCoinRegistry.php on line 89
PHP Notice:  Undefined index: Ypub in /home/tk/git/coinparams-bitwasp-addon/src/MultiCoinRegistry.php on line 90
PHP Notice:  Undefined index: zpub in /home/tk/git/coinparams-bitwasp-addon/src/MultiCoinRegistry.php on line 89
PHP Notice:  Undefined index: zpub in /home/tk/git/coinparams-bitwasp-addon/src/MultiCoinRegistry.php on line 90
PHP Notice:  Undefined index: Zpub in /home/tk/git/coinparams-bitwasp-addon/src/MultiCoinRegistry.php on line 89
PHP Notice:  Undefined index: Zpub in /home/tk/git/coinparams-bitwasp-addon/src/MultiCoinRegistry.php on line 90

regarding here: https://github.com/dan-da/coinparams-bitwasp-addon/blob/master/src/MultiCoinRegistry.php#L90
Also, a heads up about https://github.com/dan-da/coinparams-bitwasp-addon/blob/master/src/MultiCoinRegistry.php#L104 and https://github.com/dan-da/coinparams-bitwasp-addon/blob/master/src/MultiCoinRegistry.php#L106 but I think these should actually be multisig (https://github.com/satoshilabs/slips/issues/315)

@dan-da Can you push a new version of dan-da/coinparams-bitwasp-addon ? I see you updated the composer.json in your repo but composer is still using an old one and trying to load bitwasp/bitcoin[v<IP_ADDRESS>]

Hello, can you help me how to send bitcoin from wallet 1 to another wallet? Do you have code for this? Thanks


http://camaleon.tuzitio.com seems to be down

A certificate has expired, and the website is not live.
Documentation and other vital platform aspects, like downloading plugins and extensions, are inaccessible.

We're aware that http://camaleon.tuzitio.com is down, thank you, @yohio!
Further notifications will come when this will be solved.

Any update available on the site's status?

Finally, the site is up on new location - https://camaleon.website/
Everybody welcome back, but some links may still be pointing to the old URL, we'll fix them soon.

Woot woot!! I'm closing the issue then


Unable to add devices

I'm having an issue after updating to the latest upsnap where all 3 of the computers I had added are missing. I've tried restoring from json backedup file, deleted the docker containers and creating from new and still can't add.
version: "3"
services:
app:
container_name: upsnap_app
image: seriousm4x/upsnap:latest
network_mode: host
restart: unless-stopped
environment:
- FRONTEND_PORT=8100
- BACKEND_PORT=8001
- DB_TYPE=sqlite # required
- REDIS_HOST=<IP_ADDRESS> # required (make sure to use the same ip as below)
- REDIS_PORT=6379 # required (make sure to use the same port as below)
#- PING_INTERVAL=5 # optional (default: 5 seconds)
#- DJANGO_SUPERUSER_USER=admin # optional (default: backend login disabled)
#- DJANGO_SUPERUSER_PASSWORD=admin # optional (default: backend login disabled)
#- DJANGO_SECRET_KEY=secret # optional (default: randomly generated)
#- DJANGO_DEBUG=True # optional (default: False)
#- DJANGO_LANGUAGE_CODE=de # optional (default: en)
#- DJANGO_TIME_ZONE=Europe/Berlin # optional (default: UTC)
depends_on:
redis:
condition: service_healthy
redis:
container_name: upsnap_redis
image: redis:alpine
ports:
- "6379:6379"
restart: unless-stopped
healthcheck:
test: redis-cli ping
interval: 10s

Have you checked the docker logs? Is there any error?

So I am now trying this is a separate VM (Arch as well, but don't think it matters and am getting the same issue. I setup the docker-compose container, setup the network scanning range and go to add the PC to devices but it fails.
The docker log for upsnap_app shows:
[2022-04-30 10:47:19 +0000] [23] [INFO] ('<IP_ADDRESS>', 51653) - "WebSocket /wol/" [accepted]
[2022-04-30 10:47:19 +0000] [23] [INFO] connection open
[10:47:19] 200 ─ 1.21ms ─ /build/webfonts/fa-solid-900.woff2
[2022-04-30 10:48:00 +0000] [23] [ERROR] Exception in ASGI application
Traceback (most recent call last):
File "/opt/venv/lib/python3.9/site-packages/uvicorn/protocols/websockets/websockets_impl.py", line 184, in run_asgi
result = await self.app(self.scope, self.asgi_receive, self.asgi_send)
File "/opt/venv/lib/python3.9/site-packages/uvicorn/middleware/proxy_headers.py", line 75, in call
return await self.app(scope, receive, send)
File "/opt/venv/lib/python3.9/site-packages/channels/routing.py", line 71, in call
return await application(scope, receive, send)
File "/opt/venv/lib/python3.9/site-packages/channels/sessions.py", line 47, in call
return await self.inner(dict(scope, cookies=cookies), receive, send)
File "/opt/venv/lib/python3.9/site-packages/channels/sessions.py", line 263, in call
return await self.inner(wrapper.scope, receive, wrapper.send)
File "/opt/venv/lib/python3.9/site-packages/channels/auth.py", line 185, in call
return await super().call(scope, receive, send)
File "/opt/venv/lib/python3.9/site-packages/channels/middleware.py", line 26, in call
return await self.inner(scope, receive, send)
File "/opt/venv/lib/python3.9/site-packages/channels/routing.py", line 150, in call
return await application(
File "/opt/venv/lib/python3.9/site-packages/channels/consumer.py", line 94, in app
return await consumer(scope, receive, send)
File "/opt/venv/lib/python3.9/site-packages/channels/consumer.py", line 58, in call
await await_many_dispatch(
File "/opt/venv/lib/python3.9/site-packages/channels/utils.py", line 51, in await_many_dispatch
await dispatch(result)
File "/opt/venv/lib/python3.9/site-packages/channels/consumer.py", line 73, in dispatch
await handler(message)
File "/opt/venv/lib/python3.9/site-packages/channels/generic/websocket.py", line 194, in websocket_receive
await self.receive(text_data=message["text"])
File "/app/backend/wol/consumers.py", line 87, in receive
await self.update_device(received["data"])
File "/opt/venv/lib/python3.9/site-packages/asgiref/sync.py", line 414, in call
ret = await asyncio.wait_for(future, timeout=None)
File "/usr/lib/python3.9/asyncio/tasks.py", line 442, in wait_for
return await fut
File "/usr/lib/python3.9/concurrent/futures/thread.py", line 52, in run
result = self.fn(*self.args, **self.kwargs)
File "/opt/venv/lib/python3.9/site-packages/channels/db.py", line 13, in thread_handler
return super().thread_handler(loop, *args, **kwargs)
File "/opt/venv/lib/python3.9/site-packages/asgiref/sync.py", line 455, in thread_handler
return func(*args, **kwargs)
File "/app/backend/wol/consumers.py", line 190, in update_device
"link": data["link"],
KeyError: 'link'
I'm using the sqlite version of the docker-compose image but I may try another as well.

Same error in mysql version

Ah yes, I'll fix it shortly

Wow thanks that was quick. If i do docker-compose down, docker-compose pull, docker-compose up -d should it now be resolved or do I need to wait for update? Reason I ask is it still happens.
[2022-04-30 19:10:15 +0000] [28] [ERROR] Exception in ASGI application
Traceback (most recent call last):
File "/opt/venv/lib/python3.9/site-packages/uvicorn/protocols/websockets/websockets_impl.py", line 184, in run_asgi
result = await self.app(self.scope, self.asgi_receive, self.asgi_send)
File "/opt/venv/lib/python3.9/site-packages/uvicorn/middleware/proxy_headers.py", line 75, in call
return await self.app(scope, receive, send)
File "/opt/venv/lib/python3.9/site-packages/channels/routing.py", line 71, in call
return await application(scope, receive, send)
File "/opt/venv/lib/python3.9/site-packages/channels/sessions.py", line 47, in call
return await self.inner(dict(scope, cookies=cookies), receive, send)
File "/opt/venv/lib/python3.9/site-packages/channels/sessions.py", line 263, in call
return await self.inner(wrapper.scope, receive, wrapper.send)
File "/opt/venv/lib/python3.9/site-packages/channels/auth.py", line 185, in call
return await super().call(scope, receive, send)
File "/opt/venv/lib/python3.9/site-packages/channels/middleware.py", line 26, in call
return await self.inner(scope, receive, send)
File "/opt/venv/lib/python3.9/site-packages/channels/routing.py", line 150, in call
return await application(
File "/opt/venv/lib/python3.9/site-packages/channels/consumer.py", line 94, in app
return await consumer(scope, receive, send)
File "/opt/venv/lib/python3.9/site-packages/channels/consumer.py", line 58, in call
await await_many_dispatch(
File "/opt/venv/lib/python3.9/site-packages/channels/utils.py", line 51, in await_many_dispatch
await dispatch(result)
File "/opt/venv/lib/python3.9/site-packages/channels/consumer.py", line 73, in dispatch
await handler(message)
File "/opt/venv/lib/python3.9/site-packages/channels/generic/websocket.py", line 194, in websocket_receive
await self.receive(text_data=message["text"])
File "/app/backend/wol/consumers.py", line 87, in receive
await self.update_device(received["data"])
File "/opt/venv/lib/python3.9/site-packages/asgiref/sync.py", line 414, in call
ret = await asyncio.wait_for(future, timeout=None)
File "/usr/lib/python3.9/asyncio/tasks.py", line 442, in wait_for
return await fut
File "/usr/lib/python3.9/concurrent/futures/thread.py", line 52, in run
result = self.fn(*self.args, **self.kwargs)
File "/opt/venv/lib/python3.9/site-packages/channels/db.py", line 13, in thread_handler
return super().thread_handler(loop, *args, **kwargs)
File "/opt/venv/lib/python3.9/site-packages/asgiref/sync.py", line 455, in thread_handler
return func(*args, **kwargs)
File "/app/backend/wol/consumers.py", line 190, in update_device
"link": data["link"],
KeyError: 'link'
[2022-04-30 19:10:15 +0000] [28] [INFO] connection closed
Thanks again

Hm... I tested it here on my pc and it worked after my fix. I'll look into it again

So I ran version 1.4.1 and exported a json, then spin up 2.0.5 and imported the json there without errors.
maybe do docker-compose down && docker system prune -af && docker-compose up -d and see if that helps. This will delete all images which are not in use.

Originally was running this on a Proxmox Arch VM, although not sure it matters.
Tried in Hyper-V Debian and there is an issue with the version/yaml structure...not relevant just trying to rule things out.
Trying now in fresh Hyper-V Arch VM and am getting the same issue that I cannot add any devices. This time I'm trying to add a different device.
Appreciate your efforts - this is a nice tool to have.
--
[2022-05-02 19:40:39 +0000] [23] [ERROR] Exception in ASGI application
Traceback (most recent call last):
File "/opt/venv/lib/python3.9/site-packages/uvicorn/protocols/websockets/websockets_impl.py", line 184, in run_asgi
result = await self.app(self.scope, self.asgi_receive, self.asgi_send)
File "/opt/venv/lib/python3.9/site-packages/uvicorn/middleware/proxy_headers.py", line 75, in call
return await self.app(scope, receive, send)
File "/opt/venv/lib/python3.9/site-packages/channels/routing.py", line 71, in call
return await application(scope, receive, send)
File "/opt/venv/lib/python3.9/site-packages/channels/sessions.py", line 47, in call
return await self.inner(dict(scope, cookies=cookies), receive, send)
File "/opt/venv/lib/python3.9/site-packages/channels/sessions.py", line 263, in call
return await self.inner(wrapper.scope, receive, wrapper.send)
File "/opt/venv/lib/python3.9/site-packages/channels/auth.py", line 185, in call
return await super().call(scope, receive, send)
File "/opt/venv/lib/python3.9/site-packages/channels/middleware.py", line 26, in call
return await self.inner(scope, receive, send)
File "/opt/venv/lib/python3.9/site-packages/channels/routing.py", line 150, in call
return await application(
File "/opt/venv/lib/python3.9/site-packages/channels/consumer.py", line 94, in app
return await consumer(scope, receive, send)
File "/opt/venv/lib/python3.9/site-packages/channels/consumer.py", line 58, in call
await await_many_dispatch(
File "/opt/venv/lib/python3.9/site-packages/channels/utils.py", line 51, in await_many_dispatch
await dispatch(result)
File "/opt/venv/lib/python3.9/site-packages/channels/consumer.py", line 73, in dispatch
await handler(message)
File "/opt/venv/lib/python3.9/site-packages/channels/generic/websocket.py", line 194, in websocket_receive
await self.receive(text_data=message["text"])
File "/app/backend/wol/consumers.py", line 87, in receive
await self.update_device(received["data"])
File "/opt/venv/lib/python3.9/site-packages/asgiref/sync.py", line 414, in call
ret = await asyncio.wait_for(future, timeout=None)
File "/usr/lib/python3.9/asyncio/tasks.py", line 442, in wait_for
return await fut
File "/usr/lib/python3.9/concurrent/futures/thread.py", line 52, in run
result = self.fn(*self.args, **self.kwargs)
File "/opt/venv/lib/python3.9/site-packages/channels/db.py", line 13, in thread_handler
return super().thread_handler(loop, *args, **kwargs)
File "/opt/venv/lib/python3.9/site-packages/asgiref/sync.py", line 455, in thread_handler
return func(*args, **kwargs)
File "/app/backend/wol/consumers.py", line 190, in update_device
"link": data["link"],
KeyError: 'link'
[2022-05-02 19:40:39 +0000] [23] [INFO] connection closed

I think this is already fixed in https://github.com/seriousm4x/UpSnap/commit/42bb71a017e08e76fd252572881d8d1ce1c57f0b but didn't make it into the release yet. Guess I'll push 2.0.6 then

https://github.com/seriousm4x/UpSnap/releases/tag/v2.0.6
Please test again

Fixed! thank you so much.


⚖ Register Validator: Indonode

Network Choice
nemeton-1
Who are you?
Indonode from Nodex Capital
gentx
{"body":{"messages":[{"@type":"/cosmos.staking.v1beta1.MsgCreateValidator","description":{"moniker":"Indonode","identity":"58527185D1DD91F8","website":"https://indonode.dev/","security_contact":"indonode@proton.me","details":"Crypto Enthusiast \u0026 Cosmos Lovers"},"commission":{"rate":"0.050000000000000000","max_rate":"0.200000000000000000","max_change_rate":"0.010000000000000000"},"min_self_delegation":"1","delegator_address":"okp41tlsjfnkwc829h7j6y3dgqc4p0uu6tn4w7zc0f0","validator_address":"okp4valoper1tlsjfnkwc829h7j6y3dgqc4p0uu6tn4wt9gxhw","pubkey":{"@type":"/cosmos.crypto.ed25519.PubKey","key":"tnlBrPYDFadq/rfs3eelD/d88C3s6hb8O667h4UB+CU="},"value":{"denom":"uknow","amount":"10000000000"}}],"memo":"e1abde7ec563f6f8c9ced1f624d5e3a127c9f9e6@<IP_ADDRESS>:26656","timeout_height":"0","extension_options":[],"non_critical_extension_options":[]},"auth_info":{"signer_infos":[{"public_key":{"@type":"/cosmos.crypto.secp256k1.PubKey","key":"A9RAgJf5CRONX4ydwx1UflDJv8p3gmwi6N7KcUjzeZmS"},"mode_info":{"single":{"mode":"SIGN_MODE_DIRECT"}},"sequence":"0"}],"fee":{"amount":[],"gas_limit":"200000","payer":"","granter":""},"tip":null},"signatures":["YQENFFtRZwxIvvgaHjzot0JiB2onGq1b3XlTJ3XkqjZI+ZvIzZMjQSlCQoAwX4jKzsdYA+LjKBiwmc01ZQ4qPw=="]}

😉 Here is the corresponding PR: https://github.com/okp4/networks/pull/175


Turkish Translation

Coverage decreased (-0.08%) to 27.809% when pulling 26cd6a91fd941e52b1b9b11e477bb2ab78b5fa0d on codesignist:patch-1 into 79334d67a2ffb60996c7100ef05720f4bdb4a128 on react-component:master.


Run tests on net462

We should run our tests on both net462 and net6.0, currently we only run these tests on net6.0.
https://github.com/featbit/featbit-dotnet-sdk/blob/016f87b8ec0dae3ee34725d5534e12137c73aa69/tests/FeatBit.ServerSdk.Tests/FeatBit.ServerSdk.Tests.csproj#L4
See #15

I imagine the job needs to target the windows-latest runner and use the vstest-action

Yeah, to run the tests on net462, we do need to change some of the test code


Migrate ThirdPersonFollowerViewController

This PR migrates the ThirdPersonFollowerViewController to ros2/rviz.
Closes #220.
Note: The first commit contains the required fix from #293, remove this commit after the fix has been merged!

CI:

Linux
Linux-aarch64
macOS
Windows

New CI after rebase:

Linux
Linux-aarch64
macOS
Windows

@wjwwood We added the last commit (7b3fd24) only the make the tests pass. This commit resolves an undetected merge error from last night and will be published as a pr of its own. The last commit will cause a conflict once the other pr is merged. Simply remove the last commit from this pr before merging will work.


Update path-aliases.md

Just small typo fixed

Must be me but it seems type definitions got changed after update


Fix: double http package

What kind of change does this PR introduce?
Remove duplicate HTTP package

Hi @dshukertjr, Yes there is a duplicate HTTP package In the fetch.dart file the delete one is not been used

@lebe24 Failing tests suggest otherwise.

@dshukertjr, When I ran it locally on my machine without the duplicate package all functions worked as expected but will have to write a local test to see if the package is needed else will close the pull request.

It's not about writing a test, because this a compilation time error. As seen in the ci, the analyzer shows the error and not a run test.

Okay, everything is all good, I will close the request. Thank you


Ability to rename headers after validation

I want to be able to validate the headers of an uploaded file by uppercasing and replacing spaces in order to provide a forgiving user experience. and then proceed to replace the headers used as keys in the JSON so that I can reference the properties by the correct name. I do not want to simply supply my own headers upfront because that then eliminates the inherent ease of use this library provides which is being able to accept the columns in any order.
file:
header1, HeaDER 2, header        3
value1, value2, value3

const myKnownHeaders = ['HEADER1','HEADER2','HEADER3'];
csv().on('header', (headers) => {
  // validate headers
  let newHeaders = headers.map(a => a.replace(/\s+/g, '_').toUpperCase());
  if ( myKnownHeaders.every(elem => newHeaders.indexOf(elem) > -1)) ) {
    // idk, set the headers that are to be used as key somehow
  }
})

I thought doing
csv({
        headers: fileHeaders
    }). . .

would have worked but the header event just emits my own headers back to me which doesn't work.

brother, i figured it out - just run the darn thing twice.


PUT with redirects drops the request body

Im heading over here from the Issue https://github.com/tejashah88/node-meraki-dashboard/issues/2
In short, if i do PUT there is over redirects GET performed. Adding PUT to the SAFE_METHODS the body goes missing... i think.
I can see a few redirects while talking to the meraki API.

follow-redirects CURRENTREQUEST.output:  [ 'PUT /api/v0/networks/L_networkid/devices/serial HTTP/1.1\r\nx-cisco-meraki-api-key: apikey\r\ncontent-type: application/json\r\ncache-control: no-cache\r\npostman-token: d708deed-b15a-6af5-6ad5-38b83a074b12\r\nHost: dashboard.meraki.com\r\nConnection: close\r\nTransfer-Encoding: chunked\r\n\r\n12',
<Buffer 0d 0a>,
'{"name":"TEST200"}',
<Buffer 0d 0a> ] +3ms

So far so good, next message is:

follow-redirects redirecting to https://api.meraki.com/api/v0/networks/L_networkid/devices/serial PUT 307 +6s

Unfortunately next Message is GET:

follow-redirects redirecting to https://n192.meraki.com/api/v0/networks/L_networkid/devices/serial GET 308 +1ms

So it looks like when the redirect code is is not equal 307 and the method is not in the SAFE_METHODS list, GET is used.
As i put PUT in SAFE_METHODS list, the request is not anymore altered to GET, but i don't think the body/buffer is going through. Since i don't get back the updated object from the API.
Btw. talking direct to Host n192.meraki.com, PUT is executed and i get as response the updated object.
Can somebody help me point out this issue? How can i test that the body is still there, if PUT is in SAFE_METHODS and PUT is performed.

So it looks like when the redirect code is is not equal 307 and the method is not in the SAFE_METHODS list, GET is used.

Indeed, this is the behavior mandated by the HTTP 1.1 specification.
What is the status code returned by the server in your example?

Hi Ruben
Yeah sure i agree that this has to be as you implemented it. And i dont think its about the status code (which is 302 by the way).
But this  !(this._options.method in SAFE_METHODS) will always be false since the SAFE_METHODS list looks like:
var SAFE_METHODS = { PUT: true, GET: true, HEAD: true, OPTIONS: true, TRACE: true };
The Keys should be written in lowercase, because this._options.method returns the values in lowercase.
after the following if works and will no longer reset the bodyBuffer:
if (response.statusCode !== 307 && !(this._options.method in SAFE_METHODS)) {       this._options.method = "GET";       // Drop a possible entity and headers related to it       this._requestBodyBuffers = [];       for (header in headers) {         if (/^content-/i.test(header)) {           delete headers[header];         }       }     }

And i dont think its about the status code (which is 302 by the way).

Yes, it is about the status code:

Note: For historical reasons, a user agent MAY change the request
method from POST to GET for the subsequent request.  If this
behavior is undesired, the 307 (Temporary Redirect) status code
can be used instead.

—https://tools.ietf.org/html/rfc7231#section-6.4.3

But this !(this._options.method in SAFE_METHODS) will always be false

No, we have 100% branch coverage so the true condition is definitely triggered. Try lowercasing them and you'll see that 12 tests fail.

The Keys should be written in lowercase, because this._options.method returns the values in lowercase.

No, HTTP method names are case-sensitive:

The method token is case-sensitive because it might be
used as a gateway to object-based systems with case-sensitive method
names

—https://tools.ietf.org/html/rfc7231#section-4.1
this._options.method simply contains the original method, which should be uppercase to match HTTP casing (see examples in the Node.js documentation).
So what you are seeing is intended behavior. The servers needs to use 307 if the request may be repeated with the same method.

Thank you Ruben.
Indeed i see lowercase methods.
debug("response.statusCode: ", response.statusCode, "this._options.method : ", this._options.method, "SAFE_METHODS: ", SAFE_METHODS, "this._options.method in SAFE_METHODS: ", (this._options.method in SAFE_METHODS));

follow-redirects response.statusCode:  302 this._options.method :  get SAFE_METHODS:  { PUT: true, GET: true, HEAD: true, OPTIONS: true, TRACE: true } this._options.method in SAFE_METHODS:  false +0ms

For others, this is seen with the axios library. If i use native node.js requests this is not the case at all.

For others, this is seen with the axios library.

That seems like a bug in Axios (also appeared in #73); I'd suggest filing it with them.


Error when construct the disease network

Hi,
When I want to build the disease network, I met a mistake.
I have 291 kinds of diseases totally.
However, nobody will have all the diseases.
So there may be some [ ] in the events.
And the tick can not handle this situation. (I used inference.HawkesExpKern)
What should I do?
Is it possible for Tick to solve the problem?
Thanks,

can you provide a stack trace or minimal example?

Traceback (most recent call last):
File "hawkes.py", line 115, in
learner.fit(hawkes_events)
File "/home/huijian/.conda/envs/py3/lib/python3.6/site-packages/tick/inference/base/learner_hawkes_param.py", line 165, in fit
model_obj.fit(events)
File "/home/huijian/.conda/envs/py3/lib/python3.6/site-packages/tick/optim/model/base/model_hawkes.py", line 70, in fit
return ModelFirstOrder.fit(self, data)
File "/home/huijian/.conda/envs/py3/lib/python3.6/site-packages/tick/optim/model/base/model_first_order.py", line 60, in fit
Model.fit(self, *args)
File "/home/huijian/.conda/envs/py3/lib/python3.6/site-packages/tick/optim/model/base/model.py", line 77, in fit
self._set_data(*args)
File "/home/huijian/.conda/envs/py3/lib/python3.6/site-packages/tick/optim/model/hawkes_fixed_expkern_leastsq.py", line 117, in _set_data
ModelHawkes._set_data(self, events)
File "/home/huijian/.conda/envs/py3/lib/python3.6/site-packages/tick/optim/model/base/model_hawkes.py", line 91, in _set_data
end_times = np.array([max(map(max, e)) for e in events])
File "/home/huijian/.conda/envs/py3/lib/python3.6/site-packages/tick/optim/model/base/model_hawkes.py", line 91, in
end_times = np.array([max(map(max, e)) for e in events])
ValueError: max() arg is an empty sequence

Actually, I may know what happens. But in my case, an event may have 291 dimensions. But some dimensions may be empty for the patient may not have that disease. I intend to set these dimensions to be "[ ]"
I coded it like following:
p_time_stamps.append(np.array([],dtype=np.double)).
I want to know how to deal with it, if I have some dimensions are empty.
Like that events[j] = []

The record of every patient can be seen as a time series.
Then it has d dimensions (The num of the diseases)
And the data looks like:
[disease1] [time1, time2, ... timen]
[disease2] []
[disease3] [time1, time2,... timem]
[disease4] ....
I do not know how to deal with disease2 when programming with tick.

Hi, did you download tick with pip or did you install it from source? Lately, we have merged a new pull request to allow empty components in a list of realization (#111). It could be the same problem you are encountering.
The version on pip does not contain this feature yet, so you might have to build tick from source.

I download tick with pip. I will try it right away.

hi,
I have tried on two machines building the tick from source on Linux.
They both report that:

import tick
Traceback (most recent call last):
File "/home/software/tick/tick/array/build/array.py", line 18, in swig_import_helper
fp, pathname, description = imp.find_module('_array', [dirname(file)])
File "/root/anaconda2/envs/tick/lib/python3.6/imp.py", line 297, in find_module
raise ImportError(_ERR_MSG.format(name), name=name)
ImportError: No module named '_array'

During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "", line 1, in
File "/home/software/tick/tick/init.py", line 3, in
import tick.base
File "/home/software/tick/tick/base/init.py", line 21, in
from tick.array import *
File "/home/software/tick/tick/array/init.py", line 3, in
from .build import array
File "/home/software/tick/tick/array/build/array.py", line 28, in
_array = swig_import_helper()
File "/home/software/tick/tick/array/build/array.py", line 20, in swig_import_helper
import _array
ModuleNotFoundError: No module named '_array'
I do not know the module _array. And I use Anaconda Enviroment.
Thanks,

Hi, have you compiled the library ? Please have a lot for instructions in the readme, it’s pretty easy.
Best regards
Envoyé de mon iPhone

Le 11 déc. 2017 à 04:40, huijianpzh<EMAIL_ADDRESS>a écrit :
hi,
I have tried on two machines building the tick from source on Linux.
They both report that:
import tick
Traceback (most recent call last):
File "/home/software/tick/tick/array/build/array.py", line 18, in swig_import_helper
fp, pathname, description = imp.find_module('_array', [dirname(file)])
File "/root/anaconda2/envs/tick/lib/python3.6/imp.py", line 297, in find_module
raise ImportError(_ERR_MSG.format(name), name=name)
ImportError: No module named '_array'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "", line 1, in
File "/home/software/tick/tick/init.py", line 3, in
import tick.base
File "/home/software/tick/tick/base/init.py", line 21, in
from tick.array import *
File "/home/software/tick/tick/array/init.py", line 3, in
from .build import array
File "/home/software/tick/tick/array/build/array.py", line 28, in
_array = swig_import_helper()
File "/home/software/tick/tick/array/build/array.py", line 20, in swig_import_helper
import _array
ModuleNotFoundError: No module named '_array'
I do not know the module _array. And I use Anaconda Enviroment.
Thanks,
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Indeed, did you follow this method? https://github.com/X-DataInitiative/tick/blob/master/INSTALL.md#manual-install---linux--osx
If so, please check that the Python executable you have used for python setup.py build install is the same Python as the one you use to run your script. Btw, did you add the Python generated module to your PYTHONPATH?


Added service monitor

Prometheus operator only support service monitor and doesn't support annotation based scrapping

What this PR does / why we need it:
Which issue this PR fixes
(optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged)

fixes #

Special notes for your reviewer:
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

[ ] DCO signed
[ ] Chart Version bumped
[ ] Variables are documented in the README.md
[ ] Title of the PR starts with chart name (e.g. [stable/chart])

Hi @rverma-nikiai ,
You need to have the DCO signed before we can merge the PR.
Could you do that ?


Proposed new API design principles

I want to propose to re-design new (2.0) release version architecture|api using following principles

Separation of Concerns - each component must solve 1 concrete task, every component can be replaced by custom implementation
Using well-known GoF patterns instead self-made solutions (for example PojoMetadata is awful, it must be separated by PojoMetadataProvider && PojoMetadata)
Must not prevent to write plain-old JDBC-code (must be able to get Connection from sql2o.Connection, PreparedStatement from Query, ResultSet from IterableResultSet (since we can use third-party library wich consumes JDBC objects, as example - converting ResultSet to CSV)
Must be able to consume JDBC objects at any step (must be create sql2o.Connection from Connection, Query from PreparedStatement, must be able to transform ResultSet to all possible forms (List|Table|LazyTable|IterableResultSet (since sometimes we write not project-from-scratch but code wich obtains JDBC objects outside)

I also have a couple of suggestions:
For query list: why don't you populate and existing list instead of returning a new one? I usually prefer to give you the container and you fill it rather than returning something.
Query one: how do we manage the "is not one result" scenario? We could return a Optional<T> instead of T(something similar to Java 8 first() on streams. Or we could accept another object as parameter that is called if results are not exactly 1.
Andrea

Hi,
I've noticed a lot of time wasting on fetching: this depends mainly on used Reflection (100k rows w/ 10 fields in 2m - on i7/4GB/java7).
As option could be good to use something similar to DBUtils: a companion mapper class or an Interface to implement to have bytecode bean population.
Antonio

@jammer76 does your java classes have public fields or getters/setters?
Which environment you running on?
sql2o use bytecode generators for methods (really, they reuse them from JVM).
I made some research (including decompiling oracle and ibm rt.jar) for ReflectASM project
https://github.com/EsotericSoftware/reflectasm/pull/27/
https://github.com/EsotericSoftware/reflectasm/issues/23

Hi Dimzon,
my environment has public setter/getter with LOMBOK... but with a new try I've obtained that with some trick on fetchSize of DataSource I've obtained that with reflection I've 21s per 1M rows of 100bytes ca. and with Handler 15s for same rows (obiouvsly of a simply query like select * from table where rownum < 1000000)

Try public fields
20.08.2015 11:24 пользователь "Antonio Conte"<EMAIL_ADDRESS>написал:

Hi Dimzon,
my environment has public setter/getter with LOMBOK... but with a new try
I've obtained that with some trick on fetchSize of DataSource I've obtained
that with reflection I've 21s per 1M rows of 100bytes ca. and with Handler
15s for same rows (obiouvsly of a simply query like select * from table
where rownum < 1000000)
—
Reply to this email directly or view it on GitHub
https://github.com/aaberg/sql2o/issues/83#issuecomment-132934070.

But public fields is not a good choice... for sure is faster but absolutely unsafe and unmaintanable... ;-)

The bottleneck is not reflection since byte code used. Just one more
virtual method call * 1M rows* n columns can take those 5 seconds
20.08.2015 11:34 пользователь "Dmitry Alexandrov"<EMAIL_ADDRESS>написал:

Try public fields
20.08.2015 11:24 пользователь "Antonio Conte"<EMAIL_ADDRESS>написал:

Hi Dimzon,
my environment has public setter/getter with LOMBOK... but with a new try
I've obtained that with some trick on fetchSize of DataSource I've obtained
that with reflection I've 21s per 1M rows of 100bytes ca. and with Handler
15s for same rows (obiouvsly of a simply query like select * from table
where rownum < 1000000)
—
Reply to this email directly or view it on GitHub
https://github.com/aaberg/sql2o/issues/83#issuecomment-132934070.

It depends. Until they are package private...
20.08.2015 11:36 пользователь "Antonio Conte"<EMAIL_ADDRESS>написал:

But public fields is not a good choice... for sure is faster but
absolutely unsafe and unmaintanable... ;-)
—
Reply to this email directly or view it on GitHub
https://github.com/aaberg/sql2o/issues/83#issuecomment-132937964.

Btw I think we need a strategy to ignore setters and deserualize directly
to  private fields anyway. Your can achieve same effect now if you rename
backing fields without touching setters and make column aliases in select
to match fields...
20.08.2015 11:36 пользователь "Antonio Conte"<EMAIL_ADDRESS>написал:

But public fields is not a good choice... for sure is faster but
absolutely unsafe and unmaintanable... ;-)
—
Reply to this email directly or view it on GitHub
https://github.com/aaberg/sql2o/issues/83#issuecomment-132937964.

Such a strategy should be optional and should not be enabled by default. it will be counter intuitive compared to ordinary java-standards. But I agree, that such a strategy could be nice to have, when you need a little extra performance for large datasets.

Btw GSON use such strategy by default. Java builtin serialization too
20.08.2015 12:04 пользователь "Lars Aaberg"<EMAIL_ADDRESS>написал:

Such a strategy should be optional and should not be enabled by default.
it will be counter intuitive compared to ordinary java-standards. But I
agree, that such a strategy could be nice to have, when you need a little
extra performance for large datasets.
—
Reply to this email directly or view it on GitHub
https://github.com/aaberg/sql2o/issues/83#issuecomment-132945263.

Since serialization means persisting object state and actual state is
fields. So there are some dualism and both approaches has logical base
20.08.2015 12:04 пользователь "Lars Aaberg"<EMAIL_ADDRESS>написал:

Such a strategy should be optional and should not be enabled by default.
it will be counter intuitive compared to ordinary java-standards. But I
agree, that such a strategy could be nice to have, when you need a little
extra performance for large datasets.
—
Reply to this email directly or view it on GitHub
https://github.com/aaberg/sql2o/issues/83#issuecomment-132945263.

So saving field means "Save object snapshot" and using properties means
"Save recepie how to create same object". There are not silver bullet
solution - it depends...
20.08.2015 12:04 пользователь "Lars Aaberg"<EMAIL_ADDRESS>написал:

Such a strategy should be optional and should not be enabled by default.
it will be counter intuitive compared to ordinary java-standards. But I
agree, that such a strategy could be nice to have, when you need a little
extra performance for large datasets.
—
Reply to this email directly or view it on GitHub
https://github.com/aaberg/sql2o/issues/83#issuecomment-132945263.

Yes, it really depends on the use case. I think the best solution would be to have both strategies available, and to keep the properties-first strategy as default.

For Serialization Strategy coul be useful to investigate also KRYO (faster that I know)
https://code.google.com/p/kryo/

As I said before bottleneck is additional virtual methods into call stack
when setters is invoked. Anyway this overhead is negligent for real life
applications. For example with a million rows - in real life you fetch them
for some complex processing (otherwise better to process via sql). I
believe your processing take muuuuuuuch more time than whole fetch
overhead.
At over side for best perfomance we need have ability to pass lambda so
anyone can provide handwritten optimized code to read object from
resultset. Where and when he really need it.
20.08.2015 12:32 пользователь "Antonio Conte"<EMAIL_ADDRESS>написал:

For Serialization Strategy coul be useful to investigate also KRYO (faster
that I know)
https://code.google.com/p/kryo/
—
Reply to this email directly or view it on GitHub
https://github.com/aaberg/sql2o/issues/83#issuecomment-132953398.

@dimzon GSON makes use of sun.misc.unsafe to handle serialization/deserialization using private fields. It's definitely a nice feature to have as your model objects do not require setters (thus making them mutable everywhere), but I would be worried about sun.misc.unsafe being removed in future java versions.

It's impossible to completely take away such mechanism since Java RMI
serialization is based on it. It's only possible to rename it..
21.08.2015 0:39 пользователь "dalexander01"<EMAIL_ADDRESS>написал:

@dimzon https://github.com/dimzon GSON makes use of sun.misc.unsafe to
handle serialization/deserialization using private fields. It's definitely
a nice feature to have as your model objects do not require setters (thus
making them mutable everywhere), but I would be worried about
sun.misc.unsafe being removed in future java versions.
—
Reply to this email directly or view it on GitHub
https://github.com/aaberg/sql2o/issues/83#issuecomment-133186378.


Release v0.14.0

Issue #, if available:
Description of changes:

Release v0.14.0

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Codecov Report

Merging #653 into master will not change coverage.
The diff coverage is 100%.

@@           Coverage Diff           @@
##           master     #653   +/-   ##
=======================================
  Coverage   85.03%   85.03%
=======================================
  Files         116      116
  Lines        6648     6648
  Branches     1564     1564
=======================================
  Hits         5653     5653
  Misses        636      636
  Partials      359      359

Impacted Files
Coverage Δ

src/cfnlint/version.py
100% <100%> (ø)
:arrow_up:

Continue to review full report at Codecov.

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


Mode counts seem to be static in latest version of ActDev simulations

Was just checking out the latest version of the UI after great work on #551. It looks awesome IMO. One issue though: the counts for different modes seem to not change. Also wondering how the UI will respond when counts go above 100 or even 1000, should be fine but thought it worth asking.

Source: https://actdev.cyipt.bike/abstreet/?--actdev=allerton-bywater&--cam=14.90/53.74907/-1.36466

Wooo, good catch. The minimap panel doesn't respond to time changing. Will fix, and also see how the layout looks with larger numbers.

The counters definitely jump a bit visually as the width changes. Same as the top-left time. If there are ideas to improve this, I'm happy to implement, but otherwise, I think this is fixed.
(I'll deploy a new actdev build with more fixes tonight)

Edit: Michael fixed the top-left time from jumping by using a fixed-width font. We can't play the same trick for counts unless we pad with spaces and assume some reasonable max (probably 100,000)

Very cool! Definitely good enough. First thought: the horizontal side-by-side representation of the modes that happens when you zoom in feels a bit easier on the eye. But may not be worth changing anything else until after the dust has settled and others have had a chance to chime in. Overall, awesome work, I hope some of this feeds into the main UI, I think it's a step forward. Impressive.


Quick Accent popup window is blank

Microsoft PowerToys version
0.62.1
Running as admin

[ ] Yes

Area(s) with issue?
Quick Accent
Steps to reproduce
Holding the key and tap the arrow
✔ Expected Behavior
Normal behaviour
❌ Actual Behavior
Holding the key and tapping the arrow shows the window at the top of the screen but the window is blank, you can still toggle between the accents but you can't tell which one is selected as the popup window remains blank.
Other Software
No response

Sure, please see attached. It happens on multiple Win11 laptops. It was working a few days ago but is showing a blank window today.
https://user-images.githubusercontent.com/11150083/192024738-cd9a7070-c339-4f49-bdcc-852d4f049828.mp4

@damienleroy Any idea why this happens?

Never seen that before.
By any chance, do you know if the windows update 22H2 as been installed ?
Someone reported me an another issue, but without the possibility to test it now.

No, neither machine has 22h2 installed yet (as it's not currently being offered). I've attached a slightly better video.
https://user-images.githubusercontent.com/11150083/192026605-683b4755-8f64-4af1-90a5-54de94195cd5.mp4

I logged out and back in and it works correctly having logged in again. The blank window occurred on two machines (both with Win11) so perhaps it's happening after being logged in for a while???

I am having the same issue, blank popup after several days of use. I have not tried logging out and back in.
Also using v0.62.1 and Windows 21H2.

Same problem, after restarting PowerToys it's also working again

Same problem, after restarting PowerToys it's also working again

Can confirm that restarting PowerToys fixes it.

Interesting as this is a WPF app that would be rendering blank doing a quick scan of the code.

I've also discovered that toggling the "Enable quick accent" off and then back on allows it to work again for a while at least.

Hi,
I have the same issue as described here. Also repaired when Quick Accent is restarted. But in times the issue come back again.
Same as the video above I have that blank pop up (that's a "E" holded + "Space" bar pressed).

I am on Windows 10 Pro

On my side nothing urgent I just untick->tick the Quick Accent but you may want some logs from me to troubleshoot so do not hesitate to request.

I'm reproducing this on Windows 10 21H2 too. I suspect that this may be happening a) after hibernating or b) after switching from 2-display configuration to one or vice versa... But I haven't had time to reproduce it deliberately.

@damienleroy What are the chances of moving to WinUI 3?

I can confirm that this happens to me on Win 11 22H2 in an environment where I switch between a connected and disconnected external monitor (i.e. sometime one sometimes two displays). I am running the dark theme, if that makes a difference.

@Jay-o-Way I already made some tests with WinUI (If I remember well it was the v2), but it doesn't offer the same experience as WPF, specially to create a special custom window autosized and without the classics window components (hidding titlebar, etc...).
It can be a good idea to take a look for the version 3, but it seems not so simple, and ask some tricks explained in the doc.

I have been having the same issue since I started using the feature last month. Interestingly, sometimes it is white and sometimes it is black.
Currently on Windows 11 22H2 22621.755
I have been able to replicate the bug with the following:

On my PC, Press the letter 'e' and left or right arrows to verify issue does not occur.
On my iPhone 13 mini, running iOS 16.1, open MS Remote Desktop (10.4.4 (5204) Insider Beta), and connect to my PC.
On my iPhone, go back to the home screen and lock the device.
Back on PC, log back in to Windows
Press 'e' and left or right button
Issue occurs.

PowerToysReport_2022-11-04-20-57-44.zip

Same issue here. It happens when reconnecting to windows via RDP.

So I could reproduce the issue when connecting to an another computer on Remote Desktop.
I checked several solutions like there without success:
https://stackoverflow.com/questions/32003868/blank-wpf-child-windows-on-windows-10
And I could read it's an issue between graphic drivers and WPF. So hard to fix...
Also tried to create a WinUI3 project. But it seems for System Caption there is no way to hidding this:
https://learn.microsoft.com/en-us/windows/apps/develop/title-bar?tabs=winui3#system-caption-buttons
But I just notice SymWin which is done in WPF don't have the issue
I checked on the code, and the difference is it recreate each time the window instead of keeping it & redraw the content.
I made that and it finally works!
Need to finalize some things but I will may propose a PR soon.

The code for this issue has been released in 0.65. Please update PowerToys to the latest version:
https://github.com/microsoft/PowerToys/releases


Adding python code to find longest common prefix

Added a function to find the longest common prefix string amongst an array of strings.
If there is no common prefix, function returns an empty string "".

Thanks for your Contribution!
Star this repo!

Thanks for your Contribution!
Star this repo!


Standardize rendering of Prologue and Epilogue line numbers

We noted that <ptr>s pointing to lines in epilogues and prologues render differently in print and in HTML. E.g., in the PDF it's "Epilogue.12", while in the HTML it's "Epilogue 12".
We want it to render with a space (no period).

I've committed an attempted fix for this, but I'm unable to build and check the PDFs because of encoding problems in H5 and Oth. H5 has:
     [java] ERROR: The following references were not found in the bibliography files:
     [java] OEDT3
     [java] THEO4
     [java] Terminating the build.

while Oth has:
     [java] Processing ptr target emdOth_M_anc_171
     [java]
     [java]         The text includes a ptr element pointing at id emdOth_M_anc_171
     [java]           but there is no such element in the text.

@JanelleJenstad @Navarra-Houldin could you  look into this so we can test the PDF builds and see if my fix is working?

The H5 problems seem to be a strange artifact of working on my laptop, and Jenkins has build the H5 PDF successfully. I believe this is fixed, so I will close, but please re-open if you find any issues.

It looks great, thanks @martindholmes!