Color in treeview display for custom type

How do I get pretty colors in my show output for the header?

There are two solutions to that problem:
Plain text output
You can use ANSI color codes which will work in the REPL and in Juno:
macro CSI_str(str)
    return :(string("\x1b[", $(esc(str)), "m"))
end

import TreeViews: hastreeview, numberofnodes, treelabel, treenode
struct Foo
    field1
    field2
end

struct Bar
    a
    field1
end

hastreeview(::Foo) = true
hastreeview(::Bar) = true

numberofnodes(::Foo) = 1
# colors can be specified with SGR (see https://en.wikipedia.org/wiki/ANSI_escape_code#SGR_(Select_Graphic_Rendition)_parameters)
treelabel(io::IO, x::Foo, i::Int, ::MIME"text/plain") =
  print(io, "and ", CSI"31", "this", CSI"0", " is my first field ")
treelabel(io::IO, x::Foo, ::MIME"text/plain") =
  print(io, "I'm a ", CSI"38;2;200;0;200", "Foo", CSI"0")

Foo(Bar(1,2), 3)

This doesn't completely work with the released versions of julia-client and ink, but I'll push a fix momentarily.
HTML
treelabel(io::IO, x::Foo, ::MIME"text/html") =
  print(io, "I'm a HTMLified Foo")

The second option obviously allows for more customization since you can do basically everything there, while the first one is more likely to be supported everywhere.
It might be worthwhile to also add support for a appliaction/juno+inline mime type since you might want to reuse Atom's styling. Could also pass an IOContext with a juno_colors key as it happens with the plot pane.

It might be worthwhile to also add support for a appliaction/juno+inline mime type since you might want to reuse Atom's styling. Could also pass an IOContext with a juno_colors key as it happens with the plot pane.

That would be cool! I don't know the colors well so I just kinda picked one... and it looks... okay? Having easy cohesion would be nice.

It might be worthwhile to also add support for a appliaction/juno+inline mime type since you might want to reuse Atom's styling. Could also pass an IOContext with a juno_colors key as it happens with the plot pane.

That would be cool! I don't know the colors well so I just kinda picked one... and it looks... okay? Having easy cohesion would be nice.

It doesn't seem to nest well:

That's implemented in the last version of Atom.jl (see here).

And if you want the type color used in the editor you can use
treelabel(..., ::MIME"application/juno+inline") = print(io, "I look like a type")


Initial Home screen design

Step 1:
Show a list of pixels with their basic info and active profile
Step 2:
Differentiate "scanned pixels" and "paired pixels".
Add ability to pair with a scanned Pixel.

Pixel detailed page:

Rename
Blink
Change Profile (selectable list of available profiles)
Stats histogram (image)
Advanced

Calibrate
Reset Settings
Reboot

Forget (= unpair)

More fun statistics:

Times rolled (this session/lifetime)
Hours used (this session/lifetime)

Change requests:

Remove "More Profiles +", instead add "More" card at the end of the recent profiles list
Show "Upload" button when selecting another profile in "recent profiles" list
When tapping on, more have panel that slides up with list of profiles (like action sheet)
Change "Apply" profile to "Upload", grey out button if current profile is selected
Show upload message box
Remove roll status
Add "session / all" toggle for stats

Other suggestions:

Flash Storage use, like the iPhone storage summary

Categories could be:
Patterns
Rules
Statistics


[Issue]: In the Ubuntu22 system within WSL, there is no /dev/kfd after installing ROCM

Problem Description
Refer to https://rocm.docs.amd.com/projects/radeon/en/latest/docs/install/wsl/install-radeon.html for ROCm installation. The rocminfo output shows normal information, but there is no /dev/kfd, so it cannot be used.
Operating System
WSL Ubuntu22.04
CPU
5800X
GPU
AMD Radeon RX 7900 XT
ROCm Version
ROCm 6.1.0
ROCm Component
ROCm
Steps to Reproduce
No response
(Optional for Linux users) Output of /opt/rocm/bin/rocminfo --support
=====================
HSA System Attributes
Runtime Version:         1.1
System Timestamp Freq.:  1000.000000MHz
Sig. Max Wait Duration:<PHONE_NUMBER>3709551615 (0xFFFFFFFFFFFFFFFF) (timestamp count)
Machine Model:           LARGE
System Endianness:       LITTLE
Mwaitx:                  ENABLED
DMAbuf Support:          YES
==========
HSA Agents

Agent 1

Name:                    CPU
Uuid:                    CPU-XX
Marketing Name:          CPU
Vendor Name:             CPU
Feature:                 None specified
Profile:                 FULL_PROFILE
Float Round Mode:        NEAR
Max Queue Number:        0(0x0)
Queue Min Size:          0(0x0)
Queue Max Size:          0(0x0)
Queue Type:              MULTI
Node:                    0
Device Type:             CPU
Cache Info:
Chip ID:                 0(0x0)
Cacheline Size:          64(0x40)
Internal Node ID:        0
Compute Unit:            16
SIMDs per CU:            0
Shader Engines:          0
Shader Arrs. per Eng.:   0
Features:                None
Pool Info:
Pool 1
Segment:                 GLOBAL; FLAGS: KERNARG, FINE GRAINED
Size:                    32823632(0x1f4d950) KB
Allocatable:             TRUE
Alloc Granule:           4KB
Alloc Recommended Granule:4KB
Alloc Alignment:         4KB
Accessible by all:       TRUE
Pool 2
Segment:                 GLOBAL; FLAGS: COARSE GRAINED
Size:                    32823632(0x1f4d950) KB
Allocatable:             TRUE
Alloc Granule:           4KB
Alloc Recommended Granule:4KB
Alloc Alignment:         4KB
Accessible by all:       TRUE
ISA Info:

Agent 2

Name:                    gfx1100
Marketing Name:          AMD Radeon RX 7900 XT
Vendor Name:             AMD
Feature:                 KERNEL_DISPATCH
Profile:                 BASE_PROFILE
Float Round Mode:        NEAR
Max Queue Number:        16(0x10)
Queue Min Size:          4096(0x1000)
Queue Max Size:          131072(0x20000)
Queue Type:              MULTI
Node:                    1
Device Type:             GPU
Cache Info:
L1:                      32(0x20) KB
L2:                      6144(0x1800) KB
L3:                      81920(0x14000) KB
Chip ID:                 29772(0x744c)
Cacheline Size:          64(0x40)
Max Clock Freq. (MHz):   2219
Internal Node ID:        1
Compute Unit:            84
SIMDs per CU:            2
Shader Engines:          6
Shader Arrs. per Eng.:   2
Coherent Host Access:    FALSE
Features:                KERNEL_DISPATCH
Fast F16 Operation:      TRUE
Wavefront Size:          32(0x20)
Workgroup Max Size:      1024(0x400)
Workgroup Max Size per Dimension:
x                        1024(0x400)
y                        1024(0x400)
z                        1024(0x400)
Max Waves Per CU:        32(0x20)
Max Work-item Per CU:    1024(0x400)
Grid Max Size:<PHONE_NUMBER>(0xffffffff)
Grid Max Size per Dimension:
x<PHONE_NUMBER>(0xffffffff)
y<PHONE_NUMBER>(0xffffffff)
z<PHONE_NUMBER>(0xffffffff)
Max fbarriers/Workgrp:   32
Packet Processor uCode:: 2250
SDMA engine uCode::      20
IOMMU Support::          None
Pool Info:
Pool 1
Segment:                 GLOBAL; FLAGS: COARSE GRAINED
Size:                    20907176(0x13f04a8) KB
Allocatable:             TRUE
Alloc Granule:           4KB
Alloc Recommended Granule:2048KB
Alloc Alignment:         4KB
Accessible by all:       FALSE
Pool 2
Segment:                 GROUP
Size:                    64(0x40) KB
Allocatable:             FALSE
Alloc Granule:           0KB
Alloc Recommended Granule:0KB
Alloc Alignment:         0KB
Accessible by all:       FALSE
ISA Info:
ISA 1
Name:                    amdgcn-amd-amdhsa--gfx1100
Machine Models:          HSA_MACHINE_MODEL_LARGE
Profiles:                HSA_PROFILE_BASE
Default Rounding Mode:   NEAR
Default Rounding Mode:   NEAR
Fast f16:                TRUE
Workgroup Max Size:      1024(0x400)
Workgroup Max Size per Dimension:
x                        1024(0x400)
y                        1024(0x400)
z                        1024(0x400)
Grid Max Size:<PHONE_NUMBER>(0xffffffff)
Grid Max Size per Dimension:
x<PHONE_NUMBER>(0xffffffff)
y<PHONE_NUMBER>(0xffffffff)
z<PHONE_NUMBER>(0xffffffff)
FBarrier Max Size:       32
Additional Information
No response

Hi @hx5791, this is expected as the rocminfo implementation on WSL slightly differs from regular Linux.
This includes utilizing the /dev/dxg device, which is unique to WSL, rather than /dev/kfd.


Spotify Offline

Hi!
Im not sure if different countries has different servers etc, with your list spotify wont even connect, says offline. The previous version from a couple of days ago worked better but some songs would not play and album art did not load either. So this might be much more tricky than one can understand :/

Good day @eskimos20,
I think you need to update your hosts file, because its working great here. here is proof of concept: https://i.imgur.com/QUIoeCx.png
Not sure what OS you are on?
For Linux path: /etc/hosts
Windows: c:\Windows\System32\Drivers\etc\hosts
Let me know if it worked well.

Hi!
I am using a fresh install of Ubuntu 19:04. I am always starting with a
clean hosts file as in picture 1. And in picture 2 spotify works great. In
picture 3 I have added all rows from your site to my /etc/hosts file. And
in picture 4 you can see the result.
Therefor I think that this is based in which country or region we are in..
probably different dns entries. My commercials is always in swedish.. i
recon yours arent..
I have tried to analyze my network myself with tcpdump and other tools.
Tried on port 4070, 443 and also on port 80 but the results was not top
notch :/
/Eskimos20
Den tors 18 juli 2019 kl 21:12 skrev Ａｎｉｓ Ｍｕｓｌｉć<EMAIL_ADDRESS>
Good day @eskimos20 https://github.com/eskimos20,
I think you need to update your hosts file, because its working great
here. here is proof of concept: https://i.imgur.com/QUIoeCx.png
Not sure what OS you are on?
For Linux path: /etc/hosts
Windows: c:\Windows\System32\Drivers\etc\hosts
Let me know if it worked well.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/x0uid/SpotifyAdBlock/issues/1?email_source=notifications&email_token=AIA7NSKD4QSL46IK7ZK3QKTQAC6CRA5CNFSM4IEUQ722YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2JPWLY#issuecomment-512949039,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AIA7NSNHLUOAECW76BG7WGDQAC6CRANCNFSM4IEUQ72Q
.

Hi!
I am using a fresh install of Ubuntu 19:04. I am always starting with a clean hosts file as in picture 1. And in picture 2 spotify works great. In picture 3 I have added all rows from your site to my /etc/hosts file. And in picture 4 you can see the result.
Therefor I think that this is based in which country or region we are in.. probably different dns entries. My commercials is always in swedish.. i recon yours arent..
I have tried to analyze my network myself with tcpdump and other tools. Tried on port 4070, 443 and also on port 80 but the results was not top notch :/
/Eskimos20

Hi @eskimos20,
Hmm, that's. just tested with several VPN locations also Swedish, works here on my end.
I have updated file by removing main AAA DNS. Give it a try and pls let me know if it works now.

Hi!
That worked better, thanks! :)
Now i managed to get online.
But album art dont show for most albums, and the songs cant be played either.
But music that I listened to earlier today is probably in some cache. Because they work and also album art.
I never download music from spotify so it is not that.
Thanks for all the help, I understand that this is not your job, but your mission ;)

Everything works again?
Yeah deleting cache and trying to  reboot may do the job.

As I wrote in the earlier post, I can now get online, but no songs can play except songs that I have in my playlists.. they work.... and no album art is showing.

Cleared cache now, rebooted. Now playlist has lost their album art and cant play either. So as for now, no songs play at all :/

@eskimos20 van you please remove cf.scdn.co from the list. And restart Spotify.

Now "some" album arts is showing but just a small part. But still no music.
I can check more tomorrow if you have more suggestions. Its midnight over here :)

@eskimos20 yeah I will try to find problem at your end tomorrow. Because it's working flawlessly here.

I think this might be relevant also.. I am using this version of spotify: <IP_ADDRESS>.gf614956d

I think this might be relevant also.. I am using this version of spotify: <IP_ADDRESS>.gf614956d

Same here <IP_ADDRESS>.gf614956d on Fedora 30.
Always, I've tested the album u was listening on my laptop, works flawless without ads and issues. This is weird.

I have a Windows 10 Professional computer aswell, I installed Spotify <IP_ADDRESS>0.gfcf0430f on it. And tried updating the host file. And it works great in windows with that version...
Could it be related to ubuntu 19:04 ? Maybe I should try an older Ubuntu..

I installed Ubuntu 18.04.. same problem as 19.04, nothing works :/

Hoi sir,
Did you managed to get it working with Ubuntu?!

Hi!
Sorry for the late answer. I wrote a answer 4 days ago but maybe you did not see it.  Ubuntu 18:04 dont work, and 19:04 dont work :/

Same problem here: runnin Spotify app, on Mac.

That's pretty weird leds, because i tested it at several places on several OS's and works  flawless. i think it's routing issue.... Maybe pihole on your network?! Hmmm.

My brother also tried it on his mac.. same issue.. spotify offline!
Den tor 25 juli 2019 21:39Anis Muslić<EMAIL_ADDRESS>skrev:

That's pretty weird leds, because i tested it at several places on several
OS's and works flawless. i think it's routing issue.... Maybe pihole on
your network?! Hmmm.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/x0uid/SpotifyAdBlock/issues/1?email_source=notifications&email_token=AIA7NSPIOGO5UQGO2JVEV6TQBH6ONA5CNFSM4IEUQ722YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD22RWSI#issuecomment-515185481,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AIA7NSJYFECEYXNX2QMKU2LQBH6ONANCNFSM4IEUQ72Q
.

Could you please upload your or his hosts file to pastebin.com and paste it here.... Thx

On my MAC it is as copy/pasted from this repo.
In any case, https://pastebin.com/1PyF6mWc

Hi!
Here is my hosts file on ubuntu 18:04. I have copied it to a .txt file since github dont like the regular type.
hosts.txt

Hi guys, i really don't know what is triggering the issue. because i have used your hosts file and screen shows the results.
Please remove these 2 entries and delete cache, try again.
<IP_ADDRESS> weblb-wg.gslb.spotify.com
<IP_ADDRESS> weblb-wg.dual-gslb.spotify.com

Tried now, spotify desktop client goes online but no songs can be played.
Also spotify webplayer does not work.

Could you please try flushing DNS, in Linux : sudo /etc/init.d/nscd restart
For Mac users: sudo killall -HUP mDNSResponder
Also delete cache folder before starting Spotify again..

Sorry that was not the case either.

Goes online, plays songs, and after skipping it gets stuck on some songs.
Will tell you tomorrow about the ads when I'm at work.
One thing I noticed last week is that songs get stopped aroung 6-7 seconds after they start.

Sorry i don't understand? After skipping what? Song or sound advertising?!

I noticed that after skipping a few songs in a row, a song might get stuck and won't start.
I'll test the current configuration better later today.

I rephrase: while some songs work, others won't.
This means that when a song ends, the playback might stop for good.

I should add that this happens for me too, on macOS Mojave 10.14.5

I am experimenting with this repo https://github.com/StevenBlack/hosts
In particular, I am using this list https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
as a base and I am sniffing DNS requests with tcpdump.
I've found a handful of requests going through, so I added these to my current setup:
beta.spotify.map.fastly.net
pubads.g.doubleclick.net
partnerad.l.doubleclick.net
pagead46.l.doubleclick.net
video-fa.scdn.co```

I got the same issue. Commenting out ap.gslb.spotify.com makes me able to log in again. However, I still cannot play several songs and album covers are not loading.

I am experimenting with this repo https://github.com/StevenBlack/hosts
In particular, I am using this list https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
as a base and I am sniffing DNS requests with tcpdump.
I've found a handful of requests going through, so I added these to my current setup:
<IP_ADDRESS> beta.spotify.map.fastly.net
<IP_ADDRESS> pubads.g.doubleclick.net
<IP_ADDRESS> partnerad.l.doubleclick.net
<IP_ADDRESS> pagead46.l.doubleclick.net
<IP_ADDRESS> video-fa.scdn.co
<IP_ADDRESS> adeventtracker.spotify.com```
Let's see how it goes.

 Because your problem its routing related with blocked entrie inside my list.

Anyhow, i have updated the list by removing Google's caching services. Now please update the hosts file & empty or delete Spotify cache folder!!!.
cache folder located:
Windows: C:\Users*USERNAME\AppData\Local\Spotify*
Mac: /Users/USERNAME/Library/Caches/com.spotify.client/Storage/
Linux: /home/user/.cache/Spotify
Please tell me if this solved the issues?

I've just followed your instructions and I am now offline

ah ok.. these two entries were still not commented
<IP_ADDRESS> weblb-wg.gslb.spotify.com
<IP_ADDRESS> weblb-wg.dual-gslb.spotify.com

It got into a state where the next song could not be played because the ad was not loading properly.

ah ok.. these two entries were still not commented
<IP_ADDRESS> weblb-wg.gslb.spotify.com
<IP_ADDRESS> weblb-wg.dual-gslb.spotify.com

Oke, commit on hosts file by removing those 2 entries.

I did not have that cache folder.
I can login, but some album covers are still not showing and song are not playing.

I did not have that cache folder on Ubuntu.
I can log in, but some album covers are still not showing and song are not playing.

Yes its in your /home/ folder but its hidden. press Ctrl + H. You will see folder .cache

I meant: I do not have that Spotify folder in the .cache folder. I do have a json file now in /home/folder/.cache

Weird, you should have cache folder somewhere. Maybe try to find it in Spotify settings.

If you installed Spotify with snap, check the /home/[name]/snap/spotify/common/ folder. My .cache folder was located there.
I also have the problem with some songs not playing and missing images. I'm on Ubuntu 19.04 using Spotify <IP_ADDRESS>6.ge08ef575 from Germany (Spotify is in english though). I installed an unmodified version of "Rev Update 127" with no other custom entries in my /etc/hosts file.
I don't know if it's like this with all songs but most of the time 2-5 songs play just fine and the one after that doesn't play at all. Like not even starting. The next 2-5 are good again.
Restarting Spotify doesn't help, neither does clearing the cache.
Some of the songs that play have images, most don't. None of the songs that don't play have images.
I don't see a pattern here.

Edit: I also get German ads after a few songs. Just "f u ads" (about Spotify playlists) though, no real ads.

I might be wrong but it seems that those spotify's ads may be integrated to the app (i haven't caught any dns requests when they fire).

Edit: I also get German ads after a few songs. Just "f u ads" (about Spotify playlists) though, no real ads.

I might be wrong but it seems that those spotify's ads may be integrated to the app (i haven't caught any dns requests when they fire).

You are not wrong, integrated "push ads" cant be blocked by hosts file, client need to be modified and that's illegal. But they like 1 min at max and are not caching any information from host machine.

Edit: I also get German ads after a few songs. Just "f u ads" (about Spotify playlists) though, no real ads.

I might be wrong but it seems that those spotify's ads may be integrated to the app (i haven't caught any dns requests when they fire).

You are not wrong, integrated "push ads" cant be blocked by hosts file, client need to be modified and that's illegal. But they like 1 min at max and are not caching any information from host machine.

Well then there's the possibility to just restart the application during these ads. They wont play for another 3-5 songs, even if you restart while they are playing.
It might be a solution to just automate restart -> hit Continue button when this sort of ad is detected. It's not a seamless solution but the seam will be a few seconds instead of a minute.

Edit: I also get German ads after a few songs. Just "f u ads" (about Spotify playlists) though, no real ads.

I might be wrong but it seems that those spotify's ads may be integrated to the app (i haven't caught any dns requests when they fire).

You are not wrong, integrated "push ads" cant be blocked by hosts file, client need to be modified and that's illegal. But they like 1 min at max and are not caching any information from host machine.

Well then there's the possibility to just restart the application during these ads. They wont play for another 3-5 songs, even if you restart while they are playing.
It might be a solution to just automate restart -> hit Continue button when this sort of ad is detected. It's not a seamless solution but the seam will be a few seconds instead of a minute.

Yep, it can be done with a shell script, also legal solution by not touching client.


In a ComponentMetadataRule allVariants {} does not run for all variants.

Current Behavior
In a ComponentMetadataRule allVariants {} does not run for all variants.
Expected Behavior
Either:

In a ComponentMetadataRule allVariants {} runs for all variants.
The Javadoc, documentation, and function name is updated to explain why allVariants {} doesn't runs for all variants.

Context (optional)
No response
Steps to Reproduce
plugins {
  kotlin("multiplatform") version "1.9.21"
}

repositories {
  mavenCentral()
}

kotlin {
  jvm()
  js()
}

@CacheableRule
abstract class FooRule : ComponentMetadataRule {
  override fun execute(context: ComponentMetadataContext): Unit = with(context) {
    println("considering ${details.id} (attributes: ${context.details.attributes.joinToString()})")

    details.allVariants {

      println("${details.id} has variant (attributes: ${attributes.joinToString()})")
    }
  }

  companion object {
    internal fun AttributeContainer.joinToString(): String =
      attributes.keySet().joinToString { "$it=${attributes.getAttribute(it)}" }
  }
}

dependencies {
  components {
    withModule<FooRule>("org.jetbrains.kotlin:kotlin-stdlib")
  }
}

run ./gradlew dependencies
The lines considering org.jetbrains.kotlin:kotlin-stdlib:1.9.21 and org.jetbrains.kotlin:kotlin-stdlib:1.9.21 has variant (attributes: ) are only printed once.
However, kotlin-stdlib has 18 variants https://repo1.maven.org/maven2/org/jetbrains/kotlin/kotlin-stdlib/1.9.21/kotlin-stdlib-1.9.21.module
It doesn't make sense that all 18 variants aren't considered.
Gradle version
8.5
Build scan URL (optional)
No response
Your Environment (optional)
No response

Thank you for providing a valid report.
The issue is in the backlog of the relevant team, but this area of Gradle is currently not a focus one, so it might take a while before a fix is made.


Changed .contains to .containsKey

Using contextsCache.contains(String) will compare agains values in the cache, not keys. Use .containsKey instead.

Great catch! Thanks very much, Sal.
Merged into master: 7b493520


chore(test): update test files to ignore non-compliant mwb issue

:tada: This PR is included in version 1.40.1 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


vscode.dev doesn't load in Chromium on Ubuntu

Ubuntu 20.04
Chromium 106.0.5249.91
(no extensions)

Opening https://vscode.dev or https://insiders.vscode.dev just shows our background image. There are no erros in the console:

Duplicate of #145647


Added Slack chat.scheduleMessage to web api

Slack recently released new functionality!
https://api.slack.com/messaging/scheduling

Thanks for the contribution!


Bookshop

In this branch of the project, I have implemented the following;

I have set up the react project
I have set up a function to display the the books on the page.
I have set up a details page to display the details of eact book on click
I have set up a search function ith filters to search for books by name.
I have styled if to be responsive on any device.

Thank you
Sent from Yahoo Mail on Android
On Fri, Mar 24, 2023 at 5:36 PM, Mohammed @.***> wrote:
@binhussen approved this pull request.
Hi @Divinity-dev ,
Your project is complete! There is nothing else to say other than... it's time to merge it
Congratulations! 🎉
Highlights

All linter checks passed ✔
Used React-redux ✔
Used Git flow ✔

Optional suggestions
Every comment with the [OPTIONAL] prefix won't stop the approval of this PR. However, I strongly recommend you to take them into account as they can make your code better. Some of them were simply missed by the previous reviewer and addressing them will really improve your application.
Cheers and Happy coding! 👏 👏 👏
Feel free to leave any questions or comments in the PR thread if something is not 100% clear.
Please, remember to tag me in your question so I can receive the notification.
As described in the Code reviews limits policy you have a limited number of reviews per project (check the exact number in your Dashboard). If you think that the code review was not fair, you can request a second opinion using this form.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: @.***>


Queries don't execute properly after latest update

Issue Type: Bug

Connect to a SQL Server 2016 DB that has stored procedures
In a new query window run an SP with:   exec dbo.NameOfSp
 You get a message saying command executed successfully, but it does not display the table of records returned by the SP, tried different SPs, tried closing/reopening and re-running and nothing. It was completely fine the moment before the upgrade!!!

How on earth did this even happen!
[UPDATE] I have a bunch of queries I run all the time, but I never save them because ADS does this automatically to a temp file and reopens it the next time it starts. However after this update it turns out the tab with the contents in had the windows logo icon instead of the red query icon. I copied the text, started a new query window and pasted it in again and all was well with the world again.
Azure Data Studio version: azuredatastudio 1.35.0 (e9c8eb8564f537726b36b5f15c7f35e62f229284, 2022-02-23T17:36:02.883Z)
OS version: Windows_NT x64 10.0.19044
Restricted Mode: No

System Info

Item
Value

CPUs
Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz (8 x 4008)

GPU Status
2d_canvas: enabledgpu_compositing: enabledmultiple_raster_threads: enabled_onoop_rasterization: enabledopengl: enabled_onrasterization: enabledskia_renderer: enabled_onvideo_decode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabled

Load (avg)
undefined

Memory (System)
31.92GB (21.28GB free)

Process Argv

Screen Reader
no

VM
0%

Extensions (5)

Extension
Author (truncated)
Version

newdatabase
kev
1.0.0

ssmskeymap
kev
1.1.0

import
Mic
1.5.0

profiler
Mic
0.11.0

azdata-sanddance
msr
3.3.0

@alanrenmsft any idea what's happening here?  it sounds like the language auto-detection feature may be messing up files in the hotexit auto-restore list after upgrade?
@peterrow are you still having problems associated with this issue?  or was this only related to files that open & unsaved during upgrade?

@peterrow is this what you mean by "Windows logo"

when it first happened to you, do you see the normal query editor toolbar (with execute, connect buttons...)at the top of the editor window?

@peterrow also, can you share a screenshot for the query results not rendering issue?

@alanrenmsft - yes that screenshot is the windows logo on the tab I was getting and yes it did show the normal query window toolbar.
To resolve the problem I copied all the text out of the hotexit auto-restore window, opened a new query window and pasted into it and all was working again. So in this instance it is definitely something to do with the hotexit auto-restore unsaved content after upgrade that was broken.

had similar error since last update, I guess its somehow related to the collation of the db,
tested on a db with Hungarian_Technical_CI_AS
--create table tmpx(a integer, b varchar(128));
--insert into tmpx values (1,'abc'), (2, 'bcd');
select a from tmpx;
go --returns 2 rows
select a,b from tmpx;
go --returns empty set with headers
select a,b collate Latin1_General_CI_AS from tmpx;
go --returns 2 rows

dupe of #18800, will be fixed in our next stable release.

@alanrenmsft errrm how is this item the duplicate? The ID of this item is #18563, the item you mention is #18800.
This item came almost 300 items before!

@peterrow the issue description but it is caused by the same underlying issue, you are not able to execute the query because it is not recognized as a SQL file. I fixed that one first and while looking at this one I realized it is the same issue.


Nested usage with addon

First i would like to say thank you for e great add-on. In the process of using it I have found annoying bug. It occurs when this add-on is used both my add-on and the application consuming it.
Setup
Consuming application

Using Ember-component-css
Ember-component-css is listed as devDependince
/node_modules/ember-component-css

Addon

User Ember-component-css both for add-on  components and dummy app
Ember-component-css is listed as dependence
/node_modules/ember-component-css

Both projects works fine on its own.
When installing add-on
Only component-css from consuming application i working, its ignoring styles from my add-on.
Bad solution
If i remove folder: /node_modules//node_modules/ember-component-css
Both styles are showing correctly inside consuming application.
Suggested solution
Right now ember-component-css only work in add-ons if its a dependence, i don’t know why. If it could be a peerDependence and only install one copy and use component-css from the highest parent i think this should work.
Let me know if any code examples in needed, thank you!

I have/had the same issue and until now I used the same workaround (deleting the addon's node_module ember-component-css folder), but lately this stopped working. now if I remove it, I get a build error.
anyhow, only doesn't work locally, once deployed it's fine. (but for development it's now a bigger issue for me, since the workaround stopped working)

@roberkules hmm. what’s the build error you get? if you’re version you use in the addon is below the apps, but in the same range, that’s the least error prone.

and i was on vacation for three weeks, then had to get caught up on work and life, and am going to continue on the fix to this that i had started before i left. I’m hoping to have this fix done in the coming  month.

@roberkules hmm. what’s the build error you get? if you’re version you use in the addon is below the apps, but in the same range, that’s the least error prone.

hosting app and addon use 0.6.3 (just verified in node_modules)
removing e-c-c from my addon's node_modules results in:

Error: File to import not found or unreadable: pod-styles.
        on line 1 of tmp/sass_compiler-input_base_path-5ucd1oEr.tmp/0/addon.scss
>> @import "pod-styles";

(also, whenever I update a style in the addon, I see it being applied/flashing right before the whole page reloads, don't know how to fix live-reloading)

@webark sorry for not getting back to you. yes, npm linking.
guess it's related to #241
the addon works in general (without deleting ecc from the addon), but styleNamespace (and componentCssClassName) return an empty string, making it unusable for tag-less components.
(fun fact, in production those are actually returned/not-empty)

hmm. about the linking, i’m getting very close on finishing the rewrite that will make that far more stable.
and they return an empty string? not undefined? i just don’t see any way that they would be undefined.
I do know that with the current version, the app and addons need to be all using the same version of ecc.
So sorry for the inconveniences this has caused you. :( This rewrite will mitigate a lot of these issues, so at least we’ll know we’ll be in a better spot soon.

ya. that makes me think there might be a version mismatch in there somewhere.

ember-component-css 0.6.4 is installed in both projects, consuming app and addon. (checked package.json in node_modules/ember-component-css)

Are there any updates on this ?

@teejayhh @roberkules @Sonberg please try this with the latest 0.6.9 version and see if that fixes your issue. All your addons and app should be to this version or higher.

I will test it tomorrow morning Sydney time. Thx for your great support!

@webark I can confirm that it works for me now 👍
ember: 3.9.0
ember-cli: 3.10.1
node: 10.15.3
ember-component-css: 0.6.9

Great to hear!! if you notice this come up again, please reopen this issue.


illegal hardware instruction  swaggen generate

$ swaggen generate -c all ../ringo/schema.yaml                                                                  ✔
Loading spec from file:///Users/deniz/Code/ringo/schema.yaml
[1]    17213 illegal hardware instruction  swaggen generate -c all ../ringo/schema.yaml

I have no idea why this is happening. I've tried installing using brew and mint, same result. As far as I know, the schema YAML is valid too.

SwagGen 4.6.0
Macbook Pro (Intel)
Xcode 13.1

I will add that this happens even when I build the application from source code.


Cache at the terminology service level

This change will move the caching to the terminology service level, while still respecting the ETag and Cache-Control directives in the responses.
This will improve the performance, as it will remove the need to parse the URLs and responses upon both cache hits and misses.

Added in v6.1.0.


Enable authentication on endpoints

Required information

Camera board id: Xiaomi MJSXJ03HL
OpenIPC version: <IP_ADDRESS>
Commit: 8f80886
Branch: master
Tag: 2023-10-06
installation method: https://github.com/OpenIPC/device-mjsxj03hl/blob/master/Manual_en.md
modified majestic.yaml: yes

Issue description
I cannot find a way to enable authentication for most Majestic endpoints:

JPEG endpoint is enabled, even though jpeg.enabled: false is set, and also allows unauthenticated access
Audio endpoints can be accessed without authentication
Prometheus metrics can also be accessed without authentication

Searching the website, github repos, and general Google queries did not turn up a way to enable authentication.
Expectations
I would have expected for the above endpoints to return HTTP/1.1 401 Unauthorized, like /night/on does, for example.
Steps to reproduce

JPEG endpoint:

$ curl -s http://<IP_ADDRESS>/image.jpg | file -
/dev/stdin: JPEG image data, JFIF standard 1.01, aspect ratio, density 1x1, segment length 16, comment: "", comment: "", comment: "", comment: "", comment: "", comment: "", baseline, precision 8, 1920x1080, components 3

Audio endpoints:

$ curl -s http://<IP_ADDRESS>/audio.opus | ffmpeg -i -
[...]
Input #0, ogg, from 'pipe:':
  Duration: N/A, start: -0.440000, bitrate: N/A
  Stream #0:0: Audio: opus, 48000 Hz, mono, fltp

Prometheus metrics:

$ curl -s http://<IP_ADDRESS>/metrics | head -1
# HELP node_uname_info Labeled system information as provided by the uname system call.

Information to attach

[ ] Any relevant log output (logread -f)
[x] majestic.yaml configuration (cat /etc/majestic.yaml)

system:
  webAdmin: disabled
  buffer: 128
image:
  mirror: false
  flip: false
  rotate: none
  contrast: 50
  hue: 50
  saturation: 50
  luminance: 50
osd:
  enabled: false
  template: "%a %e %B %Y %H:%M:%S %Z"
nightMode:
  enabled: true
  nightAPI: false
  irSensorPinInvert: false
  backlightPin: 60
  irCutPin1: 49
  irCutPin2: 50
records:
  enabled: false
  path: /mnt/mmcblk0p1/%F/%H.mp4
  maxUsage: 95
video0:
  enabled: true
  codec: h265
  size: 1920x1080
  fps: 15
  bitrate: 1024
  gopMode: smart
  rcMode: avbr
video1:
  enabled: false
jpeg:
  enabled: false
  toProgressive: false
mjpeg:
  size: 640x360
  fps: 5
  bitrate: 1024
audio:
  enabled: true
  volume: auto
  srate: 16000
  speakerPinInvert: false
  codec: aac
  outputEnabled: false
rtsp:
  enabled: true
  port: 554
hls:
  enabled: false
youtube:
  enabled: false
motionDetect:
  enabled: false
  visualize: true
  debug: true
ipeye:
  enabled: false
watchdog:
  enabled: true
  timeout: 10
isp:
  lowDelay: true
  rawMode: fast
  blkCnt: 1

Let's discuss first how we can do you without breaking existing installations/clients (like using additional options?)

Adding system authentication will break WebUI that uses JPEG endpoint for preview
For audio endpoints, it seems nothing bad will happen
For Prometheus metrics, I think it's better to have it disabled by default

Re Preview, if the WebUI is served through Majestic and HTTP Authentication is used, the browser should use the same credentials for the JPEG endpoint.
Re Prometheus, agreed.
I think a good first step would be to add authentication: attribute to all endpoints in majestic.yaml, defaulting to current behaviour for each endpoint, and let the user choose the compromise they prefer.

Done


using CuPy is slower than using NumPy

Conditions (you can just paste the output of python -c 'import cupy; cupy.show_config()')
CuPy Version          : 4.1.0
CUDA Root             : /usr/local/cuda-9.0
CUDA Build Version    : 9000
CUDA Driver Version   : 9020
CUDA Runtime Version  : 9000
cuDNN Build Version   : 7104
cuDNN Version         : 7103
NCCL Build Version    : 1000

Code to reproduce
import cupy as cp
import numpy as np
import time
from shapely.geometry import Polygon as shp
start = time.time()
polygon1 = shp(np.array([0, 0, 2, 0, 2, 1, 0, 1]).reshape(4, 2)).convex_hull
polygon2 = shp(np.array([0, 0, 1, 0, 1, 2, 0, 2]).reshape(4, 2)).convex_hull
inter_area =polygon1.intersection(polygon2).area
print("CPU implementation took: {}".format(time.time() - start))

start = time.time()
polygon1 = shp(cp.array([0, 0, 2, 0, 2, 1, 0, 1]).reshape(4, 2)).convex_hull
polygon2 = shp(cp.array([0, 0, 1, 0, 1, 2, 0, 2]).reshape(4, 2)).convex_hull
inter_area =polygon1.intersection(polygon2).area
print("GPU implementation took: {}".format(time.time() - start))

Error messages, stack traces, or logs
CPU implementation took: 0.025589942932128906
GPU implementation took: 0.895662784576416

GPU computations are not always guaranteed to be faster than CPU.
In your use-case I guess your dataset is too small and most of time is consumed by overhead of GPU use (CUDA initialization, memory transfer, kernel invocation, etc.).


Cache the public directory across builds

This should ensure that older versions of main.js can continue to be
served across restarts.
Doesn't do anything to remove old versions, we'll need to figure that
piece out at some point.
More detail in Heroku's Devcenter:
https://devcenter.heroku.com/articles/nodejs-support#custom-caching

          1 Warning

:warning:
Please provide a linked tracker story for this PR in the description

  Generated by :no_entry_sign: danger

Actually, going to look at a different solve for this. Going to hold on merging for now.


python311Packages.gitignore-parser: 0.1.4 -> 0.1.5

Diff: https://github.com/mherrmann/gitignore_parser/compare/refs/tags/v0.1.4...v0.1.5
Changelog: https://github.com/mherrmann/gitignore_parser/releases/tag/v0.1.5
Description of changes

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
23.11 Release Notes (or backporting 23.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 247141 run on x86_64-linux 1

6 packages built:

python310Packages.gitignore-parser
python310Packages.gitignore-parser.dist
python311Packages.gitignore-parser
python311Packages.gitignore-parser.dist
tell-me-your-secrets
tell-me-your-secrets.dist


Login failed, hassio and App

Goodmorning,
Since 1 week the connection fails randomly for both seat connect in HA as with the seat app.
The integration gives the error "failed to setup, will retry". After a couple of hours, without changing anything, it works again.
My HA issuelog is full with these errors:
2023-11-04 09:09:09.273 WARNING (MainThread) [seatconnect.connection] Unable to fetch authorization endpoint
2023-11-04 09:09:09.274 ERROR (MainThread) [seatconnect.connection] An API error was encountered during login, try again later
2023-11-04 09:10:40.908 WARNING (MainThread) [seatconnect.connection] Invalid credentials or invalid configuration. Make sure you have entered the correct credentials
Again, it looks like to resolve itself in time and reappears in time.
Any advice?

VWGroup set a limit of 1000 Requests per day. Change Configuration an set the poll to 120 and alls is fine. Then it ask every 2 minutes.
i Make a Pull request for it.

Thanks, changed to 120 and will monitor

you must wait until tomorow 1:00 in the morning you get data

Works again, will monitor for the rest of the day and close the issue.
Thanks!

i test it the last days. the minimum Value 90 works also because i get 960 requests per day. but with 120 i have more requests for other thinks.

120 did the trick!


Make it possible to change the colors of TextInput

Make it possible so that you can change the fg and bg colors of focused and unfocused TextInput, if you so wish

Feature implemented in menu_systems branch


Inconsitent naming

The name of the panelbar / panel-bar changes depending on where we are...
panel-bar

On github
In plugins folder

panelbar

Elements like panelbar::link();

I know it comes late and it's probably hard to make something about it?

Going for `PanelBar. Not sure if I should also adapt it in code parts like
<?php echo PanelBar::show() ?>

Maybe use the Kirby convention?
http://getkirby.com/docs/cheatsheet/dimension/fit-width-and-height
$dimension->fitWidthAndHeight()

Camelcasing starting with a lowercase for the first character?`
It would be
<?php echo panelBar::show(); ?>

I just like to be consistant so we still feel it's Kirby (even if this is a plugin).

True. I think then I'll adapt the name everywhere (except in the repo, that will stay panel-bar to panelBar.

(y) How do I do thumbs up on Github? ;)

with :+1: :wink:

:+1:


Change link to download files from going to s3 bucket to page with all file download

Before on the details page the link that shows you all files takes you to an S3 bucket.
Now that we are changing permissions we want that to go to the page with all the files the user can download from the pipeline run.

@eggerdesigns @cyrielo, does this page with all files that can be downloaded exist already?

i assume you are referring to the button that says "navigate to results folder"? @eggerdesigns

Yes I am - I just didn't think it was hooked up. On Alpha it still took me to the S3 bucket when it should go to the new page that you styled and worked on with Yun-Fang

oh that page? alright then

@eggerdesigns, so I just hooked them up in issue 489, since it is a very related PR, so we might not need to keep this issue.


Fix julials

I noticed that the default config for julials, server_path is not a path but a file, print(Base.find_package("LanguageServer")) prints "/home/uncomfy/.julia/packages/LanguageServer/JrIEf/src/LanguageServer.jl" - which is a file. I edited it to print(dirname(something(Base.current_project(Base.find_package("LanguageServer"))))) so it will give "/home/uncomfy/.julia/packages/LanguageServer/JrIEf". If this small change is not merged, the server will not run due to an error because of server_path needs to be a path, and not a file.

Also noticed that you need to import SymbolServer to main according to this:

Note
Due to a current bug
(https://github.com/julia-vscode/LanguageServer.jl/issues/750), SymbolServer must
be imported into Main.

So I edited a few things.

Did you read through that issue? The latest comment refers to a (merged) PR that fixes the issue in SymbolServer.jl, so this workaround is no longer required.
See https://github.com/neovim/nvim-lspconfig/pull/1079 for (a lot of) previous discussion.

Did you read through that issue? The latest comment refers to a (merged) PR that fixes the issue in SymbolServer.jl, so this workaround is no longer required.
See #1079 for (a lot of) previous discussion.

oh my bad i never did. i should have


Allow VPC peering in AWS by add extra variable routes to the default routing table

When creating new cluster, since it's not recommended to use shared VPC.
Its good option to peer VPC and allow networking. but every-time We extend the default routing table and apply again it remove the peer networking routes.
The proposed solution is to allow extra routes to the default routing table as variables passed to the module.
Would this make sense? I could open a PR if so :) Thanks!
Screen shot of terraform apply:

If you need to customize any internal resource (such as an aws_route_table), use Terraform data to reference and customize/extend that resource. You would not pass those customizations into the  Typhoon module. You can use Typhoon's outputs (e.g. vpc_id) to assist in referencing the aws_route_table.

Hi @dghubble - thanks for the suggestion, I have used terraform data to fetch the route table and modify it.
However the result was not idempotent, first time i apply, terraform add the routes, second time it removes the routes.
So when I passed the routes via variable the terraform apply was idempotent.
it would be great to accommodate this change, the alternative i had was downloading the module and override it like below screenshot.

and override the default route table

https://github.com/poseidon/typhoon/pull/654 shows an example using the suggested approach. Previously, extension would cause a diff because of terraform-provider-aws's inline route vs route resource, but this is addressed. Overrides are not needed.
Note the warning: Internally connecting AWS clusters can reduce cross-cloud flexibility and inhibit blue-green cluster patterns. It is not a recommended architecture. Make sure you don't create a situation where two clusters rely on one another's specific setup / cloud.


When localization is found after absence, jumping bound causes it to catch up slowly.

Maybe track time localization was lost.

This should be fixed in current master.  The jump and smoothing value are changed based on the duration of the jump. Smoothing is disabled during the jump

This issue was moved to hulop/NavCogIOS#16


Update Composer dependencies (2022-03-01-00-02)

Visual regression test passed!
View the visual regression test report


Proposal: Add guidance for using Verify (and later GaaP)

Verify has a thing called a "stable prototype" which prototypes can use to test out using Verify. The Pay team are looking into doing a similar thing too, and it's not a stretch to imagine other GaaP products doing so too.
We should be letting kit users know that they can use Verify and their kits, and how.
The way it works is users have to request access to the stable prototype, so we'd basically be adding something to the readme along the lines of "If you want to use Verify in your prototype, get in touch with the team at<EMAIL_ADDRESS>"

This was merged in in PR #186


Milestone 1.2 - Tools

[ ] Fix all bugs from 1.1
[ ] Node module to create a tree of dependencies & a list of file routes
[ ] Native support for SystemJS
[ ] Module for Webpack

Sweet, if I can get rid of router.js in my project, that would be awesome sauce.

so... how is this going? just some days ago I was checking webpack with angular and found this. I though that ocLazyLoad was already supported. could it be great

Actually it already works, you can find 2 examples on the subject here: https://oclazyload.readme.io/docs/webpack

ooo great! I'll check it out. Thanks!

@ocombe what is the verified current bug on 1.1 ?

The opened issues tagged as "bug" and the ones not tagged that I need to check.


SW-5206: Update module routes

This PR includes updates to the module route keys & paths.
Note: Plural naming was used to follow existing route conventions.

@nickgraz so it turns out these path changes break the module pages, I believe because the route is now being picked up and handled by the ProjectsRouter rather than the ModulesRouter. Is it ok to move the three project module related routes into the ProjectsRouter or is there an alternative approach we're prefer?

Ah but then we need to move the views as well 🤔
I think we may be able to just move the ModulesRouter above the ProjectsRouter and it would be picked up, but then we rely on route order within the OrgRouter. Perhaps that's ok?

Went ahead and made the latter change since it's the simplest.


[Urgent] Namescpaces multiselect combo box and search in all of them by keyword

Describe the problem/challenge you have
Currently, I can't search, for example, a pod in all namespaces filtering by a keyword.  Also, I can't select multiple namespaces to try a selective search or view ot them
Describe the solution you'd like
It would be nice just search by a keyword instead of clicking on every namespace to find a resource.  Also, if I need to see multiple namespace resource, I have to go into every namespace :(
Anything else you would like to add:
These features will help in the productivity.  You can see these features running the Lens IDE.
Environment:

Octant version (use octant version):  0.25.1
Kubernetes version (use kubectl version): v1.14.8
OS (macOS 10.15, Windows 10, Ubuntu 19.10 etc): Ubuntu 21.10

This is by design. Octant doesn't currently support multiple namespaces. The core of the application is namespace specific. It would not be impossible to support this, but the work has not currently been scoped. Always looking for more contributors!


Fix https://github.com/erincatto/box2d/pull/609/files

Polygon updated as per https://github.com/erincatto/box2d/pull/609/files
Sweep updated as per https://github.com/erincatto/box2d/pull/610/files
Static body flags updated as per https://github.com/erincatto/box2d/pull/614/files
Would be good to copy Erin's unit tests from those commits and get his documentation addition in our documentation

Polygon updated as per https://github.com/erincatto/box2d/pull/609/files
Sweep updated as per https://github.com/erincatto/box2d/pull/610/files
Static body flags updated as per https://github.com/erincatto/box2d/pull/614/files
Would be good to copy Erin's unit tests from those commits and get his documentation addition in our documentation

Hey dude, sorry for not being available last week. I just finished my military service and I had a lot of work. I will check these changes ASAP.
In the coming days, I will make the code more readable (no unit tests now and no logic changes). Something similar in my recent PRs.

No problem! Glad to hear you finished your military service, must be a relief for you!


Client-Side SSL Authentication

is it possible to setup Client-Side SSL Authentication for AWS gateway?
http://docs.aws.amazon.com/apigateway/latest/developerguide/getting-started-client-side-ssl-authentication.html

please add support for Client-Side SSL Authentication

The Client-Side SSL feature is arguably out-of-scope for the swagger importer, similar to setting up CloudWatch logging as mentioned here: https://github.com/awslabs/aws-apigateway-importer/issues/124
The SSL Cert itself has to be setup on the account level which you could use the CLI to do. Linking the cert to a RestApi is done on the stage settings, but the importer only supports a basic deployment right now. Managing stage settings is easy using the console or the CLI, and a patch on the deployment code in the importer could also do the trick if more parameters are passed in.

Also check out this comment on a related issue:
https://github.com/awslabs/aws-apigateway-importer/issues/124#issuecomment-164859378
References a PR by @cfair that would do the trick for you if this is blocking you.


How to load the snapshot properly?

First of all, I would like to thank you for a great tooling. I am trying to load the mini / full snapshot file locally but I am not able

But it is like to request the end point from src/main/java/com/coekie/flowtracker/web/TreeResource.java
What is the best way to run WebModule with a snapshot file?
Thanks,
Minh

Browsing a snapshot does not require running any java code (such as TreeResource or WebModule), because the snapshot should already contain their result.
I don't know why you're getting a 404 there. Does your snapshot zip not contain a tree/all file?
And I don't know what that error in globalShims.js is about, that file does not look familiar. Is that perhaps coming from a Chrome extension?
Can you try looking at the snapshot in an incognito window (where extensions are disabled) to see if that helps?

And that http://[::]:8000/tree/all URL looks weird: where does that [::] come from?
Are you using jwebserver and looking at http://localhost:... like in the USAGE.md instructions, or are you doing something different?

Thanks for reply @coekie. I was firstly running it using python httpserver
I just did that again with jwebserver and here is the log
[14:49:54][~/Downloads/snapshot]
➜  ~/.sdkman/candidates/java/21.0.4-oracle/bin/jwebserver
Binding to loopback by default. For all interfaces use "-b <IP_ADDRESS>" or "-b ::".
Serving /Users/<xxx>/.Trash/snapshot and subdirectories on <IP_ADDRESS> port 8000
URL http://<IP_ADDRESS>:8000/
<IP_ADDRESS> - - [14/Sept/2024:14:50:04 +0700] "GET / HTTP/1.1" 200 -
<IP_ADDRESS> - - [14/Sept/2024:14:50:04 +0700] "GET /tree/all HTTP/1.1" 404 -

The snapshot should always contain a tree/all file, but looks like it doesn't. Maybe it crashed partly through generating the snapshot zip file.
Was there no error printed to the console when running the java program?

@coekie I don't see any special log.
I use -javaagent:XXX... to pass through my Tomcat web app to run it.
Then I accessed http://localhost:8011/snapshot/minimized or http://localhost:8011/snapshot/full to download snapshot
Can you help me link the code to include tree/all file? I can open a PR if possible

Let me debug to this part to find out https://github.com/coekie/flowtracker/blob/master/web/src/main/java/com/coekie/flowtracker/web/Snapshot.java#L101

I am still unsure why the snapshot does not execute the above line to write out the tree/all I will try to add log to find out


Move optical observation classes to ootk

https://github.com/thkruz/ootk-core/blob/942f204784419bd78fd3a4e803040df4ab79bd8c/src/observation/RadecGeocentric.ts#L35

Changed my mind. This seems very helpful for converting optical observations into rough TLEs which I have seen requested many times before. The orbit fitting code will stay downstream.


Update componentsjs-generator to v1.5.0

I upgraded but am now getting:
><EMAIL_ADDRESS>build:components /Users/ruben/Documents/UGent/Solid/solid-community-server
> componentsjs-generator -s src

Failed to load super class HttpError of ConflictHttpError in /Users/ruben/Documents/UGent/Solid/solid-community-server/src/util/errors/ConflictHttpError:
Failed to load super class Error of HttpError in /Users/ruben/Documents/UGent/Solid/solid-community-server/src/util/errors/ConflictHttpError:
Could not load class Error from /Users/ruben/Documents/UGent/Solid/solid-community-server/src/util/errors/HttpError

So there seems to be a problem with built-in JavaScript classes.

Ah yeah, this requires a new file to ignore classes.
I had created a commit (58317abc7b27ebccf0a8918f9388c4b2e098680f) for this in #338, but it looks like that PR was not merged into anything.

@rubensworks Thanks, I had misunderstood; I cherry-picked your 58317abc7b27ebccf0a8918f9388c4b2e098680f as ff33efa73def6f2593c66d7ed3d0357c65b37c51, but now validation fails:
Error: Parameter https://linkedsoftwaredependencies.org/bundles/npm/@solid/community-server/ldp/AuthenticatedLdpHandler#AuthenticatedLdpHandler_args_requestParser is required, but no value for it has been set in urn:solid-server:default:HttpHandler.
Resource {
  value: 'urn:solid-server:default:HttpHandler',
  termType: 'NamedNode',
  'http://www.w3.org/1999/02/22-rdf-syntax-ns#type': [
    Resource {
      value: 'https://linkedsoftwaredependencies.org/bundles/npm/@solid/community-server/ldp/AuthenticatedLdpHandler#AuthenticatedLdpHandler',
      termType: 'NamedNode',
      'http://www.w3.org/1999/02/22-rdf-syntax-ns#type': [Array],
      types: [Array],
      'http://www.w3.org/2000/01/rdf-schema#comment': [Array],
      'http://www.w3.org/2000/01/rdf-schema#subClassOf': [Array],
      classes: [Array],
      'https://linkedsoftwaredependencies.org/vocabularies/object-oriented#componentPath': [Array],
      requireElement: [Resource],
      'https://linkedsoftwaredependencies.org/vocabularies/object-oriented#constructorArguments': [Array],
      constructorArguments: [Resource],
      'https://linkedsoftwaredependencies.org/vocabularies/object-oriented#parameter': [Array],
      hasParameter: [Array],
      module: [Resource]
    }
  ],

whereas it works with v1.2.0.

Just pushed a fix.
This was needed because there was a bug with parameter name generation for nested objects(https://github.com/LinkedSoftwareDependencies/Components-Generator.js/issues/44).
I didn't realize this change hadn't made its way into the server yet, so the old (bugged) way of parameter names was in use for some components.

@RubenVerborgh Thanks, will add this to master.


Add forked_from as a pointer either to an existing package or as a reference to a URL

Supercedes #3355 and implements the first part of #551. UI changes still pending.
@supersonicbyte I was seeing test failures in test_decode_Metadata_null and test_fetchMetadata which I have fixed by making Parent optional in the GitHub metadata. I don’t believe that parent is a mandatory field supplied by GitHub, so this feels like a reasonable fix to me but could you verify please?
Thanks!

Yes, parent is optional in the GraphQL schema:

Note that GraphQL uses sort of a reverse syntax to Swift:
optionalField: String          -> var optionalField: String?
nonOptionalField: String!      -> var nonOptionalField: String

LGTM! Thanks for the review and fixes. @finestructure could you link the logic for normalizing the repo urls from PackageList? I couldn't find it.

It's here: https://github.com/SwiftPackageIndex/PackageList/blob/08b5021396a618f2c596dc6f48c336c82901d966/.github/add_package.swift#L24
This is essentially what determines the normalisation in the packages.url field when we add packages.

LGTM! Thanks for the review and fixes. @finestructure could you link the logic for normalizing the repo urls from PackageList? I couldn't find it.

It's here: https://github.com/SwiftPackageIndex/PackageList/blob/08b5021396a618f2c596dc6f48c336c82901d966/.github/add_package.swift#L24
This is essentially what determines the normalisation in the packages.url field when we add packages.

Thanks! That could be definitely reused.

Hey @finestructure I incorporated your suggestions, please take a look when u find the time! I also took the URL approach from PackageList, it seems nicer than the way I did it.

@finestructure thanks for the feedback! Here we go again, could you please review again? Thanks!


Add spaces before/after imports

Though not explicitly stated in the Angular Style Guide, you can see that everywhere in that document all import statements follow a simple convention: add a space after the initial curly brace and before the last one. angluar-cli uses this same convention to scaffold apps.

@caroso1222 — Thank you, much appreciated. Merged 👍


Using F5 (show BT editor) in-game during multiplayer causes crash via NPE

What you were trying to do
Open the behavior tree editor in-game via F5
What actually happened
Client crashed with an NPE
How to reproduce

Client connected to a multiplayer server with Behaviors active (assumed, might take less)
Press F5

Log details and game version
Omega 900 during today's play test
14:03:27.201 [main] ERROR o.terasology.engine.TerasologyEngine - Uncaught exception, attempting clean game shutdown
java.lang.NullPointerException: null
	at org.terasology.rendering.nui.TextLineBuilder.addText(TextLineBuilder.java:56)
	at org.terasology.rendering.nui.TextLineBuilder.getLines(TextLineBuilder.java:51)
	at org.terasology.rendering.nui.TextLineBuilder.getLines(TextLineBuilder.java:46)
	at org.terasology.rendering.nui.itemRendering.StringTextRenderer.getPreferredSize(StringTextRenderer.java:69)
	at org.terasology.rendering.nui.widgets.UIList.getPreferredContentSize(UIList.java:117)
	at org.terasology.rendering.nui.internal.CanvasImpl.calculateRestrictedSize(CanvasImpl.java:347)
	at org.terasology.rendering.nui.internal.CanvasImpl.calculatePreferredSize(CanvasImpl.java:333)
	at org.terasology.rendering.nui.layouts.ScrollableArea.getPreferredContentSize(ScrollableArea.java:193)
	at org.terasology.rendering.nui.internal.CanvasImpl.calculateRestrictedSize(CanvasImpl.java:347)
	at org.terasology.rendering.nui.internal.CanvasImpl.calculatePreferredSize(CanvasImpl.java:333)
	at org.terasology.rendering.nui.layouts.miglayout.MigComponent.calculatePreferredSize(MigComponent.java:41)
	at org.terasology.rendering.nui.layouts.miglayout.MigLayout.layoutContainer(MigLayout.java:223)
	at org.terasology.rendering.nui.layouts.miglayout.MigLayout.getPreferredContentSize(MigLayout.java:182)
	at org.terasology.rendering.nui.layouts.miglayout.MigLayout.getMaxContentSize(MigLayout.java:188)
	at org.terasology.rendering.nui.internal.CanvasImpl.calculateMaximumSize(CanvasImpl.java:362)
	at org.terasology.rendering.nui.internal.CanvasImpl.drawWidget(CanvasImpl.java:385)
	at org.terasology.rendering.nui.CoreScreenLayer.onDraw(CoreScreenLayer.java:115)
	at org.terasology.rendering.nui.internal.CanvasImpl.drawStyledWidget(CanvasImpl.java:406)
	at org.terasology.rendering.nui.internal.CanvasImpl.drawWidget(CanvasImpl.java:392)
	at org.terasology.rendering.nui.internal.NUIManagerInternal.render(NUIManagerInternal.java:475)
	at org.terasology.engine.modes.StateIngame.renderUserInterface(StateIngame.java:235)
	at org.terasology.engine.modes.StateIngame.render(StateIngame.java:219)
	at org.terasology.engine.subsystem.lwjgl.LwjglGraphics.postUpdate(LwjglGraphics.java:166)
	at org.terasology.engine.TerasologyEngine.tick(TerasologyEngine.java:446)
	at org.terasology.engine.TerasologyEngine.mainLoop(TerasologyEngine.java:400)
	at org.terasology.engine.TerasologyEngine.run(TerasologyEngine.java:376)
	at org.terasology.engine.Terasology.main(Terasology.java:154)
14:03:27.201 [main] INFO  o.terasology.engine.TerasologyEngine - Shutting down Terasology...

Maybe of interest to @l0ftyWhizZ and/or @Naman-sopho since they're digging around in the BT area. Probably an easy fix?

I added a simple NULL check for text in TextLineBuilder and it does bring up the NUI editor.

Thanks for the extra detective work :-)
I've merged in the two module PRs so this specific case shouldn't happen anymore. But it would still be good to add that null check with a quick warn log entry to go with it. Knowing a bit more about where should make resolving this issue trivial and indeed a Good First Issue!
On a kind of related note, we have the BT editor button in the main menu - but it doesn't do anything?

Yes, the button events for the BT editor button aren't subscribed in MainMenuScreen. It's currently just a dummy button. Following line is to be added in MainMenuScreen :
WidgetUtil.trySubscribe(this, "behavioreditor", button -> getManager().toggleScreen("engine:behaviorEditorScreen"));

Yeah I suppose the button made sense back when BTs were purely in the engine. Now they require at least the Behaviors module active. So lets add to this issue outright removing that button from the main menu. At least until we have the ability to activate modules inside the main menu.

A similar type of issue occurs with the Metrics Menu or the telemetry menu button on the main menu. Once we click "Back" on TelemetryScreen, the UI goes blank (Hence cannot exit the game unless the process is killed), although the button works fine when in a game.
Should I create a separate issue for this, or let it be this way?

Closing this as complete. The button was just removed technically after v2.0.0 but still the crash etc was fixed then so leaving this issue in that milestone still.


Added operator ! and an algebraic optimisations pass

I tried to sort out the mess rustfmt made into separate commits as best as possible, but 8584dbc858fa244367babbaf5fc11d8a20af3ce4 still has a bunch of formatting changes, that are difficult to completely factor out.

He @Bathtor,
I finally got a chance to look at these, and they look awesome! We were working on re-structuring the code to make it cleaner (and faster!), hence the delay. I'll work on merging this in the coming weeks, likely as a new pull request because of the formatting stuff.
Thanks for doing this!
Shoumik

Sure, let me know how it's working out for you, once it's merged. And sorry again for the formatting mess. I sure learned from it for our own Rust projects^^ I really hope rustfmt will stabilise this, now that's almost at 1.0.

@Bathtor check out https://github.com/weld-project/weld/pull/415 : you should adopt that PR as specified in the PR comments there so you're credited with this awesome patch :)


The number of ssh-private-key arguments and repo-mappings must match.

I was trying to install multiple ssh keys to my virtual machine, by researching through existing issue, I found this solution: https://github.com/webfactory/ssh-agent/issues/30#issuecomment-677782910
Which seemed to work perfectly. It works fine on my main repository. However, when I tried to use it on my spm for CI, with following code:
- name: Install SSH keys for private repos
      uses: shaunco/ssh-agent@git-repo-mapping
      with:
          ssh-private-key: |
                ${{ secrets.SSH_KEY_REPO1 }}
                ${{ secrets.SSH_KEY_REPO2 }}
          repo-mappings: |
                github.com/organization/repo1
                github.com/organization/repo2

it shows this error message:
Error: The number of ssh-private-key arguments and repo-mappings must match.

That syntax was a suggestion, but we decided not go that way and ended up using key comments.
Please see if https://github.com/webfactory/ssh-agent#support-for-github-deploy-keys helps.


Add concurrency limiting for DNS message processing

This change adds a configurable semaphore to DNS proxy which controls
the limit of concurrently processed DNS messages.
Signed-off-by: Maciej Kwiek<EMAIL_ADDRESS>

/test-backport-1.9

/test-backport-1.9

/test-backport-1.9

/test-backport-1.9

/test-backport-1.9

/test-1.17-5.4

/mlh new-flake Cilium-PR-K8s-1.19-kernel-4.9


Creating a principal namespace does nothing.

Issue description
Steps to reproduce

Install a local Pact environment.
Run the ns.create-principal-namespace command, which will return the newly created namespace identifier (for example "n_da02e06d11b85816fad4867966078855999cc56e").
Check the database or try to use the namespace.

Expected Behavior
The namespace should appear in the SYS_namespaces_DATA table and be accessible in the subsequent Pact commands, for example "define-keyset". However, only the "free" namespace is available. Attempting to use the created namespace will result in "namespace: 'n_da02e06d11b85816fad4867966078855999cc56e' not defined" error. Also no other namespaces appear in the database.
Debug Information
MacOS 13.5.1 (22G90). Pact version 4.7.1.

https://pact-language.readthedocs.io/en/stable/pact-functions.html#define-namespace is what you want.
(define-namespace (ns.create-principal-namespace (read-keyset "ks")) (read-keyset "ks") (read-keyset "ks"))

Thanks. The name is somewhat misleading, but makes sense now why nothing happens. :)


Fixed RIPPLE-88

The previous fix for RIPPLE-74 rendered the properties created by Ripple
both non-configurable and non-enumable.  Making the properties
non-configurable means they cannot be replaced by the program under test,
and it turns out that cordova.js does just this, hence RIPPLE-88.
I marked the new properties as both configureable and enumerable.
The A+ solution would be to test to see if the property being defined
already exists, and if it does, then use the existing metadata values
for writable and enumerable, but I didn't do all that.

Thanks Julian for prompt solution.
Happy to test it but I'm not sure how to install Ripple development versions... thanks for help here...

Looks good. I verified the fix and merged.


Certificate issue for docker pulling from the public repo

There is an issue with expired certificate for docker pulling in the agent container.
[go] Task: /bin/bash -c "docker-compose build"took: 0.429sexited: 1
nginx uses an image, skipping
Building app
Step 1/22 : FROM php:7.2-fpm-alpine3.8
Service 'app' failed to build: Get https://registry-1.docker.io/v2/: x509: certificate has expired or is not yet valid
Container is up in k8s Pod by Kubernetes Elastic agent.
According to the docker dind documentation, they should be in /certs directory
https://hub.docker.com/_/docker#tls

Starting in 18.09+, the dind variants of this image will automatically generate TLS certificates in the directory specified by the DOCKER_TLS_CERTDIR environment variable.

Stack:
GoCD - 19.7.0 installing through helm to k8s cluster
Kubernetes Elastic Agent Plugin - 3.0.0-156

based on gocd/gocd-agent-docker-dind:v19.7.0
In the agent container Docker version 19.03.1, build 74b1e89e8a

Any thoughts?
Probably I need to generate certificates and map to the volume?

Closing as a duplicate of https://github.com/gocd/kubernetes-elastic-agents/issues/138 for now. Can reopen if we learn it's not. Thank you!


Feature Request: Delete Document Button

Hi,
I hope you don't mind me giving another suggestion, but I think it is essential that there is a clean and easy way to delete files from the database within the GUI.
I am planning to scan documents directly to the share that Ambar will import from, so there may be occasions where the document has not scanned correctly and I will have to rescan it.  This means I need to delete the old scan from the Ambar database to keep it tidy.
A delete button on the search results screen next to each document would be sufficient so the incorrect document can be removed with a click.
Thanks again for all your hard work!

Hello, with removal feature we have an issue. Let's consider next scenario:

You add a crawler, with schedule to run every 5 minutes.
You remove some file
The file appear again as crawler will add it

We're puzzled on how we can safely remove files from Ambar

Hi!
Thanks for your response.
I guess that in the scenario you have detailed, you would want the system to add the file back in as it currently exists in your within your list of live documents.
I would say that in my original suggestion, the document would have been deleted from the location where the crawler is looking so it won't be added again.  This means that the document should be deleted from the Ambar database as well.  You could either set a delete option on the file in the GUI, or better still, have the choice to automatically delete files from the Ambar database which are no longer in the crawler location.
Do you think this sounds like a good idea?
Thanks!

Hi @fictionalname , fthanks for your comments and feedback. Finally we found a way to remove files form Ambar. We'll add it to the release in the next few weeks

Done. Check 0.10.0 release


add ping command

fix #8

Hi @salman0ansari! Thank you for your contribution! Your PR seems okay, but I cannot merge it, as it seems to address issue #5 as well, but that issue has been taken up by someone else. I'd like you to please wait for that issue to be resolved, and work on this issue after PR #14 has been merged.
Also, please leave a comment on the issue you want to address, so I may be able to assign the issue to you. I will be closing this PR, you can make a new one once PR #14 has been merged.


[sqlancer] delete table with mv error, Column is not key column in index

Steps to reproduce the behavior (Required)
CREATE DATABASE n3;
USE n3;
admin set frontend config ("enable_decimal_v3" = "true");

CREATE TABLE t1 (c_1_0 VARCHAR(21) NULL ,c_1_1 DATETIME NOT NULL ,c_1_2 DECIMAL(13, 0)  NOT NULL ,c_1_3 CHAR(31) NULL ,c_1_4 DECIMAL(17, 13)  NOT NULL ,c_1_5 SMALLINT NOT NULL ,c_1_6 ARRAY<INT> NULL ) DUPLICATE KEY (c_1_0,c_1_1,c_1_2) PARTITION BY RANGE(c_1_1) (START ("2010-01-01") END ("2022-12-31") EVERY (INTERVAL 316 day)) DISTRIBUTED BY HASH (c_1_0) BUCKETS 3 properties("replication_num"="3") ;

CREATE MATERIALIZED VIEW v0 AS SELECT t1_59.c_1_1, t1_59.c_1_2, t1_59.c_1_3, t1_59.c_1_4, t1_59.c_1_5, MAX(t1_59.c_1_0)  FROM t1 AS t1_59 GROUP BY t1_59.c_1_1, t1_59.c_1_2, t1_59.c_1_3, t1_59.c_1_4, t1_59.c_1_5 ORDER BY t1_59.c_1_1, t1_59.c_1_2 DESC, t1_59.c_1_3 DESC, t1_59.c_1_4, t1_59.c_1_5;

DELETE FROM t1 WHERE c_1_0='zy6' AND c_1_2=7870287855050;

Real behavior (Required)
mysql> DELETE FROM t1 WHERE c_1_0='zy6' AND c_1_2=7870287855050;
ERROR 1064 (HY000): Column[c_1_0] is not key column in index[v0]
StarRocks version (Required)

You can get the StarRocks version by executing SQL select current_version()
mysql> select current_version();
+-------------------------+
| current_version() |
+-------------------------+
| BRANCH-2.5-ASAN d5ba10b |
+-------------------------+

not a problem


Adds compressed serialization for G2 points

Adds compressed serialization for G2 points. I tried to copy the style of the G1 compressed serialization, but borrowed more from Appendix C of the pairing-friendly curves draft.
If this is desirable, I can continue work on this PR to harmonize the G1 and G2 code for this.
Context: using this library for a BBS+ implementation.

thanks


Fix mac tmpdir issue

Fixes #57

Great, Thank you @chaselgrove !  Let's proceed and I will then test "in the battle field"


Bump dependency constraints to current releases

Let's see what travis says to this.

@stefanfoulis Now that django-polymorphic 1.3 is out, it should be just >=1.3. It contains the fix for swappable models.

Dependencies have already been updated by other PR


gimp, inkscape, solvespace, rpcs3, openscad, citra-emu, srain: drop and use flatpak

i know this issue might be trivial compared to #87 , but considering flatpak has many advantages such as sandboxing, less maintenance, less stress on the system, and is easier to manage i don't see why not.
KISS users often use Flatpaks for other big programs such as LibreOffice.

Since I've already invested the effort in packaging them, I'm pretty averse to dropping these particular packages. Granted, we may be able to remove atk from the repo, but I think having native applications is preferable in almost all circumstances to flatpak. Just my 2 cents.

but I think having native applications is preferable in almost all circumstances to flatpak.

Honestly, I thought the same. But considering the bloat that comes from this is insane.

we may be able to remove atk from the repo

Personally, its quite a lot of work to remove atk and also patch them for muon as well.

but I think having native applications is preferable in almost all circumstances to flatpak.

Honestly, I thought the same. But considering the bloat that comes from this is insane.

I don't consider 1 package to be that much bloat.

packages that rely on a dependency that is only required by it:

gimp

appstream-glib
gegl
gexiv2
gobject-introspection
libmypaint
poppler-data

inkscape

gc
gsl
potrace

openscad

cgal
eigen
libzip
opencsg
qscintilla-qt5
qt5-multimedia

srain

libsecret

packages that rely ONLY on the packages mentioned here

atkmm
glibmm
cairomm
pangomm
gtkmm3
gstreamer
gst-plugins-base
libsigc++

are you sure?

i still really suggest using the flatpak for these ngl..

I actually have to agree with @ehawkvu here. Having native packages to me is favorable.
While I get that binary packages is infinitly more convinient than using a week to compile your complete system. This is still a source based distro, and I would expect to have to build packages from source.
Users are obviously free to use flatpak themselves and bypass all the hurdles of building i.e. rust, or chromium if they wish to.
I think that if users wishes to spend their time and effort to package packages like gimp, we should welcome it.
Its also been a thing for some KISS users to port things to kiss, just for the fun of it.. (maybe not do much anymore?)
Users have packaged xfce, kde and even pantheon just to name a few others.
And their effort should not be ignored imo.

yeah i have to agree native packages is quite nice


Eliminate the wasteful updates due to the aggregated rules

For any ClusterRole with an aggregationRule, we read its rules from the database in the transformer, since the manifest will never contain the correct rules.

/lgtm


Refactor exception handling

Begin is in class MailBuilderUtil in BuildXmlFromUserOtp(User user, OneTimePassword oneTimePassword) method. Exception 'java.io.IOException' is never thrown in the method.
Then move by methods usages chain. Whenever you see throws Exception it need to refactor code. Exception is too broad, masking specific exceptions.

@AndriyBaibak time spent: 3h

@romach @vaa25 @alex-anakin also i removed antipatterns that discribed here
https://community.oracle.com/docs/DOC-983543

@AndriyBaibak time spent: 1h


🐞 [BUG] - Hovering over Courses nav

Description
When we over the courses nav link, it looks quite misaligned

Current behaviour
Same as above.
Expected behaviour
I will improve the alignment of the dropdown, and it's styling too.
After removing the cursor from the nav, the dropdown does'nt go away.
I have improved both the functionalities in my code, if you feel they have to be corrected do let me know, I'll make a PR.
Reproduction steps
1. Go to './components/common/Navbar.jsx'
2. Click on 'Navbar.jsx'
3. Scroll down to 'hoverCourses useState Hook', 'const handleCoursesHover, handleCoursesLeave'
4. See error

Screenshots

Logs
No response
Browsers
No response
OS
No response
Are you contributing for a program ?
GSSoC2023
Code of Conduct

[X] I have read and agree to the Contributing Guidelines of this project.

Go ahead @Vedantjn


Don't console.log in Production

It's generally considered bad practice to use console.log in production. When we deploy, we need to make sure we don't have any console.log's.
It might be that npm run build strips out console.log's. We can address this when we're close to deploy.

I recommend this issue remain until, and be closed when, there are no console.log commands anywhere in the code base that could be hit in production operation. (I am not actually clear on how far or near we are to that state.)


Add some progress indication on potentially slow operations in web ui

With 1000+ records in the custom spam list clicking on the trash icon does something for a second or two and it will be nice to show some progress indicator. HTMX supports this kind of things, should be easy enough.
as a side note - need to check why it takes that long, maybe some index missing or smth like this.

The removal was refactored to avoid unneeded io ops; see https://github.com/umputun/tg-spam/pull/62


Message storage format

WhatsApp Messages have;

A body
Zero or more attachments
Attachments that are stickers ???

WhatsApp messages may arrive;

Directly (DM)
From a group (GM)
Status updates (SU) ???

Details:

Header values for the DM type:

From: Address value comes from message.from. Name comes from the latest SU
To: Address value comes from message.to. Name is empty

Header values for the GM type:

From: Address value comes from message.from. Name comes from the latest SU
To: Address value comes from message.to which contains the group id. Name comes from the group name
Author (RFC 9057):  Address value comes from message.author which contains the group id. Name comes from the latest SU
List-Id: Contains the message.to value.

#DONE.
Racing bug fixed.

You are inserting then issuing multiple(?) updates. You should perform a single insert, please fix these as well.

Also, we need;

Dummy data, in order to avoid launching the browser instrumentation every time
Tests.

System now uses single insert function.


Does MalmoEnv support multiagent communication?

I wasn't able to find any function or module that supports multi-agent communication in MalmoEnv. I am still new to Malmo, so if anyone could help regarding multi-agent communication in MalmoEnv?

MalmoEnv supports two or more agents and there is a "chat" command so possibly.

@andrekramer Thanks for letting me know. In Minecraft, all the members can see messages in the chat window. Is the chat command provided be used for private communication also? Any ideas?


Parachain didn't produce blocks

Discription
after running the parachain locally, parachain didn't create any new blocks.
Steps to reproduce

make start-relay
make register
make start-frequency
make onboard

Expected Outcome:
parachain produce new blocks
Screenshot

@shanithkk Thanks for taking the time to write an issue.
The rococo-local.json file is out of date. A fix to update the json file will be coming shortly.
In the meantime, you can update it locally by running make specs-rococo-local.
Be sure to clear your chain databases before restarting your network (rm -Rf /tmp/frequency should take care of the parachain, the relay chain containers should not have persistent storage).

Hi @mattheworris, i was build a spec using parity/polkadot:latest image, im not able to fix this issue. but using make specs-rococo-local  its worked.
i ran the frequency chain by using docker getting error like [Relaychain] Bootnode with peer id 12D3KooWDLpRT9KFo6pKdkmdQQt599tmqVYpoeiHemY32Gf4RUpp is on a different chain (our genesis: 0x0307…0458 theirs: 0xfdd2…5ec3)

parity/polkadot:latest may not be compatible with earlier versions. Parity has released a few updates recently and some may contain breaking changes.
Please make sure to remove any persistent storage that may be storing the chain state when starting your nodes. rm -Rf /tmp/frequency will remove the storage for the parachain node started by make start-frequency and the make start-relay containers should not have any persistent storage.
Ideally, the specs should be generated with the same version of polkadot as the relay chain nodes.
Currently, the code is slightly mismatched, but after running make specs-rococo-local should work without any code changes.
However, you can make sure all the versions of polkadot are the same by editing the following files. (Again, this will be corrected in an upcoming PR).
make specs-rococo-local is coded to use polkadot v1.0.0. You can update the polkadot version in scripts/generate_relay_specs.
make start-relay will use polkadot v1.1.0. You can update the polkadot version in docker/docker-compose.yml

make start-relay uses docker compose to run the polkadot relay nodes in containers. It requires that your system have docker running. For example, on macOS, Docker Desktop must be running.


undefined offset 1

you are not exploding the array correctly

I'll review and get back to you
On Wed, Oct 10, 2018, 3:09 AM ahmedggalal<EMAIL_ADDRESS>wrote:

you are not exploding the array correctly
You can view, comment on, or merge this pull request online at:
https://github.com/farhanwazir/laravelgooglemaps/pull/27
Commit Summary

undefined offset 1

File Changes

M src/FarhanWazir/GoogleMaps/Containers/isInsidePolygon.php
https://github.com/farhanwazir/laravelgooglemaps/pull/27/files#diff-0
(6)

Patch Links:

https://github.com/farhanwazir/laravelgooglemaps/pull/27.patch
https://github.com/farhanwazir/laravelgooglemaps/pull/27.diff

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/farhanwazir/laravelgooglemaps/pull/27, or mute the
thread
https://github.com/notifications/unsubscribe-auth/AAOwoVbDlBkwdHarPxSatQY-KFhUc_T2ks5ujR6CgaJpZM4XUOb2
.


Notifications for overdue responses

Issue / Opportunity
As per tabletop exercise, create / update Slack notifications for overdue responses to assist in responding to incidents more efficiently via #forms-production-events
Might include

Account holder name
Account holder email
Form title
Form ID
Days overdue (since responses were submitted)

Draft

We can easily add new information to our Slack messages. However, I have a few questions about some of them:

Account holder name + email: Since we can multiple form owners should we list them all?
Form title: A form can have an internal name as well as a form title in EN or FR. Should we skip the form name and only add both the EN and FR version of the title?
Days overdue: We were already showing the exact number of days corresponding to the age of the form response. Is that helpful or should we just say that the response is over 45 days?

I am not sure what is up with the links we see in that draft image (Asses the situation + call an incident. Is this something that was just added as a possible future enhancement because I do not see it referenced in the "Might include" section of the ticket description ?
cc @Abi-Nada @srtalbot @anikbrazeau


Babel Transform Runtime doesn't seem to work with Webpack

Do you want to request a feature or report a bug?
Report a bug

What is the current behavior?
When using webpack and babel's transform-runtime, I'm unable to use exports *.
If the current behavior is a bug, please provide the steps to reproduce.
Babel's transform runtime plugin doesn't seem to be running, since the class Symbol isn't transformed at all. Babel was not running at all before because include property as invalid.
Now the problem is with the exports - related to #3917
Consider a simple input file, the only entry (index.js):
export * from './secondFile'
secondFile.js
export let TESTSYMBOL = Symbol('test');

export let TESTSYMBOL2 = Symbol('test2');

webpack.config.js (only copied the relevant part):
module: {
        rules: [
            {
                test: /\.jsx?$/,
                // Skip any files outside of `src` directory
                include: /src/,
                use: {
                    loader: 'babel-loader',
                    options: {
                        presets: ["es2015", "stage-3"],
                        plugins: ['transform-runtime']
                    }
                }
            }
        ]
    }

script:
"webpack -d --config config/webpack.config.js"
output: gist
Exception:
Uncaught ReferenceError: exports is not defined - at Object.defineProperty(exports, "__esModule", {

What is the expected behavior?
Exports should work, as they do without transform-runtime plugin.
If this is a feature request, what is motivation or use case for changing the behavior?
Please mention other relevant information such as the browser version, Node.js version, webpack version and Operating System.
Node: v6.10.3
Dev dependencies:
"webpack": "2.6.1",
"webpack-dev-server": "2.4.5",
"webpack-notifier": "1.5.0"
"babel-cli": "6.24.1",
"babel-loader": "7.0.0",
"babel-plugin-transform-runtime": "6.23.0",
"babel-preset-es2015": "6.24.1",
"babel-preset-stage-3": "6.24.1"
Dependencies:
"babel-runtime": "6.23.0"
Am I missing something?
Thanks for any help!

Nevermind. There's a mistake in the configuration. I thought it was possible to use path.resolve or path.join in include and exclude properties.
The following works just fine (part of webpack.config.js):
 module: {
    rules: [
        {
            test: /\.js$/,
            include: [
                /src/
            ],
            // or exclude: [/node_modules/],
            use:
                {
                    loader: 'babel-loader',
                    options: {
                        plugins: ['transform-runtime'],
                        presets: ['es2015', 'stage-3']

                    }
                }

        }
    ]
}```

I'm so sorry for opening a issue reporting a bug, when it was my mistake! Please close it.

Try setting modules to false:
                                                    presets: [['es2015', { modules: false }], 'stage-3'],

AFAIK, webpack doesn't have anything to do with ES modules if you don't set modules to false in babel configuration.

That solves it, but it also tree shakes right? Removing dead code.
Not sure I should do that, as I want to use this in a library

AFAIK, tree shaking can't work if you import a module which uses export *;
Import is a side effect causing operation. So if you import some module its body must be executed. If that body contains import that one should also be executed and so on. So it's guaranteed that if you import a module which have "export *" you'll have more code than if you use a specific module import.

Some tools (babili) are better at removing dead code than others (uglify) but I don't see why it's called "tree shaking".

Are you saying it's better to always use specific imports?

For the purpose of dead code elimination, yes. There are some techniques which automatically transform your imports to the specific ones. E.g. https://www.npmjs.com/package/babel-plugin-transform-imports
But since there is no standard naming technique it must be applied on a case by case basis.

Another alternative would be to try aggressive minification settings, but that way you'll lose an ability to debug your code (source maps will be completely broken).

I like the idea of using transform-inputs. I'll take a deeper look at it. Thanks again!

transform-runtime emits ESM even if babel should transpile ESM to CJS. I guess plugin an preset are in incorrect order. modules: false should fix it.

Tree Shaking also works with export *.

I have noticed that this solution doesn't seem to work with webpack-dev-server.
The following error is raised:
Cannot assign to read only property 'exports' of object
I created a minimal repository to reproduce the problem:
https://github.com/Apidcloud/webpack-babel/
It seems to work withhttp-server though.
Can someone take a look at the repository?
Thanks!

Alright...
I was able to fix the issues I mentioned in my previous comment by excluding node_modules from webpack modules rules. I thought including a folder would basically result in the same thing, but it seems not!
You can check a simple boilerplate at the following repository:
https://github.com/Apidcloud/webpack-babel
It uses Webpack and Babel transform-runtime.

I avoided the Cannot assign to read only property 'exports' of object error (when referencing anything babel-runtime intecepts, like Object.keys), but removing the modules: false in my .babelrc

Here is another possible solution (it's what worked for me): https://github.com/webpack/webpack/issues/3974#issuecomment-369260590


points not showing in scatter plot for x,y in [-1;1]

example dataset not working:
x,y
1.0,-1.0
-1.0,-1.0
-1.0,1.0
1.0,1.0

fixed this bug


Gracefully handle failure situations.

Currently, the adders just blindly try their actions, and always report as if they were successful.

The adders should check if the actions can be completed and/or confirm the actions were completed.
Then show warning/error messages as appropriate.
It would also be good to stop execution of an adder if there is something wrong.
And maybe roll back any changes on failure.

Two specific examples of where this would help:

I accidentally ran svelte-add in the parent directory, creating a postcss.config.cjs file there. Later, this file caused problems in a fresh project created with npm init svelte@next child-directory
I ran svelte-add postcss. It was not successful, but it looked like it worked according to the CLI output. So it was confusing when postcss wasn't working in my SvelteKit project.

This should be fixed by 1fe58221bc2133c57e4ebf6f302b314d97a0a4d3. Leaving this issue open for bug reports though.

Closing this so that new issues can be made for specific situations where this doesn't work.


Implement ZOD for validation

Poke into parseRouteHandlers and use zod-express-middleware npm pakage instead of the express-validation package and Joi.


Write a C++ program to convert decimal to octal

Description
Write a C++ program to convert decimal to octal
Octal is a base-8 number system. It uses only eight digits: 0, 1, 2, 3, 4, 5, 6, and 7. The digits are called octits. An octit is the smallest unit of information in a computer. An octit can be used to represent a single value, such as 0, 1, 2, 3, 4, 5, 6, or 7, or it can be used to represent a single state, such as on or off.
To convert a decimal number to octal, we can use the following algorithm:

Divide the decimal number by 8.
Write down the remainder.
Divide the quotient by 8.
Write down the remainder.
Repeat steps 3 and 4 until the quotient is 0.
The octal number is the sequence of remainders written in reverse order.

Input  : 10
Output : 12

How to contribute

Save the solution in ConvertDecimalToOctal.cpp file
Add ConvertDecimalToOctal.cpp file in convert-decimal-to-octal folder

!assign


SQL Azure support

Does this support SQL Azure?
Could not find it in the documentation.

I have no idea. Try it and let me know? :-)

Having trouble with that. On a side note, does this work Linux? I see SQL Server Express is a pre req

Most likely, that means you're getting an import error. Try running import sqlserver_pymssql in a Python shell (i.e. ./manage.py shell) and see if that helps you find the problem.

if i run import sqlserver_pymssql in the python shell in linux, it works just fine.

import sqlserver_pymssql

Can you try import sqlserver_pymssql.base as well?

(Sorry, I know remote debugging over GitHub Issues is frustrating, I'm doing my best...)

No worries! Thank you for the help. This is what I get :
Python 2.7.6 (default, Mar 22 2014, 22:59:56)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.

import sqlserver_pymssql.base
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python2.7/dist-packages/sqlserver_pymssql/base.py", line 7, in
from sqlserver_ado.base import (
File "/usr/local/lib/python2.7/dist-packages/sqlserver_ado/base.py", line 16, in
from .operations import DatabaseOperations
File "/usr/local/lib/python2.7/dist-packages/sqlserver_ado/operations.py", line 20, in
from . import fields as mssql_fields
File "/usr/local/lib/python2.7/dist-packages/sqlserver_ado/fields.py", line 4, in
from django.db import models
File "/usr/lib/python2.7/dist-packages/django/db/models/init.py", line 5, in
from django.db.models.query import Q
File "/usr/lib/python2.7/dist-packages/django/db/models/query.py", line 17, in
from django.db.models.deletion import Collector
File "/usr/lib/python2.7/dist-packages/django/db/models/deletion.py", line 4, in
from django.db.models import signals, sql
File "/usr/lib/python2.7/dist-packages/django/db/models/sql/init.py", line 4, in
from django.db.models.sql.subqueries import *
File "/usr/lib/python2.7/dist-packages/django/db/models/sql/subqueries.py", line 12, in
from django.db.models.sql.query import Query
File "/usr/lib/python2.7/dist-packages/django/db/models/sql/query.py", line 22, in
from django.db.models.sql import aggregates as base_aggregates_module
File "/usr/lib/python2.7/dist-packages/django/db/models/sql/aggregates.py", line 9, in
ordinal_aggregate_field = IntegerField()
File "/usr/lib/python2.7/dist-packages/django/db/models/fields/init.py", line 116, in init
self.db_tablespace = db_tablespace or settings.DEFAULT_INDEX_TABLESPACE
File "/usr/lib/python2.7/dist-packages/django/conf/init.py", line 54, in getattr
self._setup(name)
File "/usr/lib/python2.7/dist-packages/django/conf/init.py", line 47, in _setup
% (desc, ENVIRONMENT_VARIABLE))
django.core.exceptions.ImproperlyConfigured: Requested setting DEFAULT_INDEX_TABLESPACE, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.

Try running ./manage.py shell or setting the DJANGO_SETTINGS_MODULE environment variable to the dotted Python path to your settings module — both have the same effect.

I received the following error when I try import sqlserver_pymssql.base: ImportError: No module named 'django.db.backends.util'. I'm using Django 1.9

Either you're using incompatible versions of django-mssql and Django, or you haven't installed Django correctly. It's hard to tell from the limited amount of information you provided.

Django pymssql only runs on 1.7 and below as far as I am aware. @Bruno any updates on your end?

From: Bruno Soares <notifications<EMAIL_ADDRESS>Sent: Thursday, February 4, 2016 12:00 PM
Subject: Re: [django-pymssql] SQL Azure support (#6)
To: aaugustin/django-pymssql <django-pymssql<EMAIL_ADDRESS>Cc: Meet Bhagdev <meetb<EMAIL_ADDRESS>I received the following error when I try import sqlserver_pymssql.base: ImportError: No module named 'django.db.backends.util'. I'm using Django 1.9

Reply to this email directly or view it on GitHubhttps://github.com/aaugustin/django-pymssql/issues/6#issuecomment-180023831.