Vertical spacing between fractions on separate lines is too tight

Hi! I'm not sure it looks right. Please, check it. Simple demo.

<!doctype html>

    <meta charset="UTF-8">
    <title>Bug of rendering?</title>

    <link href="katex/katex.min.css" rel="stylesheet" type="text/css">

    A) $3 * \dfrac{40}{50}$

    B) $\dfrac{40}{50} * \dfrac{39}{50} * \dfrac{38}{50}$

    C) $\dfrac{40}{50} * \dfrac{40}{50} * \dfrac{40}{50}$

    D) $\dfrac{40}{50} * \dfrac{39}{49} * \dfrac{38}{48}$

try: display: true

Sorry, I don't need displayed equations. For them I can add {left: "$$", right: "$$", display: true} or use \displaystyle command. I need only inline equations.

@Cirran not sure when I'll have time to look at this, but in the meantime you could improve the spacing by putting each line inside a block element like a  or  or use a list with `list-style-type:none;' and adjust the padding/margin as necessary.

@kevinb7 Thank you, the wrapping them into block
 ...
 has helped me. Sorry for troubling.

@Cirran no worries.  I'm going to leave this issue open because we should, at some point, try to find a better solution to this problem.

Tinkering around with things, I think this might be caused by a couple problems:

We make our fonts a little bit thicker when we create them, so we maybe should adjust the metrics that we get to account for this?
TeX assumes that you're going to put some space between the different lines, but browsers don't always? Maybe we should explicitly add the line-height ourselves?

Yeah, ideally we can adjust the line heights so that this looks right. We should be careful to not increase the line height for inline (non-fraction) math in regular text though, otherwise you get uneven spacing when using math on only a few lines of a large paragraph.

Hi
On a related issue, the vertical spacing when using fractions in matrices is also too tight.

How do we space them out some more?
Regards
Murray

Any progress on this issue?

@mbourne I think what you're seeing is a separate issue.  Can you create a separate issue and include which browser/os combo you're seeing this in.  Sorry for not saying something sooner.

@edemaine I wonder if we need a jot between rows in *matrix environments?

@kevinbarabash @mbourne In fact, that's how it's supposed to render, using LaTeX as a reference.  It renders the first matrix as follows:

You can improve the situation, in both LaTeX and KaTeX, by providing an optional argument to \\.  For example:
=\begin{pmatrix}
    \frac{1}{5} & \frac{5}{12} & \frac{7}{20} \\[0.5em]
    \frac{1}{5} & \frac{1}{6} & \frac{1}{10} \\[0.5em]
    \frac{1}{5} & -\frac{1}{6} & \frac{1}{10}
  \end{pmatrix}

I'm not convinced that it makes sense to adjust the metrics for the "blacker" fonts – IIRC this lever was originally designed so that different printers could print Computer Modern in a way that looked good, even if an individual printer might end up printing the lines a little thicker or less thick. Similarly, different screen rasterization algorithms might do the same. But I think that's different from the underlying font metrics – if you were to use a bold face then you would typically have wider metrics but the goal with thickening fonts artificially is that after production they look the correct (original) thickness and therefore you wouldn't want to adjust the distance between the characters.

I think the spacing issue will get better once we support \setlength see https://github.com/Khan/KaTeX/issues/687.

I ran into the linespacing with problems too, in various Latex code.
The proposed line-height solution was not good because it created a padding on top of each Katex-Block.
Instead I found another solution by CSS:
.katex .katex-html>.newline {
    display: block;
    padding-bottom: 10px;
}

Hope that helps.


Passing C4R version in Client parameter

@Josmorsot we can't land this until we have this landed: https://github.com/CartoDB/cloud-native/pull/13376


fix(Combobox): Pass highlightOnHover to Listbox

In v2, the new prop Combobox prop highlightOnHover is now passed to ListboxRoot.
ComboboxRootProps inherits of highlightOnHover prop from ListboxRootProps, so it must be passed explicitly.

Ahh thanks for this PR! Sorry I missed this out and pushed a similar changes earlier 🙈
I'll be closing this ya! 🙏🏼


Streak isn't properly counted

Describe the bug
The tracker only shows a 2-day streak instead of the actual length
To Reproduce
Steps to reproduce the behavior:

Go to my profile
Note the continuous green in the overview
The tracker shows a broken streak

Expected behavior
Streak count should be accurate
Desktop (please complete the following information):

OS: Linux (5.17.15-1-MANJARO)
Browser Brave (Chrome)

It's fixed, must have been a timezone issue or something. Weird because it was like this for a while
Anyway, sorry about the useless issue then! Thank you very much for this tracker, I really like it <3


Breaking: Drop support for old minor versions of Node 12 and 14

This matches ESLint's Node version support. It sets us up for:

Using pure ESM dependencies (which are quickly becoming commonplace)
Converting this package to ESM (see Sindre's post)
Using other new Node features like node: prefix imports

Especially because this plugin is a dev-dependency for consumers, we can be more aggressive/strict here.
Originally discussed here: https://github.com/not-an-aardvark/eslint-plugin-eslint-plugin/pull/151#discussion_r693591610
Part of v4 release (#120).

not to against the change, just to clarify:

Sindre's packages require "node>=12". e.g. https://github.com/sindresorhus/is-unicode-supported/commit/30ba81f2c7d69e3f2b03df46eb9eb9b1c0d923c4#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519R16
if no build process, converting to esm is a breaking change, even it requires "node >=12.22.0" (esm cannot be required).

@aladdin-add Good points. Still, I think this PR is a worthwhile change.


[tool_crash] FileSystemException: Deletion failed, OS Error: The process cannot access the file because it is being used by another process., errno = 32

Command
flutter --no-color run --machine --track-widget-creation --device-id=chrome --start-paused --dart-define=flutter.inspector.structuredErrors=true lib\main.dart

Steps to Reproduce

...
...
...

Logs
FileSystemException: Deletion failed, OS Error: The process cannot access the file because it is being used by another process.
, errno = 32
#0      _Directory._deleteSync (dart:io/directory_impl.dart:193:7)
#1      FileSystemEntity.deleteSync (dart:io/file_system_entity.dart:424:7)
#2      ForwardingFileSystemEntity.deleteSync (package:file/src/forwarding/forwarding_file_system_entity.dart:70:16)
#3      ErrorHandlingDirectory.deleteSync.<anonymous closure> (package:flutter_tools/src/base/error_handling_io.dart:481:22)
#4      _runSync (package:flutter_tools/src/base/error_handling_io.dart:590:14)
#5      ErrorHandlingDirectory.deleteSync (package:flutter_tools/src/base/error_handling_io.dart:480:12)
#6      ErrorHandlingFileSystem.deleteIfExists (package:flutter_tools/src/base/error_handling_io.dart:80:12)
#7      FlutterWebSdk.updateInner (package:flutter_tools/src/flutter_cache.dart:183:29)
#8      CachedArtifact.update (package:flutter_tools/src/cache.dart:812:11)
#9      Cache.updateAll (package:flutter_tools/src/cache.dart:679:24)
<asynchronous suspension>
#10     FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:1567:7)
<asynchronous suspension>
#11     FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1297:27)
<asynchronous suspension>
#12     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#13     CommandRunner.runCommand (package:args/command_runner.dart:212:13)
<asynchronous suspension>
#14     FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:339:9)
<asynchronous suspension>
#15     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#16     FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:285:5)
<asynchronous suspension>

[✓] Flutter (Channel stable, 3.13.8, on Microsoft Windows [Version 10.0.19044.2364], locale en-GB)
    • Flutter version 3.13.8 on channel stable at C:\flutter\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 6c4930c4ac (7 days ago), 2023-10-18 10:57:55 -0500
    • Engine revision 767d8c75e8
    • Dart version 3.1.4
    • DevTools version 2.25.0

[✓] Windows Version (Installed version of Windows is version 10 or higher)

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
    • Android SDK at C:\Users\DELL\AppData\Local\Android\sdk
    • Platform android-33-ext4, build-tools 33.0.1
    • Java binary at: C:\Program Files\Android\Android Studio\jbr\bin\java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-b2043.56-10027231)
    • All Android licenses accepted.

[✓] Chrome - develop for the web
    • Chrome at C:\Users\DELL\AppData\Local\Google\Chrome\Application\chrome.exe

[✓] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.7.4)
    • Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
    • Visual Studio Community 2022 version 17.7.34031.279
    • Windows 10 SDK version 10.0.22621.0

[✓] Android Studio (version 2022.3)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-b2043.56-10027231)

[✓] VS Code (version 1.83.1)
    • VS Code at C:\Users\DELL\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.74.0

[✓] Connected device (4 available)
    • SM A920F (mobile) • 2c0b83818a1d7ece • android-arm64  • Android 10 (API 29)
    • Windows (desktop) • windows          • windows-x64    • Microsoft Windows [Version 10.0.19044.2364]
    • Chrome (web)      • chrome           • web-javascript • Google Chrome 118.0.5993.89
    • Edge (web)        • edge             • web-javascript • Microsoft Edge 118.0.2088.61

[✓] Network resources
    • All expected network resources are available.

• No issues found!

Flutter Application Metadata
Type: malformed
Version: 1.0.0+1
Material: true
Android X: false
Module: false
Plugin: false
Android package: null
iOS bundle identifier: null
Creation channel: null
Creation framework version: null

Hi @s92060596Kishan Can you upgrade to the latest version of master to see if you still experience this issue?


css is required alongside js

this line: https://github.com/angular-ui/ui-select/blob/master/index.js#L1
is requiring css from a javascript file
you should use the style property instead so:

it doesn't break when you try requiring the library
you can use you own style-sheet if you want

Check out how bootstrap is doing it: https://github.com/twbs/bootstrap/blob/master/package.json#L20

Great suggestion of the style element. Never seen that before, but will update. I removed the require from index.js in v0.14.3.

Thank you!


Update kubevirt-api version

Signed-off-by: Aviv Turgeman<EMAIL_ADDRESS>📝 Description
Updating the kubevirt-api to version 0.47
side effects:
MigrationPolicy resource has changed in the spec.selectors section which caused some changed to be aligned with the newest version
🎥 Demo

Please add a video or an image of the behavior/changes

/retest

/lgtm


Injecting jQuery with Webpack breaks loading of dependant scripts in WP?

Versions: WordPress 4.8.1 + FoundationPress 2.10.2
I've discovered that the latest FoundationPress deregisters the WordPress bundled jQuery and injects the newer version to app.js with Webpack. There seems to be a sideffect: WordPress thinks it has no jQuery and doesn't load other scripts that has jQuery dependency.
If I leave the bundled jQuery deregistered, but enqueue a later / the latest version from a CDN as FoundationPress did in earlier versions, than everything is working as expected.

@belamezey I would not enqueue jQuery from a CDN as we did in earlier versions, because then you would be loading jQuery twice (both from the CDN + injected with Webpack).
I would think it's a better approach to load jQuery dependant scripts with webpack. Don't you think?
Here is a related thread:
https://stackoverflow.com/questions/28969861/managing-jquery-plugin-dependency-in-webpack

A deregistered jQuery means that webpack must load all jQuery dependant scripts from 3rd party WordPress plugins. At the moment I am still a complete webpack newbie, so I don't know yet if this is feasible.
For now I solved my problem with this approach:

added jQuery as an external in gulpfile.babel.js -> webpackConfig so It's not bundled in
loaded jQuery from CDN and added jquery as a dependency for the webpacked foundation js in enqueue-scripts.php

@belamezey : Hmm, that's clever 🤔  And you have no errors thrown in your console, right?

@olefredrik : Yes, for me npm start / npm run build doesn't throw any error at the console. Also there are no javascript errors in the browser's console.

If that's the case, I think your solution is better than the one I've implemented in the current master branch. Want to make a pull request?

Sorry to jump in here, but this is kind of related. I'm really struggling to get third party js working in the new foundation 6.4.1 now that is using webpacks - are there any simple instructions for doing this in foundationpress?
I'm trying to get scrollmagic working and have installed it with npm install scrollmagic --save but and lost with what you do next!

Want to make a pull request?

@olefredrik I've created a pull request for this issue.

Resolved in https://github.com/olefredrik/FoundationPress/pull/1040
Kudos to @belamezey for fixing this

I know plugins are not supported. However, I am wondering if anybody else has had any problems with some wordpress plugins conflicting with how FP is loading jquery. I'm getting "is not a function" errors. When I test the plugin on Twenty 15, 16, and 17 themes and no errors (plugins work fine). I am wondering if it is related to this thread.


Elastic Scaling Possible?

Hello SocketCluster team,
I was wondering if elastic scaling is possible. Vertical elastic scaling will be a good feature, and horizontal will be more complicated but also possible, for example:
-Server with 4 workers.
-All workers reach maximum, load, spawn a 5th worker.
I think the only current way to do this is by setting a local redis sub/pub and spawn a new socket cluster that connects to that same redis backend.

@mastayoda SC doesn't currently support vertical elastic scaling, but of course it does support elastic horizontal scaling. It should be fairly easy to implement elastic scaling for the number of workers, but it will be tricky to implement elastic scaling for store processes.
Each store process holds a somewhat equal portion of all channels used throughout SC, the Global server-side client (responsible for interacting with the cluster of stores) uses a hash function of the channel name to decide which specific store should handle what channel. If you change the number of stores at runtime (and they already hold some subscriptions internally) - Then the hash function will need to be updated and that will cause existing mappings to be wrong. We would have to come up with a strategy to either redistribute the channels according to the new mapping or do some kind of redirection (I think redirection is the approach Redis uses).
It would be nice to implement it at some point. That said, as far as I know, the number of CPU cores on an instance cannot change at runtime, so having a fixed number of processes shouldn't be too much of a problem.

You can always run a redis server and just dynamically hook up instances as you scale up and down. I made a quick video that explains the connection if you are interested. Here is the link.
Without a loadbalancer:
https://www.youtube.com/watch?v=swjwNsEGz9g&list=PLTxFJWe_410zNJJD0o8njNLv7HidG1CHq&index=18
With SC-Loadbalancer
https://www.youtube.com/watch?v=zmCdIg7NNUg&list=PLTxFJWe_410zNJJD0o8njNLv7HidG1CHq&index=19

Another thing you can do is monitor the cpu usage of the instances using a channel to broadcast the cpu utilization with   require('os').cpus()  for each instance and then use something like hubot to spin up and spin down AWS servers based on load.. you'd have to find a good way to attach them to the load balancer but that shouldn't be too hard.

We now have released Kubernetes config files so you can now run and scale SC horizontally on any Kubernetes infrastructure. See https://github.com/SocketCluster/socketcluster/tree/master/kubernetes

@jondubois was this ever documented? Looking at SCC for its scaling properties using K8s, but need to understand if scaling is something that needs to be handled manually.

@poppahorse You can do it manually if you like; this is feasible if you have a small cluster consisting of only a few machines but it's generally much easier to deploy it to Kubernetes. You can scale using a few simple kubectl commands. This is documented here: https://github.com/SocketCluster/socketcluster/blob/master/scc-guide.md


Error on code line

In the initial code sample:
 bitmap = SKBitmap.Decode(stream);
Should be
 bitmap = SKBitmap.Decode(memStream);
Just so others do not get mislead.
Thanks

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 0be1b0f7-717e-0f91-1901-20794667c4e6
Version Independent ID: a6a29e1b-e6a3-16a3-65c5-d47e9561b534
Content: Displaying SkiaSharp bitmaps - Xamarin
Content Source: docs/xamarin-forms/user-interface/graphics/skiasharp/bitmaps/displaying.md
Product: xamarin
Technology: xamarin-skiasharp
GitHub Login: @davidbritch
Microsoft Alias: dabritch

Agreed. Considering that the line just below mentions that Android does not allow the Stream from the HttpClient to be processed by the main thread except in asynchronous methods, I guess it would be necessary to use memStream instead of stream to lead the Bitmap resource.


Error: Socket hang up

I just received my first button today, so I am in the process of setting it up.  I am running Home Assistant .59.2 on an Ubuntu 16.04 server that sits behind a purchased SSL cert.  Dasher is running on the same machine as HASS. Any ideas?
When I press my dash button, I get the following error:
XXX pressed. Count: 8
[2017-12-10T01:08:09.188Z] there was an error
{ Error: socket hang up
at createHangUpError (_http_client.js:331:15)
at Socket.socketOnEnd (_http_client.js:423:23)
at emitNone (events.js:111:20)
at Socket.emit (events.js:208:7)
at endReadableNT (_stream_readable.js:1056:12)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9) code: 'ECONNRESET' }
My config is as follows:
{"buttons":[
{
"name": "Dudes Meds",
"address": "fc:a6:67:2b:12:43",
"timeout": "60000",
"protocol": "udp",
"url": "https://ssl.hass.address/api/services/input_boolean/turn_on",
"method": "POST",
"headers": {"x-ha-access": "password"},
"body": "{"entity_id": "input_boolean.dude_meds"}"
}
]}
Also tried last line like this, with same error:
"body": {"entity_id": "input_boolean.dude_meds"}

Hello, did you solved?


Issues about "ta" when "USE_LV_ANIMATION" is set to 0

Hi,
In order to save space and make it run fast，i set  #define USE_LV_ANIMATION        0
there are two issues;
1、The cursor will not show，i think it should be show, but not blink；
2、see the code:
passwd_ta = lv_ta_create(cont,NULL);
lv_ta_set_one_line(passwd_ta,true);
lv_obj_align(passwd_ta,cont,LV_ALIGN_CENTER,0,0);
lv_obj_set_size(passwd_ta,200,20);
lv_ta_set_style(passwd_ta,LV_TA_STYLE_BG,&cont_style);
lv_ta_set_pwd_mode(passwd_ta,true);
lv_ta_set_text(passwd_ta,"000000");

Because the animation is closed，the "ta" will show "000000" instead of "******" ； If I delete all text and use a keyboard input some text，the last character will not show ‘*‘；

Hi,
I fixed both of them in dev-5.2. Please test it.

Great! It worked well!

Thanks for the test! :)


IP: Add API to subscribe/unsubscribe to multicast addresses.

This PR fixes #891 issue by adding external API to subscribe and unsubscribe multicast addresses.
Also i have added possibility of setting the multicast promiscuous mode suggested by @nibanks to accept all, where for example we act as an NCP.
There were no external registration for multicast addresses, so i mostly reused same code as it is for unicast addresses.
I follow numenclature of Linux and ip maddr command, so the CLI command is called ipmaddr.
The only problematic case is with command that list multicast addresses. Currently none of the default "ff02::1, ff03::1 etc." are printed, since they are not in the list of multicast addresses. Those addresses are just checked in Netif::IsMulticastSubscribed() method which saves a lot of RAM. So i would vote for leaving it as it is.

Current coverage is 73.48% (diff: 4.58%)

Merging #899 into master will decrease coverage by 0.51%

@@             master       #899   diff @@
==========================================
  Files           113        113
  Lines         16773      16867    +94
  Methods        2325       2344    +19
  Messages          0          0
  Branches       2023       2037    +14
==========================================
- Hits          12411      12394    -17
- Misses         3678       3793   +115
+ Partials        684        680     -4

Powered by Codecov. Last update dc30d43...5492fe7

I rebased and fixed mask variable. Also i applied the promiscuous mode to messages passed up to the host via otReceiveIp6DatagramCallback only as you requested.


How to save full results in txt

How can I save the full results I get from scanning subdomain list. It only saves results which use cloudflare sever to output file . As I'm using termux.
I normally use following command:-
bugscanner-go scan direct -f subdomain.txt -o scanned.txt

output is saved only when success, if you want full output, just use bugscanner-go scan direct -f subdomain.txt > output.txt, but the log file will be verbose


HuggingsFace dataset example give error

Describe the bug

Steps to reproduce the bug
Use link as reference document written https://colab.research.google.com/github/huggingface/datasets/blob/main/notebooks/Overview.ipynb#scrollTo=biqDH9vpvSVz
# Now let's train our model
device = 'cuda' if torch.cuda.is_available() else 'cpu'

model.train().to(device)
for i, batch in enumerate(dataloader):
    batch.to(device)
    outputs = model(**batch)
    loss = outputs.loss
    loss.backward()
    optimizer.step()
    model.zero_grad()
    print(f'Step {i} - loss: {loss:.3}')
    if i > 5:
        break

Error
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
[<ipython-input-44-7040b885f382>](https://localhost:8080/#) in <cell line: 5>()
      5 for i, batch in enumerate(dataloader):
      6     batch.to(device)
----> 7     outputs = model(**batch)
      8     loss = outputs.loss
      9     loss.backward()

[/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py](https://localhost:8080/#) in _call_impl(self, *args, **kwargs)
   1499                 or _global_backward_pre_hooks or _global_backward_hooks
   1500                 or _global_forward_hooks or _global_forward_pre_hooks):
-> 1501             return forward_call(*args, **kwargs)
   1502         # Do not call functions when jit is used
   1503         full_backward_hooks, non_full_backward_hooks = [], []

TypeError: DistilBertForQuestionAnswering.forward() got an unexpected keyword argument 'token_type_ids'

https://github.com/huggingface/datasets/assets/1328316/5d8b1d61-9337-4d59-8423-4f37f834c156
Expected behavior
Run success on Google Colab (free)
Environment info
Windows 11 x64, Google Colab free (my Google Drive just empty about 200 MB, but I don't think it cause problem)

Nice catch @donhuvy, that's because some models don't need the token_type_ids, as in this case, as the example is using distilbert-base-cased, and according to the DistilBert documentation at https://huggingface.co/transformers/v3.0.2/model_doc/distilbert.html, DistilBert doesn’t have token_type_ids, you don’t need to indicate which token belongs to which segment. Just separate your segments with the separation token tokenizer.sep_token (or [SEP])
token_type_ids are neither required in some other well known models such as RoBERTa.

#self-assign

@donhuvy I've created https://github.com/huggingface/datasets/pull/5902 to solve it! 🤗

This has been addressed in #5902.
The Quicktour notebook is deprecated now - please use the notebook version of the Quickstart doc page instead ("Open in Colab" button).


Option to Not Include Future Blog Posts

🧩 Feature request
Description
There should be an option to leave out blog posts that have a date in the future. If these posts are not included in the build, you could "schedule" blog posts.
Describe the solution you'd like
The Scully config file can have a flag for "includeFuturePosts" or something like that. It can default to true so that it doesn't break anything already deployed using Scully. Setting it to false would set the new behavior.

If you used published: false in the frontmatter on your .md file, generates the blog with a random slug. And that non-published blog doesn't appear in certain pieces of the scully routes service.
You can give it a look. Let us know what you think.

Yeah, so I've used that and it works, but then you have to manually change it when you're ready to publish it. It seems like a natural setting to not publish a post with a future date. Then you can trigger a Netlify build each day, for example, and eventually that post will be picked up and published. Does that make sense? It's more about automating it and "scheduling" posts than just having a post not be published.

@aaronfrost @SanderElias @jorgeucano If one of you can point me in the right direction for where to add the check I would be happy to do it. I was looking around and think it may be here, at least potentially. It looks like there is a check there for the published flag being false, and these should essentially be treated as though they have the published flag set to false.

@pjlamb12 You need to set the published to false, as that is the main trigger. After the published is false, the publishDate will override "override" this setting. This is done so there will be no accidental 'unpublish'.

@SanderElias I can do that, I get it, but the problem I see is then you have a whole bunch of posts that are marked as not published but really are. I see this feature as the post being published, thus the published flag being true, just not until the publishDate. Then you don't have to manually change the published flag or anything like that.

@pjlamb12 So, a post without a published false, and a future date doesn't get published at all? So no private slug gets generated?

My thought was that the publishDate had to be today or earlier, and the published flag had to be true for the page to be generated. If I was "scheduling" a post, I'd set it to published true, but put the publishDate for this Friday for example. Each night I have Netlify kick off a rebuild of my site and pick up any new posts. Once Friday comes and the site is rebuilt it would pick up the scheduled post. But if the published flag is false, I can't schedule the post because I'd have to manually change the published flag before it was actually published. Does that make sense?
What I'm explaining is how my site currently works with Jekyll.

@pjlamb12 We talked about this in stand up and we agree. We will work on this.

Perfect, thanks so much!

Another thing I was thinking as I work with Jekyll is that they have a CLI flag or environment flag to force future posts to be provided. I know that complicates things some more, but it's useful for previews (like for reviews by certain people). So if the build flag is not passed, the publish date is the source of truth. If the build flag is set to true, it overrides the publish date.

If @Brocco doesn't finish by 9/17, @jorgeucano take this issue.


ng-select nz-submenu

Version
0.6.8
Environment
node9.3.0 chrome63.0.3239.84 ng-zorro0.6.8
Reproduction link
Steps to reproduce
link：http://bukas.coding.me/zorro/dist/
code：https://coding.net/u/bukas/p/zorro/git
ng build --prod

select and submenu are not normal
What is expected?
ng-select nz-submenu
What is actually happening?
ng-select nz-submenu
Other?

related #816 ,please wait for a moment.

it is a bug of angular-cli caused by uglify-es
you can use https://github.com/NG-ZORRO/ng-zorro-antd/issues/816#issuecomment-353961173 as a temp solution.
more info here.
https://github.com/NG-ZORRO/ng-zorro-antd/issues/817#issuecomment-353962561

related https://github.com/angular/angular-cli/issues/8997


Track send cancellations

We currently track the creation of "send" links by clicks on done "SEND_DONE" but we do not track cancelations (feed > item > cancel link).

@sirpy @patpedrosa Does it still relevant or could be closed / moved to the IceBox ?


three lines of documentation on tools used?

i see no Makefile :(
I see some Eclipse-based IDE any chance to spell out what IDEA this is? is that mxcube? any specific version known to open this project mxcube?
seeing that a lot of code was done two years ago can you mention which GCC is known to work for this source code? i know there are minor nasty differences between 9, 10, 11 and 12

Updated the readme with my versions.
I'm using CubeIDE, I'm not sure what some of those files are for.


Add Then

Pull Request Description
Then is one of the most loved syntactic sugar for Swift. It has been downloaded 128K+ times on the CocoaPods and used on more than 1K apps.
Acceptance Criteria
To be accepted into the Swift source compatibility test suite, a project must:

[x] be an Xcode or swift package manager project
[x] support building on either Linux or macOS
[x] target Linux, macOS, or iOS/tvOS/watchOS device
[x] be contained in a publicly accessible git repository
[x] maintain a project branch that builds against Swift 3.0 compatibility mode
and passes any unit tests
[x] have maintainers who will commit to resolve issues in a timely manner
[x] be compatible with the latest GM/Beta versions of Xcode and swiftpm
[x] add value not already included in the suite
[x] be licensed with one of the following permissive licenses:

BSD
MIT ✅
Apache License, version 2.0
Eclipse Public License
Mozilla Public License (MPL) 1.1
MPL 2.0
CDDL

[x] pass ./check script run

Ensure project meets all listed requirements before submitting a pull request.

@swift-ci test


Ubuntu cheatsheets is needed

Would you like to add a Ubuntu cheat sheet?

Take me off
On Mon, Jul 8, 2019 at 12:21 AM peiji<EMAIL_ADDRESS>wrote:

Would you like to add a Ubuntu cheat sheet?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/kailashahirwar/cheatsheets-ai/issues/93?email_source=notifications&email_token=AF7IDNA6KJV2VYCPLQVV3IDP6LTF3A5CNFSM4H6YUAC2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4G5YZL2A,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AF7IDNA43UWHCMARJXUBQ3LP6LTF3ANCNFSM4H6YUACQ
.

--
JOHN J. SHAY, IV
e<EMAIL_ADDRESS>|  m:<PHONE_NUMBER>
w: jjshay.com  | * l: *linkedin.com/in/jjshay

Yes. Please share that Ubuntu cheatsheet with me.


Data factory pipeline trigger is not activate with ci-cd deployment

I had a daily trigger on a pipeline which was earlier in a deactivated mode on Dev and Test environment.
My deployment is being done using azure devops repo and ci-cd arm templates.
Now, I wanted to activate the trigger and accordingly publish the change in Test environment.
I did following steps:
->Activated trigger in DEV environment.
->Published changes to data factory.
->Verified in ADF repo, the trigger is updated in ARM template.
-> Deployed on TEST environment using Pipeline.
The trigger on Test environment was still in deactivated mode.
Expected behaviour: It should be activated.

Hi @mandarsj - Thank you for sharing your feedback! Since this channel is for driving improvements towards MS Docs, could you provide us with a specific URL of the MS Doc that your feedback is most applicable to? That way, we're able to connect you with the right team that is best suited to address your feedback.

@mandarsj Just following up on my comment above. Let us know if there is a doc that correlates to your feedback, otherwise, we will proceed to close this issue for now.

Since we haven't heard back, we will now proceed to close this thread. If there are further questions regarding this matter, please reopen it and we will gladly continue the discussion.


on click gallery icon custom modal pops up

hi i am siddaramappa front end developer i am new to vue js .... we using this editor in our application we have a custom image library ... on click of the gallery icon we need to open the image gallery modal instead of open the local file location can u please help me out with this thanks!!!!

This issue is stale because it has been open for 60 days with no activity.


Corrupted archive when download interrupted

As described here it appears it's possible to interrupt a CMR download and end up with a corrupted archive.

I noticed a similar behavior with ModuleCopycat used by CeylonCopyTool, where if configured in a way that the source and destination files were the same, it appeared to:

Validate the src sha1
Make the copy (but with src==dst, the result was a 0 byte file)
Create a new sha1 in the destination location, blessing the 0 byte file as correct (the new file was never checked against the original sha1.)

For both of these, it would seem correct to do something like copy/download to a tmp file in the destination directory, validate the sha1, then move/rename the validated file.

Yay!

Awesome!


Responsive DatePicker broken in v4-alpha.8

https://v4-0-0-alpha-8.material-ui-pickers.dev/demo/datepicker#responsiveness

What do you mean by it's broken? Do you have a reproduction?

Correct behavior
https://v4-0-0-alpha-6.material-ui-pickers.dev/demo/datepicker#responsiveness
https://v4-0-0-alpha-8.material-ui-pickers.dev/demo/datepicker#responsiveness

@xiaoyu-tamu The description of the section is wrong. We forgot to update it. Do you want to work in it? :)

Date/Time pickers experience is extremely different on mobile and desktop. Here is how components will look on different devices. The default Datepicker component is responsive, which means that Mobile or Desktop mode will be rendered according to device viewport.

The desktop vs mobile split is determined by the pointer support of the device. If the pointer is touch, it uses the Mobile version. If the pointer is fine (mouse), it uses the Desktop version.


Analytical Beam Solution in BeamDyn

Hello,
Does anyone here can help me to find an analytical solution for a concentrated point load at the tip in order to compare with BeamDyn results like the one for the concentrated  moment at the tip which is already exists in Qi Wang et al.
Thank you in advance.
Kind regards,
Pouria AMOUZADRAD

Hi,
For straight beams of constant properties, you can find these results in the book: "Roark's Formulas for Stress and Strain" by Young, in the chapter about beams and bars. It's usually in the first table, labelled "Shear, moment, slope, and deflection formulas for elastic straight beams".
For the 6th edition: Ch7, Table 3, page 100.
For the 7th edition: Ch8, Table 8.1, page 189.

Dear @ebranlard ,
There is an analytical solution to calculate tip displacements with a concentrated moment at the tip here in https://www.nrel.gov/docs/fy14osti/60759.pdf at the end of page 6.
The one that I want is to find an analytical solution for a point load at the tip for each X,Y and Z direction.

For a geometrically exact beam, I actually don't know! Maybe someone else can pitch in.


Suggestion only: Overrides should display more information in the main list

Similar to #133
This seems easier to add than my last suggestion about overrides. I'm trying to locate some sub-entities of regular entities in a list, but that is not easy, because their parameters are stored in overrides with names like this (F7-31-F5-76) F7-31-F5-76 (*OVERRIDE*). And for example to locate a "RotateStripLight"'s sub-entity RotateStripLight_Head with an override you have to look through all of the ones with obscure numbers and keep looking at the top right corner to see the actual entities they are connected to in the parameters section:

What could be done instead is to keep the obscure names, but after (*OVERRIDE*) it should also display the entity which it is actually overriding. Like this:
(F7-31-F5-76) F7-31-F5-76 (*OVERRIDE*) (RotateStripLight_8 -> RotateStripLight_Head)
Having it shown like this in the main list will make searching for it easier and if it gets in your way while searching for composites there can be an option to filter it, but that's for a future suggestion that I'm still not sure about posting which is related to sorting and filtering search results.

Just updated staging to present them like this:

Feels a lot better! I might go one step further eventually and list the overrides on the composite instance they're pointing to the children to to save them clogging up the entity list.

Thank you! If you are thinking of making the overrides and proxies show only the child entity they are pointing to, without showing the full paths to prevent the list from being clogged up, I suggest that you make this a setting for the user to enable. For example: If we have an override going through Wall_5 -> TechWall_Light_B_1 it will only show TechWall_Light_B_1 (The child composite in this case) without showing "Wall_5" and that will affect searching for that specific light on that specific wall. Instead you will get a lot of TechWall_Light_B_1s and you won't know on which wall they are on unless you click on them and in a lot of levels walls are added a lot of times and a lot of them have lights with the same names so you will have to start looking through all overrides with the name TechWall_Light_B_1 to locate in this case "Wall_5". But this is only if you are planning on it showing only the child entities. The setting can be called something like "Show child components only for entity references in the entity list".


Add Rust's Cargo Package and Release Ecosystems

Description
Since Rust is going to be supported, it's better to support cargo distribution natively.
Expected Behavior
Rust cargo is supported natively.
Current Behavior
Rust cargo is not supported.
Associated Data Files
No response

Accepted.

Released in https://github.com/ChewKeanHo/AutomataCI/releases/tag/v2.0.0


Add initial Command Pallette addon

This is one I'm pretty excited about.
It takes the Command Pallette pattern from Slack, GitHub, etc.,
and adds it to any documentation page.
I think this could be an interesting UX for our future UX,
and enable a lot of really interesting power user features.
The really nice thing is that it's totally based on a keyboard shortcut,
so doesn't require any UX, and generally folks won't want to disable it.
Demo
https://github.com/user-attachments/assets/a230d721-1487-4afe-b95a-9df091cff327
Requires https://github.com/readthedocs/readthedocs.org/pull/11791

I think this is an interesting idea to explore more 👍🏼 . It seems we don't need to create a different addon and UI for this and it can probably be integrated with the search addon -- like a feature of the search addon: you type anything and you see the results for the "commands" and for the "search" in the same UI.

@humitos any additional thoughts here ^^
I still think the Command Pallette is a powerful UX for exposing a bunch more functionality to users, and would love to get at least a internal-only test going at some point soonish.

This implementation copies a lot of the search code/UI which, unfortunately, is the least polished one. I mentioned in another comment that I'd like to see the Command Palette and Search UI combined, making these command items inside the same UI.

This is what I was asking for feedback on, was my discussion about this above: https://github.com/readthedocs/addons/pull/449#issuecomment-2498538315
In particular, how does it make sense to combine things that are realtime lookups with search lookups that are delayed. I think that's going to be a much harder UX challenge.
I do think the Command Palette concept could be a pretty powerful thing to expose, and give us a bunch more functionality that we can add outside of the Flyout, but mostly for advanced users. I think if we shipped it, I would use it on our docs everyday tho, which I think is a pretty powerful vote for it being something powerful.

In particular, how does it make sense to combine things that are realtime lookups with search lookups that are delayed. I think that's going to be a much harder UX challenge.

We can show the results from commands immediately at the top, and below them in another section, the results that comes from the search API. Long search queries won't have any result from commands so that section won't be shown in those cases. We can distinct these sections/results visually somehow.


Make TensorFlow compatible with PyPy

I know it's not a priority and will be a long way to get there; but making TF compatible with PyPy woud be super cool.
Thoughts?

As a team we don't use PyPy day-to-day, but we would welcome contributions if it's easy to do this without breaking CPython compatibility.
My guess is that the two stumbling blocks would be TensorFlow's reliance on NumPy in the Python front-end, and SWIG for interfacing with the C++ backend. Are you aware of any other issues that one would face?

I'm not sure what the state of PyPy binding layers is these days, but there's a good chance this would require rewriting the whole swig interface.

PyPy only good interface with native code seems to be CFFI, but it is a C <-> Python, and besides being slower on CPython, it would be painful to interface with C++ (Python <-> C <-> C++).

The medium term plan for language bindings is to go through the C API.  We're in the process of moving functionality from Python to C++, at which point it will also be exposed through an extended C API.  Moving stuff out of Python to C++ isn't relevant for PyPy, but the improved C API might make it easy to write a separate PyPy interface.

Great news from the side of PyPy: since version 5.6.0 (released in November) the devs included a compatibility layer for the CPython C-API (cpyext) (see also here). With this, I was able to build numpy, scipy and sklearn out-of-the box, so finally machine learning with pypy gets interesting.
Of course I wanted to then also check tensorflow, with pretty good results! The build completes successfully out-of-the box (!!), so no need to adapt any interfaces. However, import tensorflow then fails with the well-known "ImportError: No module named _pywrap_tensorflow" (of course not from the tensorflow directory). Looking into it, ldd -r _pywrap_tensorflow.so gave me some "undefined symbol: PyPy...." errors, indicating that just an additional link command during the build could fix the issue! Since I'm not so familiar with bazel, I didn't go further to resolve it...

@classner Very cool!  Presumably you have to link against a cpyext library.  @martinwicke Who would be the right person to ask for assistance here?

@classner can you try the cmake build? If you can make that work, then we know what needs to be added, and we can put it into the bazel build. Bazel really wants all its dependencies declared, so it would be good to have a clear picture of what exactly is missing.

Just posted on the pypy dev mailing list to get a bit more input from that side! Will post further info here...

One of the devs was incredibly quick to reply: apparently, all the symbols I mentioned are part of libpypy-c.so, which is in the bin folder of the pypy distribution. I'm currently super-short on time and can't look at it right now, but could do sometime during the next weeks.

Alright, managed to build with bazel and cmake successfully (v1.0.0-rc0). The trick to make it work is to rename the generated _pywrap_tensorflow.so to _pywrap_tensorflow.pypy-XX.so, where XX is the pypy version code (in my case 41 for pypy 5.6.0). With this naming scheme, import tensorflow works nicely. So second base touched.
This part of the 'get started' code runs:
import tensorflow as tf
import numpy as np

# Create 100 phony x, y data points in NumPy, y = x * 0.1 + 0.3
x_data = np.random.rand(100).astype(np.float32)
y_data = x_data * 0.1 + 0.3

# Try to find values for W and b that compute y_data = W * x_data + b
# (We know that W should be 0.1 and b 0.3, but TensorFlow will
# figure that out for us.)
W = tf.Variable(tf.random_uniform([1], -1.0, 1.0))
b = tf.Variable(tf.zeros([1]))
y = W * x_data + b

# Minimize the mean squared errors.
loss = tf.reduce_mean(tf.square(y - y_data))
optimizer = tf.train.GradientDescentOptimizer(0.5)
train = optimizer.minimize(loss)

# Before starting, initialize the variables.  We will 'run' this first.
init = tf.global_variables_initializer()

# Launch the graph.
sess = tf.Session()

sess.run(init) fails with a TypeError:
TypeError: in method 'TF_DeleteBuffer', argument 1 of type 'TF_Buffer *'.

Any feedback on this from the interface developers? Could this TypeError be resolved easily?

Can you provide more information about the TypeError? From looking at session.py, it seems the most likely candidate for raising this exception is this line. What type does run_metadata_ptr have in your version of the code?

The line in question is indeed causing the TypeError. This is what I get when adding an ipdb breakpoint just before:
    772       import ipdb; ipdb.set_trace()
--> 773       tf_session.TF_DeleteBuffer(run_metadata_ptr)
    774       if options:

ipdb> run_metadata_ptr
<tensorflow.python.pywrap_tensorflow.TF_Buffer;  >
ipdb> type(run_metadata_ptr)
<class 'tensorflow.python.pywrap_tensorflow.TF_Buffer'>
ipdb> n
TypeError: "in method 'TF_DeleteBuffer', argument 1 of type 'TF_Buffer *'"

(str and repr don't give any more helpful information)

I don't have anything constructive to say, but I can't resist chiming in to gripe about error messages of one of these two forms:

"You gave me an X.  I expected something else!"
"I expected a Y.  You gave me something else!"

Head...desk.

@girving Unfortunately that error message is in generated code. Maybe take it up with the authors of https://github.com/swig/swig? :)
Judging by that generated code, we seem to be in case 2 ("I expected a TF_Buffer*"). SWIG converts this C type to and from a pointer-wrapper object. I don't know enough about PyPy or cpyext to know if this type could be getting swizzled somehow. Here are the relevant generated code fragments for the wrappers for TF_NewBuffer() and TF_DeleteBuffer():
SWIGINTERN PyObject *_wrap_TF_NewBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  TF_Buffer *result = 0 ;

  if (!PyArg_ParseTuple(args,(char *)":TF_NewBuffer")) SWIG_fail;
  {
    Py_BEGIN_ALLOW_THREADS;
    result = (TF_Buffer *)TF_NewBuffer();
    Py_END_ALLOW_THREADS;
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TF_Buffer, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}

SWIGINTERN PyObject *_wrap_TF_DeleteBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  TF_Buffer *arg1 = (TF_Buffer *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;

  if (!PyArg_ParseTuple(args,(char *)"O:TF_DeleteBuffer",&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TF_Buffer, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TF_DeleteBuffer" "', argument " "1"" of type '" "TF_Buffer *""'");
  }
  arg1 = reinterpret_cast< TF_Buffer * >(argp1);
  {
    Py_BEGIN_ALLOW_THREADS;
    TF_DeleteBuffer(arg1);
    Py_END_ALLOW_THREADS;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}

I was able to reproduce @classner steps for tensorflow 1.2 with CUDA for pypy3 version 5.8.0-beta0 (Python 3.5.3). In order to do this, _pywrap_tensorflow_internal.so library in site-packages/tensorflow/python needs to be renamed to _pywrap_tensorflow_internal.pypy3-58-x86_64-linux-gnu.so. I am getting a slightly different error during sess.run:
$ LD_LIBRARY_PATH=/usr/local/cuda/lib64 pypy3.5

Python 3.5.3 (a37ecfe5f142bc971a86d17305cc5d1d70abec64, Jun 08 2017, 19:43:54)
[PyPy 5.8.0-beta0 with GCC 6.3.0] on linux

>>>> import tensorflow as tf
>>>> x = tf.constant(1)
>>>> y = tf.constant(2)
>>>> z = x * y
>>>> with tf.Session() as sess:
....     sess.run(z)
....
2017-07-20 14:43:47.795964: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:893] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2017-07-20 14:43:47.796979: I tensorflow/core/common_runtime/gpu/gpu_device.cc:940] Found device 0 with properties:
name: GeForce GTX 1080
major: 6 minor: 1 memoryClockRate (GHz) 1.936
pciBusID 0000:01:00.0
Total memory: 7.92GiB
Free memory: 7.67GiB
2017-07-20 14:43:47.796992: I tensorflow/core/common_runtime/gpu/gpu_device.cc:961] DMA: 0
2017-07-20 14:43:47.796995: I tensorflow/core/common_runtime/gpu/gpu_device.cc:971] 0:   Y
2017-07-20 14:43:47.797003: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1030] Creating TensorFlow device (/gpu:0) -> (device: 0, name: GeForce GTX 1080, pci bus id: 0000:01:00.0)
Traceback (most recent call last):
  File "<stdin>", line 2, in <module>
  File "/home/andrew/.virtualenvs/tensorflow_pypy/site-packages/tensorflow/python/client/session.py", line 780, in run
    run_metadata_ptr = tf_session.TF_NewBuffer()
TypeError: argument after * must be an iterable, not NoneType

It seems that the first line in session.run fails to execute.

I'm quite interested in this working under pypy. I didn't have any luck with CNTK either but I've discovered that Theano actually works under pypy (with some minor hacks), so for now, it seems I'll be using that instead.

I think the TypeError: argument after * must be an iterable, not NoneType error is due to using an old version of SWIG. Could you make sure you are using a version after 4.0.0?

Any news regarding this matter?
@classner @standy66 do you mind sharing instructions how you reached that point?

I think this issue is closed by mistake. The #252 referenced in 913871c's message is actually https://github.com/tensorflow/mlir/pull/252, not this issue.

I ran into issues with pypy3 and pybind11 -
The error is not being able to find 'frame'
https://github.com/tensorflow/tensorflow/blob/v1.15.2/tensorflow/python/util/tf_stack.cc#L63
This was about missing members something like
https://github.com/pybind/pybind11/issues/982
SOABI : pypy36-pp73
Using pypy (pypy-41 - 5.10.0), am stuck at the TypeError ( re-created @classner 's output ).

SOABI : pypy36-pp73. Using pypy (pypy-41 - 5.10.0)

I am confused. Are you using the latest release of PyPy (v7.3.1)? What is pypy-41 - 5.10.0?

@mattip , sorry for the confusion, when pypy3 failed, i tried to make it work with pypy.

I am not sure it will help, but if it is not too much trouble could you try with pypy3.6-v7.3.1 and pybind11 using this PR pybind/pybind11#2146?

pypy3: pypy3.6-v7.3.1
Version: 2.4.dev4 (after applying fixes: https://github.com/pybind/pybind11/pull/2146 )
Here is the trace back.
tensorflow/python/util/tf_stack.cc: In function 'std::vectortensorflow::{anonymous}::StackFrame tensorflow::{anonymous}::ExtractStack(ssize_t, const pybind11::list&, const pybind11::list&)':
tensorflow/python/util/tf_stack.cc:56:36: error: 'const struct _ts' has no member named 'frame'
const PyFrameObject* f = tstate->frame->f_back;  // TODO(slebedev): INCREF?
^~~~~
tensorflow/python/util/tf_stack.cc:61:51: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (; f != nullptr && (limit < 0 || ret.size() < limit); f = f->f_back) {
~^
tensorflow/python/util/tf_stack.cc:61:68: error: 'const PyFrameObject {aka const struct _frame}' has no member named 'f_back'
for (; f != nullptr && (limit < 0 || ret.size() < limit); f = f->f_back) {
^~
tensorflow/python/util/tf_stack.cc:63:18: error: 'PyFrame_GetLineNumber' was not declared in this scope
int lineno = PyFrame_GetLineNumber(const_cast<PyFrameObject*>(f));
^~~~~~~~~~~~~~~~~~~~~
tensorflow/python/util/tf_stack.cc:63:18: note: suggested alternative: 'PyFile_GetLine'
int lineno = PyFrame_GetLineNumber(const_cast<PyFrameObject*>(f));
^~~~~~~~~~~~~~~~~~~~~
PyFile_GetLine
tensorflow/python/util/tf_stack.cc:85:39: error: 'struct PyCodeObject' has no member named 'co_firstlineno'; did you mean 'co_filename'?
const int func_start_lineno = co->co_firstlineno;
^~~~~~~~~~~~~~
co_filename

@mattip , was able to get it working with with tensorflow 1.14.0
Here, i ran into this error:
buf = c_api.TF_NewBuffer()
TypeError: argument after * must be an iterable, not NoneType
Do you suggest any pending prs to fix this?
Thanks for the help.

@arjunc77 that sounds familiar: looking higher in the thread I see a similar comment. Could you make sure you are using SWIG > 4.0.0 to generate the wrappers?

Thanks @mattip , that helped.
There could be a better way to update swig, but here is what worked for me.
https://github.com/tensorflow/tensorflow/compare/v1.14.0...arjunc77:v1.14.0_pypy3_fixes

I finally made my pypy compatible in tensorflow.

@SungmanHong can you share the formula? What did you need to do?

I finally made my pypy compatible in tensorflow. It works good but tf.conv layer is still not working yet in my pypy

Could you please help me on that? I also desperately want my tensorflow to be compatible with pypy <33 Thank you!

What is the status of this issue ? Is there any progress ?

@SungmanHong

I finally made my pypy compatible in tensorflow. It works good but tf.conv layer is still not working yet in my pypy

Could you share receipt how you did this ? Or maybe article ?

@mrry Do you have some plan to support PyPy ?

We have removed SWIG, so there's a chance it works now? We do not
officially support it, but maybe we're lucky.

We have removed SWIG, so there's a chance it works now? We do not officially support it, but maybe we're lucky.

@martinwicke I have tried a few seconds ago to install tensorflow on PyPy and it still does not work ...
What do you mean that it could work ?

@redradist: did you try with the latest nightly from http://buildbot.pypy.org/nightly/py3.6  and latest HEAD of tensorflow? Was the error similar to the one above?

@mattip I have tried and got the following error:
WARNING: Download from https://mirror.bazel.build/github.com/aws/aws-sdk-cpp/archive/1.7.336.tar.gz failed: class com.google.devtools.build.lib.bazel.repository.downloader.UnrecoverableHttpException GET returned 404 Not Found
ERROR: An error occurred during the fetch of repository 'aws':
   java.io.IOException: Error extracting /home/redra/.cache/bazel/_bazel_redra/41d86d998710872df1eae1e2464f95b2/external/aws/1.7.336.tar.gz to /home/redra/.cache/bazel/_bazel_redra/41d86d998710872df1eae1e2464f95b2/external/aws: writing file failed
ERROR: /mnt/i/tensorflow/tensorflow/tools/pip_package/BUILD:171:1: //tensorflow/tools/pip_package:licenses depends on @aws//:LICENSE in repository @aws which failed to fetch. no such package '@aws//': java.io.IOException: Error extracting /home/redra/.cache/bazel/_bazel_redra/41d86d998710872df1eae1e2464f95b2/external/aws/1.7.336.tar.gz to /home/redra/.cache/bazel/_bazel_redra/41d86d998710872df1eae1e2464f95b2/external/aws: writing file failed
ERROR: Analysis of target '//tensorflow/tools/pip_package:build_pip_package' failed; build aborted: no such package '@aws//': java.io.IOException: Error extracting /home/redra/.cache/bazel/_bazel_redra/41d86d998710872df1eae1e2464f95b2/external/aws/1.7.336.tar.gz to /home/redra/.cache/bazel/_bazel_redra/41d86d998710872df1eae1e2464f95b2/external/aws: writing file failed

Are you sure this error is pypy-specific?

Are you sure this error is pypy-specific?

@mattip No, this error relates to TensorFlow build from master HEAD
pypy-latest works properly ...

OK, my directions should have been "latest pypy3.6 nightly and latest tensorflow that successfully builds with cpython3.6"

Does anyone have any specific instructions for making this work?  I tried both version 2.3.1 (my desired version) and trying to pip install from the git repo and got this message:
[user@ba cli]$ sudo /opt/pypy3/current/bin/pypy3 -m pip install git+https://github.com/tensorflow/tensorflow.git@master
sudo: unable to resolve host ba
Collecting git+https://github.com/tensorflow/tensorflow.git@master
  Cloning https://github.com/tensorflow/tensorflow.git (to revision master) to /tmp/pip-req-build-dpufquz5
    ERROR: Command errored out with exit status 1:
     command: /opt/pypy3/current/bin/pypy3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-dpufquz5/setup.py'"'"'; __file__='"'"'/tmp/pip-req-build-dpufquz5/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-ed0ud5zb
         cwd: /tmp/pip-req-build-dpufquz5/
    Complete output (5 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/opt/pypy3/current/lib-python/3/tokenize.py", line 452, in open
        buffer = _builtin_open(filename, 'rb')
    FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pip-req-build-dpufquz5/setup.py'
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
WARNING: You are using pip version 20.2.4; however, version 20.3.3 is available.
You should consider upgrading via the '/opt/pypy3/current/bin/pypy3 -m pip install --upgrade pip' command.

Does anyone have any specific instructions for making this work?  I tried both version 2.3.1 (my desired version) and trying to pip install from the git repo and got this message:
[user@ba cli]$ sudo /opt/pypy3/current/bin/pypy3 -m pip install git+https://github.com/tensorflow/tensorflow.git@master
sudo: unable to resolve host ba
Collecting git+https://github.com/tensorflow/tensorflow.git@master
  Cloning https://github.com/tensorflow/tensorflow.git (to revision master) to /tmp/pip-req-build-dpufquz5
    ERROR: Command errored out with exit status 1:
     command: /opt/pypy3/current/bin/pypy3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-dpufquz5/setup.py'"'"'; __file__='"'"'/tmp/pip-req-build-dpufquz5/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-ed0ud5zb
         cwd: /tmp/pip-req-build-dpufquz5/
    Complete output (5 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/opt/pypy3/current/lib-python/3/tokenize.py", line 452, in open
        buffer = _builtin_open(filename, 'rb')
    FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pip-req-build-dpufquz5/setup.py'
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
WARNING: You are using pip version 20.2.4; however, version 20.3.3 is available.
You should consider upgrading via the '/opt/pypy3/current/bin/pypy3 -m pip install --upgrade pip' command.

Hello everyone,
I downloaded the latest pypy nightly build with python 3.6 using https://buildbot.pypy.org/nightly/py3.6/pypy-c-jit-latest-linux64.tar.bz2 as suggested (pypy-c-jit-101029-118564033d0a-linux64) previously as well as trying to get the latest head of tensorflow. I have been trying to get tensorflow 2 to work in a PyPy venv using
Python 3.6.12 (118564033d0a, Nov 26 2020, 02:00:26)
[PyPy 7.3.4-alpha0 with GCC 7.3.1 20180303 (Red Hat 7.3.1-5)] on linux
pip 21.1.1 on pypy-venv

But I have been having issues. I have followed this thread and some other issue posts, but I remain unable to advance.
First off, running pip install tensorflow or pip install tf-nightly just returns the following error:
ERROR: Could not find a version that satisfies the requirement tf-nightly (from versions: none)
ERROR: No matching distribution found for tf-nightly

I then tried to compile tensorflow from source in the PyPy venv and, after installing the requisites and configuring the environment, the following error log occurs during bazel build //tensorflow/tools/pip_package:build_pip_package:
bazel build //tensorflow/tools/pip_package:build_pip_package
Starting local Bazel server and connecting to it...
INFO: Options provided by the client:
  Inherited 'common' options: --isatty=1 --terminal_columns=83
INFO: Reading rc options for 'build' from /root/prema-rpi/tensorflow/.bazelrc:
  Inherited 'common' options: --experimental_repo_remote_exec
INFO: Reading rc options for 'build' from /root/prema-rpi/tensorflow/.bazelrc:
  'build' options: --define framework_shared_object=true --java_toolchain=@tf_toolchains//toolchains/java:tf_java_toolchain --host_java_toolchain=@tf_toolchains//toolchains/java:tf_java_toolchain --define=use_fast_cpp_protos=true --define=allow_oversize_protos=true --spawn_strategy=standalone -c opt --announce_rc --define=grpc_no_ares=true --noincompatible_remove_legacy_whole_archive --noincompatible_prohibit_aapt1 --enable_platform_specific_config --define=with_xla_support=true --config=short_logs --config=v2
INFO: Reading rc options for 'build' from /root/prema-rpi/tensorflow/.tf_configure.bazelrc:
  'build' options: --action_env PYTHON_BIN_PATH=/root/prema-rpi/venv-pypy3.6/bin/python3 --action_env PYTHON_LIB_PATH=/root/prema-rpi/venv-pypy3.6/site-packages --python_path=/root/prema-rpi/venv-pypy3.6/bin/python3
INFO: Found applicable config definition build:short_logs in file /root/prema-rpi/tensorflow/.bazelrc: --output_filter=DONT_MATCH_ANYTHING
INFO: Found applicable config definition build:v2 in file /root/prema-rpi/tensorflow/.bazelrc: --define=tf_api_version=2 --action_env=TF2_BEHAVIOR=1
INFO: Found applicable config definition build:linux in file /root/prema-rpi/tensorflow/.bazelrc: --copt=-w --host_copt=-w --define=PREFIX=/usr --define=LIBDIR=$(PREFIX)/lib --define=INCLUDEDIR=$(PREFIX)/include --define=PROTOBUF_INCLUDE_PATH=$(PREFIX)/include --cxxopt=-std=c++14 --host_cxxopt=-std=c++14 --config=dynamic_kernels
INFO: Found applicable config definition build:dynamic_kernels in file /root/prema-rpi/tensorflow/.bazelrc: --define=dynamic_loaded_kernels=true --copt=-DAUTOLOAD_DYNAMIC_KERNELS
INFO: Analyzed target //tensorflow/tools/pip_package:build_pip_package (414 packages loaded, 33390 targets configured).
INFO: Found 1 target...
[10,060 / 15,182] 8 actions running
INFO: Found 1 target...
ERROR: /tensorflow/tensorflow/python/util/BUILD:367:11: C++ compilation of rule '//tensorflow/python/util:stack_trace' failed (Exit 1): gcc failed: error executing command /usr/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 '-D_FORTIFY_SOURCE=1' -DNDEBUG -ffunction-sections ... (remaining 74 argument(s) skipped)
In file included from tensorflow/python/util/stack_trace.cc:16:0:
./tensorflow/python/util/stack_trace.h: In static member function 'static tensorflow::StackTrace tensorflow::StackTrace::Capture(int)':
./tensorflow/python/util/stack_trace.h:64:55: error: 'PyThreadState {aka struct _ts}' has no member named 'frame'
     const PyFrameObject* frame = PyThreadState_GET()->frame;
                                                       ^~~~~
./tensorflow/python/util/stack_trace.h:66:58: error: 'const PyFrameObject {aka const struct _frame}' has no member named 'f_back'
     for (; i < limit && frame != nullptr; frame = frame->f_back, ++i) {
                                                          ^~~~~~
./tensorflow/python/util/stack_trace.h:71:67: error: 'const PyFrameObject {aka const struct _frame}' has no member named 'f_lasti'
       result.code_objs_.push_back(std::make_pair(code_obj, frame->f_lasti));
                                                                   ^~~~~~~
tensorflow/python/util/stack_trace.cc: In member function 'std::vector<tensorflow::StackFrame> tensorflow::StackTrace::ToStackFrames(const StackTraceMap&, const StackTraceFilter&, bool, int) const':
tensorflow/python/util/stack_trace.cc:58:77: error: 'PyCode_Addr2Line' was not declared in this scope
     const int line_number = PyCode_Addr2Line(code_obj.first, code_obj.second);
                                                                             ^
Target //tensorflow/tools/pip_package:build_pip_package failed to build
Use --verbose_failures to see the command lines of failed build steps.
ERROR: /tensorflow/tensorflow/lite/python/BUILD:59:10 C++ compilation of rule '//tensorflow/python/util:stack_trace' failed (Exit 1): gcc failed: error executing command /usr/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 '-D_FORTIFY_SOURCE=1' -DNDEBUG -ffunction-sections ... (remaining 74 argument(s) skipped)
INFO: Elapsed time: 2992.692s, Critical Path: 109.58s
INFO: 9434 processes: 124 internal, 9310 local.
FAILED: Build did NOT complete successfully

As @martinwicke mentioned, since SWIG was removed I did not apply any fix to pybind like mentioned in https://github.com/pybind/pybind11/pull/2146.
I have also tried to install it by using the google storage links provided in the tensorflow installation docs:
python3 -m pip install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow_cpu-2.5.0-cp36-cp36m-manylinux2010_x86_64.whl

but I get the error:
ERROR: tensorflow_cpu-2.5.0-cp36-cp36m-manylinux2010_x86_64.whl is not a supported wheel on this platform.

I have also tried changing from manylinux2010 to manylinux1 to solve this, but it also did not work.
Looking for most of these issues online leads me to 64 and 32 bit conflicts, but I have made sure that I am running the proper 64bit version.
I have also tried doing the pip install with the latest tensorflow git head as source. I dont get any output after cloning and tensorflow remains not installed.
pypy -m pip install git+https://github.com/tensorflow/tensorflow.git@master

Collecting git+https://github.com/tensorflow/tensorflow.git@master
  Cloning https://github.com/tensorflow/tensorflow.git (to revision master) to /tmp/pip-req-build-y109k5h2
  Running command git clone -q https://github.com/tensorflow/tensorflow.git /tmp/pip-req-build-y109k5h2

I have come across several installation issues with other libraries in pypy, but I have usually been able to resolve them either by compiling from source or falling back to a specific version. Tensorflow is being rather stuborn.
Something of note is that I am able to import tensorflow but unable to actually use any module like from tensorflow import keras or tensorflow.zeroes[int].
If I freeze pip, tensorflow does not appear in the list.
I have also tried with the latest releases of PyPy using python 3.7 and python 3.8, with varying degrees of success. The 3.6 version I am trying now seems to be having better results, considering compatibility with other libraries I am using. @mattip are there any other directions you could give?

You will not find a binary package available for PyPy, so the attempts to do pip install will not succeed. As for python3.6/python3.7: python3.6 is in security-fix only support. Many package maintainers like numpy and scipy have dropped support for it, as has PyPy. Please use 3.7.
Since there are no binary packages, you will have to build from source. The relevant information in your analysis is:

The code in ./tensorflow/python/util/stack_trace.h 'static tensorflow::StackTrace tensorflow::StackTrace::Capture(int)' will not compile on PyPy. The best strategy here is for tensorflow to adopt the workaround from pybind11
PyCode_Addr2Line is not implemented in PyPy. That API call is undocumented and not implemented in PyPy. I opened an issue for this in the PyPy issue tracker.

I finally made my pypy compatible in tensorflow. It works good but tf.conv layer is still not working yet in my pypy

Hi, could you share your method?

just use lua torch or something 😋😋

Hi,
Thank you for opening this issue. Since this issue has been open for a long time, the code/debug information for this issue may not be relevant with the current state of the code base.
The Tensorflow team is constantly improving the framework by fixing bugs and adding new features. We suggest you try the latest TensorFlow version with the latest compatible hardware configuration which could potentially resolve the issue. If you are still facing the issue, please create a new GitHub issue with your latest findings, with all the debugging information which could help us investigate.
Please follow the release notes to stay up to date with the latest developments which are happening in the Tensorflow space.
Thank you!


chore: Use latest base image

/ok-to-test
/lgtm

Cancelled the job, @msvticket can you remove this?
https://github.com/jenkins-x-plugins/jx-changelog/blob/b71483dd320b8240026b201e573bf98bfe3edbf5/.lighthouse/jenkins-x/pullrequest.yaml#L17-L19

Done


[Extensibility enhancement] Codeunit 12 new parameters for OnBeforeInitGLEntry

Hello, please add the following parameters to the OnBeforeInitGLEntry event in codeunit 12 Gen Jnl. Post Line:
    [IntegrationEvent(false, false)]
    local procedure OnBeforeInitGLEntry(var GenJournalLine: Record "Gen. Journal Line"; GLAccNo: Code[20]; SystemCreatedEntry: Boolean)
    begin
    end;

And modify the InitGLEntry procedure accordingly:

    procedure InitGLEntry(GenJnlLine: Record "Gen. Journal Line"; var GLEntry: Record "G/L Entry"; GLAccNo: Code[20]; Amount: Decimal; AmountAddCurr: Decimal; UseAmountAddCurr: Boolean; SystemCreatedEntry: Boolean)
    var
        GLAcc: Record "G/L Account";
    begin
        OnBeforeInitGLEntry(GenJnlLine, GLAccNo, SystemCreatedEntry);
        [...]
    end;

Thanks

We cannot change signature of public procedure InitGLEntry, so your request cannot be implemented. Please make another suggestion,

Hi there, I didn't suggest to change the signature of the InitGLEntry procedure; my suggestion regards the event OnBeforeInitGLEntry.
Here it is, from a recent daily:
    [IntegrationEvent(false, false)]
    local procedure OnBeforeInitGLEntry(var GenJournalLine: Record "Gen. Journal Line")
    begin
    end;

And here's how I suggested it should become:
    [IntegrationEvent(false, false)]
    local procedure OnBeforeInitGLEntry(var GenJournalLine: Record "Gen. Journal Line"; GLAccNo: Code[20]; SystemCreatedEntry: Boolean)
    begin
    end;

What should be changed in the InitGLEntry procedure is just how this event is raised.
I kindly ask you to please reconsider my proposal.
Thank you!

Clear, we will add parameters

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability.


chore: release 0.19.1

:robot: I have created a release *beep* *boop*
0.19.1 (2021-08-03)
Bug Fixes

fix docsRouteBasePath or blogRouteBasePath set to "/" (a1b1df6)
fix search page ignore (9841cc8)
refine get site config (e215a1a)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/easyops-cn/docusaurus-search-local/releases/tag/v0.19.1 :sunflower:

Coverage remained the same at 78.316% when pulling 5f4bbd030b59b79aa635176b4a7b990d74f14a8f on release-v0.19.1 into 18402b1b193f8d0fbd689a28fec9b822eed91ad8 on master.


Foxx disabling development mode creates non-deterministic service bundle

my environment running ArangoDB
I'm using the latest ArangoDB of the respective release series:

[x] self-compiled devel branch

Foxx
After disabling the development mode of a service the created bundle (zip) isn't deterministic - the file order in the bundle depends on OS and file system - and so the service checksum isn't deterministic too.

We're pleased to anounce that ArangoDB 3.2 containing this is now available for download - Closing.


Add .embed! method to retroactively generate and save embedding for all records

Motivation
Once a user adds vectorsearch (by using the generators) to their ActiveRecord model, they need to be able to retro-actively generate and save embeddings for existing records. We need to be able to provide a way to do this.
Tasks
Add .embed! method at the class level, most likely to https://github.com/andreibondarev/langchainrb_rails/blob/main/lib/langchainrb_rails/active_record/hooks.rb to read all records from the ActiveRecord model, generate and save embeddings on them.

Assigning it to @itsderek23


firefox 58: does not produce any sound

Issue description
Edit: firefox doesn't produce any sound anymore.
With a clean firefox profile, I am unable to play this stream.
The error is Error loading media: File could not be played
When I click on play, the lines starting from Sandbox get printed.
$ firefox -profilemanager
JavaScript error: jar:file:///nix/store/w28043p6gfzsihrpd7p7xzb4am4fmvmm-firefox-unwrapped-58.0.1/lib/firefox-58.0.1/omni.ja!/components/XULStore.js, line 70: Error: Can't find profile directory.
JavaScript error: jar:file:///nix/store/w28043p6gfzsihrpd7p7xzb4am4fmvmm-firefox-unwrapped-58.0.1/lib/firefox-58.0.1/omni.ja!/components/XULStore.js, line 70: Error: Can't find profile directory.
JavaScript warning: https://archive.org/includes/jquery-1.10.2.min.js?v1.10.2, line 1: Using //@ to indicate sourceMappingURL pragmas is deprecated. Use //# instead
JavaScript warning: resource://devtools/shared/base-loader.js -> resource://devtools/client/shared/demangle.js, line 0: Successfully compiled asm.js code (total compilation time 450ms; unable to cache asm.js in synchronous scripts; try loading asm.js via <script async> or createElement('script'))
Sandbox: seccomp sandbox violation: pid 20594, tid 20869, syscall 16, args 45<PHONE_NUMBER><PHONE_NUMBER>55800 105 0 0.
Sandbox: seccomp sandbox violation: pid 20594, tid 20869, syscall 16, args 45<PHONE_NUMBER><PHONE_NUMBER>55816 105 0 0.
[Child 20594, MediaPlayback #1] WARNING: 7f4d7689ef40 OpenCubeb() failed to init cubeb: file /build/firefox-58.0.1/dom/media/AudioStream.cpp, line 387
[Child 20594, MediaPlayback #2] WARNING: Decoder=7f4d76224400 [OnMediaSinkAudioError]: file /build/firefox-58.0.1/dom/media/MediaDecoderStateMachine.cpp, line 3642
[Child 20594, MediaPlayback #2] WARNING: Decoder=7f4d76224400 Decode error: NS_ERROR_DOM_MEDIA_MEDIASINK_ERR (0x806e000b) - OnMediaSinkAudioError: file /build/firefox-58.0.1/dom/media/MediaDecoderStateMachine.cpp, line 3365

videos on youtube play, but without sound. terminal output:
Sandbox: seccomp sandbox violation: pid 9292, tid 9427, syscall 16, args 51<PHONE_NUMBER><PHONE_NUMBER>93944 105 0 0.
Sandbox: seccomp sandbox violation: pid 9292, tid 9427, syscall 16, args 51<PHONE_NUMBER><PHONE_NUMBER>93960 105 0 0.
[Child 9292, MediaPlayback #3] WARNING: 7f9d4642e940 OpenCubeb() failed to init cubeb: file /build/firefox-58.0.1/dom/media/AudioStream.cpp, line 387
[Child 9292, MediaPlayback #3] WARNING: Decoder=7f9d5053b400 [OnMediaSinkAudioError]: file /build/firefox-58.0.1/dom/media/MediaDecoderStateMachine.cpp, line 3642

Steps to reproduce
install firefox 58.0.1 (or 58.0.2): nix-env -iA nixos.firefox
launch from the console: $ firefox #-profilemanager #optionally create a new profile
try to play mentioned stream
Technical details

system: "x86_64-linux"
host os: Linux 4.9.78, NixOS, 17.09.2987.59890bb1351 (Hummingbird)
multi-user?: yes
sandbox: no
version: nix-env (Nix) 1.11.16
channels(mcd): ""
channels(root): "nixos-17.09.2987.59890bb1351"
nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs

I found a work-around: use PulseAudio.
hardware.pulseaudio.enable = true;
The above will also set up an ALSA plugin which routes all audio to PulseAudio. Then of course PulseAudio needs to be configured to use the ALSA device you want.

hardware.pulseaudio.enable = true;

Instead you can also try to run firefox under apulse.

It seems there is a patch upstream here: https://bugzilla.mozilla.org/show_bug.cgi?id=1430274
Enabling pulseaudio is not an option for me, so would love if this patch could be applied

install firefox 58.0.1

Which Firefox package did you install? I think Mozilla disabled ALSA in their builds so firefox-bin should only have audio using PulseAudio, on the other and the firefox package (built from source) package has it enabled.

I used the firefox package and experienced the issue. We'll see what castilma says.

i used nix-env -iA nixos.firefox

firefox for me too, worked up until around the 58 release

So no, it's another issue. I can't build firefox right now, you could try the patch with something like this
{ pkgs ? import <nixpkgs> { } }:

let
  patched = pkgs.firefox-unwrapped.overrideDerivation (base: {
    patches = base.patches ++ [
      (pkgs.fetchpatch {
        url    = "https://hg.mozilla.org/mozilla-central/raw-diff/b2a41379cc75/security/sandbox/linux/moz.build";
        sha256 = "1kdhkx3xaaw3vh5dfl42y0f7gmbis1aqfv0xyqpcq2j8pjmx7afz";
      })
    ];
  });

in
  pkgs.wrapFirefox patched { }

sorry, still a noob with nix. where am i supposed to put that code?

Put it in a random .nix file and call nix-build on it.

I've tried the patch but it wouldn't apply. It failed on the first hunk.On Feb 15, 2018 6:33 PM, Michele Guerini Rocco<EMAIL_ADDRESS>wrote:Put it in a random .nix file and call nix-build on it.
—You are receiving this because you commented.Reply to this email directly, view it on GitHub, or mute the thread.

the hash you put was not the one nix received. after fixing that, I got the same error as emmanuelrosa:
$ nix-build fire.nix
these derivations will be built:
  /nix/store/316q90p0ml1gy787zl2wpfbmr3g9v4ad-moz.build.drv
  /nix/store/s0qvivq2xr4hqdr2z1p22q9wd88hykwg-firefox-unwrapped-58.0.2.drv
  /nix/store/770d2ib9lnf2gmdikysjb76xbk8yi3gi-firefox-58.0.2.drv
these paths will be fetched (102.50 MiB download, 359.51 MiB unpacked):
  /nix/store/g0jkr2gskbw75qf0zqva7hsrld8vbjvf-cargo-binary-1.21.0
  /nix/store/y3492fjimaa1gdl4351b654nz4l7c0bx-rustc-binary-1.21.0
fetching path ‘/nix/store/y3492fjimaa1gdl4351b654nz4l7c0bx-rustc-binary-1.21.0’...
building path(s) ‘/nix/store/wq0i5f4jbkcz6vlcwch15liwjhp3rww6-moz.build’

*** Downloading ‘https://cache.nixos.org/nar/08xsf0wi6g15fssx9bqx8xcwkh94fb1fa16i0rkmf8nih0zhb3ik.nar.xz’ (signed by ‘cache.nixos.org-1’) to ‘/nix/store/y3492fjimaa1gdl4351b654nz4l7c0bx-rustc-binary-1.21.0’...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
trying https://hg.mozilla.org/mozilla-central/raw-diff/b2a41379cc75/security/sandbox/linux/moz.build
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   882    0   882    0     0    410      0 --:--:--  0:00:02 --:--:--   410
100 98.7M  100 98.7M    0     0   893k      0  0:01:53  0:01:53 --:--:-- 1601k

fetching path ‘/nix/store/g0jkr2gskbw75qf0zqva7hsrld8vbjvf-cargo-binary-1.21.0’...

*** Downloading ‘https://cache.nixos.org/nar/0qy4xfbx6qdk4as38vgn6r7607k233rcsy7da2wn1pny8s9vhcvq.nar.xz’ (signed by ‘cache.nixos.org-1’) to ‘/nix/store/g0jkr2gskbw75qf0zqva7hsrld8vbjvf-cargo-binary-1.21.0’...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 3838k  100 3838k    0     0   905k      0  0:00:04  0:00:04 --:--:--  905k

building path(s) ‘/nix/store/anfhi7r52bn7c5g95l457pncbadg1akg-firefox-unwrapped-58.0.2’
unpacking sources
unpacking source archive /nix/store/95ybwz26lnyf9ygvm2pfr36m5dy4w71b-firefox-58.0.2.source.tar.xz
source root is firefox-58.0.2
setting SOURCE_DATE_EPOCH to timestamp<PHONE_NUMBER> of file firefox-58.0.2/sourcestamp.txt
patching sources
applying patch /nix/store/4irdqv3nsx8qsyg546s8l81556ff1cq5-no-buildconfig.patch
patching file docshell/base/nsAboutRedirector.cpp
patching file toolkit/content/jar.mn
applying patch /nix/store/wq0i5f4jbkcz6vlcwch15liwjhp3rww6-moz.build
patching file security/sandbox/linux/moz.build
Hunk #1 FAILED at 73.
1 out of 1 hunk FAILED -- saving rejects to file security/sandbox/linux/moz.build.rej
builder for ‘/nix/store/s0qvivq2xr4hqdr2z1p22q9wd88hykwg-firefox-unwrapped-58.0.2.drv’ failed with exit code 1
cannot build derivation ‘/nix/store/770d2ib9lnf2gmdikysjb76xbk8yi3gi-firefox-58.0.2.drv’: 1 dependencies couldn't be built
error: build of ‘/nix/store/770d2ib9lnf2gmdikysjb76xbk8yi3gi-firefox-58.0.2.drv’ failed

It doesn't apply to our revision. I'm downloading the source to see what's different.

It was the wrong url apparently, the one in attachment works.
{ pkgs ? import <nixpkgs> { } }:

let
  patched = pkgs.firefox-unwrapped.overrideDerivation (base: {
    patches = base.patches ++ [
      (pkgs.fetchpatch {
        url    = "https://bug1430274.bmoattachments.org/attachment.cgi?id=8943426";
        sha256 = "12yfss3k61yilrb337dh2rffy5hh83d2f16gqrf5i56r9c33f7hf";
      })
    ];
  });

in
  pkgs.wrapFirefox patched { }

I added that patch to nixpkgs expression, will PR if it compiles and works.

how long does a firefox build take? it's already 2 hours at it and now i realised it's only using 1 of my 2 cores.

For me It usually takes about 2.5 hours with 4 cores. I wouldn't interrupt it if I were you.
The problem is that it also uses a LOT or ram and disk space and I would have to rebuild my system to disable tmpfs to build it.

Should be fixed by #35047. The music from the OP and youtube plays fine and with sound.

my build with the patch worked, but /nix/store/d875x2p6axiws57is2bbzn148agf9h86-firefox-58.0.2 (downloaded substitute) gives me:
Sandbox: seccomp sandbox violation: pid 16979, tid 17120, syscall 16, args 44<PHONE_NUMBER><PHONE_NUMBER>80600 105 0 0.
Sandbox: seccomp sandbox violation: pid 16979, tid 17120, syscall 16, args 44<PHONE_NUMBER><PHONE_NUMBER>80616 105 0 0.
[Child 16979, MediaPlayback #3] WARNING: 7f8b7d4bb040 OpenCubeb() failed to init cubeb: file /build/firefox-58.0.2/dom/media/AudioStream.cpp, line 387
[Child 16979, MediaPlayback #3] WARNING: Decoder=7f8b6d691400 [OnMediaSinkAudioError]: file /build/firefox-58.0.2/dom/media/MediaDecoderStateMachine.cpp, line 3642
JavaScript error: undefined, line 0: Error: Could not establish connection. Receiving end does not exist.
JavaScript error: chrome://browser/content/ext-browser.js, line 0: Error: Invalid tab ID: -1
JavaScript error: chrome://browser/content/ext-browser.js, line 0: Error: Invalid tab ID: -1
JavaScript error: chrome://browser/content/ext-browser.js, line 0: Error: Invalid tab ID: -1
JavaScript error: chrome://browser/content/ext-browser.js, line 0: Error: Invalid tab ID: -1

that somehow has no sound again.

What's your nixos-version?

17.09.3023.c882c4dd55e

Hmm... that commit, c882c4dd55e36dda57532fb830fad0882c4d770b, is to enable PulseAudio by default. The commit with the patch is dcad8f1654e4d9f5b802f8112534ebd370629fae.

so, from the commit dates, it means i have a nix that is to old? nix-channel --update gives me c882c4d. is that normal?

It looks like the nixos-unstable channel has not caught up with the nixos-unstable branch. The commit you're looking for is in the nixos-unstable branch, but for some reason the archive nix-channel looks for is not there yet.
Note: I just noticed you reported the issue on Hummingbird, which is the stable branch.


vsce/MS-vsliveshare.vsliveshare: add V to maintainers

Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

Per https://github.com/NixOS/nixpkgs/pull/116820#issuecomment-802792107
I wanted to include this with a version bump or other such change to avoid submitting a useless PR, but a duplicate has been merged, so I've stripped that out.


Add Comprehensive Contribution Guide

Related Issue: #137

Add error message when TypeScript is not installed
Add Getting Started Guide in README.md

Tell me if more details need to be added. 😺

Cool! You can also mention that individual tests can be run with -z. For example, ~mlscriptJVM/testOnly mlscript.DiffTests -- -z parser will watch for file changes and continuously run all parser tests (those that have "parser" in their name).

Seems I can't merge before Luyu review again. 🤔

Wait a second. I have some changes.


Add EmbodiedAgent, ToolAgent, HuggingFaceToolAgent and full and fast test mode

Please refer to the original paper for more details:

Added fast test mode for fixing https://github.com/camel-ai/camel/issues/120

LGTM!


Update Python dependencies to latest versions

We have a pretty long list of no-longer-latest dependencies again; probably only ~5 of these there's a good reason not to upgrade.
$ pip list --outdated
boto (2.45.0) - Latest: 2.46.1 [wheel]
certifi (2016.9.26) - Latest: 2017.1.23 [wheel]
CommonMark (0.5.4) - Latest: 0.7.3 [wheel]
cryptography (1.7.1) - Latest: 1.7.2 [sdist]
defusedxml (0.4.1) - Latest: 0.5.0 [wheel]
django-auth-ldap (1.2.8) - Latest: 1.2.9 [wheel]
django-guardian (1.3.1) - Latest: 1.4.6 [wheel]
fonttools (3.5.0) - Latest: 3.7.2 [wheel]
google-api-python-client (1.6.1) - Latest: 1.6.2 [wheel]
httplib2 (0.9.2) - Latest: 0.10.3 [sdist]
httpretty (0.8.10) - Latest: 0.8.14 [wheel]
ipython (5.1.0) - Latest: 5.2.2 [wheel]
Jinja2 (2.9.4) - Latest: 2.9.5 [wheel]
jwt (0.3.2) - Latest: 0.5.2 [sdist]
lxml (3.7.2) - Latest: 3.7.3 [wheel]
Markdown (2.6.7) - Latest: 2.6.8 [sdist]
prompt-toolkit (1.0.9) - Latest: 1.0.13 [wheel]
pyasn1 (0.1.9) - Latest: 0.2.2 [wheel]
pycodestyle (2.2.0) - Latest: 2.3.1 [wheel]
Pygments (2.1.3) - Latest: 2.2.0 [wheel]
pyoembed (0.1.1-) - Latest: 0.1.1 [sdist]
pytest-runner (2.9) - Latest: 2.11.1 [wheel]
python-ldap (2.4.28) - Latest: 2.4.32 [sdist]
python-twitter (3.1) - Latest: 3.2.1 [wheel]
regex (2017.1.17) - Latest: 2017.2.8 [sdist]
requests (2.12.5) - Latest: 2.13.0 [wheel]
requests-oauthlib (0.7.0) - Latest: 0.8.0 [wheel]
scandir (1.4) - Latest: 1.5 [sdist]
Scrapy (1.3.0) - Latest: 1.3.2 [wheel]
social-auth-app-django (0.1.0) - Latest: 1.1.0 [wheel]
social-auth-core (0.2.1) - Latest: 1.2.0 [wheel]
Sphinx (1.5.1) - Latest: 1.5.2 [wheel]
talon (1.2.11) - Latest: 1.3.4 [sdist]
traitlets (4.3.1) - Latest: 4.3.2 [wheel]
transifex-client (0.12.2) - Latest: 0.12.4 [sdist]
Twisted (16.6.0) - Latest: 17.1.0 [sdist]
w3lib (1.16.0) - Latest: 1.17.0 [wheel]

@zulipbot assign

@zulipbot claim

@timabbott I think you can close this now. I created issue for pycodestyle which was a new addition. For all others which was not upgraded in the last PR there are issues already made.

Yep, agreed, thanks @hackerkid!


Vim keymap support (feature)

There might be other ways of achieving this (do you know?).
I tried only vimium plugin in chrome and it didn't work on stackedit.io
(that plugin also doesn't work in github editor).

+1

+1.

Duplicate of #648?

+1

+1 :)

+1

+1 as heck

+1

+1

+1

+1

+1

:i+1 Esc

+1

+1

+1


Delete particular conversations from knowledge base

From @ruKurz on June 20, 2017 16:21
There should be an option to delete conversations of bad quality manually. Most likely this process might be support by our KI part.
Sometimes it occurs that somebody has a problem, but at the end he finds the solution himself.
Sometimes somebody just had a small problem, but dig into a small talk via chat.
Sometimes somebody just asked the wrong person or the problem solves itself.
In all of this szenarios we have a conversation of not very helpful messages.
If all of those message will be part of the knowledge base. These questions will overfill the knowledge base with wrong or not needful information.
There must be a way to simply delete a single conversation from the knowledge base.
Or the Knowledge Base itself is able to decide whether a message is valuable or not.
Copied from original issue: mrsimpson/Rocket.Chat#25

From @ruKurz on September 20, 2017 12:14
On Smarti side this Issue is implemented.
Maybe we want to offer an feature within the Smarti Widget for deleting a message by users.


[5.5] Github Issue Template: add commented preamble about alternatives to get help

As the number of general support requests is still high and cause quite some noise, try with a more prominent header when creating a new issue.
If accepted, should be backported to at least 5.5

Changed the target from master (5.7) to 5.5.

If accepted, should be backported to at least 5.5

We typically don't work like that. We merge upwards. :)

@GrahamCampbell When was 5.6 released?

5.6 is not scheduled to be released until February.

@GrahamCampbell Then, why is there a 5.6 branch? I thougth that branch was only created on release time...

I thougth that branch was only created on release time

Nobody said that?


Salesforce Date/Time into Golang time.Time

Is there any way to easily read back a Salesforce Date/Time object into a golang time.Time object?
I can write a Golang time.Time object into the Salesforce Date/Time object, but I cannot go the other way. I get this error: "Unable to unmarshal response to object: parsing time ""1965-04-06T00:00:00.000+0000"" as ""2006-01-02T15:04:05Z07:00"": cannot parse "+0000"" as "Z07:00"1"
How can I achieve this?
Thanks!

@gmark-newt You can create a type that implements the json.Marshaler and json.Unmarshaler interfaces.
Warning untested code ahead!
const SFTIMEFORMAT = "2006-01-02T15:04:05.000-0700"

type SFTime struct {
	time.Time
}

// MarshalJSON implements the json.Marshaler interface.
// The time is a quoted string in Salesforce time format.
func (t SFTime) MarshalJSON() ([]byte, error) {
	b := make([]byte, 0, len(SFTIMEFORMAT)+2)
	b = append(b, '"')
	b = t.AppendFormat(b, SFTIMEFORMAT)
	b = append(b, '"')
	return b, nil
}

// UnmarshalJSON implements the json.Unmarshaler interface.
// The time is expected to be a quoted string in Salesforce time format.
func (t *SFTime) UnmarshalJSON(data []byte) error {
	internalTime, err := time.Parse(`"`+SFTIMEFORMAT+`"`, string(data))
	if err != nil {
		return err
	}

	*t = SFTime{internalTime}
	return nil
}

@nimajalali if I submitted a patch to add a Date type to sobjects and change the type of built-in fields like CreatedDate and LastModifiedDate to the new type, do you think such a patch would be accepted?

#62


contact page made

Pull Request Template
Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Fixes # (31)
Type of change
Please delete options that are not relevant.

[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[x] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[x] This change requires a documentation update

Checklist:

[x] My contribution follows the style guidelines of this project
[x] I have performed a self-review of my own contribution
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] I have checked my code and corrected any misspellings

Pl accept my PR

Can you please send the ss of the contact page

PR accepted #32 🎉


snekfetch.get("url").response.text/body doesn't work

snekfetch.get("url").response.text/body doesn't work. whenever I do a request (snekfetch.get("insert url here").response.text or snekfetch.get("insert url here").response.body), parse the thing and do something like this for example
snekfetch.get(`https://random.birb.pw/tweet`).response.body // Cannot get body of undefined

its a promise:
snekfetch.get('https://random.birb.pw/tweet')
  .then((response) => {
    console.log(response.text);
  });

hm, but why does response exist?


Drop support for Django < 1.11

With this baitclick title I'd like to start a discussion on when we should drop the support for Django version less than 1.11. My first and most realistic proposition is to wait until 1.8 extended supported is dropped to ensure that everyone has time to update, however maybe we should speed it up slightly e.g. few months before 1.8 death? Everyone that cares about having latest and greatest versions will probably want to upgrade Django to 1.11.x LTS as well anyway.
Obviously, even when we drop support for particular Django versions everyone will still be able to use versions of djoser compatible with these versions - it's just not recommended to do so, because one does not receive any fixes that way.
As to why it would be convenient - supporting multiple Django versions makes development slower, we could drop few compatibility tweaks, simplify tests, speed up CI etc.

I'm all for pushing to the newest versions of Django. Having said that, I think we shouldn't drop support for LTS Django before it's support period. People won't be happy with it. We should synchronize with Django release cycle, at least to some extent.

@pawelswiecki My thoughts exactly. I think it would be most professional to always support the versions of Django which are officially supported at given point in time.

So, we will simply keep track of Django supported versions:

1.8 will keep being support until at least April 2018
1.10 support will end at December 2017

Thanks you guys for contributing to the discussion.


problem using relative image urls

I'm using relative paths for images on my page. When I navigate away from a page containing such images, it tries to reload the images of the previous page using the base url of the next page resulting in a bunch of 404's.
The top few lines of the stack trace in chrome:
Image (async)
Turbolinks.View.e.getSnapshot
Turbolinks.Controller.t.cacheSnapshot
Turbolinks.Visit.t.cacheSnapshot
requestAnimationFrame (async)
Turbolinks.Visit.t.render
Turbolinks.Visit.t.loadResponse
Turbolinks.BrowserAdapter.t.visitRequestCompleted
Turbolinks.Visit.t.requestCompletedWithResponse

To reproduce, visit http://dodona.ugent.be/exercises/akkoorden/ and click "Oefeningen" in the top header. I'm using Turbolinks 5.0.0beta2.

Thanks @bmesuere. I confirmed this is a side-effect of using Element.cloneNode. When cloning an <img> element the browser will request its URL, even if the element isn't attached to the DOM (the same is true for other media elements). When the URL is relative, it's resolved from window.location. Since Turbolinks caches the current page after history has been changed to the next page, the base might be incorrect.
The simplest thing to do is to avoid using relative image URLs, at least for now :grin: