[Bug]: No requirements.txt?

Code of Conduct

[X] I agree to follow this project's Code of Conduct

What happened?
There is no requirements.txt in the root directory of this project.
Is this intentional or should I create one? If so, where?

Windows, Linux
How did you download the software?
Built from source
Relevant log output
No response
Additional data and screenshots
No response

It's complicated, since there's some problems with requirements.txt. This project currently contains lockfiles for Poetry, so you'll probably need to install it first. More on Python dependency tools.

As far as I remember you don't need to install poetry if you only want to install the package. You just do pip install . and this is it. You do need potery if you plan to take a part in development and be able to debug code tho
In both cases requirements.txt isn't necessary

^
closing this so it doesn't try to tell me i have more open issues lol


Bug: Dynamically created methods return wrong result

There seem to be a problem with the dynamically created methods, when the selected value is a part of one of the other values of the attribute.
A good example is when adding eg. a "sex" enumerated attribute with "female" and "male" values:

class Tractor
   enum_attr :driver_sex, %w(male female)
end

These specs both fail:

it "should not fail like this:" do
    t = Tractor.new
    t.driver_sex = :male
    t.driver_sex_female?.should be_false
end

=> Failure/Error: t.driver_sex_female?.should be_false
       expected true to be false

it "should not fail like this:" do
    t = Tractor.new
    t.driver_sex = :female
    t.driver_sex_female?.should be_true
end

=> Failure/Error: t.driver_sex_female?.should be_true
       expected false to be true

+1 to this issue.


FS-2289 - Fixed metric issue, now uses retrieve flags endpoint

Issue:
The reason for the inaccurate metric is because the endpoint retrieving the applications data retrieves the following metrics for example:
{'assessing': 0, 'completed': 3, 'flagged': 0, 'not_started': 7, 'qa_completed': 3, 'stopped': 0, 'total': 10}
At this point the metric will show 3 QA Completed, however, if we now FLAG an application, although it is still QA completed, since the latest flag is "Flagged", the following will show:
{'assessing': 0, 'completed': 3, 'flagged': 1, 'not_started': 7, 'qa_completed': 2, 'stopped': 0, 'total': 10}
The reason for this is because the endpoint retrieving 'qa_completed' will only count it as true if that is the latest flag.
Fix:
The query used to retrieve the amount of qa_completed applications previously only returned true IF qa_completed was the latest flag. I have changed this to use the new query find_qa_complete_flags_for_applications which searches for those applications which have a qa completed flag in them

Please include the ticket number in the PR title.

Can we try adding a test for this logic?

Can we try adding a test for the actual endpoint response? i.e. using the flask test client?


Failed to mount component: template or render function not defined.

Using laravel mix
Did the same as said in the docs
1)npm install vue-wysiwyg --save
2)import wysiwyg from "vue-wysiwyg";
Vue.use(wysiwyg, {}); in app.js
3) in an .vue file
Getting the error
app.js:15902 [Vue warn]: Failed to mount component: template or render function not defined.
found in
--->

I'm getting the same issue with Laravel Mix, and cannot figure this out.  A bummer as I was looking forward to using this one with Vuejs and Laravel.

I also have this issue

I also have this issue

Same here, using laravel mix

I m also having this using normal vue compiler. ...?L???

Same here, using laravel mix.


Help Request: DateTime Math Possible?

Is it possible to do math on DateTime objects?
Given the following:
Start: DateTime
End: DateTime
I'm looking to do the following operations:
{{Start-1}}
{{End-Start}}
Is this possible?
Thanks
marc

No, that's not possible.  The expression (or Selector as we call it) is supposed to remain simple, and does not support any logic.  It just supports getting properties, or can call a parameterless method (such as ToString or ToUpper, but that's it.
Mostl other logic should be handled by code.  For example:
Smart.Format("{Start} {End} ({Duration})", new { Start, End, Duration = End-Start });


Add separate footer logo

I would love to see the addition of a separate footer logo that can be added as an option to the jsdoc config. Something like this.
"templates": {
    "footerLogo": {
        "url": "<footer logo url>",
        "width": "<footer logo width>px",
        "height": "<footer logo height>px",
        "link": "<footer logo link>",
    }
}

Additionally, I imagine this would fallback to whatever value is set in the logo block if not supplied.

I'll also gladly make this addition for you, just let me know if it's something you're interested in having in the template.


[docs] Add a next.js demo with hooks

Closes #13773

Thanks for that!!!
What's the significance of
// Use the same helper as Babel to avoid bundle bloat.
import { install } from '@material-ui/styles';

install();

Tried to remove import '../src/bootstrap'; and didn't see anything different.
Also, I converted this example into typescript. Let me know if you would like a PR.

@virzak The install() call makes the core components use the new styles implementation. We can add a comment about it. We have a create-react-app example with TypeScript. Is that enough?

I can only speak for myself, but any time I get a sample of a base library, I convert it to typescript. There is a lot of code in next.js (most notably _document.tsx and _app.tsx) which is not covered by the create-react-app example. Also I just find that typescript forces you to produce cleaner code.
Here is the repo: https://github.com/virzak/material-ui-nextjs-hooks-typescript
Added:

PageContext interface
children property

Issues:

Not entirely sure what to do in App constructor
pageContext needs to be cast at PageContext for some reason, even though it is never undefined. Not sure if there is a good way to avoid it.

@eps1lon What do you think of a next.js example using TypeScript?
@virzak The import order matters. Yes, it's important to call it with server-side rendering. It's allowing the collection of the CSS and might prevent a classnames clash issue.

We could merge the example from @virzak into the main repo no objection here if he wants to work on that. Glanced over the repo quickly and it looked fine to me with some minor issues.

@virzak It looks like we have a green light for this TypeScript demo :) 💚 .


integration tests don't work with new version of blockfrost-tests

https://github.com/blockfrost/blockfrost-backend-ryo/pull/143


Misses dependency

nix run github:mindstorms6/gradle2nix -- --help
error: builder for '/nix/store/3rj9iyz66423dx3ivpghqf25xz2mmj7x-checker-qual-2.11.1.pom.drv' failed with exit code 1;
last 7 log lines:
trying https://repo.gradle.org/gradle/libs-releases/org/checkerframework/checker-qual/2.11.1/checker-qual-2.11.1.pom
% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
Dload  Upload   Total   Spent    Left  Speed
0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (22) The requested URL returned error: 404
error: cannot download checker-qual-2.11.1.pom from any mirror
For full logs, run 'nix log /nix/store/3rj9iyz66423dx3ivpghqf25xz2mmj7x-checker-qual-2.11.1.pom.drv'.

You could download this from maven: https://search.maven.org/artifact/org.checkerframework/checker-qual/2.11.1/jar
Unfortunately I hit the same issue with error-prone-annotation and got a hash mismatch,

@jjant I would like to know the nix way still, thanks anyway.

I meant you can replace the source for the package in gradle-env.json to use the maven url, that has the package.


unwrap will return different value when calling value_and_grads

unwrap will return different value when calling value_and_grads.
import jax
def fn(inp):
    axis = -2
    discont = 2
    period = 1
    return jax.numpy.unwrap(inp, axis=axis, discont=discont, period=period).sum()

mykey = jax.random.PRNGKey(44093535)
inp = jax.random.uniform(mykey, [2, 3, 4], jax.numpy.bfloat16, minval=-128, maxval=127)

res1 = fn(inp)
res2, _ = jax.value_and_grad(fn, (0))(inp)
print(res1)
print(res2)
# -17.0
# -20.0

The reason lies in mod with True as input, which will give differnt value with or without jit
def f(dd, period):
    interval = period / 2
    ddmod = jax.numpy.mod(dd + interval, period) - interval
    return ddmod

mykey = jax.random.PRNGKey(44093535)
inp = jax.random.uniform(mykey, [2, 3, 4], jax.numpy.bfloat16, minval=-128, maxval=127)
dd = jax.numpy.diff(inp, axis=-2)
print(f(dd, True))
print(jax.jit(f)(dd, True))

[[[-0.5 -0.5 0 -0.5]
  [-0.5 -0.5 0 0]]

 [[0 -0.5 0 -0.5]
  [-0.5 0 -0.5 -0.5]]]

[[[-0.5 -0.5  0.   0. ]
  [ 0.   0.   0.   0. ]]

 [[ 0.   0.   0.  -0.5]
  [ 0.   0.  -0.5 -0.5]]]

It would be better to convert the period argument into float at first in unwrap to avoid such cases.

Thanks for the report - it looks like this is not related to mod, but rather related to how boolean scalar weak types are determined, which changes type promotion behavior between JIT and non-JIT codepaths:
import jax
import jax.numpy as jnp

def f(x):
  x = jnp.asarray(x)
  print(x.dtype, x.aval.weak_type)

f(True)
# bool False

jax.jit(f)(True)
# bool True

I'm taking a closer look today, and it seems like the examples you show above work correctly in the most recent version of JAX (v0.3.14) – I suspect the changes i #10814 remedied the issue. Can you confirm?
The example I gave above is something I think should be fixed, but it turns out to not be important for this issue in light of the deeper fix in #10814 I think.

Yes, it has been fixed in v0.3.14


Add GameMaker

https://github.com/bytecauldron/awesome-gamemaker
GameMaker is a popular, beginner-friendly video game engine for 2D (and 3D) titles. The community has created many great extensions and resources over the years that are worth sharing with both beginner and advanced game developers.
By submitting this pull request I confirm I've read and complied with the below requirements 🖖
Please read it multiple times. I spent a lot of time on these guidelines and most people miss a lot.
Requirements for your pull request

Don't waste my time. Do a good job, adhere to all the guidelines, and be responsive.
You have to review at least 2 other open pull requests.
Try to prioritize unreviewed PRs, but you can also add more comments to reviewed PRs. Go through the below list when reviewing. This requirement is meant to help make the Awesome project self-sustaining. Comment here which PRs you reviewed. You're expected to put a good effort into this and to be thorough. Look at previous PR reviews for inspiration. Just commenting “looks good” or simply marking the pull request as approved does not count! You have to actually point out mistakes or improvement suggestions.
You have read and understood the instructions for creating a list.
This pull request has a title in the format Add Name of List.

✅ Add Swift
✅ Add Software Architecture
❌ Update readme.md
❌ Add Awesome Swift
❌ Add swift
❌ add Swift
❌ Adding Swift
❌ Added Swift

Your entry here should include a short description about the project/theme of the list. It should not describe the list itself. The first character should be uppercase and the description should end in a dot. It should be an objective description and not a tagline or marketing blurb.

✅ - [iOS](…) - Mobile operating system for Apple phones and tablets.
✅ - [Framer](…) - Prototyping interactive UI designs.
❌ - [iOS](…) - Resources and tools for iOS development.
❌ - [Framer](…)
❌ - [Framer](…) - prototyping interactive UI designs

Your entry should be added at the bottom of the appropriate category.
The title of your entry should be title-cased and the URL to your list should end in #readme.

Example: - [Software Architecture](https://github.com/simskij/awesome-software-architecture#readme) - The discipline of designing and building software.

The suggested Awesome list complies with the below requirements.

Requirements for your Awesome list

Has been around for at least 30 days.That means 30 days from either the first real commit or when it was open-sourced. Whatever is most recent.
Don't open a Draft / WIP pull request while you work on the guidelines. A pull request should be 100% ready and should adhere to all the guidelines when you open it. Instead use #2242 for incubation visibility.
Run awesome-lint on your list and fix the reported issues. If there are false-positives or things that cannot/shouldn't be fixed, please report it.
The default branch should be named main, not master.
Includes a succinct description of the project/theme at the top of the readme. (Example)

✅ Mobile operating system for Apple phones and tablets.
✅ Prototyping interactive UI designs.
❌ Resources and tools for iOS development.
❌ Awesome Framer packages and tools.

It's the result of hard work and the best I could possibly produce.
If you have not put in considerable effort into your list, your pull request will be immediately closed.
The repo name of your list should be in lowercase slug format: awesome-name-of-list.

✅ awesome-swift
✅ awesome-web-typography
❌ awesome-Swift
❌ AwesomeWebTypography

The heading title of your list should be in title case format: # Awesome Name of List.

✅ # Awesome Swift
✅ # Awesome Web Typography
❌ # awesome-swift
❌ # AwesomeSwift

Non-generated Markdown file in a GitHub repo.
The repo should have awesome-list & awesome as GitHub topics. I encourage you to add more relevant topics.
Not a duplicate. Please search for existing submissions.
Only has awesome items. Awesome lists are curations of the best, not everything.
Does not contain items that are unmaintained, has archived repo, deprecated, or missing docs. If you really need to include such items, they should be in a separate Markdown file.
Includes a project logo/illustration whenever possible.

Either centered, fullwidth, or placed at the top-right of the readme. (Example)
The image should link to the project website or any relevant website.
The image should be high-DPI. Set it to maximum half the width of the original image.

Entries have a description, unless the title is descriptive enough by itself. It rarely is though.
Includes the Awesome badge.

Should be placed on the right side of the readme heading.

Can be placed centered if the list has a centered graphics header.

Should link back to this list.

Has a Table of Contents section.

Should be named Contents, not Table of Contents.
Should be the first section in the list.
Should only have one level of nested lists, preferably none.
Must not feature Contributing or Footnotes sections.

Has an appropriate license.

We strongly recommend the CC0 license, but any Creative Commons license will work.

Tip: You can quickly add it to your repo by going to this URL: https://github.com/<user>/<repo>/community/license/new?branch=main&template=cc0-1.0 (replace <user> and <repo> accordingly).

A code license like MIT, BSD, Apache, GPL, etc, is not acceptable. Neither are WTFPL and Unlicense.
Place a file named license or LICENSE in the repo root with the license text.
Do not add the license name, text, or a Licence section to the readme. GitHub already shows the license name and link to the full text at the top of the repo.
To verify that you've read all the guidelines, please comment on your pull request with just the word unicorn.

Has contribution guidelines.

The file should be named contributing.md. Casing is up to you.
It can optionally be linked from the readme in a dedicated section titled Contributing, positioned at the top or bottom of the main content.
The section should not appear in the Table of Contents.

All non-important but necessary content (like extra copyright notices, hyperlinks to sources, pointers to expansive content, etc) should be grouped in a Footnotes section at the bottom of the readme. The section should not be present in the Table of Contents.
Has consistent formatting and proper spelling/grammar.

The link and description are separated by a dash. Example: - [AVA](…) - JavaScript test runner.
The description starts with an uppercase character and ends with a period.
Consistent and correct naming. For example, Node.js, not NodeJS or node.js.

Doesn't use hard-wrapping.
Doesn't include a Travis badge.You can still use Travis for list linting, but the badge has no value in the readme.
Doesn't include an Inspired by awesome-foo or Inspired by the Awesome project kinda link at the top of the readme. The Awesome badge is enough.

Go to the top and read it again.

unicorn

Pull Request Contributions:
https://github.com/sindresorhus/awesome/pull/2335
https://github.com/sindresorhus/awesome/pull/2332
https://github.com/sindresorhus/awesome/pull/2327

Thank you for taking a look, @RahulBirCodes! I agree, the description is a bit vague. I chose that mainly because it's the same description for the other listed engines (Godot, Unity, etc).

Hey @bytecauldron!
I think your list is great, but I'd double-check on the hard-wrapping compliance: seems like your lists have an extra line in between points, which makes it unnecessarily longer (you can easily remove them using regex in any modern text editor). Other than that, awesome job! And cheers to a fellow game developer 👊

Thanks, @vhladiienko! I will get that fixed. Much appreciated.

Good job! The linting succeeds and all the other list guidelines seem to be met. The only issue I could think of would be the description of the list's theme. I think game engine is too vague since you're only talking about GameMaker.

This is a great list and I can ONLY offer the same recommendation. i would first appreciate a succinct description of what GameMaker is (as a product/service); and then how this list applies to that product/service.

Hi @modenero! Thank you for taking a look. To clarify, should I provide a more succinct description when the existing list of game engines are specified as "Game engine."?

should I provide a more succinct description when the existing list of game engines are specified as "Game engine."?

oh no, not in the main directory, i meant to add a description in the header of your own list.
personally, i'm not that familiar with game engines other than Unity and Unreal, so I would first like to know basic features of GameMaker, like 2D or 3D. and perhaps what type or level of Creator it targets (eg. novice or HTML5 respectively)
a "succinct" one-liner is probably good for a quick intro

@modenero Oh, gotcha! I misunderstood. I'll see what I can add, thank you.

The items in the https://github.com/bytecauldron/awesome-gamemaker#youtube section could use a description. Now it's just a random list of YouTube channels without any context.

Tweet: https://twitter.com/awesome__re/status/1650196623946059777

The items in the https://github.com/bytecauldron/awesome-gamemaker#youtube section could use a description. Now it's just a random list of YouTube channels without any context.

Gotcha, I'll work on getting that section polished up. Much appreciated!


feat(accordion): api for panel padding reset

Describe pull-request
This api adds the shadow parts api to the accordion-item to provide that as a way to change the panel padding, while also keeping the padding-reset attribute.
Related to AB#2640
Screenshots

I guess the question is if this makes the api easier to use or if if complicates things? Maybe a first step would be to just rename the prop to something more inline with other component props.

I guess the question is if this makes the api easier to use or if if complicates things? Maybe a first step would be to just rename the prop to something more inline with other component props.

I kept the old padding-reset attribute in this PR, just added shadow parts and a storybook example how to use it.
Not sure how we should rename it, i guess less-padding-right is what it does. Or maybe symmetrical-padding, equal-padding or panel-padding="ignore-icon".
I think this might be a case where "less is more" and we should just remove the attribute and then users can do what they want with the shadow parts API instead.
If not that then i suggest something like panel-padding="ignore-icon", and then we have room to also use it for something like panel-padding="none" to have no padding at all if that is requested in the future.
What do you think?

I guess the question is if this makes the api easier to use or if if complicates things? Maybe a first step would be to just rename the prop to something more inline with other component props.

I kept the old padding-reset attribute in this PR, just added shadow parts and a storybook example how to use it.
Not sure how we should rename it, i guess less-padding-right is what it does. Or maybe symmetrical-padding, equal-padding or panel-padding="ignore-icon".
I think this might be a case where "less is more" and we should just remove the attribute and then users can do what they want with the shadow parts API instead.
If not that then i suggest something like panel-padding="ignore-icon", and then we have room to also use it for something like panel-padding="none" to have no padding at all if that is requested in the future.
What do you think?

I just think added the shadow parts might be confusing since we aren't using it anywhere else. I agree that the naming is tricky and it might not warrant a breaking change, but maybe we shouldn't change it then? paddingReset might be good for now and if we run into the same issue in other components we can have a look at naming again to have them aligned.

I agree with Martin on this one. Let's just rename paddingReset to something more intuitive, I like the idea of padding symmetrical-padding or equal-x-padding. It is good to know about this "part" selector, but I also feel it would add to the confusion that already exists.
I wish that we just have one padding in the design and let the users add margin or padding in the content they add instead of us introducing toggles for padding, but what can you do? 😕

I guess the question is if this makes the api easier to use or if if complicates things? Maybe a first step would be to just rename the prop to something more inline with other component props.

I kept the old padding-reset attribute in this PR, just added shadow parts and a storybook example how to use it.
Not sure how we should rename it, i guess less-padding-right is what it does. Or maybe symmetrical-padding, equal-padding or panel-padding="ignore-icon".
I think this might be a case where "less is more" and we should just remove the attribute and then users can do what they want with the shadow parts API instead.
If not that then i suggest something like panel-padding="ignore-icon", and then we have room to also use it for something like panel-padding="none" to have no padding at all if that is requested in the future.
What do you think?

I just think added the shadow parts might be confusing since we aren't using it anywhere else. I agree that the naming is tricky and it might not warrant a breaking change, but maybe we shouldn't change it then? paddingReset might be good for now and if we run into the same issue in other components we can have a look at naming again to have them aligned.

I agree with Martin on this one. Let's just rename paddingReset to something more intuitive, I like the idea of padding symmetrical-padding or equal-x-padding. It is good to know about this "part" selector, but I also feel it would add to the confusion that already exists.
I wish that we just have one padding in the design and let the users add margin or padding in the content they add instead of us introducing toggles for padding, but what can you do? 😕

Removed the shadow parts from the example. Do you think i should remove the parts themselves as well?
"kill your darlings" my teacher told me.. seems i haven't learned that lesson yet.

Went with equalPadding.
Although I kind of feel like we should just keep paddingReset and close this.

Kill it.  📖🔫  There is more joy in coding elsewhere than in this task.

Closing this one.


Add importlib_metadata>=4 constraint

As the title suggests, a quick PR to pin the minimum importlib_metadata to >=4. Closes #4

Checklist

[ ] Used a personal fork of the feedstock to propose changes
[ ] Bumped the build number (if the version is unchanged)
[ ] Reset the build number to 0 (if the version changed)
[ ] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[ ] Ensured the license file is being packaged.

Hi! This is the friendly automated conda-forge-linting service.
I wanted to let you know that I linted all conda-recipes in your PR (recipe) and found some lint.
Here's what I've got...
For recipe:

requirements: run: importlib_metadata>=4 must contain a space between the name and the pin, i.e. importlib_metadata >=4

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

LGTM, I wonder if it's possible to retract builds...

Good question, I'll take a look at the docs to see if there is anything that mentions it.

@conda-forge-admin, please rerender


sys/linux: update BPF constants

Codecov Report

Merging #1524 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #1524   +/-   ##
=======================================
  Coverage   56.16%   56.16%
=======================================
  Files         142      142
  Lines       26441    26441
=======================================
  Hits        14850    14850
  Misses      10881    10881
  Partials      710      710

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 76357d6...3994019. Read the comment docs.


Add date of birth to user model in backend

Included in https://github.com/kohdataan/kohdataan-backend/issues/88


Router adds gRPC interface

received  we will add it in next submission.

add grpc search api in https://github.com/vearch/vearch/commit/e60e80ec0966c3d8da15bcfea067f2ff1d00dd60


How use the model.predict_generator to predict the probabilities of multi-labels

Hi, there are 8 classes images, I want to use the predict_generator to predict the probabilities of multi-labels. How to get the probabilities of multi-labels of test images. Although I have get probabilities, I found that the sum of probabilities(such as 1.2) is more than 1 or less than 1. There may be wrong part in my code. Could you guys give your hand to help me.
[ 0.10360018  0.06169706  0.11487333  0.07720207  0.44261318  0.19750018
   0.08600973  0.22325319]
 [ 0.06560849  0.06978489  0.21796258  0.05673849  0.16526021  0.21255994
   0.09830733  0.24837734]
 [ 0.19014663  0.13065062  0.1236735   0.10173705  0.46399561  0.10760699
   0.05958129  0.12666202]]
..........................

def train_generator(X_train, y_train, batch_size, img_size):
    while True:
        for start in range(0, len(X_train), batch_size):
            X_batch = []
            y_batch = []
            end = min(start + batch_size, len(X_train))
            train_batch = X_train[start:end]
            for filepath in train_batch:
                print('train path:', filepath)
                img = cv2.imread(filepath)
                img = cv2.resize(img, img_size)
                img = augment(img, np.random.randint(6))
                X_batch.append(img)
#               y_batch.append(tag)
            X_batch = np.array(X_batch, np.float32) / 255.
            y_batch = y_train[start:end]
            yield X_batch, y_batch

def inceptionv3(img_dim, num_label):
    input_tensor = Input(shape=img_dim)
    base_model = InceptionV3(include_top=False,
                   weights='imagenet',
                   input_shape=img_dim)
    bn = BatchNormalization()(input_tensor)
    x = base_model(bn)
    x = GlobalAveragePooling2D()(x)
    x = Dropout(0.5)(x)
    output = Dense(num_label, activation='sigmoid')(x)
    model = Model(input_tensor, output)
    return model

def train_model(model, batch_size, epochs, img_size, x, y, test, n_fold, kf):
    roc_auc = metrics.roc_auc_score
    preds_train = np.zeros(len(x), dtype = np.float)
    preds_test = np.zeros((len(test),y.shape[1]), dtype = np.float)
    train_scores = []; valid_scores = []
    i = 1
    print('i is:', i)
    x = np.array(x)
    for train_index, test_index in kf.split(x):
        print(train_index)
        x_train = x[train_index]; x_valid = x[test_index]
        y_train = y[train_index]; y_valid = y[test_index]

        callbacks = [EarlyStopping(monitor='val_loss', patience=3, verbose=1, min_delta=1e-4),
             ReduceLROnPlateau(monitor='val_loss', factor=0.1, patience=1, cooldown=1,
                               verbose=1, min_lr=1e-7),
             ModelCheckpoint(filepath='inception.fold_' + str(i) + '.hdf5', verbose=1,
                             save_best_only=True, save_weights_only=True, mode='auto')]

        train_steps = len(x_train) / batch_size
        valid_steps = len(x_valid) / batch_size
        test_steps = len(test) / batch_size
        model = model
        model.compile(optimizer=Adam(lr=1e-4), loss='categorical_crossentropy',
                      metrics = ['accuracy'])

        model.fit_generator(train_generator(x_train, y_train, batch_size, img_size), train_steps, epochs=epochs, verbose=1,
                            callbacks=callbacks, validation_data=valid_generator(x_valid, y_valid, batch_size, img_size),
                            validation_steps=valid_steps)
        print('Running test predictions with fold {}'.format(i))

        preds_test_fold = model.predict_generator(generator=test_generator(test, batch_size, img_size),
                                              steps=test_steps, verbose=1)
        print('preds_test', preds_test.shape, preds_test_fold.shape, preds_test_fold)
        print('sum:', sum(preds_test_fold[1]))

        preds_test += preds_test_fold

        print('\n\n')

        i += 1

        if i <= n_fold:
            print('Now beginning training for fold {}\n\n'.format(i))
        else:
            print('Finished training!')

    preds_test /= n_fold

    return preds_test

test_pred = train_model(model, batch_size, epochs, img_size, tr_p[0:50], tr_y[0:50], te[0:10], n_fold, kf)

You're using sigmoid as the activation function for your output layer, change it to softmax and the sum of the predictions will sum up to 1.

@Vijayabhaskar96  thanks for your kind response!  you are right, I have done it. By the way, could I ask you another question, I found that sometimes used the sigmoid and sometimes used the softmax in others code. Could you tell me when to use the softmax or sigmoid . Now I want deeply summary and share it.

The final layer of your network(the output layer) should have sigmoid activation if you're task is to do binary classification (where 0 denotes a class and 1 denotes another class), if you are doing multiple classification then use softmax. But if you're solving a problem where multiple output is possible then use sigmoid for the output layer,so that it can predict multiple categories at the same time(like you did,so that the probabilities don't sum upto 1, because each number in the output list is a probability of its own).


Python tutorials

I have found these tutorials to be helpful for learning the basics of Python and could be useful additional resources.  Thank you for setting this up!

LGTM


Project does not compile

Hi,
When getting latest version the code does not compile due to what I believe was a rename of SqliteDropCreateDatabaseAlwaysBaseInitializer to SqliteDropCreateDatabaseAlways.

Hi
Its fixed with this (commit)[https://github.com/msallin/SQLiteCodeFirst/commit/5fda7bdb4ec33a5360b9c42d4eabc2de53ac4c13]


Handler for 'gitlab-ctl reconfigure' never finishing

https://github.com/alvistack/ansible-role-gitlab_ce/blob/db5b77f71cdafe591ce52f1df25afe738dddc787/handlers/main.yml#L22
I am trying this role on a Leap 15.4 machine, which works fine with the adjustments from #2 .
But the handler for gitlab-ctl reconfigure does take a very long time (hours) and seems to never finish. After aborting the handler and calling this command manually, it finishes successfully after some minutes.
I have no more ideas on how to debug this. I see different processes still running, bundler etc., but there is no log output from Ansible (and also no log when I cancel the task).
Any ideas?

It seem that gitlab-ctl reconfigure creates a log file in /var/log/gitlab/reconfigure. According to the log file all is well.
ps aux|grep reconfigure does also not spit out any running processes.
Could it be that starting the runsvdir  in the background (see the ampersand here) leads to Ansible thinking that the task is still running?

Could it be that starting the runsvdir in the background (see the ampersand here) leads to Ansible thinking that the task is still running?

That seems to have done the trick in one quick test. Did not notice obvious errors afterwards. And the task finished in appropriate time.


_jl_libcairo error with Gadfly + Cairo

Dear developers
It seems like this old issue cropped up again: https://github.com/JuliaLang/Cairo.jl/issues/80
To recap:
On a clean install of julia 0.4.0, having installed Gadfly and Cairo with Pkg, calling draw() to save with any backend yields the following error:
 in CairoImageSurface at /Users/troels/.julia/v0.4/Cairo/src/Cairo.jl:161
 in newsurface at /Users/troels/.julia/v0.4/Compose/src/cairo_backends.jl:241
 in call at /Users/troels/.julia/v0.4/Compose/src/cairo_backends.jl:136
 in call at /Users/troels/.julia/v0.4/Compose/src/cairo_backends.jl:125
 in call at /Users/troels/.julia/v0.4/Compose/src/cairo_backends.jl:150
 in include at /opt/homebrew-cask/Caskroom/julia/0.4.0/Julia-0.4.0.app/Contents/Resources/julia/lib/julia/sys.dylib
 in include_from_node1 at /opt/homebrew-cask/Caskroom/julia/0.4.0/Julia-0.4.0.app/Contents/Resources/julia/lib/julia/sys.dylib
 in process_options at /opt/homebrew-cask/Caskroom/julia/0.4.0/Julia-0.4.0.app/Contents/Resources/julia/lib/julia/sys.dylib
 in _start at /opt/homebrew-cask/Caskroom/julia/0.4.0/Julia-0.4.0.app/Contents/Resources/julia/lib/julia/sys.dylib```

In the old issue, the problem was a missing dependency on libcairo2-dev on Debian systems. Installing it through the package manager solved the problem.

I have encountered the error on OSX. Pkg automatically installed the homebrew-package "cairo" for me. On cairographics.org there are only install instructions for macports and fink, but in both cases the package is called "cairo", and the equivalent install instruction for Debian is to use libcairo2-dev, so I am guessing I have the right package installed. In any case, I don't see any development package available for homebrew.

To reproduce:
On OSX, make a clean julia install with homebrew (0.4.0 as of now)
```brew install julia```
Then run the following in julia;

    Pkg.add("Gadfly")
    Pkg.add("Cairo")
    using Gadfly
    p=plot(x=[1,2,3,4],y=[1,2,3,4])
    draw(PNG("test.png",4inch,3inch),p)

Versions etc:
OSX El Capitan

Homebrew version
0.9.5 (git revision 88339; last commit 2015-11-10)

brew list --versions | grep cairo
cairo 1.14.4

julia version 0.4.0
Pkg.status()

4 required packages:
 - Cairo                         0.2.31
 - Gadfly                        0.3.18
 - LsqFit                        0.0.2
 - PyPlot                        2.1.1

42 additional packages:
 - ArrayViews                    0.6.4
 - BinDeps                       0.3.19
 - Calculus                      0.1.14
 - Codecs                        0.1.5
 - ColorTypes                    0.2.0
 - Colors                        0.6.0
 - Compat                        0.7.7
 - Compose                       0.3.18
 - Conda                         0.1.8
 - Contour                       0.0.8
 - DataArrays                    0.2.20
 - DataFrames                    0.6.10
 - DataStructures                0.3.13
 - Dates                         0.4.4
 - Distances                     0.2.1
 - Distributions                 0.8.7
 - Docile                        0.5.19
 - DualNumbers                   0.1.5
 - FixedPointNumbers             0.1.1
 - GZip                          0.2.18
 - Graphics                      0.1.3
 - Grid                          0.4.0
 - Hexagons                      0.0.4
 - Homebrew                      0.1.17
 - ImmutableArrays               0.0.11
 - Iterators                     0.1.9
 - JSON                          0.5.0
 - KernelDensity                 0.1.2
 - LaTeXStrings                  0.1.6
 - Loess                         0.0.5
 - NaNMath                       0.1.1
 - Optim                         0.4.4
 - PDMats                        0.3.6
 - PyCall                        1.2.0
 - Reexport                      0.0.3
 - SHA                           0.1.2
 - Showoff                       0.0.6
 - SortingAlgorithms             0.0.6
 - StatsBase                     0.7.4
 - StatsFuns                     0.2.0
 - URIParser                     0.1.1
 - WoodburyMatrices              0.1.2

I'm having the same problem on a Mac using staticfloat's Homebrew tap of Julia. Trying to follow examples from
http://www.exegetic.biz/blog/2015/09/monthofjulia-day-18-plotting/
These types of errors make it hard to proselytize for Julia.

What does Pkg.test("Cairo") tell you?
And is Cairo._jl_libcairo valid?

'''
julia> Pkg.test("Cairo")
INFO: Testing Cairo
ERROR: LoadError: UndefVarError: _jl_libcairo not defined
in CairoImageSurface at /Users/ubi/.julia/v0.4/Cairo/src/Cairo.jl:161
in include at /usr/local/Cellar/julia/0.4.2/lib/julia/sys.dylib
in include_from_node1 at /usr/local/Cellar/julia/0.4.2/lib/julia/sys.dylib
in process_options at /usr/local/Cellar/julia/0.4.2/lib/julia/sys.dylib
in _start at /usr/local/Cellar/julia/0.4.2/lib/julia/sys.dylib
while loading /Users/ubi/.julia/v0.4/Cairo/test/runtests.jl, in expression starting on line 5
====================================================================================[ ERROR: Cairo ]=====================================================================================
failed process: Process(/usr/local/Cellar/julia/0.4.2/bin/julia --check-bounds=yes --code-coverage=none --color=yes /Users/ubi/.julia/v0.4/Cairo/test/runtests.jl, ProcessExited(1)) [1]
=========================================================================================================================================================================================
ERROR: Cairo had test errors
in error at /usr/local/Cellar/julia/0.4.2/lib/julia/sys.dylib
in test at pkg/entry.jl:803
in anonymous at pkg/dir.jl:31
in cd at file.jl:22
in cd at pkg/dir.jl:31
in test at pkg.jl:71
julia>
'''

What happens if you run Pkg.build("Cairo")?

julia> Pkg.build("Cairo")
INFO: Building Homebrew
remote: Counting objects: 240, done.
remote: Compressing objects: 100% (66/66), done.
remote: Total 240 (delta 191), reused 223 (delta 174), pack-reused 0
Receiving objects: 100% (240/240), 25.88 KiB | 0 bytes/s, done.
Resolving deltas: 100% (191/191), completed with 28 local objects.
From https://github.com/Homebrew/homebrew
   f9522f8..94d8bea  master     -> origin/master
HEAD is now at 94d8bea uwsgi: update <IP_ADDRESS> bottle.
HEAD is now at 4a13095 Merge pull request #85 from staticfloat/staging
INFO: Building Cairo

julia> Pkg.test("Cairo")
INFO: Testing Cairo
INFO: Recompiling stale cache file /Users/ubi/.julia/lib/v0.4/Cairo.ji for module Cairo.
ERROR: LoadError: UndefVarError: _jl_libcairo not defined
    in CairoImageSurface at /Users/ubi/.julia/v0.4/Cairo/src/Cairo.jl:161
    in include at /usr/local/Cellar/julia/0.4.2/lib/julia/sys.dylib
    in include_from_node1 at /usr/local/Cellar/julia/0.4.2/lib/julia/sys.dylib
    in process_options at /usr/local/Cellar/julia/0.4.2/lib/julia/sys.dylib
    in _start at /usr/local/Cellar/julia/0.4.2/lib/julia/sys.dylib
while loading /Users/ubi/.julia/v0.4/Cairo/test/runtests.jl, in expression starting on line 5    ========================[ ERROR: Cairo ]=========================

failed process: Process(`/usr/local/Cellar/julia/0.4.2/bin/julia --check-bounds=yes --code-coverage=none --color=yes /Users/ubi/.julia/v0.4/Cairo/test/runtests.jl`, ProcessExited(1)) [1]
    =================================================================
ERROR: Cairo had test errors
    in error at /usr/local/Cellar/julia/0.4.2/lib/julia/sys.dylib
    in test at pkg/entry.jl:803
    in anonymous at pkg/dir.jl:31
    in cd at file.jl:22
    in cd at pkg/dir.jl:31
    in test at pkg.jl:71
julia>

Can confirm, having the exact same issue with on 4.2.0 (Julia-0.4.2.app)
julia> Pkg.build("Cairo")
INFO: Building Homebrew
HEAD is now at f75b712 afl-fuzz: update 1.96b bottle.
HEAD is now at 4a13095 Merge pull request #85 from staticfloat/staging
INFO: Building Cairo

julia> Pkg.test("Cairo")
INFO: Testing Cairo
ERROR: LoadError: UndefVarError: _jl_libcairo not defined
 in CairoImageSurface at /Users/cwestrup/.julia/v0.4/Cairo/src/Cairo.jl:161
 in include at /Applications/Julia-0.4.2.app/Contents/Resources/julia/lib/julia/sys.dylib
 in include_from_node1 at /Applications/Julia-0.4.2.app/Contents/Resources/julia/lib/julia/sys.dylib
 in process_options at /Applications/Julia-0.4.2.app/Contents/Resources/julia/lib/julia/sys.dylib
 in _start at /Applications/Julia-0.4.2.app/Contents/Resources/julia/lib/julia/sys.dylib
while loading /Users/cwestrup/.julia/v0.4/Cairo/test/runtests.jl, in expression starting on line 5
==============================================================================================[ ERROR: Cairo ]==============================================================================================

failed process: Process(`/Applications/Julia-0.4.2.app/Contents/Resources/julia/bin/julia --check-bounds=yes --code-coverage=none --color=yes /Users/cwestrup/.julia/v0.4/Cairo/test/runtests.jl`, ProcessExited(1)) [1]

============================================================================================================================================================================================================
ERROR: Cairo had test errors
 in error at /Applications/Julia-0.4.2.app/Contents/Resources/julia/lib/julia/sys.dylib
 in test at pkg/entry.jl:803
 in anonymous at pkg/dir.jl:31
 in cd at file.jl:22
 in cd at pkg/dir.jl:31
 in test at pkg.jl:71

Ok for me removing all traces of Julia and doing a clean install worked in the end.

@cle-ment commented later as follows:
Ok for me removing all traces of Julia and doing a clean install worked in the end.
but this comment never seemed to show up here. I saw it in my email.  Is there some minimum message length requirement?
Is there any other suggestion than wiping Julia and doing a reinstall?

The problem (afaiu) is somewhere inbetween BinDeps and Homebrew.jl (and the real homebrew). In theory BinDeps.jl should build a valid deps.jl file in the deps/ directory and (if called) use a macro to check if the library is in the place it should be.
Somehow everything along the way fails.
I had a similar issue on a (non-standard) linux and handcrafted a deps.jl (knowing the structure).

@ronubi: Sorry I removed my comment because it turned out to not be true, I'm getting the same error still...

@cle-ment: Understood, but you forgot to remove it from my email inbox. ;)
Glad I didn't waste time reinstalling …

Can you guys post the output of using BinDeps; BinDeps.debug("Cairo")?

cat bindeps-cairo.log
julia> BinDeps.debug("Cairo")
INFO: Reading build script...
The package declares 1 dependencies.
- Library Group "cairo"
- Library "png" (not applicable to this system)
- Library "pixman" (not applicable to this system)
- Library "ffi" (not applicable to this system)
- Library "gettext"
- Satisfied by:
- Homebrew Bottles gettext at /Users/ubi/.julia/v0.4/Homebrew/deps/usr/lib/libintl.dylib
- Homebrew Bottles gettext at /Users/ubi/.julia/v0.4/Homebrew/deps/usr/lib/libgettextpo.dylib
- Providers:
- Homebrew Bottles gettext
- BinDeps.AptGet package gettext (can't provide)
- BinDeps.Yum package gettext-libs (can't provide)
- Autotools Build
- Library "gobject"
- Satisfied by:
- System Paths at /usr/local/Cellar/glib/2.46.2/lib/libgobject-2.0.0.dylib
- Providers:
- Homebrew Bottles glib
- BinDeps.AptGet package libglib2.0-0 (can't provide)
- BinDeps.Yum package glib2 (can't provide)
- Autotools Build
- Library "freetype" (not applicable to this system)
- Library "fontconfig" (not applicable to this system)
- Library "cairo"
- Satisfied by:
- System Paths at /usr/local/Cellar/cairo/1.14.4/lib/libcairo.2.dylib
- Providers:
- Homebrew Bottles cairo
- BinDeps.AptGet package libcairo2 (can't provide)
- BinDeps.Yum package cairo (can't provide)
- Autotools Build
- Library "pango"
- Satisfied by:
- System Paths at /usr/local/Cellar/pango/1.38.1/lib/libpango-1.0.0.dylib
- Providers:
- Homebrew Bottles pango
- BinDeps.AptGet package libpango1.0-0 (can't provide)
- BinDeps.Yum package pango (can't provide)
- Autotools Build
- Library "pangocairo"
- Satisfied by:
- System Paths at /usr/local/Cellar/pango/1.38.1/lib/libpangocairo-1.0.0.dylib
- Providers:
- Homebrew Bottles pango
- BinDeps.AptGet package libpango1.0-0 (can't provide)
- BinDeps.Yum package pango (can't provide)
- Autotools Build
- Library "zlib" (not applicable to this system)
julia>

julia> using BinDeps; BinDeps.debug("Cairo")
INFO: Reading build script...
The package declares 1 dependencies.
 - Library Group "cairo"
     - Library "png" (not applicable to this system)
     - Library "pixman" (not applicable to this system)
     - Library "ffi" (not applicable to this system)
     - Library "gettext"
        - Satisfied by:
          - Homebrew Bottles gettext at /Users/cwestrup/.julia/v0.4/Homebrew/deps/usr/lib/libintl.dylib
          - Homebrew Bottles gettext at /Users/cwestrup/.julia/v0.4/Homebrew/deps/usr/lib/libgettextpo.dylib
        - Providers:
          - Homebrew Bottles gettext
          - BinDeps.AptGet package gettext (can't provide)
          - BinDeps.Yum package gettext-libs (can't provide)
          - Autotools Build
     - Library "gobject"
        - Satisfied by:
          - System Paths at /usr/local/lib/libgobject-2.0.dylib
        - Providers:
          - Homebrew Bottles glib
          - BinDeps.AptGet package libglib2.0-0 (can't provide)
          - BinDeps.Yum package glib2 (can't provide)
          - Autotools Build
     - Library "freetype" (not applicable to this system)
     - Library "fontconfig" (not applicable to this system)
     - Library "cairo"
        - Satisfied by:
          - System Paths at /usr/local/lib/libcairo.dylib
        - Providers:
          - Homebrew Bottles cairo
          - BinDeps.AptGet package libcairo2 (can't provide)
          - BinDeps.Yum package cairo (can't provide)
          - Autotools Build
     - Library "pango"
        - Satisfied by:
          - System Paths at /usr/local/lib/libpango-1.0.dylib
        - Providers:
          - Homebrew Bottles pango
          - BinDeps.AptGet package libpango1.0-0 (can't provide)
          - BinDeps.Yum package pango (can't provide)
          - Autotools Build
     - Library "pangocairo"
        - Satisfied by:
          - System Paths at /usr/local/lib/libpangocairo-1.0.dylib
        - Providers:
          - Homebrew Bottles pango
          - BinDeps.AptGet package libpango1.0-0 (can't provide)
          - BinDeps.Yum package pango (can't provide)
          - Autotools Build
     - Library "zlib" (not applicable to this system)

That's strange.  For both of you; if you run using Homebrew; Homebrew.add("cairo"), does your problem persist?  Furthermore, does your BinDeps.debug("Cairo") output change?

@staticfloat,
Tried that. Still getting same error on Pkg.text("Cairo"). Debug log almost identical; will send later if you want to see it.

What is the output when you run Homebrew.add("Cairo")? Perhaps there is an error hidden in there. Also try running Homebrew.add("pango").

julia> Homebrew.add("cairo")
==> Installing cairo from staticfloat/juliadeps
==> Installing dependencies for staticfloat/juliadeps/cairo:
    libpng, freetype, staticfloat/juliadeps/fontconfig,
    staticfloat/juliadeps/pixman, libffi, staticfloat/juliadeps/glib
==> Installing staticfloat/juliadeps/cairo dependency: libpng
==> Downloading https://homebrew.bintray.com/bottles/libpng-1.6.19.el_capitan.bottle.tar.gz
######################################################################## 100.0%
==> Pouring libpng-1.6.19.el_capitan.bottle.tar.gz
🍺  /Users/ubi/.julia/v0.4/Homebrew/deps/usr/Cellar/libpng/1.6.19: 17 files, 1.2M
==> Installing staticfloat/juliadeps/cairo dependency: freetype
==> Downloading https://homebrew.bintray.com/bottles/freetype-2.6_1.el_capitan.bottle.tar.gz
######################################################################## 100.0%
==> Pouring freetype-2.6_1.el_capitan.bottle.tar.gz
🍺  /Users/ubi/.julia/v0.4/Homebrew/deps/usr/Cellar/freetype/2.6_1: 60 files, 2.6M
==> Installing staticfloat/juliadeps/cairo dependency: staticfloat/juliadeps/fontconfig
==> Downloading https://juliabottles.s3.amazonaws.com/fontconfig-2.11.1.el_capitan.bottle.3.tar.gz
######################################################################## 100.0%
==> Pouring fontconfig-2.11.1.el_capitan.bottle.3.tar.gz
==> /Users/ubi/.julia/v0.4/Homebrew/deps/usr/Cellar/fontconfig/2.11.1/bin/fc-cache -frv
🍺  /Users/ubi/.julia/v0.4/Homebrew/deps/usr/Cellar/fontconfig/2.11.1: 448 files, 3.6M
==> Installing staticfloat/juliadeps/cairo dependency: staticfloat/juliadeps/pixman
==> Downloading https://juliabottles.s3.amazonaws.com/pixman-0.32.8.el_capitan.bottle.1.tar.gz
######################################################################## 100.0%
==> Pouring pixman-0.32.8.el_capitan.bottle.1.tar.gz
🍺  /Users/ubi/.julia/v0.4/Homebrew/deps/usr/Cellar/pixman/0.32.8: 11 files, 1.2M
==> Installing staticfloat/juliadeps/cairo dependency: libffi
==> Downloading https://homebrew.bintray.com/bottles/libffi-3.0.13.el_capitan.bottle.tar.gz
######################################################################## 100.0%
==> Pouring libffi-3.0.13.el_capitan.bottle.tar.gz
==> Caveats
This formula is keg-only, which means it was not symlinked into /Users/ubi/.julia/v0.4/Homebrew/deps/usr.

Some formulae require a newer version of libffi.

Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:

    LDFLAGS:  -L/Users/ubi/.julia/v0.4/Homebrew/deps/usr/opt/libffi/lib

==> Summary
🍺  /Users/ubi/.julia/v0.4/Homebrew/deps/usr/Cellar/libffi/3.0.13: 14 files, 408K
==> Installing staticfloat/juliadeps/cairo dependency: staticfloat/juliadeps/glib
==> Downloading https://juliabottles.s3.amazonaws.com/glib-2.46.1.el_capitan.bottle.tar.gz
######################################################################## 100.0%
==> Pouring glib-2.46.1.el_capitan.bottle.tar.gz
🍺  /Users/ubi/.julia/v0.4/Homebrew/deps/usr/Cellar/glib/2.46.1: 416 files, 19M
==> Installing staticfloat/juliadeps/cairo
==> Downloading https://juliabottles.s3.amazonaws.com/cairo-1.14.4.el_capitan.bottle.tar.gz
######################################################################## 100.0%
==> Pouring cairo-1.14.4.el_capitan.bottle.tar.gz
🍺  /Users/ubi/.julia/v0.4/Homebrew/deps/usr/Cellar/cairo/1.14.4: 112 files, 6.1M
Warning: Already linked: /Users/ubi/.julia/v0.4/Homebrew/deps/usr/Cellar/cairo/1.14.4

julia> Pkg.test("Cairo")
INFO: Testing Cairo
ERROR: LoadError: UndefVarError: _jl_libcairo not defined
 in CairoImageSurface at /Users/ubi/.julia/v0.4/Cairo/src/Cairo.jl:161
 in include at /usr/local/Cellar/julia/0.4.2/lib/julia/sys.dylib
 in include_from_node1 at /usr/local/Cellar/julia/0.4.2/lib/julia/sys.dylib
 in process_options at /usr/local/Cellar/julia/0.4.2/lib/julia/sys.dylib
 in _start at /usr/local/Cellar/julia/0.4.2/lib/julia/sys.dylib
while loading /Users/ubi/.julia/v0.4/Cairo/test/runtests.jl, in expression starting on line 5
========================[ ERROR: Cairo ]=========================
failed process: Process(`/usr/local/Cellar/julia/0.4.2/bin/julia
    --check-bounds=yes --code-coverage=none --color=yes
    /Users/ubi/.julia/v0.4/Cairo/test/runtests.jl`, ProcessExited(1)) [1]
=================================================================
ERROR: Cairo had test errors
 in error at /usr/local/Cellar/julia/0.4.2/lib/julia/sys.dylib
 in test at pkg/entry.jl:803
 in anonymous at pkg/dir.jl:31
 in cd at file.jl:22
 in cd at pkg/dir.jl:31
 in test at pkg.jl:71

Yep, almost exactly the same for me (sorry for the long output):
julia> using Homebrew; Homebrew.add("cairo")
==> Installing cairo from staticfloat/juliadeps
==> Installing dependencies for staticfloat/juliadeps/cairo: libpng, freetype, staticfloat/juliadeps/fontconfig, staticfloat/juliadeps/pixman, libffi, staticfloat/juliadeps/glib
==> Installing staticfloat/juliadeps/cairo dependency: libpng
==> Downloading https://homebrew.bintray.com/bottles/libpng-1.6.19.el_capitan.bottle.tar.gz
######################################################################## 100.0%
==> Pouring libpng-1.6.19.el_capitan.bottle.tar.gz
🍺  /Users/cwestrup/.julia/v0.4/Homebrew/deps/usr/Cellar/libpng/1.6.19: 17 files, 1.2M
==> Installing staticfloat/juliadeps/cairo dependency: freetype
==> Downloading https://homebrew.bintray.com/bottles/freetype-2.6_1.el_capitan.bottle.tar.gz
######################################################################## 100.0%
==> Pouring freetype-2.6_1.el_capitan.bottle.tar.gz
🍺  /Users/cwestrup/.julia/v0.4/Homebrew/deps/usr/Cellar/freetype/2.6_1: 60 files, 2.6M
==> Installing staticfloat/juliadeps/cairo dependency: staticfloat/juliadeps/fontconfig
==> Downloading https://juliabottles.s3.amazonaws.com/fontconfig-2.11.1.el_capitan.bottle.3.tar.gz
######################################################################## 100.0%
==> Pouring fontconfig-2.11.1.el_capitan.bottle.3.tar.gz
==> /Users/cwestrup/.julia/v0.4/Homebrew/deps/usr/Cellar/fontconfig/2.11.1/bin/fc-cache -frv
🍺  /Users/cwestrup/.julia/v0.4/Homebrew/deps/usr/Cellar/fontconfig/2.11.1: 448 files, 3.6M
==> Installing staticfloat/juliadeps/cairo dependency: staticfloat/juliadeps/pixman
==> Downloading https://juliabottles.s3.amazonaws.com/pixman-0.32.8.el_capitan.bottle.1.tar.gz
######################################################################## 100.0%
==> Pouring pixman-0.32.8.el_capitan.bottle.1.tar.gz
🍺  /Users/cwestrup/.julia/v0.4/Homebrew/deps/usr/Cellar/pixman/0.32.8: 11 files, 1.2M
==> Installing staticfloat/juliadeps/cairo dependency: libffi
==> Downloading https://homebrew.bintray.com/bottles/libffi-3.0.13.el_capitan.bottle.tar.gz
######################################################################## 100.0%
==> Pouring libffi-3.0.13.el_capitan.bottle.tar.gz
==> Caveats
This formula is keg-only, which means it was not symlinked into /Users/cwestrup/.julia/v0.4/Homebrew/deps/usr.

Some formulae require a newer version of libffi.

Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:

    LDFLAGS:  -L/Users/cwestrup/.julia/v0.4/Homebrew/deps/usr/opt/libffi/lib

==> Summary
🍺  /Users/cwestrup/.julia/v0.4/Homebrew/deps/usr/Cellar/libffi/3.0.13: 14 files, 408K
==> Installing staticfloat/juliadeps/cairo dependency: staticfloat/juliadeps/glib
==> Downloading https://juliabottles.s3.amazonaws.com/glib-2.46.1.el_capitan.bottle.tar.gz
######################################################################## 100.0%
==> Pouring glib-2.46.1.el_capitan.bottle.tar.gz
🍺  /Users/cwestrup/.julia/v0.4/Homebrew/deps/usr/Cellar/glib/2.46.1: 416 files, 19M
==> Installing staticfloat/juliadeps/cairo
==> Downloading https://juliabottles.s3.amazonaws.com/cairo-1.14.4.el_capitan.bottle.tar.gz
######################################################################## 100.0%
==> Pouring cairo-1.14.4.el_capitan.bottle.tar.gz
🍺  /Users/cwestrup/.julia/v0.4/Homebrew/deps/usr/Cellar/cairo/1.14.4: 112 files, 6.1M
Warning: Already linked: /Users/cwestrup/.julia/v0.4/Homebrew/deps/usr/Cellar/cairo/1.14.4

julia> using Cairo

julia> Pkg.test("Cairo")
INFO: Testing Cairo
ERROR: LoadError: UndefVarError: _jl_libcairo not defined
 in CairoImageSurface at /Users/cwestrup/.julia/v0.4/Cairo/src/Cairo.jl:161
 in include at /Applications/Julia-0.4.2.app/Contents/Resources/julia/lib/julia/sys.dylib
 in include_from_node1 at /Applications/Julia-0.4.2.app/Contents/Resources/julia/lib/julia/sys.dylib
 in process_options at /Applications/Julia-0.4.2.app/Contents/Resources/julia/lib/julia/sys.dylib
 in _start at /Applications/Julia-0.4.2.app/Contents/Resources/julia/lib/julia/sys.dylib
while loading /Users/cwestrup/.julia/v0.4/Cairo/test/runtests.jl, in expression starting on line 5
==============================================================================================[ ERROR: Cairo ]==============================================================================================

failed process: Process(`/Applications/Julia-0.4.2.app/Contents/Resources/julia/bin/julia --check-bounds=yes --code-coverage=none --color=yes /Users/cwestrup/.julia/v0.4/Cairo/test/runtests.jl`, ProcessExited(1)) [1]

============================================================================================================================================================================================================
ERROR: Cairo had test errors
 in error at /Applications/Julia-0.4.2.app/Contents/Resources/julia/lib/julia/sys.dylib
 in test at pkg/entry.jl:803
 in anonymous at pkg/dir.jl:31
 in cd at file.jl:22
 in cd at pkg/dir.jl:31
 in test at pkg.jl:71

julia> BinDeps.debug("Cairo")
INFO: Reading build script...
The package declares 1 dependencies.
 - Library Group "cairo"
     - Library "png" (not applicable to this system)
     - Library "pixman" (not applicable to this system)
     - Library "ffi" (not applicable to this system)
     - Library "gettext"
        - Satisfied by:
          - Homebrew Bottles gettext at /Users/cwestrup/.julia/v0.4/Homebrew/deps/usr/lib/libintl.dylib
          - Homebrew Bottles gettext at /Users/cwestrup/.julia/v0.4/Homebrew/deps/usr/lib/libgettextpo.dylib
        - Providers:
          - Homebrew Bottles gettext
          - BinDeps.AptGet package gettext (can't provide)
          - BinDeps.Yum package gettext-libs (can't provide)
          - Autotools Build
     - Library "gobject"
        - Satisfied by:
          - Homebrew Bottles glib at /Users/cwestrup/.julia/v0.4/Homebrew/deps/usr/lib/libgobject-2.0.dylib
          - System Paths at /usr/local/lib/libgobject-2.0.dylib
        - Providers:
          - Homebrew Bottles glib
          - BinDeps.AptGet package libglib2.0-0 (can't provide)
          - BinDeps.Yum package glib2 (can't provide)
          - Autotools Build
     - Library "freetype" (not applicable to this system)
     - Library "fontconfig" (not applicable to this system)
     - Library "cairo"
        - Satisfied by:
          - Homebrew Bottles cairo at /Users/cwestrup/.julia/v0.4/Homebrew/deps/usr/lib/libcairo.dylib
          - System Paths at /usr/local/lib/libcairo.dylib
        - Providers:
          - Homebrew Bottles cairo
          - BinDeps.AptGet package libcairo2 (can't provide)
          - BinDeps.Yum package cairo (can't provide)
          - Autotools Build
     - Library "pango"
        - Satisfied by:
          - System Paths at /usr/local/lib/libpango-1.0.dylib
        - Providers:
          - Homebrew Bottles pango
          - BinDeps.AptGet package libpango1.0-0 (can't provide)
          - BinDeps.Yum package pango (can't provide)
          - Autotools Build
     - Library "pangocairo"
        - Satisfied by:
          - System Paths at /usr/local/lib/libpangocairo-1.0.dylib
        - Providers:
          - Homebrew Bottles pango
          - BinDeps.AptGet package libpango1.0-0 (can't provide)
          - BinDeps.Yum package pango (can't provide)
          - Autotools Build
     - Library "zlib" (not applicable to this system)

Homebrew.add("pango") gives
julia> Homebrew.add("pango")
==> Installing pango from staticfloat/juliadeps
==> Installing dependencies for staticfloat/juliadeps/pango: staticfloat/juliadeps/icu4c, staticfloat/juliadeps/harfbuzz, staticfloat/juliadeps/pkg-config, staticfloat/juliadeps/gobject-introspection
==> Installing staticfloat/juliadeps/pango dependency: staticfloat/juliadeps/icu4c
==> Downloading https://juliabottles.s3.amazonaws.com/icu4c-56.1.el_capitan.bottle.tar.gz
######################################################################## 100.0%
==> Pouring icu4c-56.1.el_capitan.bottle.tar.gz
==> Caveats
This formula is keg-only, which means it was not symlinked into /Users/cwestrup/.julia/v0.4/Homebrew/deps/usr.

OS X provides libicucore.dylib (but nothing else).

Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:

    LDFLAGS:  -L/Users/cwestrup/.julia/v0.4/Homebrew/deps/usr/opt/icu4c/lib
    CPPFLAGS: -I/Users/cwestrup/.julia/v0.4/Homebrew/deps/usr/opt/icu4c/include

==> Summary
🍺  /Users/cwestrup/.julia/v0.4/Homebrew/deps/usr/Cellar/icu4c/56.1: 244 files, 64M
==> Installing staticfloat/juliadeps/pango dependency: staticfloat/juliadeps/harfbuzz
==> Downloading https://juliabottles.s3.amazonaws.com/harfbuzz-0.9.42.el_capitan.bottle.tar.gz
######################################################################## 100.0%
==> Pouring harfbuzz-0.9.42.el_capitan.bottle.tar.gz
🍺  /Users/cwestrup/.julia/v0.4/Homebrew/deps/usr/Cellar/harfbuzz/0.9.42: 72 files, 3.1M
==> Installing staticfloat/juliadeps/pango dependency: staticfloat/juliadeps/pkg-config
==> Downloading https://juliabottles.s3.amazonaws.com/pkg-config-0.28_1.el_capitan.bottle.tar.gz
######################################################################## 100.0%
==> Pouring pkg-config-0.28_1.el_capitan.bottle.tar.gz
🍺  /Users/cwestrup/.julia/v0.4/Homebrew/deps/usr/Cellar/pkg-config/0.28_1: 10 files, 600K
==> Installing staticfloat/juliadeps/pango dependency: staticfloat/juliadeps/gobject-introspection
==> Downloading https://juliabottles.s3.amazonaws.com/gobject-introspection-1.46.0.el_capitan.bottle.tar.gz
######################################################################## 100.0%
==> Pouring gobject-introspection-1.46.0.el_capitan.bottle.tar.gz
🍺  /Users/cwestrup/.julia/v0.4/Homebrew/deps/usr/Cellar/gobject-introspection/1.46.0: 198 files, 10M
==> Installing staticfloat/juliadeps/pango
==> Downloading https://juliabottles.s3.amazonaws.com/pango-1.38.1_1.el_capitan.bottle.tar.gz
######################################################################## 100.0%
==> Pouring pango-1.38.1_1.el_capitan.bottle.tar.gz
🍺  /Users/cwestrup/.julia/v0.4/Homebrew/deps/usr/Cellar/pango/1.38.1_1: 117 files, 4.6M
Warning: Already linked: /Users/cwestrup/.julia/v0.4/Homebrew/deps/usr/Cellar/pango/1.38.1_1

and Pkg.test("Cairo") still gives the same error.

julia> Homebrew.add("pango")
==> Installing pango from staticfloat/juliadeps
==> Installing dependencies for staticfloat/juliadeps/pango:
    staticfloat/juliadeps/icu4c, staticfloat/juliadeps/harfbuzz,
    staticfloat/juliadeps/pkg-config, staticfloat/juliadeps/
==> Installing staticfloat/juliadeps/pango dependency: staticfloat/juliadeps/icu4c
==> Downloading https://juliabottles.s3.amazonaws.com/icu4c-56.1.el_capitan.bottle.tar.gz
######################################################################## 100.0%
==> Pouring icu4c-56.1.el_capitan.bottle.tar.gz
==> Caveats
This formula is keg-only, which means it was not symlinked into /Users/ubi/.julia/v0.4/Homebrew/deps/usr.

OS X provides libicucore.dylib (but nothing else).

Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:

    LDFLAGS:  -L/Users/ubi/.julia/v0.4/Homebrew/deps/usr/opt/icu4c/lib
    CPPFLAGS: -I/Users/ubi/.julia/v0.4/Homebrew/deps/usr/opt/icu4c/include

==> Summary
🍺  /Users/ubi/.julia/v0.4/Homebrew/deps/usr/Cellar/icu4c/56.1: 244 files, 64M
==> Installing staticfloat/juliadeps/pango dependency: staticfloat/juliadeps/harfbuzz
==> Downloading https://juliabottles.s3.amazonaws.com/harfbuzz-0.9.42.el_capitan.bottle.tar.gz
######################################################################## 100.0%
==> Pouring harfbuzz-0.9.42.el_capitan.bottle.tar.gz
🍺  /Users/ubi/.julia/v0.4/Homebrew/deps/usr/Cellar/harfbuzz/0.9.42: 72 files, 3.1M
==> Installing staticfloat/juliadeps/pango dependency: staticfloat/juliadeps/pkg-config
==> Downloading https://juliabottles.s3.amazonaws.com/pkg-config-0.28_1.el_capitan.bottle.tar.gz
######################################################################## 100.0%
==> Pouring pkg-config-0.28_1.el_capitan.bottle.tar.gz
🍺  /Users/ubi/.julia/v0.4/Homebrew/deps/usr/Cellar/pkg-config/0.28_1: 10 files, 600K
==> Installing staticfloat/juliadeps/pango dependency: staticfloat/juliadeps/gobject-introspection
==> Downloading https://juliabottles.s3.amazonaws.com/gobject-introspection-1.46.0.el_capitan.bottle.tar.gz
######################################################################## 100.0%
==> Pouring gobject-introspection-1.46.0.el_capitan.bottle.tar.gz
🍺  /Users/ubi/.julia/v0.4/Homebrew/deps/usr/Cellar/gobject-introspection/1.46.0: 198 files, 10M
==> Installing staticfloat/juliadeps/pango
==> Downloading https://juliabottles.s3.amazonaws.com/pango-1.38.1_1.el_capitan.bottle.tar.gz
######################################################################## 100.0%
==> Pouring pango-1.38.1_1.el_capitan.bottle.tar.gz
🍺  /Users/ubi/.julia/v0.4/Homebrew/deps/usr/Cellar/pango/1.38.1_1: 117 files, 4.6M
Warning: Already linked: /Users/ubi/.julia/v0.4/Homebrew/deps/usr/Cellar/pango/1.38.1_1

julia> Pkg.test("Cairo")
INFO: Testing Cairo
ERROR: LoadError: UndefVarError: _jl_libcairo not defined
 in CairoImageSurface at /Users/ubi/.julia/v0.4/Cairo/src/Cairo.jl:161
 in include at /usr/local/Cellar/julia/0.4.2/lib/julia/sys.dylib
 in include_from_node1 at /usr/local/Cellar/julia/0.4.2/lib/julia/sys.dylib
 in process_options at /usr/local/Cellar/julia/0.4.2/lib/julia/sys.dylib
 in _start at /usr/local/Cellar/julia/0.4.2/lib/julia/sys.dylib
while loading /Users/ubi/.julia/v0.4/Cairo/test/runtests.jl, in expression starting on line 5
========================[ ERROR: Cairo ]=========================
failed process: Process(`/usr/local/Cellar/julia/0.4.2/bin/julia
    --check-bounds=yes --code-coverage=none --color=yes
    /Users/ubi/.julia/v0.4/Cairo/test/runtests.jl`, ProcessExited(1)) [1]
=================================================================
ERROR: Cairo had test errors
 in error at /usr/local/Cellar/julia/0.4.2/lib/julia/sys.dylib
 in test at pkg/entry.jl:803 in anonymous at pkg/dir.jl:31 in
 cd at file.jl:22 in cd at pkg/dir.jl:31 in test at pkg.jl:71
julia>

Update, works for me now:
julia> Pkg.test("Cairo")
INFO: Testing Cairo
INFO: Cairo tests passed

I discovered this issue as well when trying to plot to PNG in Gadfly:
p1 = plot(x_train, x="volatileAcidity", y="_type", Geom.point)
draw(PNG("myplot.png", 12cm, 6cm), p1)

LoadError: Install Cairo.jl to use the PNG backend. You may need to delete /Users/cwestrup/.julia/lib/v0.4/Compose.ji afterwards.
while loading In[18], in expression starting on line 2

 in error at error.jl:21
 in PNG at /Users/cwestrup/.julia/v0.4/Compose/src/Compose.jl:170

Following that suggestion I did Pkg.rm("Cairo"), Pkg.add("Cairo"), and removed Compose.ji. Afterwards using Gadly compiled with
INFO: Precompiling module Compose...
INFO: Recompiling stale cache file /Users/cwestrup/.julia/lib/v0.4/Gadfly.ji for module Gadfly.
WARNING: eval from module Compose to Gadfly:
Expr(:import, :Patchwork)::Any
  ** incremental compilation may be broken for this module **

And draw gave me the error referred to in this issue: ERROR: LoadError: UndefVarError: _jl_libcairo not defined.
And interestingly now I've done the whole procedure of removing Cairo, adding it, deleting Compose.ji again and after compiling, though giving the same warning message as above, draw works and Cairo passes the tests. Maybe the installations using homebrew in the meantime have done something, actually I have no idea why it works now.

We haven't tagged a version yet since https://github.com/JuliaLang/Cairo.jl/pull/127 was merged, but that would at least help the error message be a little more obvious.

Well I tried removing Compose.jl like @cle-ment mentioned above, and now using Gadfly fails. Did Pkg.rm("Compose") & `Pkg.add("Compose") but it still doesn't work for me.
ERROR: LoadError: ArgumentError: Compose not found in path

Sigh. Going downhill fast ...

It might be trying to load the precompiled Gadfly.ji if all the timestamps are still the same, hard to say without more of the error message and exactly what you were trying to run that caused it. Is there a ~/.julia/lib/v0.4/Compose.ji present?

@tkelman,
I thought @cle-ment had a typo when he wrote rm Compose.ji [dot-JI] so I removed Compose.jl [dot-JL] (from the src/Compose directory – my bad). Evidently, removing and then adding the package doesn't restore things.
So I figured out that removing the src/Compose directory completely solved the problem! Cairo test passes now:
julia> Pkg.test("Cairo")
INFO: Testing Cairo
INFO: Recompiling stale cache file /Users/ubi/.julia/lib/v0.4/Cairo.ji for module Cairo.
INFO: Recompiling stale cache file /Users/ubi/.julia/lib/v0.4/Colors.ji for module Colors.
INFO: Recompiling stale cache file /Users/ubi/.julia/lib/v0.4/Graphics.ji for module Graphics.

INFO: Cairo tests passed
This might also have something to do with the fact that I did a brew upgrade which had a new version of  cairo.

Having exactly the same issue as above. No luck fixing it with any of these steps.
@ronubi which directory is src/Compose? I've attempted to remove .julia/v0.4/Compose/src but that didn't help.

@jordn – yes, I think it was v0.4/Compose/src/ – sorry.  After removing that, I think I did
julia> Pkg.rm("Compose")
julia> Pkg.add("Compose")

Hope that helps ...

In case anyone is running into this on OSX with julia v0.5, the issue appears to be that BinDeps sees & uses the system-wide homebrew-installed cairo/pango, and at the same time fails to write the corresponding deps.jl file. Running the following
Homebrew.add("cairo")
Homebrew.add("pango")
Pkg.build("Cairo")

generates the correct deps.jl, and Pkg.test("Cairo") passes after that.

I've had a very similar issue, except on Ubuntu 15.10, with Julia 0.4.2 installed via the staticfloat ppa.  I've tried the solutions here, as well as wiping ~/.julia and starting again, without any luck.  Any ideas what could be the cause on Linux?  The libcairo packages installed are:

libcairo2 1.14.2-2ubuntu2
libcairo2-dev 1.14.2-2ubuntu2

               _
   _       _ _(_)_     |  A fresh approach to technical computing
  (_)     | (_) (_)    |  Documentation: http://docs.julialang.org
   _ _   _| |_  __ _   |  Type "?help" for help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.4.2 (2015-12-06 21:47 UTC)
 _/ |\__'_|_|_|\__'_|  |  Official http://julialang.org release
|__/                   |  x86_64-linux-gnu

julia> Pkg.update()
INFO: Initializing package repository /home/mark/.julia/v0.4
INFO: Cloning METADATA from git://github.com/JuliaLang/METADATA.jl
INFO: Updating METADATA...
INFO: Computing changes...
INFO: No packages to install, update or remove

julia> Pkg.add("Cairo")
INFO: Cloning cache of BinDeps from git://github.com/JuliaLang/BinDeps.jl.git
INFO: Cloning cache of Cairo from git://github.com/JuliaLang/Cairo.jl.git
INFO: Cloning cache of ColorTypes from git://github.com/JuliaGraphics/ColorTypes.jl.git
INFO: Cloning cache of Colors from git://github.com/JuliaGraphics/Colors.jl.git
INFO: Cloning cache of Compat from git://github.com/JuliaLang/Compat.jl.git
INFO: Cloning cache of FixedPointNumbers from git://github.com/JeffBezanson/FixedPointNumbers.jl.git
INFO: Cloning cache of Graphics from git://github.com/JuliaLang/Graphics.jl.git
INFO: Cloning cache of Reexport from git://github.com/simonster/Reexport.jl.git
INFO: Cloning cache of SHA from git://github.com/staticfloat/SHA.jl.git
INFO: Cloning cache of URIParser from git://github.com/JuliaWeb/URIParser.jl.git
INFO: Installing BinDeps v0.3.20
INFO: Installing Cairo v0.2.31
INFO: Installing ColorTypes v0.2.0
INFO: Installing Colors v0.6.2
INFO: Installing Compat v0.7.8
INFO: Installing FixedPointNumbers v0.1.1
INFO: Installing Graphics v0.1.3
INFO: Installing Reexport v0.0.3
INFO: Installing SHA v0.1.2
INFO: Installing URIParser v0.1.2
INFO: Building Cairo
INFO: Package database updated

julia> Pkg.test("Cairo")
INFO: Testing Cairo
ERROR: LoadError: UndefVarError: _jl_libcairo not defined
 in CairoImageSurface at /home/mark/.julia/v0.4/Cairo/src/Cairo.jl:161
 in include at ./boot.jl:261
 in include_from_node1 at ./loading.jl:304
 in process_options at ./client.jl:280
 in _start at ./client.jl:378
while loading /home/mark/.julia/v0.4/Cairo/test/runtests.jl, in expression starting on line 5
==============================================================================================================[ ERROR: Cairo ]===============================================================================================================

failed process: Process(`/usr/bin/julia --check-bounds=yes --code-coverage=none --color=yes /home/mark/.julia/v0.4/Cairo/test/runtests.jl`, ProcessExited(1)) [1]

=============================================================================================================================================================================================================================================
ERROR: Cairo had test errors
 in error at ./error.jl:21
 in test at pkg/entry.jl:803
 in anonymous at pkg/dir.jl:31
 in cd at file.jl:22
 in cd at pkg/dir.jl:31
 in test at pkg.jl:71

julia> using BinDeps

julia> BinDeps.debug("Cairo")
INFO: Reading build script...
The package declares 1 dependencies.
 - Library Group "cairo"
     - Library "png" (not applicable to this system)
     - Library "pixman" (not applicable to this system)
     - Library "ffi" (not applicable to this system)
     - Library "gettext"
        - Satisfied by:
          - System Paths at /usr/lib/x86_64-linux-gnu/libgettextpo.so.0
        - Providers:
          - BinDeps.AptGet package gettext
          - BinDeps.Yum package gettext-libs (can't provide)
          - Autotools Build
     - Library "gobject"
        - Satisfied by:
          - BinDeps.AptGet package libglib2.0-0 at /usr/lib/x86_64-linux-gnu/libgobject-2.0.so
          - BinDeps.AptGet package libglib2.0-0 at /usr/lib/x86_64-linux-gnu/libgobject-2.0.so
        - Providers:
          - BinDeps.AptGet package libglib2.0-0
          - BinDeps.Yum package glib2 (can't provide)
          - Autotools Build
     - Library "freetype" (not applicable to this system)
     - Library "fontconfig" (not applicable to this system)
     - Library "cairo"
        - Satisfied by:
          - BinDeps.AptGet package libcairo2 at /usr/lib/x86_64-linux-gnu/libcairo.so
          - BinDeps.AptGet package libcairo2 at /usr/lib/x86_64-linux-gnu/libcairo.so.2
        - Providers:
          - BinDeps.AptGet package libcairo2
          - BinDeps.Yum package cairo (can't provide)
          - Autotools Build
     - Library "pango"
        - Satisfied by:
          - BinDeps.AptGet package libpango1.0-0 at /usr/lib/x86_64-linux-gnu/libpango-1.0.so.0
        - Providers:
          - BinDeps.AptGet package libpango1.0-0
          - BinDeps.Yum package pango (can't provide)
          - Autotools Build
     - Library "pangocairo"
        - Satisfied by:
          - BinDeps.AptGet package libpango1.0-0 at /usr/lib/x86_64-linux-gnu/libpangocairo-1.0.so.0
        - Providers:
          - BinDeps.AptGet package libpango1.0-0
          - BinDeps.Yum package pango (can't provide)
          - Autotools Build
     - Library "zlib" (not applicable to this system)

julia> Pkg.status()
1 required packages:
 - Cairo                         0.2.31
9 additional packages:
 - BinDeps                       0.3.20
 - ColorTypes                    0.2.0
 - Colors                        0.6.2
 - Compat                        0.7.8
 - FixedPointNumbers             0.1.1
 - Graphics                      0.1.3
 - Reexport                      0.0.3
 - SHA                           0.1.2
 - URIParser                     0.1.2

@mpinese What is the output when running Pkg.build("Cairo")? Nothing? Try running twice? I don't have any linux machine to test this on, but this looks like the same problem, in which BinDeps is writing an empty deps.jl file (Looks like https://github.com/JuliaLang/BinDeps.jl/issues/146, perhaps)

Pkg.build("Cairo") twice just gives INFO: Building Cairo each time; tests still fail as before.
It looks like the deps issue you mentioned is the problem -- here is my deps.jl:
# This is an auto-generated file; do not edit

# Pre-hooks

# Macro to load a library
macro checked_lib(libname, path)
    ((VERSION >= v"0.4.0-dev+3844" ? Base.Libdl.dlopen_e : Base.dlopen_e)(path) == C_NULL) && error("Unable to load \n\n$libname ($path)\n\nPlease re-run Pkg.build(package), and restart Julia.")
    quote const $(esc(libname)) = $path end
end

# Load dependencies

# Load-hooks

Guess I'll sit tight until that deps problem is figured out -- thanks for getting back to me so quickly.

Until then, I think I've seen people having success editing their deps.jl manually and adding the necessary paths. FWIW, here's mine:
# This is an auto-generated file; do not edit

# Pre-hooks

# Macro to load a library
macro checked_lib(libname, path)
    ((VERSION >= v"0.4.0-dev+3844" ? Base.Libdl.dlopen_e : Base.dlopen_e)(path) == C_NULL) && error("Unable to load \n\n$libname ($path)\n\nPlease re-run Pkg.build(package), and restart Julia.")
    quote const $(esc(libname)) = $path end
end

# Load dependencies
@checked_lib _jl_libgobject "/Users/jgoldfar/.julia/v0.5/Homebrew/deps/usr/lib/libgobject-2.0.dylib"
@checked_lib _jl_libpango "/Users/jgoldfar/.julia/v0.5/Homebrew/deps/usr/lib/libpango-1.0.dylib"
@checked_lib _jl_libpangocairo "/Users/jgoldfar/.julia/v0.5/Homebrew/deps/usr/lib/libpangocairo-1.0.dylib"
@checked_lib _jl_libcairo "/Users/jgoldfar/.julia/v0.5/Homebrew/deps/usr/lib/libcairo.dylib"

# Load-hooks
function __init__()
    ENV["PANGO_SYSCONFDIR"] = joinpath("/Users/jgoldfar/.julia/v0.5/Homebrew/deps/usr", "etc")
end

@jgoldfar  That worked a treat, thanks!  Pkg.test("Cairo") now passes, and my code runs too.  For reference in case any other Ubuntu users come across this:
Contents of ~/.julia/v0.4/Cairo/deps/deps.jl
# This is an auto-generated file; do not edit

# Pre-hooks

# Macro to load a library
macro checked_lib(libname, path)
    ((VERSION >= v"0.4.0-dev+3844" ? Base.Libdl.dlopen_e : Base.dlopen_e)(path) == C_NULL) && error("Unable to load \n\n$libname ($path)\n\nPlease re-run Pkg.build(package), and restart Julia.")
    quote const $(esc(libname)) = $path end
end

# Load dependencies
@checked_lib _jl_libgobject "/usr/lib/x86_64-linux-gnu/libgobject-2.0.so"
@checked_lib _jl_libpango "/usr/lib/x86_64-linux-gnu/libpango-1.0.so.0"
@checked_lib _jl_libpangocairo "/usr/lib/x86_64-linux-gnu/libpangocairo-1.0.so.0"
@checked_lib _jl_libcairo "/usr/lib/x86_64-linux-gnu/libcairo.so"

# Load-hooks

Do you have gettext-dev (or something to that effect) installed? The issue might be that gettext was found via system paths instead of apt so the library group was not all found from the same source.

@tkelman I have gettext-base 0.19.4-1ubuntu3 installed, and gettext itself is in /usr/bin.

Does that include the devel package without an soname?

@tkelman I think you may have got it.  My system had the gettext-base package installed, but was missing any gettext .so files.  apt-get install gettext added libgettextlib-0.19.4.so, and now Pkg.build("Cairo"); Pkg.test("Cairo") works perfectly, and deps.jl is correctly built.
There's something that I don't understand still going on; in trying to verify the fix I then removed gettext and other auto-installed packages, and after that Pkg.build("Cairo") gave a new error:
INFO: Building Cairo
Installing dependency gettext via `sudo apt-get install gettext`:
sudo: no tty present and no askpass program specified
================================[ ERROR: Cairo ]================================

LoadError: failed process: Process(`sudo apt-get install gettext`, ProcessExited(1)) [1]
while loading /home/mark/.julia/v0.4/Cairo/deps/build.jl, in expression starting on line 144

================================================================================```
I suppose it's trying (and failing) to get my credentials for sudo, but why Pkg.build didn't report an error before I'd installed gettext, but does so after I've removed it, I have no idea.  That aside, it seems installing gettext (rather than gettext-base) solves the problem on Ubuntu.  Thanks for your help on this!

If you don't have the package installed, BinDeps is trying to invoke apt-get here. Are you ssh'ed into this system or running without X?

This was all on a local terminal session from within X.

Bizarre. I wonder why the shelling out to sudo apt-get install gettext had issues then. Unless maybe you're the first person to try on Ubuntu 15.10 which may have changed something subtle? Not sure.

Actually I was being slightly economical with the truth there, the system is actually Lubuntu 15.10, though lsb_release -a still reports Ubuntu 15.10.  Maybe there's some weird subtlety with the Lubuntu version.  I've confirmed the problem on a newly-rolled fresh install of Lubuntu, but not on Ubuntu itself.

You are more likely to be the first person to try with Lubuntu 15.10. The password prompting probably depends on the desktop shell environment in some way. Can you try out some other package that has an AptGet provider in deps/build.jl, say HDF5.jl, and see if it has the same problem? If so then this should be opened as an issue in BinDeps.jl.

I can confirm this occurs too with HDF5.  I'll open an issue in BinDeps, thanks.

I think for now @jgoldfar hit the nail on the head what the original OSX problem was, and @mpinese we can move your possibly-Lubuntu-specific issue over to BinDeps. I'm going to close this but if anyone encounters this same issue (or, after we tag a new version, a "Cairo failed to install, run Pkg.build("Cairo")" error) probably best to open a new issue so the discussion is more specific.
We can also try to work on how to detect / automatically work around the Homebrew conflict problem, I'm not sure what the best course of action there is but would review any suggested PR's.


chore: add .secrets.baseline

Support codescan tooling.

:tada: This PR is included in version 0.17.13 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


NHC-Link042: Convert Keil to Cmake Makefile with tool from https://github.com/phodina/ProjectConverter

NHC-Link042: Convert Keil to Cmake Makefile with tool from https://github.com/phodina/ProjectConverter

I should add a small doc on how to build the firmware:
zoobab@chonche /home/zoobab/soft/ch32v003fun/attic/NHC-Link042 [13]$ cmake .
-- Configuring done
-- Generating done
-- Build files have been written to: /home/zoobab/soft/ch32v003fun/attic/NHC-Link042
zoobab@chonche /home/zoobab/soft/ch32v003fun/attic/NHC-Link042 [14]$ make
[  4%] Building C object CMakeFiles/NHC-Link042.elf.dir/User/it.c.o
[  8%] Building C object CMakeFiles/NHC-Link042.elf.dir/User/main.c.o
In file included from /home/zoobab/soft/ch32v003fun/attic/NHC-Link042/./STM32F0x2_USB-FS-Device_Lib_V1.0.0/Libraries/STM32_USB_Device_Driver/inc/usb_dcd.h:33,
from /home/zoobab/soft/ch32v003fun/attic/NHC-Link042/./STM32F0x2_USB-FS-Device_Lib_V1.0.0/Libraries/STM32_USB_Device_Library/Core/inc/usbd_core.h:33,
from /home/zoobab/soft/ch32v003fun/attic/NHC-Link042/./STM32F0x2_USB-FS-Device_Lib_V1.0.0/Libraries/STM32_USB_Device_Library/Core/inc/usbd_usr.h:33,
from /home/zoobab/soft/ch32v003fun/attic/NHC-Link042/User/main.c:2:
/home/zoobab/soft/ch32v003fun/attic/NHC-Link042/./STM32F0x2_USB-FS-Device_Lib_V1.0.0/Libraries/STM32_USB_Device_Driver/inc/usb_core.h:431:6: warning: redundant redeclaration of 'SetBTABLE' [-Wredundant-decls]
431 | void SetBTABLE(uint16_t /wRegValue/);
|      ^~~~~~~~~
/home/zoobab/soft/ch32v003fun/attic/NHC-Link042/./STM32F0x2_USB-FS-Device_Lib_V1.0.0/Libraries/STM32_USB_Device_Driver/inc/usb_core.h:430:6: note: previous declaration of 'SetBTABLE' was here
[...]
[100%] Linking C executable bin/NHC-Link042.elf
/usr/lib/gcc/arm-none-eabi/10.3.1/../../../arm-none-eabi/bin/ld: warning: cannot find entry symbol Reset_Handler; defaulting to<PHONE_NUMBER>000000
[100%] Built target NHC-Link042.elf
[100%] Built target NHC-Link042.bin
[100%] Built target NHC-Link042.hex
text    data     bss     dec     hex filename
396    1084    1568    3048     be8 /home/zoobab/soft/ch32v003fun/attic/NHC-Link042/bin/NHC-Link042.elf
[100%] Built target size

I could only found that tool (I tried keil2gcc but I did not manage to compile it), and was happy to find this other python tool, but which only supports cmake as output. Let's see if I find another converter cmake->makefiles.

@cnlohr if you succeed in compiling this tool (I have added g++ -IPersistanceLibrary/Source/BasicTypes -IPersistanceLibrary/Source/Math), I am still failing to build a working binary, maybe it can generate a simpler Makefile.

I urge you to just write what you need to to make it work.  Don't be afraid of makefiles, just figure out what needs to be passed into the compiler to make it work.

I asked Openchat LLM to convert the cmake to a makefile, it gave me some output Makefile, now I just need to make it work...

It is not hard to write a makefile.  It's just
output_thing : things_that_constitute it
	command_used_to_make_output_from_input

I am looking to port this firmware to an STM32F103, does anybody has a link to the similar V1.0.0 library for it?


Add delte signed image auto case

Coverage decreased (-0.05%) to 56.196% when pulling 189d964f582a8111d4b4a1e4021f9211d1dc8dde on sigsbee:projectconfig into 367c2b142fb744538bbf3156a85bff54a6c843d9 on vmware:master.

@sigsbee what's the status of this PR?


Where does the name "ag" come from?

Why is the_silver_searcher tool named ag?

Ag is how the element Silver is listed on the periodic table of elements.
Someone told me that's why the name. I have never read that in documentation so I do not claim that this is a definitive or authoritative answer. But I like the idea.

On Apr 27, 2020, at 1:47 PM, Dylan Landry<EMAIL_ADDRESS>wrote:
Why is the_silver_searcher tool named ag?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.


Add trust store configurator with config server's CA cert

FYI @freva. Includes changes from #4340 squashed as single commit.


used versioned builder image

maybe a variable for version so it is on one place?

OK, I'll work on that separately.


Prologue Dash prompt can be "unfrozen" with Emote Wheel

Someone reported a bug in Prologue where the Dash prompt appears at the end, apparently the game doesn't set level.Frozen presumably because the player needs to press dash, and it just sets Engine.TimeRate to 0.0f but then pulling up the Emote wheel sets Engine.TimeRate to 0.25f and back to 1 when it closes, and Madeline just starts falling.
I checked these values:

Where?
Engine.TimeRate
level.Frozen
level.FrozenOrPaused
notes

Regular cutscenes
1f
false
false
Player not in control, but can mess with time (screws up zooms but that's it)

Prologue Dash
0.0f
false
false
dunno if this has any hooks to it, probably not

Empty Space heart
modulates, ends up back at 1.0f
false
false
unaffected because we set TimeRateSkip from hook OnHeartGemCollect until OnHeartGemEndCutscene?

Regular heart collects
modulates, ends up back at 1.0f
true
true
unaffected because we set TimeRateSkip from hook OnHeartGemCollect until OnHeartGemEndCutscene?

seed berry spawning
1.0f
true
true
wheel sets time to 0.25f but not back to 1f?...

Another thing I've noticed:
EH heart actually only triggers On.Celeste.HeartGem.Collect but not On.Celeste.HeartGem.EndCutscene so for the rest of the room, Wheel doesn't slow time.
My current work-in-progress fix checks against Engine.TimeRate > 0.05f for allowing the Wheel to open/update time. Might prevent time-changes within cutscenes altogether? Working on a fix for the EH heart.

This is now fully fixed with the release of v2.1.0 today. ✅


Windows install docs didn't work for me

I'm on Windows 10 with Vim 74. Followed the instructions here
https://github.com/VundleVim/Vundle.vim/wiki/Vundle-for-Windows
in particular these lines
set rtp+=%HOME%/vimfiles/bundle/Vundle.vim/
call vundle#begin('%USERPROFILE%/vimfiles/bundle/')

But when I ran :PluginInstall I got

So just for fun I changed the above 2 lines to the following
set rtp+=~/vimfiles/bundle/Vundle.vim/
call vundle#begin('~/vimfiles/bundle/')

and I got the intended results. My plugins install to /vimfiles/bundle. Curiouser still, doing
call vundle#begin()
Also works, but here the plugins go to a .vim directory in home. Which I suppose should also be fine but from what I can tell the expectation is "vimfiles" and "_vimrc" in windows land. But I have a bunch of "." directories in home from other stuff. So, hmm.
Not sure how to explain all except that Vundle is smart enough to parse a tilde into something like %home%. Maybe if this is true the docs should be updated, which I'm happy to do if others think this is a real issue and not something weird with me.
For what it's worth I'm not doing cygwin, just a standard install of windows.

Holy cow - this was driving me crazy! Thanks for the tip @steveellis!  I'm running windows 10 anniversary edition, and I've been getting the same errors trying to install for gvim. Are you running anniversary edition as well? It was working just fine for me in regular win10 enterprise.

Glad it helped you!
winver says I have version 1511 OS Build 10586.545.
But dunno that seems like a rabbithole perhaps that I wouldn't want to go down. The windows version i mean. Think it is just the "~" is being perhaps translated by vundle into something that works on windows. But then again maybe this is part of microsoft's open source initiative: make the tilde be "home" in windows 10 ... but don't tell anyone. Wouldn't that be funny?
Or maybe, just maybe my operating system has become conscious and felt ashamed that it wasn't linux and that "~" wasn't home. :)

Use $USERPROFILE instead of %USERPROFILE% when following the windows instructions.


Register with Bower?

It doesn't seem like this is actually registered with Bower even though theres a bower.json file.

Same with NPM

Looks like someone added it to Bower for me. Thanks, whomever you are. :+1:
Just ran and got this:
$ bower install smart-underline
bower smart-underline#*         cached git://github.com/EagerIO/SmartUnderline.git#3.0.1
bower smart-underline#*       validate 3.0.1 against git://github.com/EagerIO/SmartUnderline.git#*
bower smart-underline#*            new version for git://github.com/EagerIO/SmartUnderline.git#*
bower smart-underline#*        resolve git://github.com/EagerIO/SmartUnderline.git#*
bower smart-underline#*       download https://github.com/EagerIO/SmartUnderline/archive/v3.0.2.tar.gz
bower smart-underline#*        extract archive.tar.gz
bower smart-underline#*       resolved git://github.com/EagerIO/SmartUnderline.git#3.0.2
bower smart-underline#~3.0.2   install smart-underline#3.0.2

smart-underline#3.0.2 bower_components/smart-underline

I’ll look into NPM though, thanks.

Aight, all set.


Session middleware

Develop session middleware, using http://expressjs.com/en/resources/middleware/cookie-session.html as inspiration
Acceptance Criteria

[ ] Develop middleware
[ ] Tests tests tests tests tests tests tests.. tests for days ya'll
[ ] It's own readme (follow contributing guidelines)

@devYusuf, just tagging you here so you can follow

Updated the description. I guess users can always use this middleware with their database/redis

i havent made any progress on this. putting it back in to do


Spyder's about dialog box: Google Code/Group links are broken

From pierre.raybaut on 2009-10-10T03:15:59Z
Everything is in the title...
Original issue: http://code.google.com/p/spyderlib/issues/detail?id=72

From pierre.raybaut on 2009-10-10T02:17:51Z
Status: Fixed


Spec: document string literals

Copied from https://github.com/google/starlark-go/pull/265
I omitted the implementation notes.

Note that it doesn't exactly match the Java implementation, e.g. we reject \a.
I assume you'd rather update the implementation?

Note that it doesn't exactly match the Java implementation, e.g. we reject \a.
I assume you'd rather update the implementation?

Yes, useless though it may be, every language supports \a thus so should we.


Add WUR and HES-SO

Adding two more domains.
My last PR has been sitting there for five days. I will probably be adding more school domains to the database in the future as our users identify them -- can I get commit access to the repo so I don't have to make a PR each time?
/cc @tmcw

Merged into https://github.com/mapbox/swot

:+1:


Do you support Emojis?

I am trying to add emojis to the editor and was wondering if this was possible out of the box.

Quill does not support out of the box functionality, it provides an open module and api for developers to achieve functionality.

add insert emoji button
https://github.com/surmon-china/vue-quill-editor/blob/master/examples/03-example.vue

add insert emoji function

insertEmoji(emoji) {
    const range = this.$refs.myEditor.quill.getSelection()
    this.$refs.myEditor.quill.insertText(range.index, emoji)
}

insertEmoji('🙂')
insertEmoji('😎')

any examples?


Update pacakges

Still working on styles

@sumitarora :shipit:

Pulled and tested this with angular 5, seems to work. see #1230

Hi, any news?


After I deploy That ripo I got this error.

and My exposed IP I got nothing.
I frog this repo put my wordpress file in the wordpress folder then I trigger this repo and got this error.

Please provide the log output of the crashed pod / container. To do so use the kubectl or the k8s dashboard.

Please provide the log output of the crashed pod / container. To do so use the kubectl or the k8s dashboard.

That is the log link and it's successfully done . Buy problem is in Next steap.
https://00e9e64bac72b0c7f220297d6c037b6d868dbaa70aa8fe4a85-apidata.googleusercontent.com/download/storage/v1/b/497806420977.cloudbuild-logs.googleusercontent.com/o/log-cfb8b954-5c87-4d1b-96f9-2628b2e414f3.txt?qk=AD5uMEvjYtMsD2Bv-OlAP-cUSJUKyT8fkZPzowG8nvJr1EWUttRxb6WdD6D40BBMoVHONKhHZpTrV8x8zGwYviJPDb-bvGPHPxABimVoyKl4yD-r3eU8bFOlWjl8qLPVqKl_uF3Cbe3HPjTy_qeRi8Dhd0b79l7MVmCKarRL1MAMfbpQqJ6s0knxvnCygIfiVetqq3Sijk0m_OJAtdVWoJnfv8HXi_SBljbnyhNmQ-lzIM8Czb2qPPKuYJrLmkHo9xKy-QT0GAaiXgDmfv3DLSmuFg9Q9XxSIP2fdQnakvh3KX0vh4GxDsS4s68Xd0XxrZUUHngIvRNHdbDP9lUygS5J3UjHbD9WjOWbgO-xLOrMhxoQTDEOu_9VHij_mqA0s_Eo1WTdMGv10P5wMxmsx5C5AItvesU0X_PBzynvMXq6mxZbyGuRmVmwy9s_wtRDGgUFUmIslSdvM-_TbOkNqwl1GAd9KPphHVwDN3U25FTkWowdP8HKj8LOqOL6AQueYyw3gZFO8gA_wpId9AnpFNeQGaB0oKJCtG5XQ8ynQVNj33BeGqLXVV-bdWYot9e4Er6PlRp4Uc7iBGx5A9pRZ-391xY75kIKHw2lB9lo5mPV4jHm1l4ziqwSs7YC0Fp_aG15otwdZhgGSWBdtTH1yS_R7wyp-mt36VF8SlnqkgfxVzlfKNPmYtdsLtXtyInNYg3vH0s22l5VGt-je6Uf51aZIvVUoddJzan92Va4DKlC6zmcuxGaoMWhTm3ZWS0fQbpnxpNVDxXlF1XyTZbs-fOOOupFaxon-QYaIwbqOFJkh5LOCDyx8QtZqQlaHxwFiG-kcX5usBdKTWXETyPWZYiTjSRY-My8QE6xayrNVi4Hr0cpggDZ6uv7pU9l3gNcmzeWgvsAt3dA

This is the output of the build step. Looks like to container was build successfully.

What is the content of the wordpress folder while building the container?
Please run the container locally and see the log:

in your work dir run docker build -t unitwp . and docker run -it unitwp:latest
what is the log output of running the container locally?  I will add a new md-file later today describing the whole local build process.

This is the output of the build step. Looks like to container was build successfully.

What is the content of the wordpress folder while building the container?
Please run the container locally and see the log:

in your work dir run docker build -t my/unitwp . and docker run -it my/unitwp:latest
what is the log output of running the container locally? I will add a new md-file later today describing the whole local build process.

Let me do it.

This is the output of the build step. Looks like to container was build successfully.

What is the content of the wordpress folder while building the container?
Please run the container locally and see the log:

in your work dir run docker build -t my/unitwp . and docker run -it my/unitwp:latest
what is the log output of running the container locally? I will add a new md-file later today describing the whole local build process.

Let me do it.

I never run Kubernaties from my local machine , Can it possible to happen from gitrepo.

Its work. Thank You a lot.