text:
Examples lecture 2

This MR will add some examples for lecture 2.

Binder link: https://mybinder.org/v2/gh/andersle/chemometrics/examples_lecture_2

is this one ready for review? (if so, please drop the WIP tag and ping me ;) )

@sroet: This one is ready for a check now.

authors: andersle sroet

repo: andersle/chemometrics


text:
Finished WebSocket connection and rendering

Details include:

WebSocket creation includes:

chat rooms and messages tables (with rooms_users to identify users in a room)
WebSocket routes
WebSocket consumer

ASGI modifications:

allow our django backend to not only utilize WSGI but ASGI as well
ASGI definition here

Connected frontend and backend:

Done using JavaScript's built-in WebSocket object

Rendered messages to frontend

Nice cock

source: gharchive/pull-request

authors: andrearcaina josephleungg

repo: andrearcaina/vivid

license: MIT

license_type: permissive

license_source: github-api


text:
Document boxing of hiddden content

The book should contain some description of why and how we #box the content that is about to be hidden. Maybe in a "Development" section? Depends on how important that is to users of the template.
@PgBiel would you like to have a go at this?

What do you think about also adding a parameter to one-by-one (and other such functions) that lets the user customize the box with a function (that takes the hidden content and returns the modified content)?

We should probably do something like that, yes. Also to allow inline content.

Maybe we could even pass, as parameters, the slide number and whether or not it should currently be hidden, to allow for more complete customization.

I don't really understand, can you elaborate?

We should probably do something like that, yes. Also to allow inline content.

Perfect.

I don't really understand, can you elaborate?

Oh, I meant, maybe this callback that customizes the box could also receive, as parameters, the current slide number and maybe a boolean indicating whether or not the element it is being applied to is currently supposed to be hidden. This way, a user can determine different behavior for a shown and for a hidden object.  (I concede that this might be excessive, though.)

By the way @andreasKroepelin, an interesting PR was merged in typst: https://github.com/typst/typst/pull/587
Seems like math should be properly hidden now, yay! Though I guess lists are still broken. So yeah lol

Oh that's nice! I will look into having different modes of hiding stuff soon (in a block (the current behaviour), inline (what we had before your fix), not occupying space when hidden). Currently, I'm overhauling the display system, also making themes simpler by that.

For reference, another relevant PR (by me :D): https://github.com/typst/typst/pull/644

Oh that's great! So if that gets merged, we don't need the boxing at all anymore, right?

Oh that's great! So if that gets merged, we don't need the boxing at all anymore, right?

It might still be needed for some possible layout quirks, but we might be able to make it optional instead of the default, which is great

@PgBiel I played around with the new Typst release from today and everything works nicely without any blocks or boxes sunglasses I have plans for a further simplification of the cover/uncover API, expect a PR soon :D

@andreasKroepelin even lists? My PR wasn't merged yet, because it has blockers due to how internals work
It might only be merged when the style system is reworked; until then, hiding lists will be broken

Yep, even lists! Bullet points, enumerations, term lists -- everything looks as it should!

Yep, even lists! Bullet points, enumerations, term lists -- everything looks as it should!

How is this being done? I can't reproduce this in isolation

Huh, interesting... Are you using the most recent release? I will have to investigate that in the next days.

Yeah; this is on typst's website (which is using v0.2.0).
(unless you're hiding entire lists; this bug is on individual list items)

Alright, I think I solved it. Due to some state updating stuff, I guess the list items are put into their own lists. So I guess it actually does hide entire list. Nevertheless, it works :D

I guess the list items are put into their own lists.

This should probably be fixed then, as it would break continuity between markers (assuming this happens all the time)
Unless you wish to mimic this behavior for boxes - only box list items
That could also work (even though it would also break marker continuity)

As far as I understand, every working solution would break this continuity currently, right? Only when your PR gets merged this will really work.

As far as I understand, every working solution would break this continuity currently, right? Only when your PR gets merged this will really work.

Yep.
The problem with my PR is that the fix I propose would break existing code that uses show with lists, as list children wouldn't have to be listitem anymore (but rather any content - the item's body, directly)
This is why we are currently waiting on a styling rework, to make my fix possible while keeping listitem as the only possible children for lists.  (And similar for enum/enumitem)
(Note that #hide[] is implemented using styles, just like colors and stuff)
Another possible fix would be to allow for custom markers in listitems, and those markers could hold the local styles as well, but that would take more discussion (which hasn't started so far)
So yeah... here we are lol

This has become obsolete by #16

source: gharchive/issue

authors: PgBiel andreasKroepelin

repo: andreasKroepelin/typst-slides


text:
Added - Hide all tabs dropdown icon

Proposed Changes

Hide the dropdown icon for listing all tabs
Defaulted to off

Oh, yeah! This is a great addition; thank you very much. c:
I've quickly went through and made it available via the config file to make it easier for the enduser to toggle the visibility.

authors: andreasgrafen fatcheetah

repo: andreasgrafen/cascade


text:
Live demo version does not work

When opening https://stackblitz.com/edit/angular2-cookie-law?file=src%2Fapp%2Fapp.component.html on Firefox or Chrome it tries to load the page forever and no content is presented.

@damianszczepanik is this still happening? I can correctly open the link with no problems

Link is working correctly but content is not uploaded on merge to master

I'm not sure what you mean by that. I just created a new demo for Angular 7 using the latest 7.0.1 version of this package and everything looks fine on my end. https://citymapper.com/trip/Tkb8pp8vgh5

Looks fine, maybe temporary problem with hosted app

license: mit

license_source: bigquery


text:
[BUG] GetLab crashes server and cli tool when getting non-existing lab

^title

[x] Fixed server code to handle nil responses
[x] Fixed CLI tool code to handle nil reponses

Need to handle nil response in CLI tool

Need to handle nil response in CLI tool

Instead of nil responses, maybe just return empty structs

Fixed in #80

repo: andreaswachs/bachelors-project


text:
🛑 Goncalves.me is down

In f4b60e7, Goncalves.me (https://www.goncalves.me) was down:

HTTP code: 521
Response time: 198 ms

Resolved: Goncalves.me is back up in a528cb6.

repo: andreesg/goncalves-upptime


text:
🛑 Teylers Museum is down

In 45a1378, Teylers Museum (https://www.teylersmuseum.nl) was down:

HTTP code: 502
Response time: 538 ms

Resolved: Teylers Museum is back up in d135ed6.

repo: andreesg/intk-upptime


text:
FCM plugin exception - Namespace SPRINGBOARD, Code 0x8badf00d

Facing below exception while using FCM plugin.
This is observed in iOS device only, n every app launch app is crashing.
Incident Identifier: 1467E172-6976-4820-BC8F-EC117C872B1A
CrashReporter Key:   c6d17c65815372ba349e2a14fc1fcc9a155742c0
Hardware Model:      iPhone8,1
Process:             MyAppName [394]
Path:                /private/var/containers/Bundle/Application/EC6C615A-938D-4771-8CA5-5B0C7BF58FCA/MyAppName.app/MyAppName
Identifier:          MyPackageName
Version:             0.6.2 (0.6.2)
Code Type:           ARM-64 (Native)
Role:                Foreground
Parent Process:      launchd [1]
Coalition:           MyPackageName [490]
Date/Time:           2020-03-27 17:44:05.4206 +0530
Launch Time:         2020-03-27 17:43:44.7608 +0530
OS Version:          iPhone OS 13.3 (17C54)
Release Type:        User
Baseband Version:    7.30.02
Report Version:      104
Exception Type:  EXC_CRASH (SIGKILL)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note:  EXC_CORPSE_NOTIFY
Termination Reason: Namespace SPRINGBOARD, Code 0x8badf00d
Termination Description: SPRINGBOARD, scene-create watchdog transgression: application:394 exhausted real (wall clock) time allowance of 19.78 seconds | ProcessVisibility: Foreground | ProcessState: Running | WatchdogEvent: scene-create | WatchdogVisibility: Foreground | WatchdogCPUStatistics: ( | "Elapsed total CPU time (seconds): 20.470 (user 20.470, system 0.000), 51% CPU", | "Elapsed application CPU time (seconds): 0.568, 1% CPU" | )
Triggered by Thread:  0
Thread 0 name:  Dispatch queue: com.google.FirebaseInstanceID.Keychain
Thread 0 Crashed:
0   libsystem_kernel.dylib        	0x0000000185eb8634 0x185eb5000 + 13876
1   libsystem_kernel.dylib        	0x0000000185eb7aa0 0x185eb5000 + 10912
2   libdispatch.dylib             	0x0000000185d6a7cc 0x185d53000 + 96204
3   libdispatch.dylib             	0x0000000185d6ab94 0x185d53000 + 97172
4   libxpc.dylib                  	0x0000000185cae440 0x185ca3000 + 46144
5   Security                      	0x0000000186f0d224 0x186eed000 + 131620
6   Security                      	0x0000000186f0dc38 0x186eed000 + 134200
7   Security                      	0x0000000186f8e17c 0x186eed000 + 659836
8   Security                      	0x0000000186f8d054 0x186eed000 + 655444
9   Security                      	0x0000000186f8b92c 0x186eed000 + 649516
10  Security                      	0x0000000186f8c2d4 0x186eed000 + 651988
11  Security                      	0x0000000186f8e084 0x186eed000 + 659588
12  Security                      	0x0000000186f89f48 0x186eed000 + 642888
13  Security                      	0x0000000186f8c6f4 0x186eed000 + 653044
Struggling with this issue since 3 days. PLease help ASAP!!!

The thread dying is concerning, yes, but did experience functionality issues?
Would you be able to share a repository of which the app presents this error?
I'll investigate as soon as possible.
But until then, if you can send your findings.
Thank you

Hi,
Thanks for reverting back!!
Below is a demo repo created. In this new project, only FCM plugin is installed and on launch the app is crashing
https://github.com/meghanadixit1/FCMDemo
When for the first time, app is installed to the device via xcode, it works well, for the subsequent launches, it crashes everytime.
Since it is crashing on app launch, we are not able to test any functionality.
Attached are the XCode logs and the mobile device logs and my environement info
IonicInfo.docx
FcmDemoLog.docx
Please let me know if any other info is required.
.

I've found the thread https://github.com/firebase/firebase-ios-sdk/issues/1399 that mentions that, this issue occurs due to keychain deadlocks.
I'll investigate possible solutions.

Hello There,
Any updates on this??

Hi, I've written a simple experiment, that just delay the Firebase initialisation by 10 seconds. Just to check if a solution like this could work in your case (https://github.com/andrehtissot/cordova-plugin-fcm-with-dependecy-updated/compare/master...andrehtissot:delayed-firebase-initialization-experiment).
So, from the root app directory, execute something like:
cd ..
git clone https://github.com/andrehtissot/cordova-plugin-fcm-with-dependecy-updated.git
cd -
cd ../cordova-plugin-fcm-with-dependecy-updated
git checkout delayed-firebase-initialization-experiment
cd -
ionic cordova plugin remove cordova-plugin-fcm-with-dependecy-updated
ionic cordova plugin add ../cordova-plugin-fcm-with-dependecy-updated

And please let me know if the crashes still happen.

Will check and revert to you!
Thanks

Hi There,
With this workaround, now on iOS device, no crash is observed.
However, when the same plugin is used while building android app, we ran
into below issue
D8: Program type already present:
android.support.v4.app.INotificationSideChannel
FAILURE: Build failed with an exception.

What went wrong:
Execution failed for task
':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.

com.android.builder.dexing.DexArchiveMergerException: Error while merging
dex archives:
Learn how to resolve the issue at
https://developer.android.com/studio/build/dependencies#duplicate_classes.
Program type already present:
android.support.v4.app.INotificationSideChannel

Try:
Run with --stacktrace option to get the stack trace. Run with --info or
--debug option to get more log output. Run with --scan to get full insights.

Get more help at https://help.gradle.org

BUILD FAILED in 2m 14s

Task :app:transformDexArchiveWithExternalLibsDexMergerForDebug FAILED
35 actionable tasks: 9 executed, 26 up-to-date
(node:10136) UnhandledPromiseRejectionWarning: Error:
F:\orciFcm\OrciCare\platforms\android\gradlew: Command failed with exit
code 1 Error output:
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
D8: Program type already present:
android.support.v4.app.INotificationSideChannel

FAILURE: Build failed with an exception.

What went wrong:
Execution failed for task
':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.

com.android.builder.dexing.DexArchiveMergerException: Error while merging
dex archives:
Learn how to resolve the issue at
https://developer.android.com/studio/build/dependencies#duplicate_classes.
Program type already present:
android.support.v4.app.INotificationSideChannel

Try:
Run with --stacktrace option to get the stack trace. Run with --info or
--debug option to get more log output. Run with --scan to get full insights.

Get more help at https://help.gradle.org

BUILD FAILED in 2m 14s
at ChildProcess.whenDone
(F:\orciFcm\OrciCare\node_modules\cordova-common\src\superspawn.js:135:23)
at ChildProcess.emit (events.js:210:5)
at ChildProcess.cp.emit
(F:\orciFcm\OrciCare\node_modules\cross-spawn\lib\enoent.js:34:29)
at maybeClose (internal/child_process.js:1021:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)
(node:10136) UnhandledPromiseRejectionWarning: Unhandled promise rejection.
This error originated either by throwing inside of an async function
without a catch block, or by rejecting a promise which was not handled with
.catch(). (rejection id: 1)
(node:10136) [DEP0018] DeprecationWarning: Unhandled promise rejections are
deprecated. In the future, promise rejections that are not handled will
terminate the Node.js process with a non-zero exit code.
With FCM plugin version 4.2.0 android app is built successfully.
On Tue, 7 Apr, 2020, 16:34 André Tissot, notifications@github.com wrote:

Hi, I've written a simple experiment, that just delay the Firebase
initialisation by 10 seconds. Just to check if a solution like this could
work in your case (
master...andrehtissot:delayed-firebase-initialization-experiment
https://github.com/andrehtissot/cordova-plugin-fcm-with-dependecy-updated/compare/master...andrehtissot:delayed-firebase-initialization-experiment
).
So, from the root app directory, execute something like:
cd ..
git clone https://github.com/andrehtissot/cordova-plugin-fcm-with-dependecy-updated.gitcd -cd ../cordova-plugin-fcm-with-dependecy-updated
git checkout delayed-firebase-initialization-experimentcd -
ionic cordova plugin remove cordova-plugin-fcm-with-dependecy-updated
ionic cordova plugin add ../cordova-plugin-fcm-with-dependecy-updated
And please let me know if the crashes still happen.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/andrehtissot/cordova-plugin-fcm-with-dependecy-updated/issues/28#issuecomment-610322774,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AIWHZR37IDTBOP5LKLZCQ2LRLMCDLANCNFSM4LYSY73A
.

This is an error due to Androidx migration.
I suggest you to try some of the solutions found in https://stackoverflow.com/questions/51918301/program-type-already-present-android-support-v4-app-inotificationsidechannelst.
If those don't work, let me know, then you might have to use a special version of the plugin, of which won't require androidx, by not importing androidx.core.app.NotificationCompat.

But it's good to know that this solution avoids crashing on iOS.
In the near future, I intend on implement the feature requested in #31, which, in theory would also fix the issue you found.

HI
Tried the solution in below link-
https://stackoverflow.com/questions/51918301/program-type-already-present-android-support-v4-app-inotificationsidechannelst.
But still could not be successful.
ALso tried something as below
https://github.com/arnesson/cordova-plugin-firebase/issues/1083#issuecomment-503224816
But then also ran into an error

I'll try to minimize the reliance on AndroidX dependency to avoid these compatibility issues. I'll update here, when I get it working.

Also, just to let you know, a small delay was added to the main release version, so the first issue you mentioned (ios thread crashing), should not occur anymore.

Hi @meghanadixit1, I published a new version of cordova-plugin-fcm-with-dependecy-updated@beta, which, besides a lot refactoring on the ios side, has fewer androidx dependencies.
Would you give it a try, and let me know if it fixes the build on Android, and if for iOS it still works as expected?

The new release v5.0.0 has the changes I mentioned.

Issue closed due to inactivity.

Hey,
Sorry about the delayed response -
Here is the observation -
With the code in branch "delayed-firebase-initialization-experiment" the code builds and notifications are also received.
But when tested  with below versions-
V5.0.0 beta
V5.0.0
V5.1.0
V6.0.0
V6.0.1
The code is built but notification is not received in iOS devices.
Can you please look into further.


text:
Better Dependency checking

There appear to be some cases where our depends_on helper doesn't properly determine if a gem has been installed.

@rickychilcott Thanks Ricky! Any chance that we can add a spec?

Sure. There's a lot of stubbing, and I'm actually not sure why @tabs from discord is actually running into this situation, but I've added test coverage for most scenarios!

authors: andreibondarev rickychilcott

repo: andreibondarev/langchainrb


text:
🛑 Clerimar is down

In 64adc7e, Clerimar (https://clerimar.com.br) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Clerimar is back up in 22aa0d7.

repo: andrelug/uptime


text:
Add integration to HACS

Depends on #6.

Following this doc, but I cannot consider this custom_component to be in stable lifecycle... better to keep working a little bit on issues.
https://hacs.xyz/docs/publish/include

I agree, this custom component is in an early alpha stage, I'd like to publish the component when we have all the basic functionality reliably implemented. Also, the logo requirement (#6) could be a little tricky to fulfill, because there could be licensing issues.

I agree, this custom component is in an early alpha stage, I'd like to publish the component when we have all the basic functionality reliably implemented. Also, the logo requirement (#6) could be a little tricky to fulfill, because there could be licensing issues.

Sorry I can't help about the logo ... It's not my best skill ... ^_^
But I assume that we can use the Sermatec logo ... but I'm not sure about the legal part ...

I'll try to generate a logo with some AI (stable diffusion) got few nice results in another project...
Or maybe the logo of this GitHub organisation... seems clear and straightforward to the point 😅

Well, that's a good idea. You can try to generate some logos, if you get an interesting one, you can send it here and we'll decide what should we use 😁

Wow, these look very good. I like the first, fourth and fifth the most. Maybe we can pick one of those and use them as a organization logo as well?

I like the forth and fifth the most too...
I'll republish them later with alpha and proper cropping...

Thanks! :D

The second one (with the house) is probably the best. What do you think?

I cleaned up the artifacts and added a little bit of smoothing.

seems the most similar to the one we already have in orga ... suits well !! ^_^

authors: andreondra mathieupotier


text:
W5100-Uno Issues

Hi All,
I know this project is likely dead, but I was hoping for some charity this time of year...
I have been testing the TCP on the Uno with a W5100 as a slave and cannot seem to read anything off it using a scanning program or other. Other http procols work and other Modbus TCP files sort of work.
I have just been testing the lastest code off here and the Lamp example. Nothing else. I can connect with my scanner prgram to its IP bit I get timout errors and cannot read Lamp status at or around its address.
Any thoughts??  I am open to amy suggestions!!

Hi, I could make this. When you use the PC to simulate a Master you have to go to ethernet configuration IPV4 and put the correct ip and select your Arduino Ip with the software you use for simulating master. I could run lots of tcp ip library, this one is preferred but i got a timeout error and then works , then a timeout error and then works..  It works but it that problem.

repo: andresarmento/modbus-arduino


text:
🛑 pharmacomms is down

In 307898e, pharmacomms (https://pharmacomms.tv/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: pharmacomms is back up in 0ba9cd4 after 10 minutes.

repo: andrespitt/uptime


text:
🛑 nhcam is down

In caacd72, nhcam ($NHIPCAM) was down:

HTTP code: 0
Response time: 0 ms

Resolved: nhcam is back up in e0c1436.

repo: andrewdavies-net/upptime


text:
🛑 nhcam is down

In a39cffa, nhcam ($NHIPCAM) was down:

HTTP code: 0
Response time: 0 ms

Resolved: nhcam is back up in 3173319.


text:
🛑 plexd is down

In 5414dc9, plexd ($PLEXD) was down:

HTTP code: 401
Response time: 305 ms

Resolved: plexd is back up in 2fde654.


text:
🛑 nhcam is down

In 55774d6, nhcam ($NHIPCAM) was down:

HTTP code: 0
Response time: 0 ms

Resolved: nhcam is back up in 420dc13.


text:
🛑 nhcam is down

In 0ef63dd, nhcam ($NHIPCAM) was down:

HTTP code: 0
Response time: 0 ms

Resolved: nhcam is back up in b55a133.


text:
🛑 nhcam is down

In f69ae24, nhcam ($NHIPCAM) was down:

HTTP code: 0
Response time: 0 ms

Resolved: nhcam is back up in 1885222.


text:
🛑 nhcam is down

In 4228b5f, nhcam ($NHIPCAM) was down:

HTTP code: 0
Response time: 0 ms

Resolved: nhcam is back up in d8a1763.


text:
🛑 plexd is down

In f59c36d, plexd ($PLEXD) was down:

HTTP code: 401
Response time: 284 ms

Resolved: plexd is back up in db9d608.


text:
🛑 plexd is down

In 1373218, plexd ($PLEXD) was down:

HTTP code: 401
Response time: 466 ms

Resolved: plexd is back up in dfa1ebf.


text:
BucketAlreadyOwnedByYou error on new install

Hi, I'm having issues getting beyond the readme in order to get it running.
s3proxy 1.4.0, commit bb68ff5
The only change to the default config in the readme is that I'm using port 9090 instead of 8080; i.e. my s3proxy.conf file is:
s3proxy.endpoint=http://127.0.0.1:9090
jclouds.provider=filesystem
jclouds.identity=identity
jclouds.credential=credential
jclouds.filesystem.basedir=/tmp/s3proxy

When running:
$ curl --request PUT http://localhost:9090/test
<?xml version="1.0" ?><Error>BucketAlreadyOwnedByYou<Message></Message><BucketName>test</BucketName><RequestId>4442587FB7D0A2F9</RequestId></Error>

Still looking into it but any help would be appreciated.
Thanks!

Is there already a test directory?

No. The file path in the configuration is empty.
On 8 Feb 2016 12:20 PM, "Ka-Hing Cheung" notifications@github.com wrote:

Is there already a test directory?
—
Reply to this email directly or view it on GitHub
https://github.com/andrewgaul/s3proxy/issues/122#issuecomment-181164216.

The issue appears to be a permissions issue, presumably due to using a subdirectory of /tmp.
When I run s3proxy using ./target/s3proxy --properties s3proxy.conf, the error appears. When I run it with the same configuration file using sudo ./target/s3proxy --properties s3proxy.conf, the bucket is created normally.
Is it worth rewriting the error message here so that it's more helpful?

authors: kahing stephzylstra


text:
Remove throw exception if string is null

Need to make a test on string before calling replace

The API of this module is to pass a string. Do the null check in your own code.

authors: andrewrk thomasgithub

repo: andrewrk/node-diacritics


text:
No files show when trying to open custom overlay.

The screenshots says it all, no files show up when attempting to import a custom overlay. I am using Linux Mint 18.1

Any idea why?

I have this problem as well, but on Mac. Can't figure out. Even replace all of the capital letters as lowercase letters in the .ovr file.

Sorry it took so long to get back on this—I'm trying out a fix and hopefully that'll get pushed out soon. ("Soon.")

Soon™

No problem, glad to hear a fix in on it's way.

(Thanks for the reminder!) I confirmed that my fix does work on my Linux machine, so this ticket should be good to close!

What was the fix?

Linux Mint here, the problem has not been solved.

File browser is Thunar.

This is the code change that fixed it for me: https://github.com/andrewsarnold/FlagMaker-2/commit/f6a495a9365f7f4d780b5f62f8499d2c66b4af73
It looks like you have the latest version, and it works on my vanilla Mint installation, so I wonder if Thunar is being problematic. But the file filter looks correct in your screenshot.

Well, if it works for you then it must be an issue entirely on my side. I can verify that I am using the latest version, but the bug persists through Thunar and Nautilius. Switching back and forth between the two installed java versions (8-oracle and 8-openjdk) proved fruitless as well. I will further test will alternative OSs.

Thanks for testing. Unfortunately I only have the one Linux machine to test on so this is very helpful!

@swoodmood Can you send a screenshot of the file explorer in that directory, so I can see a list of the files in it?

The issue isn't limited to Ubuntu based distros it seems. Im on a distro called Solus and im not seeing the files either.


text:
Relay activating on on startup.

My relay was activated on startup. I was causing my garage to open as soon as the RaspberryPI came online. Not good when there is a power outage. I had to change the following in controller.py.
42   gpio.output(self.relay_pin, False) <--was True
72   gpio.output(self.relay_pin, True) <--was False
73   time.sleep(0.2)
74   gpio.output(self.relay_pin, False) <--was True

I had the same issue too.  I first started using GPIO14, which is apparently HIGH on startup (causing the garage to trigger after power on).  I switched to GPIO23 and it was fine.  I found this list of GPIO states on startup:  https://www.raspberrypi.org/forums/viewtopic.php?f=44&t=35321
I think if you pick anything with a LOW on startup it should be fine.

That is strange, because I did not deviate from the readme. I am using GPIO23.

Maybe a different revision of the Raspberry Pi? I'm using the old old rev. 1 model B.  Not sure.  Good to hear you fixed it though.
When I first started setting it up and the relay was triggering on startup, I almost gave up on the project (don't need my garage opening randomly in the night).

I think there's some sort of configuration on the RPI that controls how those pins are supposed to be set at startup.  They might be configured differently for different people and that might be causing the problem.

Different RPI models have different startup states, as pointed above. Some are also known to be in floating states. I think there is confusion on how this circuit works. The relay board is active LOW. If you look at the toggle_relay function in the Door class in controller.py you'll see:
       gpio.output(self.relay_pin, False)         time.sleep(0.2)         gpio.output(self.relay_pin, True)
The relay triggers when the GPIO goes LOW (0/False/0v)), then holds that state for 0.2 seconds, and sets back to HIGH (1/True/3.3v).
If you google this issue, you'll see some people try different GPIO pins (because it isn't thought to be a big deal to them), while others make the circuit more robust and use a ULN2003 IC driver chip (consisting of the necessary transistors, diodes, and resistors). The IC chip will also switch the relay to active high from active low, so there is some minor code modification required in the function shown above.

I had the same issue.  If I rebooted my router or pi the relay would activate either closing or opening garage.  BIG security issue.  Strange thing was that I used a JBtek relay with no issue.  Never switched the GPIO wiring or code.  The relay that didn't work was some cheap relay I got in a module pack from amazon.

I found that by editing line 50 of controller.py from:
gpio.setup(self.relay_pin, gpio.OUT)
to:
gpio.setup(self.relay_pin, gpio.OUT, initial=True)
resolved the issue.

I am having a similar issue, where upon running the app, the relay is energised, and only a reboot of the Pi Zero W de-energises it. I’ve tried adding the ‘initial’ setting, changing the true and false settings, no change. It’s configured to use GPIO23.
Any suggestions?

repo: andrewshilliday/garage-door-controller


text:
Add new endpoint for Dataset to Dataflows Links

Incorporated a new endpoint based on: https://learn.microsoft.com/en-us/rest/api/power-bi/admin/datasets-get-dataset-to-dataflows-links-in-group-as-admin
I'm not super familiar with tests so I did return an error. I would be grateful for any assistance!
E           requests.exceptions.ConnectionError: Connection refused by Responses - the call doesn't match any registered mock.
E
E           Request:
E           - GET https://api.powerbi.com/v1.0/myorg/admin/groups/f089354e-8366-4e18-aea3-4cb4a3a50b48/upstreamDataflows
E
E           Available matches:
E           - GET https://api.powerbi.com/v1.0/myorg/admin/groups/51e47fc5-48fd-4826-89f0-021bd3a80abd/datasets/upstreamDataflows URL does not match

..\..\..\..\AppData\Local\Programs\Python\Python311\Lib\site-packages\responses\__init__.py:1100: ConnectionError
========================================================================================================= short test summary info ==========================================================================================================
FAILED pbipy\tests\test_admin.py::test_dataset_dataflows_links - requests.exceptions.ConnectionError: Connection refused by Responses - the call doesn't match any registered mock.
======================================================================================================= 1 failed, 45 passed in 0.32s ==========================================================

Hey Thanks for this, but this functionality has been implemented in the method admin.datasets_upstream_dataflows. It's a bit obscure because the library methods don't try to exactly reflect the api endpoints, but reflect the user intent (do/get). Don't let that put you off contributing though, because this was a great first start. There's some not-yet-implemented functionality on Capacities, or Gateways, that would be useful and follows the same general pattern as the rest of the library. Feel free to have a stab at those. You could add a single method to get a feel for the library design, I merge, and then you keep developing the rest.
RE the failed test. pbipy uses responses, a library for mocking responses to calls made by the requests library (which underpins pbypi). What the tests do is make sure that the URLs are being correctly formed by the pbypi methods, and then also check that any response was correctly turned into what was expected. The Available matches component of the error message is what responses is expecting to be called. The Request component is what was called. Because they're different, the test fails.
The test fails because the url that was called by dataset_dataflows_links() is different to what is expected. The error originates on line 548, path = build_path("/groups/{}/upstreamDataflows", group), which should be path = build_path("/groups/{}/datasets/upstreamDataflows", group). Also, the group ID that is passed into dataset_dataflows_links() isn't the same as the group ID in the url: ...groups/51e47fc5-48fd-4826-89f0-021bd3a80abd/... vs .../groups/f089354e-8366-4e18-aea3-4cb4a3a50b48/... Hope that helps!

Thanks for taking the time to look. In reference to the existing endpoint I believe that one is: https://learn.microsoft.com/en-us/rest/api/power-bi/dataflows/get-upstream-dataflows-in-group
However, the one I've suggested is: https://learn.microsoft.com/en-us/rest/api/power-bi/admin/datasets-get-dataset-to-dataflows-links-in-group-as-admin
The former takes two arguments group and dataflow whereas the latter is only the group id.
I think the outputs are different though.
Unless I'm missing something in the url building if a dataflow is not provided.

Ah I see. Yep, these are two distinct endpoints with different parameters, and outputs.
https://learn.microsoft.com/en-us/rest/api/power-bi/dataflows/get-upstream-dataflows-in-group - applies to Dataflows, and is called by Dataflow.upstream_dataflows. It's all the Dataflows that are linked to the specific Dataflow.
https://learn.microsoft.com/en-us/rest/api/power-bi/admin/datasets-get-dataset-to-dataflows-links-in-group-as-admin - is an admin-specific endpoint. If you take a look at the code in Admin.datasets_upstream_dataflows, it calls the same url specified there. It's all the Datasets and their links to Dataflows for the given Group.
The URL building takes place on the objects themselves, e.g., on the Dataflow object, it knows its id and group_id, and these are incorporated into a base_path attribute. The endpoint path is then added to this base path to form the complete URL.

I totally missed that. Thank you!

authors: GD-L andrewvillazon

repo: andrewvillazon/pbipy


text:
Bug fixes client.py

Mutable Default Argument:
Issue: The original code used provider_configs: dict = {} as a default argument. This could lead to unintended side effects due to Python's handling of mutable defaults.
Fix: Changed provider_configs to None and initialized it with {} inside the method.
Repetitive Validation:
Issue: Both Client and Completions contained redundant logic for provider validation.
Fix: Centralized validation logic into _validate_provider_key and reused it.
Unclear Error Handling:
Improved error messages for easier debugging.
Lazy Initialization:
Ensured lazy initialization for properties (chat and completions).

This is a duplicate PR. There is already a PR with the same idea which waits to be approved opened earlier.
https://github.com/andrewyng/aisuite/pull/84
https://github.com/andrewyng/aisuite/pull/84

authors: SermetPekin aizafaraz

repo: andrewyng/aisuite


text:
use root project versions in build.gradle

@CentaurWarchief Can you please merge this and create a new release on NPM?

@andreyvital Can you please take a look at this.

@skb1129 does this break anything? I am not capable of testing right now

@skb1129 nevermind—LGTM. I'm merging and publishing! Thanks!

Published as 0.7.0. Thanks man 🍻


text:
[问答]如何正确统计每个界面启动时间?

如何正确统计每个界面启动时间?
onCreate-onResume 两个方法的时间差?

启动这个页面的地方开始计时，onResume结束停止计时？

@haflcup 感谢回复  不知道有没有更好的方法

onCreate() ， 开始计时
onCreate()，使用某一个View，View.post(Runnable) -> run() ，停止计时
这个时间大概就是当前Activity/Fragment从创建到显示花费的时间了
要统计每一个当然是用基类/父类了

统计每一个界面使用时间怎么搞？

创建页面的时候获取一个时间，退出的时候获取一个时间，计算

authors: AlanCheen PellingLyu SbyXlmm aWangami haflcup

repo: android-cn/android-discuss


text:
使用 MVP 时，如何让同一个 P 服务多个 V？

关于 MVP ，大家都知道，一般的，一个 Presenter 对应 一个 View，这样会导致一个结果，就是让项目中的类一下子多了很多。
最近在做公司的用户模块时，我试图写一个 UserPresenter ，让它服务多个 Activity 比如 LoginActivity 、FindPassActivity，这样写的好处是可以复用 Presenter 中的一些方法，比如发送验证码等公用方法，但是涉及到具体的 view 调用时 就会出现问题，不知道怎么去调用不同 View 中的方法实现。
大家有没有遇到过或者思考过这样的问题，欢迎交流。

我在项目中也尝试过，但是失败了，因为如果 P 要服务多个 V，那应该是需要持有多个 V 的引用的，但是又不可能这些 V 都同时存在，所以会有些 V 为空，有些 V 不为空，用起来真的好奇怪。

一个 Presenter  对应一个view，你说的那些方法，封装到一个公共类，每个Presenter 用的时候调用就行了，看看官方对mvp 的最佳实践

其实多个view都继承一个接口就行，把他们共同的操作封装起来

@Lujango  确切说是 实现同一个接口把。

我也有过这种想法。你可能是想共享数据，但是数据是应该提到m层的，也就是说p只处理逻辑。从这方面说，没有必要一个p服务多个v。

我觉得楼上有几位和我想的差不多，其实就是提供一个IUserView的接口，然后需要这个Presenter的页面就实现这个接口。

同意楼上的做法，Presenter提供逻辑处理结果的接口，用到的view实现接口就可以。接口方法还可以通过泛型来适配多个view。

@snowjade
interface IMyView extends IBaseView {
}

class MyActivity extends BaseActivity implements IMyView {
}

使用接口继承是一个思路，但是一般父接口已经放了一些基本方法，比如生命周期的一些方法，再多加一层继承来处理发送验证码等公用方法的话，就又多了一层继承。
官方MVP实践给出了一个思路，即使用 mvp clean architecture
你提到的情况正式MVP模式的两个问题，Presenter代码过多的问题，还有不同Presenter代码重复的问题。
思路是可以创建一个用例层UseCase 或者叫交互层Interactor来放置用例
仍然保持一个P一个V，将Presenter中的逻辑代码放到到UseCase中，一是减少presenter代码，二是复用UseCase。
一个UseCase集中了相关的用户逻辑，比如登入，登出，验证等等。不同的Presenter不用的View如果要做的事相关，比如登录，那么就复用同一个UserCase。
代码和概念在此：
https://github.com/googlesamples/android-architecture/tree/todo-mvp-clean

@lixiaoyi
我后来看了大家的意见，使用了多继承来达到复用，带来的问题就是继承关系有点深，不仅 P 要多继承，V 也需要相应的多继承，回头试试你说的这种方式,用 UserCase , Thanks ~

多几个接口就可以吧

authors: Lujango NanFengyang Torahlzy cervy gaoyan10 imknown lixiaoyi maoruibin mzule snowjade tianshaokai


text:
Migrate from java to kotlin sourceSet directory

Note This will force most of other PRs to rebase.

#309
#520
#622

Using this command:
find . -depth -type d -name "java" -path "*/src/*" -exec git mv "{}" "{}"/../kotlin \;

Closing #436

What do you mean by full tool support?
The kotlin sourceSet has been working for years now.
Do you have a specific issue in mind?

🙏 Could we finally merge this PR?

@JoseAlcerreca I'm guessing you mean - is this fully supported by Android Studio? Is that correct?

Just tested this in AS Giraffe and everything (indexing, UI previews, builds) seems to work as intended. There were some existing bugs related to this (internal only: b/273905575, b/249125762) which have been fixed (thanks @rosejr).
Thanks for doing this @SimonMarquis.

Thanks! I'll proceed to update all my pending reviews that are now in conflict 👍

Quick question. Is there a way to make kotlin sourceSet default when creating a new module?

authors: SimonMarquis dawidhyzy dturner

repo: android/nowinandroid


text:
[Bug]: bglocationaccess will only run every 15 minutes, not every 2 minutes as stated

Is there an existing issue for this?

[X] I have searched the existing issues

In which area is the issue?
Location
In a specific sample?
BgLocationAccessScreen.kt
What happened?
The example claims it checks for background location every 2 minutes, however it uses PeriodicWorkRequestBuilder, whose minimum interval is MIN_PERIODIC_INTERVAL_MILLIS, which is 15 minutes.
Relevant logcat output
No response
Code of Conduct

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

That's correct thanks for noticing. I send updated it to 15min

authors: marcelpinto swilson

repo: android/platform-samples


text:
🛑 Frais is down

In 409f773, Frais (https://frais.sed.com.ar) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Frais is back up in 9fff07f.

repo: andrus-code/pagesstatus


text:
Add ByteBuf.release

Closes: #292

Hi @AndreasMager I'm going to accept this PR but I've to ask you 2 things:

instead of msg.release() use RefereceCountUtil.release()
squash the commits

Many thanks

@andsel ready to go. Thank you

authors: AndreasMager andsel

repo: andsel/moquette


text:
🛑 AnduinSign landing page is down

In 8251217, AnduinSign landing page (https://www.anduinsign.io/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: AnduinSign landing page is back up in cff0673.

repo: anduintransaction/upptime


text:
Improve style

Several issue need to be fixed.

[x] add navigation title property in config.yml, only use article's title if no this prooerty.
[x] view on github should be removed.
[x] osu!karoake string before navigation in the left side should be removed.
[ ] fix the layout, maybe see how http://blog.udn.com/andy840119 do ?

Also add:

user can use sort or un-sort by nav_order

Fix layout issue using this sample in stackoverflow

Implemented.
Perfect


text:
Mac and Windows Issues

Hi Andy,
I tried your new script on both my Mac and Windows computers and ran into the following:

The Mac looks like its not doing anything.  When I run the script python3 esmcheckds2.py -d 0 -f csv, the script appears to just end and I have a new prompt.

On Windows, I get the following error:
Traceback (most recent call last): File "esmcheckds2\console.py", line 278, in <module> File "esmcheckds2\console.py", line 205, in main File "esmcheckds2\esmcheckds2.py", line 177, in _build_devtree File "esmcheckds2\esmcheckds2.py", line 296, in _get_raw_clients KeyError: 'FTOKEN' Failed to execute script console

I definitely have the .mfe-saw.ini in the %APPDATA% and my $HOME directories.
Any thoughts?

Hi, sorry for the delayed response. I'm not sure about the mac, I assumed it would operate much like any *nix environment. I'll need to find a way to test that.
For the Windows error, I'm pretty sure that's been fixed in the dev branch. I need to get a new release posted but been delayed by the busy season. I'll have something posted soon. Thanks,

Could you please verify if these are fixed in the latest release?
https://github.com/andywalden/esmcheckds2/releases/latest

Hi Andy,
I just gave it a try with the new version and I'm getting a different error:
python3 esmcheckds2 -h 1
File "esmcheckds2", line 1
SyntaxError: Non-UTF-8 code starting with '\xe8' in file esmcheckds2 on
line 2, but no encoding declared; see http://python.org/dev/peps/pep-0263/
for details
Jason S. Lazerus, M.S., GCFA, GPEN, GCIH, GCFE, GCED, GSEC
On Mon, Oct 9, 2017 at 1:11 PM, Andy Walden notifications@github.com
wrote:

Could you please verify if these are fixed in the latest release?
https://github.com/andywalden/esmcheckds2/releases/latest
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/andywalden/esmcheckds2/issues/13#issuecomment-335221343,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AP70A77IwetBkcy5Qy7LHfVPuX775QAKks5sqlPUgaJpZM4PPQBY
.

Thanks. Could you tell me some details about the operating environment and install method please?

I'm running this on Mac andI tried through both pip and downloaded the file
from the link you sent me.
I also just tried this on windows and got the following message after
running esmcheckds2.exe -h 1
Traceback (most recent call last):
File "esmcheckds2\console.py", line 279, in
File "esmcheckds2\console.py", line 205, in main
File "esmcheckds2\esmcheckds2.py", line 180, in _build_devtree
File "esmcheckds2\esmcheckds2.py", line 302, in _get_raw_clients
KeyError: 'FTOKEN'
Failed to execute script console
Jason S. Lazerus, M.S., GCFA, GPEN, GCIH, GCFE, GCED, GSEC
On Mon, Oct 9, 2017 at 1:48 PM, Andy Walden notifications@github.com
wrote:

Thanks. Could you tell me some details about the operating environment and
install method please?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/andywalden/esmcheckds2/issues/13#issuecomment-335231421,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AP70A4xHG7LAQi5nYiaZcLW5LD0lOPwcks5sqlv3gaJpZM4PPQBY
.

Thanks. Could you tell me the OS versions on the Mac and Windows devices?

Mac 10.12.6
Windows 7 x64
Jason S. Lazerus, M.S., GCFA, GPEN, GCIH, GCFE, GCED, GSEC
On Mon, Oct 9, 2017 at 1:53 PM, Andy Walden notifications@github.com
wrote:

Thanks. Could you tell me the OS versions on the Mac and Windows devices?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/andywalden/esmcheckds2/issues/13#issuecomment-335234526,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AP70Ayaws5c1XPZKXCEjebPZxJeiLUEWks5sql2xgaJpZM4PPQBY
.

I posted a new release. I've also determined that ESM 10.0.0, 10.0.0MR1 and 10.0.1 are unsupportable so if you're running one of those please upgrade. Thanks.
https://github.com/andywalden/esmcheckds2/releases/tag/v0.0.7

authors: InfoSecured andywalden

license: isc


text:
Standard Data Format

I am using standard Yahoo downloads in the format
Date,Open,High,Low,Close,Volume,Close
2015-01-01,312.45,315.0,310.7,314.0,6138488,314.0

When I run sample program (as per README) I get the following error -
Traceback (most recent call last):
File "clairvoyance.py", line 35, in <module>
backtest.runModel(data)
File "/Users/8288/source_code/finance/venv/lib/python2.7/site-packages/clairvoyant/Backtest.py", line 75, in runModel
trainStart = DateIndex(data, stock, self.trainStart, False)
File "/Users/8288/source_code/finance/venv/lib/python2.7/site-packages/clairvoyant/Backtest.py", line 16, in DateIndex
lowbound = data["Date"][0]
File "/Users/8288/source_code/finance/venv/lib/python2.7/site-packages/pandas/core/series.py", line 603, in __getitem__
result = self.index.get_value(self, key)
File "/Users/8288/source_code/finance/venv/lib/python2.7/site-packages/pandas/indexes/base.py", line 2175, in get_value
return tslib.get_value_box(s, key)
File "pandas/tslib.pyx", line 946, in pandas.tslib.get_value_box (pandas/tslib.c:19053)
File "pandas/tslib.pyx", line 962, in pandas.tslib.get_value_box (pandas/tslib.c:18770)
IndexError: index out of bounds

Can you show me the full program you're trying to run? It will help me better understand what's going wrong.

https://gist.github.com/antani/779d4dc8175efcfa427723f6524f0de8

Here's your problem:
variables  = []
You need to tell the program which variables to model and which to ignore. For example, if you want to model the Open, Close, High, Low, and Volume of your data, you need to include the following.
variables = ["Open", "Close", "High", "Low", "Volume"]

Works fine.

authors: anfederico antani

repo: anfederico/Clairvoyant


text:
Add a synchronization channel to ensure App's dependencies get initia…

…lized before use
closes #152

This solution appears to be well-designed and lightweight. After reviewing the Go documentation on channels, the approach is clear and well-understood.

authors: AitakattaSora anfragment

repo: anfragment/zen


text:
Make sure vars in when statement are using {{var}}

When using ansible v2.1.0.0 I'm having issues this statement evaluating to True:
https://github.com/angstwad/docker.ubuntu/blob/master/tasks/kernel_check_and_update.yml#L34-L36
Even when each evaluate to False individually.
ansible_distribution_version|version_compare(13.04, '=') == False
ansible_distribution_version|version_compare(13.10, '=') == False
install_kernel_extras == False

"ansible_distribution_version|version_compare(13.04, '=') or
      ansible_distribution_version|version_compare(13.10, '=') or
      install_kernel_extras" == True

This is causing the task Install latest kernel for Ubuntu 13.04+ to run on my Ubuntu 12.04 box.
The issue seems to be resolved when using the {{ var }} syntax. For good measure I modified all of the when: statements in kernel_check_and_update.yml to use the {{ var }} syntax.

I appreciate you submitting this I don't think it should be necessary.  Seems to me like an Ansible problem.  I don't recall them making any   Can you verify that this does not occur in Ansible ~2.2, latest available?

Okay so I updated ansible to the latest, and here is what I see:
Test 1
My test code:
- name: ansible_distribution_version
  debug:
    var: ansible_distribution_version

- name: ansible_distribution_version|version_compare(13.04, '=')
  debug:
    var: ansible_distribution_version|version_compare(13.04, '=')

- name: ansible_distribution_version|version_compare(13.10, '=')
  debug:
    var: ansible_distribution_version|version_compare(13.10, '=')

- name: install_kernel_extras
  debug:
    var: install_kernel_extras

- name: Install latest kernel for Ubuntu 13.04+
  apt:
    pkg: "{{ item }}"
    state: "{{ kernel_pkg_state }}"
    update_cache: yes
    cache_valid_time: 600
  with_items:
    - "linux-image-extra-{{ ansible_kernel }}"
    - linux-image-extra-virtual
  when: "ansible_distribution_version|version_compare(13.04, '=')
      or ansible_distribution_version|version_compare(13.10, '=')
      or install_kernel_extras"

Terminal Output:
TASK [docker : ansible_distribution_version] ***********************************
ok: [islandora] => {
    "ansible_distribution_version": "12.04"
}

TASK [docker : ansible_distribution_version|version_compare(13.04, '=')] *******
ok: [islandora] => {
    "ansible_distribution_version|version_compare(13.04, '=')": false
}

TASK [docker : ansible_distribution_version|version_compare(13.10, '=')] *******
ok: [islandora] => {
    "ansible_distribution_version|version_compare(13.10, '=')": false
}

TASK [docker : install_kernel_extras] ******************************************
ok: [islandora] => {
    "install_kernel_extras": "false"
}

TASK [docker : Install latest kernel for Ubuntu 13.04+] ************************
failed: [islandora] (item=[u'linux-image-extra-3.13.0-101-generic', u'linux-image-extra-virtual']) => {"failed": true, "item": ["linux-image-extra-3.13.0-101-generic", "linux-image-extra-virtual"], "msg": "No package matching 'linux-image-extra-3.13.0-101-generic' is available"}
	to retry, use: --limit @/Users/jgreen/Documents/projects/test/test.retry

Test 2
My test code:
- name: ansible_distribution_version
  debug:
    var: ansible_distribution_version

- name: ansible_distribution_version|version_compare(13.04, '=')
  debug:
    var: ansible_distribution_version|version_compare(13.04, '=')

- name: ansible_distribution_version|version_compare(13.10, '=')
  debug:
    var: ansible_distribution_version|version_compare(13.10, '=')

- name: install_kernel_extras
  debug:
    var: install_kernel_extras

- name: Install latest kernel for Ubuntu 13.04+
  apt:
    pkg: "{{ item }}"
    state: "{{ kernel_pkg_state }}"
    update_cache: yes
    cache_valid_time: 600
  with_items:
    - "linux-image-extra-{{ ansible_kernel }}"
    - linux-image-extra-virtual
  when: "{{ ansible_distribution_version|version_compare(13.04, '=') }}
      or {{ ansible_distribution_version|version_compare(13.10, '=') }}
      or {{ install_kernel_extras }}"

Terminal Output:
TASK [docker : ansible_distribution_version] ***********************************
ok: [islandora] => {
    "ansible_distribution_version": "12.04"
}

TASK [docker : ansible_distribution_version|version_compare(13.04, '=')] *******
ok: [islandora] => {
    "ansible_distribution_version|version_compare(13.04, '=')": false
}

TASK [docker : ansible_distribution_version|version_compare(13.10, '=')] *******
ok: [islandora] => {
    "ansible_distribution_version|version_compare(13.10, '=')": false
}

TASK [docker : install_kernel_extras] ******************************************
ok: [islandora] => {
    "install_kernel_extras": "false"
}

TASK [docker : Install latest kernel for Ubuntu 13.04+] ************************
skipping: [islandora] => (item=[])

Doing a little more digging it seems like its the install_kernel_extras variable.
Works correctly
- name: Install latest kernel for Ubuntu 13.04+
  apt:
    pkg: "{{ item }}"
    state: "{{ kernel_pkg_state }}"
    update_cache: yes
    cache_valid_time: 600
  with_items:
    - "linux-image-extra-{{ ansible_kernel }}"
    - linux-image-extra-virtual
  when: "ansible_distribution_version|version_compare(13.04, '=')
      or ansible_distribution_version|version_compare(13.10, '=')
      or {{ install_kernel_extras }}"

Works correctly:
- name: Install latest kernel for Ubuntu 13.04+
  apt:
    pkg: "{{ item }}"
    state: "{{ kernel_pkg_state }}"
    update_cache: yes
    cache_valid_time: 600
  with_items:
    - "linux-image-extra-{{ ansible_kernel }}"
    - linux-image-extra-virtual
  when: "ansible_distribution_version|version_compare(13.04, '=')
      or ansible_distribution_version|version_compare(13.10, '=')"

Was thinking about this, and it was the way I had the install_kernel_extras variable defined. It was being interpreted as a string rather then a boolean, and the string was evaluating to false. By double templating I was getting around this, my bad. The was it was defined as a string wasn't obvious to me, so I'll leave it here in case someone comes across it in the future.
In my hosts ini file I had:
[djatoka]
server ansible_host=10.10.10.2

[djatoka:vars]
install_kernel_extras=false

Moving my vars out to a separate YAML file fixed the issue.
Thanks for the help. I'll close this pull request.

authors: angstwad jonathangreen


text:
Canal de youtube para streaming en el futuro

Me gustaría...

[ ] 😎 Ser el próximo speaker
[ ] 😃 Proponer un tema
[x] 😋 Sugerir una idea/proyecto
[ ] 🤠 Convertirme en organizador
[ ] 🤕 Resolver una duda técnica
[ ] 🤡 Otro

Descripción
Muchos meetups tienen canal en youtube donde hacen streaming, una charlita en el mes, corta por streaming no estaría mal, es una sugerencia :yum:
Excelente meetup :yum:  sigan así.

Después de hacer el issue, me di cuenta que en otro issue alguien comento algo parecido, aun así dejo este issue para que la idea no se pierda, ya si los administradores lo desean pueden borrarlo.

¡Buenísima idea! 💡  💡  💡
Creo que puede ser muy divertido, cada persona puede ver el streaming desde su casa, y podemos tener más invitados, incluso un panel de discusión, entre otros temas! 🎉
Empezaré a buscar a los panelistas! 👍

Yo muchas veces no puedo ir a los meetups en semana, cuando son en youtube, muchas veces puedo ver las repeticiones en la noche o cuando tengo tiempo disponible.
seria muy genial :yum: gracias @jdjuan  excelente meetup :yum:

Gracias a ti @SantiagoMolinaOrozco ! Eres un miembro muy activo! 😁
Comunidad!, necesitamos una mano con esta idea, alguien quiere ayudarnos a hacerla realidad? ✋

Ya tenemos canal! Pueden verlo aquí! https://www.youtube.com/channel/UCHA3Bs7x8f89X9TtFnmsqLQ
Pronto subiremos el último meetup! 😁

Muchas gracias, Estaré pendiente 😋 ya que no pude asistir  al ultimo meetup 😋

authors: SantiagoMolinaOrozco jdjuan

repo: angular-medellin/meetup


text:
SEO: Angular works but Angular-translate is not rendered by googlebot

Im not sure if this is a problem in my code or if its angular-translate.
When my homepage getting indexed by googlebot the translations is not being rendered. However, if I browse my homepage myself it works perfectly. Googlebot renders my regular angular code, which makes me think it's something in angular-translate.
'use strict';

var translationsSE = {
  START: 				'translations',
  START_TEXT: 			'translations'
};

var translationsKR = {
  START: 				'translations',
  START_TEXT: 			'translations'
};

var translationsEN= {
  START: 				'translations',
  START_TEXT: 			'translations'
};

var app = angular
  .module('app', [
  	'pascalprecht.translate',
  ]);

app.config(['$translateProvider', function ($translateProvider) {
  $translateProvider.translations('en_US', translationsEN)
  					.translations('sv_SE', translationsSE)
  					.translations('ko_KR', translationsKR)
  					.determinePreferredLanguage()
  					.fallbackLanguage('sv_US');
}]);

app.controller('LanguageController', ['$translate', '$scope', function ($translate, $scope) {
  $scope.changeLanguage = function (langKey) {
    $translate.use(langKey);
	$('.typed-text').text($translate.instant('START'));
  };
}]);

//This is working fine even with googlebot
app.controller('TestController', ['$scope', function($scope) {
	$scope.test = 'This shows that usual angular stuff renders';
}]);

app.controller('ContactController', ['$scope', '$http', function ($scope, $http) {
    $scope.submit = function() {
    	$scope.loading = true;
	    $http({
	        url: '/contact',
	        method: 'POST',
	        params: this.formData
	    }).success(function () {
	        $scope.success = true;
	    }).error(function () {
			$scope.error = true;
	    }).finally(function () {
	    	$scope.loading = false;
	    });
    };
}]);

app.controller('TypedController', ['$translate', function ($translate) {
	$('.typed-text').typed({
	    strings: [$translate.instant('START') + '^20'],
	    typeSpeed: 5,
	    callback: function () {
	    	$('.cover-description').css('visibility', 'visible').addClass('animated fadeInUp');
	    	$('.scroll').css('visibility', 'visible').addClass('animated fadeInUp');
	    }
	});
}]);

So this angular snipped from my TestController is being rendered by googlebot:

{{test}}

But my translations are not:

START_TEXT

Same happens if I generating a snapshot from http://service.prerender.io/
Any idea whats is wrong here?

The GoogleBot has only limited JavaScript enabled (actually, it was no JavaScript at all for a long time).
If you need to to SEO for an AngularJS app, you should definitely look for SEO optimizations for this and not only the part of translate. There are several resources like http://www.yearofmoo.com/2012/11/angularjs-and-seo.html.
Prerender looks good, however I'm not familiar with this.
At least I can say: If the translations are not being made, it will be either

an issue with prerender "rendering" too early before angular-translate has finished loading translations
the whole app of you is broken in context of prerender (due limitations of the underlaying headless client lib)

We as a library cannot help because nothing is broken -- so far as I can say this.
It would be nice if you would share more information or a possible solutions.

Thank you for the help.
I suspect it's your first point that is the problem. Not sure how to solve it though.
Will investigate this further and share my findings.

Hum, the problem is somehow that angular-translate is rendering to fast before text being loaded?
If I put a delay:
setTimeout(function () {
    $('.text').text($translate.instant('START'));
}, 1000);

Then googlebot shows the rendered text. Does this make sense?

Does this make sense?

No idea, we're not familiar with Prerender. Perhaps you can define an additional waiting time or a specific event

any idea how I can solve this?

This is all fully asynchronous. We provide an event hinting when translations are loaded (but not used), but anything else is not in our charge anymore. And this is meant for all asynchronous plugins.. so will also have other probably still unseen issues
Do you really need an output from the dynamic content? Would it not sufficient using an one-time rendered output at built time or even manually?
I'm closing this, but feel free to comment.

I'm hitting the same issue, pre-prender takes the page screenshot before all translations are loaded.
Prerender does have take a event, signalling that the page is fully loaded. What is that "event hinting" you're talking about ?
It'll help if we can have an event each time a translation begins to load, and another when the translation is loaded, so we can have for example an array of started translation, and another of loaded translation, then compare the size of the two arrays to know if all translation were processed.

(Please do not comment on closed issue. Generally, they aren't tracked any more in watch lists.)
Have a look at the events which are being fired.

Thanks, didn't knew about that event section

Was very frustrating for me too. Google Speed is rendering the full page - but cache und crawler not.

What does "rendering" the full page mean? And as Knalli already mentioned: If you have an issue to track and solve: Please file a new defect!

Nice, in the comments... it says 'I'm closing this, but feel free to comment.'  then right below it says ... "Please do not comment on closed issue" - if this issue is closed, where is the solution?

@siasjustin  That's right, actually. :) Regularly, we are not locking conversation so everyone can add (valueable) comments or additions. But you should never expect answers or solutions for new question on already closed issues -- after a year.
Btw, the answer is within my first post. And actually, this is not an issue with angular-translate, but a general issue to handle with your AngularJS app.

Hey @knalli i think it is a problem with angular-translate, not only for SEO but for testing with a headless browser. I know you have a section about this (testing) in the documentation but it just doesn't solve it. If you try to load a page with angular-translate with phantomjs it doesn't load correctly. In some configurations (e.g. with ngRoute) it always loads the $urlRouterProvider.otherwise page.
I been making some tests and the funny part is that if you remove $translateProvider.forceAsyncReload(true); it loads... of course that brings a lot of other problems.
What do you think? Should i create an new issue for this?
Cheers

We do not have an "issue". angular-translate is like angular apps fully asynchronous which results into async rendered sites. Deal with it, because that is why you eventually have chosen JavaScript, AngularJS and -- finally -- angular-translate.
Either you build special pages for static requests or use special tooling for creating images (incl. html output) of async page layouts.
This is not something special for angular-translate, but overall for dynamic pages using JavaScript for deferred rendering.

Indeed.. everybody that has build apps with angular knows that SEO is a shitmess. And usually you choose to build static pages either with services like prerender.io or manually with a headless browser. The problem with angular-translate is that it doesn't even let you.
If you use angular-translate with async loading, you wont be able to get in goolge, bing or any other search engine. Not even tools like pingdom will see your site correctly.
Is not a big deal, we decided to take another approach but I just wanted to notice it here.
P.S. @knalli I really like angular-translate, i'm not criticizing it, you guys have done a terrific job. I've used it in other projects that don't need SEO.

Honestly, I still don't the point.
What does make angular-translate different from other (angular) libraries/addons loading external async resources and therefor deferred rendering?
What are you missing exactly (in detail, in a technical view of point)?
Speaking of angular-translate, you either create a static rendered page with a in-place definition of texts (not async, but this will not resolve all of you async issues by concept) or you will listen to the events of the plugins before making the screenshot.

The general view is that phantonjs can render correctly any page of an app without the need of listening for ajax responses, it just works. When you add angular-translate, phantomjs (and apparently any other headless browser) always render the root_page, even when you try to render a different one.
I tried to listen to $translateChangeEnd and $translateLoadingSuccess and then trigger the render but it doesn't work. My guess is that somehow, angular-translate is messing with the digest cycle, i didn't dig too much into it.
For the technical view of point, i think it would be better to create a demo app and test it from there. Maybe i'm missing something.
I'll try to create the repo next week and we can figure out the problem from there.
What do you think?

The general view is that phantonjs can render correctly any page of an app without the need of listening for ajax responses, it just works.

That is not true, partly. If you have a very simple site with javascript generated content, this will work eventually by accident. But you have to wait in PhantomJS for ready events as well.

The simplest would be document.onReady for JavaScript itself. But this ignores the AngularJS bootstrap and therefor the app itself.
The next would be an AngularJS app module run (angular.module('app').run(() => {…}). But this ignores any app specific (incl. angular-translate) addon.
The next would be (all) specific collected trigger events (incl. our $translate.isReady(() => {…})).

We are open for any improvements: if you have an idea, I really want to see this. But I think you simplifying the complex asynchronous process a little bit -- of a SPA in general and an AngularJS app in specific, including our small plugin library.
If you wait for translateChangeEnd and this does not work, it could be a racing issue. Perhaps this is better:
$rootScope.$on('$translateChangeEnd', () => {
  $timeout(() => myTrigger()); // immediate invoke, but in next cycle
});

translateLoadingSuccess defines a loading success and does not reflect depending components (directives, filters) for have called for a refresh.
Note: While a directive have an explicit listener for changes, a filter is controlled by AngularJS. AngularJS is calling our filter (in templates). If we are not called, there will be no update.

That is not true, partly. If you have a very simple site with javascript generated content, this will work eventually by accident. But you have to wait in PhantomJS for ready events as well.

Ok, Let say you wait for 1 minute (way too much) for all ajax requests to be completed before rendering the page. This should eliminate the problem, but it doesn't, it still renders the wrong page.
Look, maybe you're right and i'm simplifying the process, and since its very complex i think that its better to analyse it in a demo app.

Ok, Let say you wait for 1 minute (way too much) for all ajax requests to be completed before rendering the page. This should eliminate the problem, but it doesn't, it still renders the wrong page.

Okay, well, that's sound not good. This smells like missing digest cycles. Go for a simple poc. I would recommend a new issue btw :)

Ok, i'll create a new issue and start the POC repo when i get the chance.
Cheers

authors: genaromadrid knalli kvbappinio nilsi siasjustin tspaeth wa0x6e

repo: angular-translate/angular-translate


text:
Error while creating extra nodes in the ui-tree

Error: [$rootScope:infdig] 10 $digest() iterations reached. Aborting!
Watchers fired in the last 5 iterations: [[{"msg":"fn: function () {\n          return ctrl && ctrl.$mdTheme || (defaultTheme == 'default' ? '' : defaultTheme);\n        }","newVal":"indigo"},{"msg":"fn: function () {\n          return ctrl && ctrl.$mdTheme || (defaultTheme == 'default' ? '' : defaultTheme);\n        }","newVal":"indigo"},{"msg":"fn: function () {\n          return ctrl && ctrl.$mdTheme || (defaultTheme == 'default' ? '' : defaultTheme);\n        }","newVal":"indigo"},{"msg":"fn: function () {\n          return ctrl && ctrl.$mdTheme || (defaultTheme == 'default' ? '' : defaultTheme);\n        }","newVal":"indigo"},{"msg":"fn: function () {\n          return ctrl && ctrl.$mdTheme || (defaultTheme == 'default' ? '' : defaultTheme);\n        }","newVal":"indigo"},{"msg":"fn: function () {\n          return ctrl && ctrl.$mdTheme || (defaultTheme == 'default' ? '' : defaultTheme);\n        }","newVal":"indigo"},{"msg":"fn: function () {\n          return ctrl && ctrl.$mdTheme || (defaultTheme == 'default' ? '' : defaultTheme);\n        }","newVal":"indigo"},{"msg":"fn: function () {\n          return ctrl && ctrl.$mdTheme || (defaultTheme == 'default' ? '' : defaultTheme);\n        }","newVal":"indigo"},{"msg":"fn: function () {\n          return ctrl && ctrl.$mdTheme || (defaultTheme == 'default' ? '' : defaultTheme);\n        }","newVal":"indigo"},{"msg":"fn: function () {\n          return ctrl && ctrl.$mdTheme || (defaultTheme == 'default' ? '' : defaultTheme);\n        }","newVal":"indigo"},{"msg":"
HELLO , I AM GETTING THIS ERROR WHILE CREATING NODE WHEN RECEIVING DATA FROM A SERVER... I F I WRITE THE DATA(RESPONSE) MANUALLY IN MY CONTROLLER EVERYTHING WORKS FINE . PLEASE REPLY.
GENERAL STRUCTURE OF MY JSON IS
{
...,
...,
TASKS:[{
...,
...,
TASKS:[]
}]
}

It looks like you're running into the Angular limitation of 10 digest iterations before it aborts the digest cycle. I'm not sure what to make of the error dump you've posted. Is it possible for you to create reproduction steps in a jsFiddle or Plunk?

Closing this issue due to inactivity. See #815 for more information.
Please create a new issue is this still occurs with the current version of the component.

authors: StefanCodes jacobscarter rahulexcel

repo: angular-ui-tree/angular-ui-tree


text:
Datepicker only accept text that matches format

If someone is using a datepicker with popup, like here:
http://angular-ui.github.io/bootstrap/#/datepicker
Is it possible to mark the field as invalid until they have formatted the date like provided?  For instance, if I am typed:
10
It treats this as a valid date (october 1, 2001) .  I would rather treat this as invalid, until I completed by typing of my date like:
10/20/2014

Ahh. Seems like I haven't noticed this issue and also created a similar PR for this. https://github.com/angular-ui/bootstrap/pull/3288

This should now be fixed in master.

authors: jmayday stephendparker wesleycho

repo: angular-ui/bootstrap


text:
Type ahead doesn't let you click on the results in Chrome

Tested this on the demo page on Chrome version Version 39.0.2171.95 m
Tried it on Firefox and had no issues.

Closing as it was a batarang issue

authors: antoinepairet brendonbeebe


text:
Split Datepicker component off to its own repository

The datepicker has been a big pain - the UI Bootstrap team has floated the idea of splitting it off to its own repository so it could get the maintenance that it deserves without bogging down the release cycle.
Thoughts?

Like discussed in last meeting I agree with splitting it out to it's own repo. That way we can channel efforts to the right components and keep a clear issue tracker for instance.
We also mentioned porting a full featured jQuery datepicker like the one from eterniecode to Angular without the jQuery dependency. I'm just tossing that in here as well.

I also agree with what was said during the meeting obviously the datepicker
has become a noose around this projects neck
On Mar 30, 2015 7:47 AM, "Robin van Baalen" notifications@github.com
wrote:

Like discussed in last meeting
https://github.com/angular-ui/bootstrap/wiki/Meeting-minutes#meeting-thursday-march-26th
I agree with splitting it out to it's own repo. That way we can channel
efforts to the right components and keep a clear issue tracker for
instance.
We also mentioned porting a full featured jQuery datepicker like the one
from eterniecode to Angular without the jQuery dependency. I'm just tossing
that in here as well.
--
Reply to this email directly or view it on GitHub
https://github.com/angular-ui/bootstrap/issues/3472#issuecomment-87707860
.

Interesting. I can definitely see even as a casual observer how this would be helpful. Almost half of the issues on the front page are datepicker-related.
datepicker also seems to draw more help/support tickets than its companions, so perhaps this would be an opportunity to address that (expanded docs, easier to browse issues, single meeting area for people knowledgeable in it). And smaller repos are less intimidating for people to begin contributing to.
That said there are the obvious issues of user confusion and module proliferation, and the possibility that datepicker won't stay as active as the parent project.

I'm actually waiting for the pickers to be spun off into their own modules so I can tackle them.

I agree, but would this new project take a dependency on ui-bootstrap?  I would hate to see a separate implementation to support what the tooltip and position service in ui-bootstrap are doing of the datepicker..

Good point @RobJacobs that is indeed one of the many issues we have to tackle before deciding what to do with it.
@wesleycho I took the liberty to add a checklist to your original post to keep track of possible issues involved with splitting off the datepicker project. Feel free to do as you please with it.

Dateparser shouldn't be a problem, since it's only used in the datepicker. Thus is should just follow the datepicker into it's own repository.

For the time being, we are not doing any split.

authors: BobbieBarker Foxandxss RobJacobs realityking rvanbaalen tdhsmith wesleycho


text:
Upgrade from 0.13.0 to 1.0 doesn't render tabs

I'm doing an upgrade, followed the guide. I no longer get my tabs rendered. They work, but they're just strings. In 0.13.0, they rendered nicely.
Is there a new requirement for new CSS other than Bootstrap?

In 1.0, there is - see the changelog: https://github.com/angular-ui/bootstrap/blob/master/CHANGELOG.md#breaking-changes
The necessary CSS can be found here.

Ok. That's quite strange given the whole point is to integrate Bootstrap, so I didn't anticipate a CSS requirement.

We made this decision because we've had a fair number of issues where users were running into issues where the anchor tag would cause users to be routed whenever they nested other clickable elements inside the tab, such as another anchor element or a button element. It is our belief that the library should not have an opinion on what HTML is used there.
A similar issue happened with the accordion, which resulted in the same modification made there.

Aren't issues with user anchors the user's problem? FWIW, we didn't have a single issue with using <a> tags in tabs and now we need to add custom CSS to try and keep this feature in line with Bootstrap.
Personally, I think this was a very bad idea. A better solution would have been to explicitly state in the documentation that clickable sub-elements will need to cancel event propagation or something to that effect.

It is our belief that the library should not have an opinion on what HTML is used there.

Unfortunately, Bootstrap doesn't appear to hold this belief and they're the ones you are meant to be integrating with.

That isn't sufficient to fix that issue - the browser behavior results in the click triggering on the anchor tag, and not any children elements even though the user clicked on the children elements.
This is the solution we ultimately decided on due to another alternative violating CSP, and this being behavior that should never happen when using tabs as the option of least problems on a library level.
The custom CSS is minor, and unless there is a stronger argument made given the known routing and CSP problems that have to be consistent, we are not going to change this. If you do not want to override the CSS, then you could override the template and replace the div elements with anchor elements, but this is a decision arrived at with consensus with multiple team members.

Minor as the CSS may be, it's another point you're leaving to your users to keep in sync with the Bootstrap styles that this library is meant to integrate with.
You also appear to be missing the styles for nav-pills and the CSS provided does not actually match up with Bootstrap. Here's what I've come up with (LESS)
.uib-tab > div {
    position: relative;
    display: block;
    padding: 10px 15px;
    outline: 0;
    color: #337ab7;

    &:focus, &:hover {
        background-color: #eee;
        color: #23527c;
    }
}

.nav-tabs > .uib-tab {
    > div {
        margin-right: 2px;
        border: 1px solid transparent;
        border-radius: 4px 4px 0 0;

        &:hover {
            border-color: #eee #eee #ddd;
        }
    }

    &.active > div {
        &, &:focus, &:hover {
            color: #555;
            cursor: default;
            background-color: #fff;
            border-color: #ddd #ddd transparent #ddd;
        }
    }
}

.nav-pills > .uib-tab {
    > div {
        border-radius: 4px;
    }

    &.active > div {
        &, &:focus, &:hover {
            color: #fff;
            background-color: #337ab7;
        }
    }
}

This entire decision was very poorly conceived.

@philBrown, @wesleycho gave you our reasons for doing this.  You don't have to like them and I'm not even going to ask you to respect them since you seem to be fairly charged at the moment.
The simplest solution, as @wesleycho mentioned,  would result in no CSS changes for you would be to use our old tab and tabset template html files.
We didn't make this change willy-nilly and are sorry it appears to be such an issue for you.  We've given you a fairly solid and painless workaround and I know you don't like it, but that's the solution we are offering and I'm going to ask you to take it down a notch.  Thanks.

Posting an update - after discussion within the team, #5262 will revert the template back to an anchor element due to the major issue with custom themes built on top of Bootstrap noted in #5254.

authors: andyczerwonka icfantv philBrown wesleycho


text:
Timepicker marks valid hours/minutes as invalid

Bug description:

Enter 99 for the hour
Enter 99 for the minute
Enter 11 for one of hour or minute

Expected
Hour/minute is marked as valid
Actual
Hour/minute is marked as invalid
Link to minimally-working plunker that reproduces the issue:
https://angular-ui.github.io/bootstrap/#/timepicker
Version of Angular, UIBS, and Bootstrap
Angular: 1.4.13
UIBS: 2.2.0
Bootstrap: 3.3.7

@kevcenteno it's a time picker.  not a duration picker.

@icfantv I hear you.  I just think that the timepicker should be validating the hour and minute field independently, which it isn't.

authors: icfantv kevcenteno


text:
Fix #3036: Update column sorting priority

Update column sorting priority to not increment when sort is toggled, remove when unsorted, and to respect priority of columns with suppressRemoveSort by taking their priority in to account when a new column is sorted.

Looks clean and tidy, thanks heaps.

repo: angular-ui/ng-grid


text:
Ability to pass resolves to my state from a view

I think it would be amazing if you could (can you?) pass in a resolved object from a view.
// Loop through properties and display summaries and View links in my view
.state('properties', {
    url: '/properties',
    resolve: {
        properties: function(PropertyService) {
            return PropertyService.fetchAll();
        }
    }
})
// View property (detailed)
.state('properties.view', {
    url: '/properties/:id',
    resolve: {
        property: function(PropertyService, $stateParams) {
            return PropertyService.fetch($stateParams.id);
        }
    }
});

If you visit properties, it will fetch all Property entities from my API.
If you visit property.view, it will fetch that Property entity from my API.

Viewing a property is an extra API call if I'm already looking at a list. I think it would be real awesome if you could resolve from your view like:
View
Then instead of calling my API for that property, it would be passed in straight from the view. Yeah this can be achieved using a Service and some magic, but it adds complexity and think it would be extremely convenient coming straight from a view as we already have that object there.
Also, if your fetchAll() API call returns an array of thousands of objects and you'd like to retrieve it from your cache instead of calling fetch(). Something like _.findWhere(cache.objects, { id: item.id }); before making the extra call would be much more expensive than pushing your object straight to the state if you already have it.

https://gist.github.com/eddiemonge/f6a58169c2846731a1eb

authors: eddiemonge intellix

repo: angular-ui/ui-router


text:
An exact dropdown match while "free tagging" (no labels) doesn't auto-select.

Here's a screenshot of what I mean:

Setup:  multiple tagging tagging-label="false"
To reproduce, just open the tagging demo, focus on the input under Simple String Tags
(Predictive Search Model / No Labels), type "Green" and press Enter.  When I press Enter, I assume the "Green" option would be selected since it's an exact match, although it's not highlighted.  The behavior is that what I typed would get cleared and nothing gets selected.  I validated this against master.
In an unlikely edge case, a duplicate would get created, but since that's not what's happening, I figure the exact match should get auto-selected.  If not, it would mean that a user free typing an exact match can only tag that match while using the mouse or the arrow keys to select it from the dropdown.  Is this the desired user behavior?

Closing as I believe this is resolved in more recent versions of ui-select.
If you believe its still relevant please update with a plunkr (or similar) against the latest version of ui-select (currently v0.15.0)
Thanks!

repo: angular-ui/ui-select


text:
ng lint --format stylish by default should apply to main app

Versions

Angular CLI: 6.0.3
Node: 8.11.1
OS: darwin x64
Angular: 6.0.3
... animations, cli, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.6.3
@angular-devkit/build-angular     0.6.3
@angular-devkit/build-optimizer   0.6.3
@angular-devkit/core              0.6.3
@angular-devkit/schematics        0.6.3
@ngtools/webpack                  6.0.3
@schematics/angular               0.6.3
@schematics/update                0.6.3
rxjs                              6.2.0
typescript                        2.7.2
webpack                           4.8.3

Repro steps

ng new my-dream-app
cd my-dream-app
ng lint --format stylish

Observed behavior
▶ng lint --format stylish
Architect commands with multiple targets cannot specify overrides.'lint' would be run on the following projects: my-app,my-app-e2e
Error: Architect commands with multiple targets cannot specify overrides.'lint' would be run on the following projects: my-app,my-app-e2e
    at LintCommand.validate (/Users/papa/_play/my-app/node_modules/@angular/cli/models/architect-command.js:75:23)
    at /Users/papa/_play/my-app/node_modules/@angular/cli/models/command-runner.js:274:39
    at Generator.next (<anonymous>)
    at /Users/papa/_play/my-app/node_modules/@angular/cli/models/command-runner.js:7:71
    at new Promise (<anonymous>)
    at __awaiter (/Users/papa/_play/my-app/node_modules/@angular/cli/models/command-runner.js:3:12)
    at validateAndRunCommand (/Users/papa/_play/my-app/node_modules/@angular/cli/models/command-runner.js:273:12)
    at Object.<anonymous> (/Users/papa/_play/my-app/node_modules/@angular/cli/models/command-runner.js:100:26)
    at Generator.next (<anonymous>)
    at fulfilled (/Users/papa/_play/my-app/node_modules/@angular/cli/models/command-runner.js:4:58)

Desired behavior
By default if no app is specified, it should cover the main app (not the e2e)

For any less-experienced developers like myself coming across this issue:
When passing flags to ng lint (eg --fix) you must include the name of the project (found in package.json).
Example:
ng lint --fix [doesn't work]
ng lint app-name --fix [does work]

Fixed via https://github.com/angular/angular-cli/commit/5571d094e5db4062c551fb2a98758c26392ffb43

authors: alan-agius4 johnpapa mikesimmonds

repo: angular/angular-cli


text:
TypeError: MessagePort was found in message but not listed in transferList

Bug Report
Affected Package

@angular/devkit/build-angular

Is this a regression?
Got the below error after updating to Angular 12
Description
I've updated my project from v11.x to v12.x using ng update. When I run ng serve I got the below error:

(node:44810) UnhandledPromiseRejectionWarning: TypeError: MessagePort was found in message but not listed in transferList
    at new Worker (internal/worker.js:144:17)
    at SassWorkerImplementation.createWorker (/Users/serafijnboelaert/Documents/tengu/code/tengu-platform-web/node_modules/@angular-devkit/build-angular/src/sass/sass-service.js:96:24)
    at SassWorkerImplementation.render (/Users/serafijnboelaert/Documents/tengu/code/tengu-platform-web/node_modules/@angular-devkit/build-angular/src/sass/sass-service.js:62:40)
    at Object.loader (/Users/serafijnboelaert/Documents/tengu/code/tengu-platform-web/node_modules/sass-loader/dist/index.js:46:3)
(node:44810) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 103)

Minimal Reproduction
Unfortunately I cannot reproduce the issue in a new project nor can I share the current code as it's confidential. I'm happy to provide more information when needed.
Exception or Error

(node:44810) UnhandledPromiseRejectionWarning: TypeError: MessagePort was found in message but not listed in transferList
    at new Worker (internal/worker.js:144:17)
    at SassWorkerImplementation.createWorker (/Users/serafijnboelaert/Documents/tengu/code/tengu-platform-web/node_modules/@angular-devkit/build-angular/src/sass/sass-service.js:96:24)
    at SassWorkerImplementation.render (/Users/serafijnboelaert/Documents/tengu/code/tengu-platform-web/node_modules/@angular-devkit/build-angular/src/sass/sass-service.js:62:40)
    at Object.loader (/Users/serafijnboelaert/Documents/tengu/code/tengu-platform-web/node_modules/sass-loader/dist/index.js:46:3)
(node:44810) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 103)

Your Environment
Angular Version:

Angular CLI: 12.0.1
Node: 12.14.0
Package Manager: npm 6.14.8
OS: darwin x64

Angular: 12.0.1
... animations, cdk, cli, common, compiler, compiler-cli, core
... forms, material, platform-browser, platform-browser-dynamic
... router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1200.1
@angular-devkit/build-angular   12.0.1
@angular-devkit/core            12.0.1
@angular-devkit/schematics      12.0.1
@angular/flex-layout            12.0.0-beta.34
@schematics/angular             12.0.1
rxjs                            6.6.7
typescript                      4.2.4

It looks like your NodeJS version is too old. A minimum of Node 12.20 is needed for v12.

@JoostK Confirmed. It's fixed with the node LTS (14) version

[Solved] UnhandledPromiseRejectionWarning: TypeError: MessagePort was found in message but not listed in transferList at new Worker

Thanks Upgrading to LTS node@v12.22.1 fixed this issue. :)

authors: JoostK KhizerRehan exeptionerror njifares


text:
Web workers used in lazy loaded modules are included in initial bundle causing the initial bundle size to increase.

Bug Report
Affected Package
The issue is caused by package @angular/cli  (may be) ?
Is this a regression?
Not sure
Description

The initial bundle is bundling the web worker files as well - causing the initial bundle size to increase.
These web workers are only used in lazy loaded modules. So there is no practical reason to ship this in initial bundle.
More over, if the app have dozens of worker files, all of them used in lazy modules, all of them seem to be shipped with initial bundle.

Minimal Reproduction
Please see the zip attached. It is very minimal and fully scaffolded with angular cli and I barely touched it (touched it to wire web worker)
# history
ng new app --create-application false
cd app
ng generate application my-first-app
ng g m lazy --routing --route lazy-route --module app --project my-first-app
ng g web-worker lazy/worker

# turn on named chunks in angular.json
# integrate the web worker to lazy module
ng build my-first-app

getting
✔ Browser application bundle generation complete.
✔ Copying assets complete.
✔ Index html generation complete.

Initial Chunk Files                                                         | Names         |      Size
main.fe4a7dc51150d09b9e11.js                                                | main          | 206.41 kB
polyfills.239a2c9ff63de04546fd.js                                           | polyfills     |  35.94 kB
runtime.913e0bfc6049b9102c12.js                                             | runtime       |   2.63 kB
⛔👉projects_my-first-app_src_app_lazy_worker_worker_ts.b86faef4e6c1068bebfc.js | -             | 104 bytes
styles.31d6cfe0d16ae931b73c.css                                             | styles        |   0 bytes

                                                                            | Initial Total | 245.08 kB

Lazy Chunk Files                                                            | Names         |      Size
projects_my-first-app_src_app_lazy_lazy_module_ts.b9a78f138e59d38b9c95.js   | -             |   1.01 kB

ZIP 💼: app.zip
For a quick look to see how the web-worker is integrated to lazy module:
// borrowed from: https://angular.io/guide/web-worker#adding-a-web-worker
@Component({
  selector: 'app-lazy',
  templateUrl: './lazy.component.html',
  styleUrls: ['./lazy.component.scss'],
})
export class LazyComponent implements OnInit {
  constructor() {}

  ngOnInit(): void {
    if (typeof Worker !== 'undefined') {
      // Create a new
      const worker = new Worker(new URL('./worker.worker', import.meta.url));
      worker.onmessage = ({ data }) => {
        console.log(`page got message: ${data}`);
      };
      worker.postMessage('hello');
    } else {
      // Web workers are not supported in this environment.
      // You should add a fallback so that your program still executes correctly.
      console.log('not supported');
    }
  }
}

Exception or Error
There are no errors. But if my app have 50 web workers, all of them are shipping in the initial bundle.
Your Environment
Angular Version:

Angular CLI: 12.0.3
Node: 14.17.0
Package Manager: yarn 1.22.5
OS: win32 x64

Angular:
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1200.3 (cli-only)
@angular-devkit/build-angular
@angular-devkit/core            12.0.3 (cli-only)
@angular-devkit/schematics      12.0.3 (cli-only)
@angular/cli                    12.0.3 (cli-only)
@schematics/angular             12.0.3 (cli-only)
rxjs                            6.6.7 (cli-only)
typescript                      4.2.4 (cli-only)

Anything else relevant? Nope :)
(btw, Angular is so nice and comprehensive! Keep up your good work!)

Moving to the CLI as that's where the web worker integration lives. I had a quick look at the reproduction and it seems to me that only the table of initial chunks incorrectly includes the web worker bundle. That bundle is only referenced in the lazy bundle, so won't be loaded until the lazy module starts the worker.

authors: JoostK vajahath


text:
[CLI] @angular-devkit/build-angular:application with dev-server should start ssr server

Which @angular/* package(s) are the source of the bug?
compiler-cli
Is this a regression?
Yes
Description
When starting dev-server with a ssr project, the builder should :

start ssr server (currently it only generate bundle)
restart ssr server whenever chunk are re-built (when file changed)

It worked very well with @angular-devkit/build-angular:ssr-dev-server and @angular-devkit/build-angular:browser in default angular 17 configuration
Please provide a link to a minimal reproduction of the bug
No response
Please provide the exception or error you saw
Just run
- ng new ssr-dev-server --ssr
- cd ssr-dev-server
- ng serve

The message Node Express server listening on http://localhost:4000 doesn't appear -> the ssr server is not started
Please provide the environment you discovered this bug in (run ng version)
Angular: 18.0.1
Node: 20

Anything else?
No response

Duplicate of https://github.com/angular/angular-cli/issues/27144


text:
I'm not able to lazy load module with angular cli project.

I search how I can use lazy load module on an angular cli project. On the angular router page, I see this information :

Angular provides a built-in module loader that supports SystemJS to load modules asynchronously. If you were using another bundling tool, such as Webpack, you would use the Webpack mechanism for asynchronously loading modules.

I tried many things but in angular cli project, i'm not able to do working. Do you have an example or a documentation link to enable this feature.
Thanks
Thanks
I use angular cli version 1.0.0.BETA-24

Check this example:
https://github.com/meligy/routing-angular-cli
Let's imagine we have the route lazy, and we want to lazy load it, we create a route entry that looks like this:
  { path: 'lazy', loadChildren: './lazy/lazy.module#LazyModule'

You might need to restart ng serve for this to work, but you should find an extra bundle file generated, and the child bundles in the LazyModule should just work.

Closing as answered.

authors: JanickRoss Meligy filipesilva


text:
Hide app setting variable (like firebase details )

I want to hide my firebase details.
after make build all environment.ts file data visible inside main.ts file.
I want to hide from there.
can anyone suggest how to hide?
Is it possible in angular or any way for hiding details?

All angular code is shipped to the client. How would you envision to keeping things secret in JavaScript that ships to the browser client?

@nirav4273 you would handle this with a proxy or on a server where you authenticate (token).

Duplicate of #4419

authors: Brocco ddimaria nirav4273 wvanderdeijl


text:
Location imports not included in API Preview

The location imports were moved out of the router package into angular2/platform/common but don't have a section in the API Preview listing

@brandonroberts, are you referring to https://angular.io/docs/ts/latest/api/router/Location-class.html? This page isn't accessible through search, and the hero title for this entry is also gone missing (it says Angular instead). Note sure why this happens... I'll investigate when I have some time.

@ericjim yes. It also includes LocationStrategy, HashLocationStrategy, PathLocationStrategy, APP_BASE_HREF to name a few.The angular/platform/common was just recently introduced as of beta 16.

Ah, this is because the reorg moved the files but didn't tell dgeni where to find them. I'll fix it.
Thanks @brandonroberts!

I can't figure this out. @petebacondarwin do you know what I've missed to pull in the newly reorged classes for the router? See my attempt in https://github.com/angular/angular.io/pull/1203

fixed and live!

authors: brandonroberts ericjim naomiblack


text:
Sample Mistake.

In https://angular.io/docs/ts/latest/tutorial/toh-pt2.html at the Displaying Our Heroes section, it says:

Let’s create an array of ten heroes at the bottom of app.component.ts

But at the end of the page the array is after the Hero class, not at the bottom.

I made that mistake, moved that, never realized that there was a precise explanation of where to find it.
Will fix. Thank you.

You're welcome!

authors: Foxandxss Pablo-Ivan


text:
[WIP] docs(style-guide): add style-guide - v.7

WIP - DO NOT MERGE
continuation of PR #1227
googlebot: John approves of this PR for his commits

Closing. Will open a new one for New World


text:
docs(toh-2): align snippet with final example

Fixes #2135.

Thanks

authors: kherrick wardbell


text:
docs: KW edits [WIP]

Hi,
According to copy edits, the only files modified were:

guide/index.jade
guide/architecture.jade
/public/features.jade
guide/typescript-configuration.jade
guide/npm-packages.jade
guide/_data.json

Thanks!
Kapunahele

This branch won't serve after troubleshooting. Starting with a clean slate.


text:
chore: fix broken links and transform API links for dart docs

Dart non-api doc pages w/ links to API entries will now have those links translated from a TS API reference URL to a Dart API reference URL.
Created and ran a link checker to verify that all such links to API entries refer to Dart.
Fixed links to pages that have moved:
JS & Dart: i18n is under now cookbook not guide
Dart: testing page is now directly under guide.

Contributes to #1895
Fixes #2273

cc @wardbell @Foxandxss @filipesilva @kwalrath

Staged at https://kw-angular-io.firebaseapp.com/dart.
Some notes from poking around:

In https://kw-angular-io.firebaseapp.com/docs/dart/latest/guide/dependency-injection.html:

Link to InjectableMetadata goes to TS... and is a 404: https://angular.io/docs/ts/latest/api/core/index/InjectableMetadata-class.html
(InjectableMetadata no longer exists in Dart)
(On the other hand, the link to "Provider class" does work; but it did before, too.)

In https://kw-angular-io.firebaseapp.com/docs/dart/latest/guide/template-syntax.html:

All links work!
Links to viewChild and contentChild should be ViewChild and ContentChild in the text.

I ran the script, and it seemed to work although it didn't catch the bad API link in dependency-injection.html.
Anyway, this is an improvement and doesn't break anything. LGTM.

@kwalrath - thanks for the detailed feedback. I'll be addressing each of the issues you mentioned and follow-up here.

Follow-up issue is #2772.

authors: chalin kwalrath


text:
Expose getter for per-element $animate enable state

Right now there's only a getter for the global animations enable flag through $animate.enabled(). However, it would be helpful for directives to know when animations are enabled for the directive's element.
This should probably expose animationsDisabled() method already in ngAnimate. The directive could use this information to skip preparation for animations or to avoid attaching events that won't be useful.

In 1.4 on master we can do this now since the args have been flipped:
BREAKING CHANGE: The function params for $animate.enabled() when an
element is used are now flipped. This fix allows the function to act as
a getter when a single element param is provided.
// < 1.4
$animate.enabled(false, element);

// 1.4+
$animate.enabled(element, false);

Is this what you were looking for?

Yep indeed, that's what I was referring to. Heh, saw your release a few days after this was posted. :+1:

authors: chrisirhc matsko


text:
fix(input[date]): support years with more than 4 digits

Currently, (mainly because of the REGEXPs used for parsing dates, e.g. here and there), date-family inputs do not support years with more than 4 digits (they consider the value invalid and the parser returns undefined).
According to the W3 spec, the value of a date-family input should be a "valid full-date as defined in [RFC 3339], with the additional qualification that the year component is four or more digits representing a number greater than 0" (emphasis mine).
Additionally, ISO 8601 allows (upon agreement of the involved parties) to have expanded representation of years (with more than 4 digits); see for example sections 2.3.8 and 4.1.2.4.
--
Current browser support:

Chrome, Opera: Support date inputs and years greater than 9999.

Firefox, IE: Do not support date inputs, but the user can still enter the dates in ISO format and ngModel parses them correctly

Edge: Supports date inputs, but not years greater than 9999.

Safari: ???

There's nothing we can do for MS Edge on the Angular side, but the users of other browsers will still benefit from adding support for years greater than 9999.

Safari 9 has no special date input handling. ios9 has a datepicker input, and you can't actually enter the date by hand (at least not in Saucelabs).

authors: Narretz gkalpak