text:
Shouldn't prefix embeded js with return

->
	`for(var i = arr.length - 1; i >= 0 ; --i) {}`

gets compiled to
(function() {
  return for(var i = arr.length - 1; i >= 0 ; --i) {};
});

Since there is no elegant way to iterate an array in reversed order in CS, I have to resort to embeded js, but this particular use case apparently doesn't work.
I know I can use for item in arr.reverse(), but arr.reverse() has the side effect of mutating the array, so I have to clone the array before reverse it, which kinda sucks.
I noticed backward iteration is only possible for syntax like for i in [10..1] by -1, which is rather counter-intuitive btw. by -1 looks like making the iteration backwards already, and since the range is in revered order, you would expect this comprehension to actually use forward iteration, for double negative is positive.
Maybe something like for item in reversed arr  by step?
Oops, I seem to have digressed. Should I open a new ticket?

You also have the option of using a while loop:
idx = arr.length
while idx--
  # do stuff

@davidchambers, good idea. Thanks for the tip.

This is not an issue. Embedded JS is supposed to produce a value, and is treated as such by the CS compiler. Closing as invalid.

Nope -- I'd think that folks who tend to rely on embedded JS do so to produce side effects only, not to return values back out to CoffeeScript -- that's already easy enough. We should probably tag the JS node so that we don't try to treat it as an expression.

If we treat it as a statement, how are people going to use it as a value? If we treat it as a value, people can use the comma operator or an IIFE to do whatever they like.

So
alike = (a, b) -> `a == b`

should be written
alike = (a, b) -> `return a == b;`

?

I think we should treat it like embedded JavaScript -- we don't know in advance whether it's an expression or a value. It would be ideal if you were able to write:
alike = (a, b) -> return `a == b`

@jashkenas:

we don't know in advance whether it's an expression or a value

I think you meant "statement or value". We should assume it produces a value (which would be either an expression or a value), since there's no other way for it to be used as part of an expression.

It would be ideal if you were able to write: alike = (a, b) -> return `a == b`

That's possible right now. What do you mean?

I mean that we leave that bit alone (not tagging it as a statement within our current closure-wrapping statement-to-expression system) ... and prevent trailing bits of embedded JavaScript from causing implicit returns -- the original topic of this ticket.

That would be a horrible inconsistency. If it's treated as an expression everywhere, it should also cause an implicit return like other expressions. The OP had an error in his code. It should have been
-> `for(var i = arr.length - 1; i >= 0 ; --i);`; return

Yes, it would be an inconsistency ... but we're talking about embedded JS here. We really, fundamentally, can't say whether it's an expression or a statement. We just don't know (unless we parse the JS). Making embedded JS nodes free from triggering implicit returns would make them work in a more expected fashion, I would think. A survey of use on GitHub might tell you if that's really the case.

@michaelficarra

The OP had an error in his code.

What if this is the code I actually want to embed:
->
    `for(var i = arr.length - 1; i >= 0 ; --i) {
    	if(arr[i] === 'found') return i;
    }`

You can't just append a return here.

@gravof: exactly, you can't. You should have either produced an expression or used it as a statement. Instead, you produced a statement and used it as an expression. You can't do that. That's an error. A run-time error, but still an error. If you wouldn't write return before it, you wouldn't use it as the last expression in a function body, right? Just pretend there's a return before the last expression.
@jashkenas: we should be able to either assume it's an expression or assume the user knows what they're doing and isn't going to use a statement as an expression.
Implicit returns are not the only place something is assumed to be an expression. If we can't assume they are expressions, we wouldn't be able to allow JS literals in many, many other places. The decision here feels very, very obvious to me.

If we can't assume they are expressions, we wouldn't be able to
allow JS literals in many, many other places.

Oh no? I'm very much not saying to assume JS is a statement, I'm just saying we shouldn't favor either side. Let me ask you this question: If we left the current embedded JS behavior identical to what it is now ... but they didn't trigger implicit returns, what would be the problem from your perspective, apart from the perceived inconsistency?

Instead, you produced a statement and used it as an expression.

But I don't want to use it as an expression. You can assume everything in CS is an expression, but you can't with embedded js.
If you mean we shouldn't write statements in embedded js, then I guess there is no much point in supporting embedded js at all, since all js expressions can be written in CS directly (I'm not absolutely sure about that, but pretty sure). On the other hand, I can see many use cases which use embedded js as statements. For example, you can write fall through switch, backward for iteration, etc, in embedded js.
I guess we don't have to allow/disallow embedded js in CS, just output it as it is and never prepend it with return and we are done. Developer are supposed to know what they are doing with the embedded js.

@jashkenas: That's the main problem. I think we would have a lot more people opening issues saying that the compiler is broken if we special-cased this; not as much with the current behaviour. But I don't even see why we would be special-casing it in the first place. There's no need.

If JS literal were to have return-suppressing behavior, what would r = (`x == 0` for x in xs) produce?

If you mean we shouldn't write statements in embedded js, then I guess there is no much point in supporting embedded js at all

I don't think we should be supporting JS literals, but that's another issue. Write statements, but be sure to produce a value. I suggested using the comma operator or IIFEs to write arbitrary JS while still producing a value. That's not unreasonable.

@michaelficarra Oops, I guess I can append a return there:
->
    `for(var i = arr.length - 1; i >= 0 ; --i) {
        if(arr[i] === 'found') return i;
    }`
    return

And it works. I'm not sure about no prepending return now...

Note that JS statements do have return values--only usually unnoticeable:
$ node
> eval('if(1) 2')
2
>

@satyr: those are called "completion values" and they really only apply in eval context. For our purposes, statements don't produce a value. They're not syntactically allowed anywhere expressions are allowed.

Alright -- @satyr's r = (\x == 0` for x in xs)` case is persuasive. Leaving it be.

authors: davidchambers gravof jashkenas michaelficarra satyr

repo: jashkenas/coffee-script


text:
TODO: Switch all Pop-Ups to Dark Mode Styling + Final UI Polish

What the title says, extra notes:

All Pop ups need to be cohesive, and easy to navigate
Keep the CSS to a minimal, like in index.css

Functional Pop-Ups are now Dark Mode, the Welcome is still Light ( For distinction purposes)

source: gharchive/issue

repo: jasonmzx/CTIMS-Web-Interface

license: MIT

license_type: permissive

license_source: github-api


text:
OidcConfigurationController not a issue

But a request for information on how OidcConfigurationController works in Northwind trader
any reference to articles would help, have had not much luck finding any
any other code snippets or application which use the above would help
Kind regards
Peter

Resolved this issue

Thank you for your interest in this project. This repository has been archived and is no longer actively maintained or supported. We appreciate your understanding. Feel free to explore the codebase and adapt it to your own needs if it serves as a useful reference. If you have any further questions or concerns, please refer to the README for more information.

authors: PeterJD jasontaylordev

repo: jasontaylordev/NorthwindTraders


text:
Crackling audio playback with PyAudio in jasper-dev.

Though it is not a Jasper issue.
As Jasper is using PyAudio for Audio playback in jasper-dev, I am experiencing crackling audio out from jasper-dev. (on Raspbian Wizzy)
I tried aplay in place of PyAudio and it works without any issue,  just like it worked in previous version of jaspe-client.
I am not sure if some one else is also experiencing similar issue with Audio playback in jasper-dev.
Its good if a config option is introduce to choose between 'aplay' and 'PyAudio' for audio playback  in jasper-dev.

You could try to play with the values for output_chunksize and output_padding in your profile.yml. These are the defaults:
audio:
    output_chunksize: 1024
    output_padding: no

Since b68dc22aac1f45933fb1261ae35d72a2cdadffd9, we also have a new audio engine as an alternative to PyAudio. It relies on ALSA and can be used by putting this in your profile:
audio_engine: alsa

I tried alsa audio engine as well with no luck.
My config is as following
language: 'en-US'
audio_engine: alsa
input_device:   'front-card-u0x46d0x825-dev-0'
output_device:  'sysdefault-card-alsa'
# audio_engine: pyaudio
# input_device:   'usb-device-0x46d-0x825-usb-audio'
# output_device:  'bcm2835-alsa-bcm2835-alsa'
keyword: 'JASPER'
audio:
   input_samplerate: 16000
   input_samplewidth: 16
   input_channels: 1
   input_chunksize: 1024
   output_chunksize: 1024
   output_padding: 'no'    # true, yes

Could you list down what version of PyAlsaAudio, PortAudio  and  PyAudio you tested jasper-dev with ?
Even I got different list-audio-devices with two different config
with pyaudio config
audio_engine: pyaudio
input_device:   'usb-device-0x46d-0x825-usb-audio'
output_device:  'bcm2835-alsa-bcm2835-alsa'

./jasper.py  --list-audio-devices

[Audio device 'usb-device-0x46d-0x825-usb-audio']
  Name: USB Device 0x46d:0x825: USB Audio (hw:0,0)
  Input device: Yes
  Output device: No
[Audio device 'bcm2835-alsa-bcm2835-alsa']
  Name: bcm2835 ALSA: bcm2835 ALSA (hw:1,0)
  Input device: No
  Output device: Yes
[Audio device 'bcm2835-alsa-bcm2835-iec958-hdmi']
  Name: bcm2835 ALSA: bcm2835 IEC958/HDMI (hw:1,1)
  Input device: No
  Output device: Yes
[Audio device 'sysdefault']
  Name: sysdefault
  Input device: Yes
  Output device: No
[Audio device 'spdif']
  Name: spdif
  Input device: Yes
  Output device: No
[Audio device 'usb']
  Name: usb
  Input device: Yes
  Output device: No
[Audio device 'internal']
  Name: internal
  Input device: No
  Output device: Yes
[Audio device 'default']
  Name: default
  Input device: Yes
  Output device: Yes

With alsa config
audio_engine: alsa
input_device:   'front-card-u0x46d0x825-dev-0'
output_device:  'sysdefault-card-alsa'

./jasper.py  --list-audio-devices

[Audio device 'front-card-u0x46d0x825-dev-0']
  Name: front:CARD=U0x46d0x825,DEV=0
  Input device: Yes
  Output device: No
[Audio device 'iec958-card-u0x46d0x825-dev-0']
  Name: iec958:CARD=U0x46d0x825,DEV=0
  Input device: Yes
  Output device: No
[Audio device 'null']
  Name: null
  Input device: Yes
  Output device: Yes
[Audio device 'pulse']
  Name: pulse
  Input device: Yes
  Output device: Yes
[Audio device 'surround40-card-u0x46d0x825-dev-0']
  Name: surround40:CARD=U0x46d0x825,DEV=0
  Input device: Yes
  Output device: No
[Audio device 'surround41-card-u0x46d0x825-dev-0']
  Name: surround41:CARD=U0x46d0x825,DEV=0
  Input device: Yes
  Output device: No
[Audio device 'surround50-card-u0x46d0x825-dev-0']
  Name: surround50:CARD=U0x46d0x825,DEV=0
  Input device: Yes
  Output device: No
[Audio device 'surround51-card-u0x46d0x825-dev-0']
  Name: surround51:CARD=U0x46d0x825,DEV=0
  Input device: Yes
  Output device: No
[Audio device 'surround71-card-u0x46d0x825-dev-0']
  Name: surround71:CARD=U0x46d0x825,DEV=0
  Input device: Yes
  Output device: No
[Audio device 'sysdefault-card-alsa']
  Name: sysdefault:CARD=ALSA
  Input device: No
  Output device: Yes
[Audio device 'sysdefault-card-u0x46d0x825']
  Name: sysdefault:CARD=U0x46d0x825
  Input device: Yes
  Output device: No

With alsa config I got following error ........
DEBUG:alsa_1_0_0.alsaaudioengine:Found 10 ALSA devices
DEBUG:alsa_1_0_0.alsaaudioengine:Found 11 ALSA devices
DEBUG:alsa_1_0_0.alsaaudioengine:Found 3 ALSA devices
DEBUG:alsa_1_0_0.alsaaudioengine:Found 11 ALSA devices
WARNING:sphinx_1_0_0.sphinxplugin:This STT plugin doesn't have multilanguage support!
DEBUG:client.vocabcompiler:compiled_revision is 'a64e1b2cd78dec87d838e811694a508105291a2b'
DEBUG:sphinx_1_0_0.sphinxplugin:Initializing PocketSphinx Decoder with hmm_dir '/usr/local/share/pocketsphinx/model/en-us/en-us'
WARNING:sphinx_1_0_0.sphinxplugin:This STT plugin doesn't have multilanguage support!
DEBUG:client.vocabcompiler:compiled_revision is 'bb74ae36d130ef20de710e3a77b43424b8fa774f'
DEBUG:sphinx_1_0_0.sphinxplugin:Initializing PocketSphinx Decoder with hmm_dir '/usr/local/share/pocketsphinx/model/en-us/en-us'
DEBUG:client.mic:Input sample rate: 16000 Hz
DEBUG:client.mic:Input sample width: 16 bit
DEBUG:client.mic:Input channels: 1
DEBUG:client.mic:Input chunksize: 1024 frames
DEBUG:client.mic:Output chunksize: 1024 frames
DEBUG:client.mic:Output padding: no
DEBUG:pico_tts_1_0_0.pico:Executing pico2wave -w /tmp/tmpCInIGF.wav -l en-US 'How can I be of service, JASPER?'
DEBUG:alsa_1_0_0.alsaaudioengine:output stream opened on device 'sysdefault-card-alsa' (16000 Hz, 1 channel, 16 bit)
DEBUG:alsa_1_0_0.alsaaudioengine:output stream closed on device 'sysdefault-card-alsa'
DEBUG:client.conversation:Starting to handle conversation.
INFO:client.mic:Waiting for keyword 'JASPER'...
DEBUG:alsa_1_0_0.alsaaudioengine:input stream opened on device 'front-card-u0x46d0x825-dev-0' (16000 Hz, 1 channel, 16 bit)
DEBUG:client.mic:Started recording on device 'front-card-u0x46d0x825-dev-0'
DEBUG:client.mic:Triggered on SNR of 25.0395644033dB
DEBUG:client.mic:Recording's SNR dB: 1.594557
DEBUG:client.mic:Recorded 21 frames
DEBUG:sphinx_1_0_0.sphinxplugin:INFO: pocketsphinx.c(145): Parsed model-specific feature parameters from /usr/local/share/pocketsphinx/model/en-us/en-us/feat.params
DEBUG:sphinx_1_0_0.sphinxplugin:Current configuration:
DEBUG:sphinx_1_0_0.sphinxplugin:[NAME]                  [DEFLT]         [VALUE]
DEBUG:sphinx_1_0_0.sphinxplugin:-agc                    none            none
DEBUG:sphinx_1_0_0.sphinxplugin:-agcthresh              2.0             2.000000e+00
DEBUG:alsa_1_0_0.alsaaudioengine:input stream closed on device 'front-card-u0x46d0x825-dev-0'
Traceback (most recent call last):
  File "./jasper.py", line 39, in <module>
    app.run()
  File "/home/pi/NewJasper/jasper-dev/jasper-client/client/application.py", line 239, in run
    self.conversation.handleForever()
  File "/home/pi/NewJasper/jasper-dev/jasper-client/client/conversation.py", line 40, in handleForever
    input = self.mic.listen()
  File "/home/pi/NewJasper/jasper-dev/jasper-client/client/mic.py", line 190, in listen
    self.wait_for_keyword(self._keyword)
  File "/home/pi/NewJasper/jasper-dev/jasper-client/client/mic.py", line 156, in wait_for_keyword
    snr = self._snr([frame])
  File "/home/pi/NewJasper/jasper-dev/jasper-client/client/mic.py", line 94, in _snr
    rms = audioop.rms(b"".join(frames), 2)
audioop.error: not a whole number of frames

$ pacman -Q portaudio python2 python2-pyalsaaudio python2-pyaudio
portaudio 19_20140130-1
python2 2.7.10-2
python2-pyalsaaudio 0.8.2-1
python2-pyaudio 0.2.8-1

Different device names are normal by the way. Just try the pulse device for both input and output.

Seems packages are messed up on my RPi2B. Recording part is working good but Audio Playback is a still a problem.

Even with PyAlsaAudio?
Try setting the output_chunksize to 256 and output_padding to yes.

I am also having an issue with crackling audio when using pyAudio when moving to the jasper-dev build.  The method used for playback in the master branch works fine.  I have tried all of the suggestions in this thread, and running into issues with all of them.

The same as @G10DRAS & @gravytrain . And often, sound does not output at all :(

I found the "jack server" solution for the sound that did not output.
But sound is still crackling

Changing both occurences of the value "1024" to "4096" in audioengine.py basically solves the crackling problem.

Thanks @gkkulik, could you also paste your profile.yml configuration.

Changing those values helps with the crackling audio, but it also cuts off the end of the recording.

Anyone manage to solve this issue completely?

pyAudio --- playback --- No
Try alsa.

authors: G10DRAS Holzhaus codeurfou gkkulik gravytrain

repo: jasperproject/jasper-client

license: mit

license_source: bigquery


text:
Errors After Installation :No STT engine found for slug 'Pocketsphinx'

`mq(05:24:29)-(~)->~/jasper/jasper.py

        JASPER - THE TALKING COMPUTER           *

(c) 2015 Shubhro Saha, Charlie Marsh & Jan Holthuis *

ERROR:root:Error occured!
Traceback (most recent call last):
File "/root/jasper/jasper.py", line 143, in
app = Jasper()
File "/root/jasper/jasper.py", line 88, in init
stt_engine_class = stt.get_engine_by_slug(stt_engine_slug)
File "/root/jasper/client/stt.py", line 639, in get_engine_by_slug
raise ValueError("No STT engine found for slug '%s'" % slug)
ValueError: No STT engine found for slug 'Pocketsphinx'
`
Can any one help me in this

Try importing "pocketsphinx" in python and see if that works. I had the same problem.
I simply had to install pocketsphinx with pip: "pip install pocketsphinx"

Requirement already satisfied (use --upgrade to upgrade): pocketsphinx in /usr/local/lib/python2.7/dist-packages
It saying and plz let me know where i have to "import pocketsphinx"

It's bad practice to hijack another thread (https://github.com/jasperproject/jasper-client/issues/433) and have a conversation in two threads about the same problem.
The error message is telling you

OSError: Can't find command 'phonetisaurus-g2p'! Please check if Phonetisaurus is installed and in your $PATH. `

And @G10DRAS already told you the answer:

Check if Phonetisaurus is installed along with its dependencies, or try re-installing Phonetisaurus.

For help, look in the documentation under "Installing Phonetisaurus, m2m-aligner and MITLM"

authors: rkbilla t-h-e


text:
Release 2.0.1

Hi,
Could you release 2.0.1.
This is a dependency of other package and we need 2.0.1 for the same.
Would be great if you could release the same version.

https://rubygems.org/gems/blade-qunit_adapter/versions/2.0.1 was released on November 12, 2016.


text:
🛑 Castello 110 is down

In 4781330, Castello 110 (http://159.65.204.200:7007/) was down:

HTTP code: 502
Response time: 18702 ms

Resolved: Castello 110 is back up in d89f24e after 16 minutes.

repo: javisu/monitor


text:
🛑 Cardenal Siliceo 25 is down

In 129389f, Cardenal Siliceo 25 (http://159.65.204.200:7006/) was down:

HTTP code: 502
Response time: 18761 ms

Resolved: Cardenal Siliceo 25 is back up in d8c7095 after 18 minutes.


text:
🛑 Ofelia Nieto, 57 is down

In 67e80ad, Ofelia Nieto, 57 (http://159.65.204.200:7022/) was down:

HTTP code: 502
Response time: 18526 ms

Resolved: Ofelia Nieto, 57 is back up in 3620000 after 16 minutes.


text:
🛑 Ofelia Nieto, 57 is down

In a758813, Ofelia Nieto, 57 (http://159.65.204.200:7022/) was down:

HTTP code: 502
Response time: 18674 ms

Resolved: Ofelia Nieto, 57 is back up in a10a772.


text:
🛑 Etruria, 37 is down

In 98621df, Etruria, 37 (http://159.65.204.200:7037/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Etruria, 37 is back up in ae7c11b after 141 days, 18 hours, 57 minutes.


text:
🛑 Castello 110 is down

In 96dc410, Castello 110 (http://159.65.204.200:7007/) was down:

HTTP code: 502
Response time: 18775 ms

Resolved: Castello 110 is back up in 4d0d936.


text:
🛑 Rodriguez Marin, 88 is down

In 9b03b8f, Rodriguez Marin, 88 (http://159.65.204.200:7057/) was down:

HTTP code: 502
Response time: 18756 ms

Resolved: Rodriguez Marin, 88 is back up in dfd3e60 after 16 minutes.


text:
🛑 Cardenal Siliceo 25 is down

In 9378a3c, Cardenal Siliceo 25 (http://159.65.204.200:7006/) was down:

HTTP code: 502
Response time: 18614 ms

Resolved: Cardenal Siliceo 25 is back up in e9440e2 after 25 minutes.


text:
Optional support for search matching on word boundaries and full words using regex

Added support for different types of search matching using regex. The performance appears to be quite similar with new versions of Chrome and Firefox actually being faster using .test() instead of .search() (See http://jsperf.com/exec-vs-match-vs-test/5).
Options are set using the "searchType" in the options field. The three options are
any: default option which matches on any position in the string. Example: no will match "equinox"
word: matches only from the start of regex word boundaries (\b). Example: no will match "nokia" and "pizza no" but not "equinox".
wordFull: matches only exact words with regex word boundaries on both ends. Example: no will match only "pizza no" and not "nokia" or "equinox"

Although this PR is quite old, a regex search option would be very handy. :+1:

Hehe, I've been very slow to get back to this pull request and I've decided that I can't accept it since there are no tests :/ But it's an interesting feature and I'll think about if for future releases.

source: gharchive/pull-request

authors: javve nicoruti rnair510


text:
Tabs Sorting Issue

I got the code for the tabs and its working properly but when it comes to sorting it sorts the first tab only ALAS I'm getting the tabs and data dynamic. I can't get where I'm getting wrong, also compared the files with your GIT but I found no difference, Kindly help me as soon as possible.

Hi,
Can you show me your code?

Code is too messy and i am generating those tabs with ajax.
Does it generate any flaw?

    var tabs = $('#tabs').bootstrapDynamicTabs().addTab({
        title:'Location List',
        html:function(){
         return jQuery("#data_usage_history").html();
     },
     closable: false,
     icon: 'fa fa-list'
 });

    function GetCompany(ipaddress,location_name){
        tabs.addTab({
            title:location_name,
            html: function(){
                $.ajax({
                    type:'POST',
                    data:{'nasip':ipaddress,'daterange':$('#daterange').val(),'location_name':location_name},
                    url:'<?php echo base_url();?>Dashboard/Get_users',
                    beforeSend:function(){
                        toastr.clear();
                        setTimeout(function() {
                            toastr.options = {
                                closeButton: true,
                                progressBar: true,
                                showMethod: 'slideDown',
                                timeOut: 4000
                            };
                            toastr.info('Please Wait! Loading Data...');

                        }, 1300);
                    },
                    success:function(data){
                        toastr.clear();
                        $('#'+location_name.replace(/\s+/g, '').toLowerCase()).html(data);
                        $('#'+location_name.replace(/\s+/g, '').toLowerCase()+'_table').DataTable(
                        {
                            pageLength: 10,
                            lengthMenu: [ [5, 10, 25, 50, -1], [5, 10, 25, 50, "All"] ],
                            responsive: true,
                            searching: false,
                            sorting:false,

                        });
                    }

                })
            }
        })
    }
    function GetUser(userId) {
        tabs.addTab({
            title:"User : "+userId,
            html: function(){
                $.ajax({
                    type:'POST',
                    data:{'userId':userId},
                    url:'<?php echo base_url();?>Dashboard/Get_Details',
                    beforeSend:function(){
                        toastr.clear();
                        setTimeout(function() {
                            toastr.options = {
                                closeButton: true,
                                progressBar: true,
                                showMethod: 'slideDown',
                                timeOut: 4000
                            };
                            toastr.info('Please Wait! Loading Data...');

                        }, 1300);
                    },
                    success:function(data){
                        $('#user'+userId.replace(/[-]+/g, '').toLowerCase()).html(data);
                        $('#'+userId+'_table').DataTable({
                            pageLength: 10,
                            responsive: true,
                            searching: false,
                            dom: '<"html5buttons"B>lgtip',
                            buttons: [{extend: 'copy'},{extend: 'csv', title: userId+' Detail'},{extend:'pdf',title: userId+' Detail'}]
                        });
                    }

                })
            }
        })

    }

authors: jayralencar ravisojitra

repo: jayralencar/bootstrap-dynamic-tabs


text:
findUniqueConstructor must filter PowerMock generated constructor

From johan.ha...@gmail.com on November 03, 2009 15:09:18
Whitebox#findUniqueConstructor must use filterPowerMockConstructor when
listing constructors.
Original issue: http://code.google.com/p/powermock/issues/detail?id=189

From johan.ha...@gmail.com on November 03, 2009 14:03:06
Status: Fixed

repo: jayway/powermock


text:
Memory Error

On only one of the Django Admin views, I am getting a Memory Error:
Internal Server Error: /admin/foo/bar/
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 131, in get_response
    response = middleware_method(request, response)
  File "/usr/local/lib/python2.7/site-packages/debug_toolbar/middleware.py", line 134, in process_response
    bits[-2] += toolbar.render_toolbar()
  File "/usr/local/lib/python2.7/site-packages/debug_toolbar/toolbar.py", line 64, in render_toolbar
    return render_to_string('debug_toolbar/base.html', context)
  File "/usr/local/lib/python2.7/site-packages/django/template/loader.py", line 68, in render_to_string
    return template.render(context, request)
  File "/usr/local/lib/python2.7/site-packages/django/template/backends/django.py", line 66, in render
    return self.template.render(context)
  File "/usr/local/lib/python2.7/site-packages/django/template/base.py", line 208, in render
    return self._render(context)
  File "/usr/local/lib/python2.7/site-packages/django/test/utils.py", line 94, in instrumented_test_render
    return self.nodelist.render(context)
  File "/usr/local/lib/python2.7/site-packages/django/template/base.py", line 994, in render
    bit = node.render_annotated(context)
  File "/usr/local/lib/python2.7/site-packages/django/template/base.py", line 961, in render_annotated
    return self.render(context)
  File "/usr/local/lib/python2.7/site-packages/django/template/defaulttags.py", line 209, in render
    nodelist.append(node.render_annotated(context))
  File "/usr/local/lib/python2.7/site-packages/django/template/base.py", line 961, in render_annotated
    return self.render(context)
  File "/usr/local/lib/python2.7/site-packages/django/template/defaulttags.py", line 315, in render
    return nodelist.render(context)
  File "/usr/local/lib/python2.7/site-packages/django/template/base.py", line 994, in render
    bit = node.render_annotated(context)
  File "/usr/local/lib/python2.7/site-packages/django/template/base.py", line 961, in render_annotated
    return self.render(context)
  File "/usr/local/lib/python2.7/site-packages/django/template/defaulttags.py", line 315, in render
    return nodelist.render(context)
  File "/usr/local/lib/python2.7/site-packages/django/template/base.py", line 994, in render
    bit = node.render_annotated(context)
  File "/usr/local/lib/python2.7/site-packages/django/template/base.py", line 961, in render_annotated
    return self.render(context)
  File "/usr/local/lib/python2.7/site-packages/django/template/base.py", line 1044, in render
    output = self.filter_expression.resolve(context)
  File "/usr/local/lib/python2.7/site-packages/django/template/base.py", line 711, in resolve
    obj = self.var.resolve(context)
  File "/usr/local/lib/python2.7/site-packages/django/template/base.py", line 852, in resolve
    value = self._resolve_lookup(context)
  File "/usr/local/lib/python2.7/site-packages/django/template/base.py", line 893, in _resolve_lookup
    current = getattr(current, bit)
  File "/usr/local/lib/python2.7/site-packages/debug_toolbar/panels/__init__.py", line 96, in content
    return render_to_string(self.template, self.get_stats())
  File "/usr/local/lib/python2.7/site-packages/django/template/loader.py", line 68, in render_to_string
    return template.render(context, request)
  File "/usr/local/lib/python2.7/site-packages/django/template/backends/django.py", line 66, in render
    return self.template.render(context)
  File "/usr/local/lib/python2.7/site-packages/django/template/base.py", line 208, in render
    return self._render(context)
  File "/usr/local/lib/python2.7/site-packages/django/test/utils.py", line 94, in instrumented_test_render
    return self.nodelist.render(context)
  File "/usr/local/lib/python2.7/site-packages/django/template/base.py", line 994, in render
    bit = node.render_annotated(context)
  File "/usr/local/lib/python2.7/site-packages/django/template/base.py", line 961, in render_annotated
    return self.render(context)
  File "/usr/local/lib/python2.7/site-packages/django/template/defaulttags.py", line 315, in render
    return nodelist.render(context)
  File "/usr/local/lib/python2.7/site-packages/django/template/base.py", line 994, in render
    bit = node.render_annotated(context)
  File "/usr/local/lib/python2.7/site-packages/django/template/base.py", line 961, in render_annotated
    return self.render(context)
  File "/usr/local/lib/python2.7/site-packages/django/template/defaulttags.py", line 218, in render
    return mark_safe(''.join(force_text(n) for n in nodelist))
MemoryError

Django version: 1.10.3
Django Debug Toolbar version: 1.8

Turns out I had a very expensive Filter in this Admin page. With DDT disabled, the page loads after some delay. With DDT enabled, it blows up. Anyway, it looks like this is not really a bug, just a performance penalty which is expected.

repo: jazzband/django-debug-toolbar


text:
Install an extra via environment markers

Environment Versions

OS Type - Linux, macOS
Python version: $ python -V 3.10.1
pip version: $ pip --version 21.3.1
pip-tools version: $ pip-compile --version 6.4.0

Steps to replicate
in a requirements.in, I try to install spacy for non M1 chip and spacy[apple] for M1
spacy; platform_machine != 'arm64'
spacy[apple]; sys_platform == 'darwin' and platform_machine == 'arm64'

Expected result
in the requirements.txt
spacy; platform_machine != 'arm64'
spacy[apple]; sys_platform == 'darwin' and platform_machine == 'arm64'

Actual result
spacy; platform_machine != 'arm64'

I would like to be honest, I am not sure about the syntax for the installation of an extra via the environment markers. Do you have some advices?
Thank you

I think this is currently working as intended.. Might this be a duplicate of #1553 or #1326?

I'm going to close this in favor of concentrating relevant discussion at #1326, thanks!

authors: AndydeCleyre matrixise

repo: jazzband/pip-tools


text:
Fix loot all background rendering

Fixed the rendering of the Loot All button

Nice job!


text:
Upgrade slog package

This pins the slog package (and the slices package) to the stable version that was released with Go 1.21 and drops the dependency on "golang.org/x/exp".
I had to change one test to make it work: (*slog.Record).AddAttrs(attrs ...slog.Attr) was changed in golang/go@d3d78b4bcc7c4021c4a3a8a3ecdb85ec59bdd58b to not pass empty groups to the handler.

Thanks! Sorry for the delay.

authors: jba tt

repo: jba/slog


text:
Django 1.7 + Travis

Takes #52 from @heyman and adds test updates.

Done in #62 and passing on travis

repo: jbalogh/jingo


text:
Toolbox / Dynamic Add/Remove / Drag from Outside

Are there any plans to add Toolbox, Dynamic Add/Remove, or Drag from Outside which React-Grid-Layout has?
https://strml.github.io/react-grid-layout/examples/6-dynamic-add-remove.html
https://strml.github.io/react-grid-layout/examples/14-toolbox.html
https://strml.github.io/react-grid-layout/examples/15-drag-from-outside.html

No plans right now. Maybe you could submit a PR with those?

Thanks. I submitted a PR for Dynamic Add/Remove. #449

I submitted a PR for Drag from Outside exactly like React-Grid-Layout.

I submitted a PR for Drag From Outside

authors: dhamet70 gmsa protonbobby

repo: jbaysolutions/vue-grid-layout


text:
Aspect ratio is not always kept because of snapping to grid.

After setting the preserveAspectRatio option to true, I observed that not all the elements actually keep the aspect ratio.
For ratio = 1, everything seems to be fine, but for other aspect ratios, it doesn't seem to work because of the snapping back to grid.
When I'm resizing the element, I can see that it has the correct aspect ratio, but when dropping it, because it takes the closest place in the grid, it doesn't always takes into account the aspect ratio.
I found a fix to ensure that the aspect ratio is preserved if the preserveAspectRatio option is true and I will add a PR asap.

@gmsa is this something you plan support in the library?

authors: MadalinaCi validide


text:
dockeratom_mysql_1 fails to run out of the box

I'm trying to get this up and running on a fresh checkout on Ubuntu 15.10 with the latest docker and docker-compose.
After cleaning with "docker-compose rm", I ran "docker-compose build" - which completes without any errors, and then "docker-compose up".  This gave the following error:
tra@PC599:~/git/docker-atom$ docker-compose up
Creating dockeratom_elasticsearch_1
Creating dockeratom_mysql_1
Creating dockeratom_nginx_1
ERROR: Cannot start container 43729b9ef7a5505db30164f1e4bcff73fca2b065fb46c234edfefecc5ed3cf56: Cannot link to a non running container: /dockeratom_mysql_1 AS /dockeratom_nginx_1/mysql_1

Running docker-compose up again starts the containers but  the db instance fails with "dockeratom_mysql_1 exited with code 1".  This might be related to the earlier log lines which hints that mysqld is not available.
tra@PC599:~/git/docker-atom$ docker-compose up
dockeratom_elasticsearch_1 is up-to-date
Starting dockeratom_mysql_1
Starting dockeratom_nginx_1
Attaching to dockeratom_elasticsearch_1, dockeratom_mysql_1, dockeratom_nginx_1
mysql_1         | 2015-11-09 12:57:16Running mysql_install_db ...
mysql_1         |  [ERROR]   Can't locate the server executable (mysqld).
mysql_1         | 2015-11-09 12:57:16 [WARNING] mysql_install_db is deprecated. Please consider switching to mysqld --initialize
elasticsearch_1 | [2015-11-09 12:54:37,671][INFO ][node                     ] [Iron Lad] version[2.0.0], pid[1], build[de54438/2015-10-22T08:09:48Z]

I am as yet unfamiliar with Docker.  How should I fix this?
(also it appears that the webinterface now runs on port 80, not 8000 as indicated in the README - this might also be me not doing things correctly).

Hi @ravn! Sorry I didn't see this until just now. I've changed some things -- could you pull the latest version and try again? I'll also run it a few times on my end. Would you mind reporting what version of docker-compose and docker you're running? Latest Docker is 1.9.1, latest Compose is 1.5.1.

Also -- do you mean the web interface runs on port 80 on the host computer? Viz, you go to http://:80 and you get the interface? That is very strange -- you can see in the docker-compose.yml the ports: "8000:80" statement. So I wonder if there's something very odd in your docker and/or docker compose install.

authors: jbfink ravn

repo: jbfink/docker-atom

license: unlicense


text:
Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)

possibly operator error ... this is what I did
cd ~/src/github.com/jblakeman/apt-select
python setup.py build
sudo python setup.py install

pip install apt-select

Requirement already satisfied: apt-select in /usr/local/lib/python2.7/dist-packages/apt_select-1.0.3-py2.7.egg
Requirement already satisfied: requests in /usr/local/lib/python2.7/dist-packages/requests-2.13.0-py2.7.egg (from apt-select)
Requirement already satisfied: beautifulsoup4 in /usr/local/lib/python2.7/dist-packages/beautifulsoup4-4.5.3-py2.7.egg (from apt-select)

sudo apt-select

Getting list of mirrors...done.
Testing latency to mirror(s)
	connection to mirror.tocici.com: timed out
[79/79] 100%
Getting list of launchpad URLs...done.
Looking up 1 status(es)
1. mirror.imbrandon.com
    Latency: 24.12 ms
    Org:     www.imbrandon.com
    Status:  Up to date
    Speed:   100 Mbps
Selecting mirror http://mirror.imbrandon.com/ubuntu/ ...
New config file saved to /home/stens/src/github.com/jblakeman/apt-select/sources.list

OK so now I have the freshly generated config so install it per instructions
sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup &&   sudo mv sources.list /etc/apt/

so now do an update
sudo apt-get update && sudo apt-get upgrade

Get:1 http://mirror.imbrandon.com/ubuntu yakkety InRelease
Err:1 http://mirror.imbrandon.com/ubuntu yakkety InRelease
  Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
Get:2 http://mirror.imbrandon.com/ubuntu yakkety-updates InRelease
Err:2 http://mirror.imbrandon.com/ubuntu yakkety-updates InRelease
  Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
Get:3 http://mirror.imbrandon.com/ubuntu yakkety-backports InRelease
Err:3 http://mirror.imbrandon.com/ubuntu yakkety-backports InRelease
  Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
Get:4 http://mirror.imbrandon.com/ubuntu yakkety-security InRelease
Err:4 http://mirror.imbrandon.com/ubuntu yakkety-security InRelease
  Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
Hit:5 https://apt.dockerproject.org/repo ubuntu-yakkety InRelease
Fetched 6,232 B in 0s (14.1 kB/s)
Reading package lists... Done
E: Failed to fetch http://mirror.imbrandon.com/ubuntu/dists/yakkety/InRelease  Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
E: Failed to fetch http://mirror.imbrandon.com/ubuntu/dists/yakkety-updates/InRelease  Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
E: Failed to fetch http://mirror.imbrandon.com/ubuntu/dists/yakkety-backports/InRelease  Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
E: Failed to fetch http://mirror.imbrandon.com/ubuntu/dists/yakkety-security/InRelease  Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
E: Some index files failed to download. They have been ignored, or old ones used instead.
W: Target Sources (restricted/source/Sources) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list:7

this is on a new install of ubuntu 16.10

OK ... it worked eventually ...  I backed out above change and reverted to original and was seeing
sudo apt-get update && sudo apt-get upgrade

Hit:1 http://mirror.clarkson.edu/ubuntu yakkety InRelease
Hit:2 http://mirror.clarkson.edu/ubuntu yakkety-updates InRelease
Hit:3 http://mirror.clarkson.edu/ubuntu yakkety-backports InRelease
Hit:4 http://mirror.clarkson.edu/ubuntu yakkety-security InRelease
Hit:5 https://apt.dockerproject.org/repo ubuntu-yakkety InRelease
Reading package lists... Done
W: Target Sources (restricted/source/Sources) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list:7
W: Target Sources (restricted/source/Sources) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list:7
Reading package lists... Done

after removing the offending duplicate line from  /etc/apt/sources.list
then re-doing your steps I successfully installed your chosen mirror file and its working

repo: jblakeman/apt-select


text:
[Question] DbContextPooling issue with INotifications when publish is executed

Issue
We're having an issue with INotification event for domain events. The thing is that we were trying to use DbContextPooling but it seems that this throw an exception because a captive dependency https://blog.ploeh.dk/2014/06/02/captive-dependency/
App structure

NET 8
NET Web API with minimal API
Mediator with commands and notifications
Custom integration events with keyedscopedservice
EF 8 with DbContextPooling

Possible solution
We were thinking to resolve this registering the INotification on hand as a scoped service.
Possible impacts
You know if there could be some extra impact on this possible solution?

What's wrong with the handler being a transient exactly?

The particular reason here is for this point.
https://learn.microsoft.com/en-us/ef/core/performance/advanced-performance-topics?tabs=with-di%2Cexpression-api-with-constant#managing-state-in-pooled-contexts
Context pooling works by reusing the same context instance across requests; this means that it's effectively registered as a Singleton, and the same instance is reused across multiple requests (or DI scopes). This means that special care must be taken when the context involves any state that may change between requests.
In A DDD structure for domain events we usually have some sequence like this.
-> Endpoint
     -> Command handler
          -> Domain events registered
          -> UnitOfWork SaveChanges
               -> DomainEventDispatcher
                    -> INotification publish
               -> Entity Framework Core SaveChanges

Looking on this sequence the issue happens because we've the following on DI

DbContextPooling is instanced as singleton
Transient DI registration is causing distortions with this pool because each new instance is requested on each call inside the same request.

What were the issues we were having?

An exception telling us that INotification should be scoped in our local environment

An unhandled exception has occurred while executing the request. System.InvalidOperationException: Cannot resolve 'System.Collections.Generic.IEnumerable1[MediatR.INotificationHandler1[Event registered]]' from root provider because it requires scoped service 'Random.Domain.Aggregates.RandomAggregate.IRandomRepository'.    at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteValidator.ValidateResolution(ServiceCallSite callSite, IServiceScope scope, IServiceScope rootScope)    at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(ServiceIdentifier serviceIdentifier, ServiceProviderEngineScope serviceProviderEngineScope)    at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope.GetService(Type serviceType)    at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)    at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)    at MediatR.Wrappers.NotificationHandlerWrapperImpl1.Handle(INotification notification, IServiceProvider serviceFactory, Func4 publish, CancellationToken cancellationToken)

No error were throwing but instead it was saving data inside the table tracked in command handler but not in the one that we were registering inside the domain handler after the publish.

Turning into the core question
There's some possible impact if we choose the path of trying to use scoped instead of transient for those calls?

authors: Ryujose jbogard

repo: jbogard/MediatR


text:
MAVEN_OPTS is not documented

The environment variable MAVEN_OPTS  influences S2I/maven behaviour, but is not documented as a user-tweakable environment variable.

https://issues.redhat.com/browse/OPENJDK-2202

repo: jboss-container-images/openjdk


text:
Backport up to tag 0.3.4

This will align master to latest camel k that fully supports camel 2.
I'd later branch master to create a product branch and then pick a upstream change.

Since upstream:master now supports just camel 3, I have aligned master with upstream (for further use with camel 3) and created https://github.com/jboss-fuse/camel-k/tree/0.3.x.redhat-7-x from 0.3.4 tag minus last release commit.
This branch should be the one used for 7-x releases from now on, so you can backport the fix there.

authors: nicolaferraro valdar

repo: jboss-fuse/camel-k


text:
Error handler middleware with error storage

This is https://github.com/http-rs/tide/pull/549 rebased on top of https://github.com/http-rs/http-types/pull/174 & https://github.com/http-rs/tide/pull/570.
Presently does not compile correctly, which makes me a bit concerned about the plan with those two PRs.
error: lifetime may not live long enough
  --> examples\error_handler_middleware.rs:12:33
   |
12 |           |err: &url::ParseError| async move {
   |  _______________-_______________-_^
   | |               |               |
   | |               |               return type of closure is impl std::future::Future
   | |               let's call the lifetime of this reference `'1`
13 | |             let mut response = Response::new(StatusCode::ImATeapot);
14 | |             response.set_body(err.to_string());
15 | |             Ok(response)
16 | |         },
   | |_________^ returning this value requires that `'1` must outlive `'2`

Closing in favror of https://github.com/http-rs/tide/pull/570/commits/a1cb10e9cfe84b249f7a90a2e0c3136f7eb704f8 on https://github.com/http-rs/tide/pull/570

repo: jbr/tide


text:
Forgot login / password

Checklist

Have you pulled and found the error with jc21/nginx-proxy-manager:latest docker image? Yes
Are you sure you're not using someone else's docker image? Yes
If having problems with Lets Encrypt, have you made absolutely sure your site is accessible from outside of your network? not the problem

Describe the bug

I have forgot my password and my account name i dont know what i can do
What version of Nginx Proxy Manager is reported on the login page? v2.2.4

To Reproduce
Steps to reproduce the behavior:
Try to login but cant remember login and password
ofc i tried the default login password but dont work
Operating System

Unraid Server docker container

So is it possible to rest password or something like that ? :/
Thanks for your work

duplicate https://github.com/jc21/nginx-proxy-manager/issues/230

authors: ohmaxx theraw


text:
先发照片

先发照片

No


text:
Pydot dependency

I have removed the pydot dependency from the plotting tools. We can add it back if we need to (I just commented out the relevant lines and replaced them). Using pydot has some pros and cons:
pros: has a nice hierarchical layout, makes nicer pop-up plots of the STG, nice "out of the box" behavior once set up
cons: one more thing to install & version check, pydot is a bit of a pain in Windows, maybe user should specify the layout anyway, yEd or similar tools can do this
I propose we let the user specify a layout and otherwise fall back to the networkx default. Let me know what you think.

networkx doesn't have a good hierarchical layout generator(that I'm aware of). If we want a matplotlib visualization of succession diagrams and things that are best interpreted with a hierarchical layout we need an alternative. Or we just have to put up with pydot. We can't expect every user to have and know how to use yED.

We should not be dependent on yEd, I agree. I'm just saying that realistically, people who want to make pretty things are not going to be using our library to do it, so we should make it easy for them to pull in other tools and encourage them to do so.
That's why I think we should at least have the option to pass a layout function. Then the user can pick any layout function they want, even if we've never used it and don't want to deal with integrating it (I hear sklearn has some cool hierarchy layouts, for example).
I was wondering if the option to pass a layout function is enough on its own; then the user can pass the pydot layout function, if they have it, for a good hierarchical layout. We would suggest this in a tutorial script and other documentation.
Alternatively, we could have four options:

No layout
"Good enough" layout (maybe planar, or something -- we can discuss this) that doesn't require extra packages, aside from networkx and matplotlib
"Recommended" layout (pydot hierarchical)
Custom function passed by user

The program would fail "upwards" on this list, so if the custom function is bad, it gives a warning and tries the pydot layout. If that fails, it gives a warning and tries the matplotlib "good enough" layout, and so on. We could then pick a default from 1-3.
So I guess my question for everyone else is: do we need options 2 and 3, or is it better to only have options 1 and 4? Or is there some better approach altogether?

These changes have been merged into the main branch already.

authors: deriteidavid jcrozum

repo: jcrozum/StableMotifs


text:
关于后续升级的建议

开放主进程编译参数的配置。
开放打包工具的高阶配置（常见需求）
添加主进程运行环境（可以和vite保持对齐添加到import.meta中），方便主进程针对不同环境做处理

🎉 感谢您的建议，我完全同意您的看法，目前我正在进行适配 monorepo 的工作 （应该属于 2. 开放打包工具的高阶配置（常见需求） ），随后会加入其他实用功能。

多谢采纳，最近对比了好几个vite相关electron框架或工具，有的太复杂，有的运行复杂应用时容易报错（比如在编译后的preload里自动引入的polyfill包导致报错），目前就这个工具综合起来最合理。希望后续能做得更好，毕竟vite确实很有前景。可惜目前没太多时间，不然真的想参与一下这个项目。

authors: jctaoo wxhccc

repo: jctaoo/electron-run


text:
How to get route exactly country?

Hi,  how to get route and the route of a country?
When get a route i receive a direction go into two country and this not cool.

Hey I am no longer maintaining this library so you would have to find another way to do this, or fork it and add the functionality.

authors: chutienit jd-alexander

repo: jd-alexander/Google-Directions-Android


text:
How do you upgrade cleaver ?

HI don't find on the README how to upgrade cleaver to its latest version. As i see the latest release, i'd like to upgrade to it ;-p
Thank you in advance for your help.
Regards,
Adrien

Hey @adriens,
npm update -g cleaver

Should do the trick! Let me know if you run into any problems.

it does perfectly the job :+1:  :+1:  :+1:  see below :
➜  ~  sudo npm update -g cleaver
[sudo] password for salad74:
npm http GET https://registry.npmjs.org/cleaver
npm http 200 https://registry.npmjs.org/cleaver
npm http GET https://registry.npmjs.org/cleaver/-/cleaver-0.7.5.tgz
npm http 200 https://registry.npmjs.org/cleaver/-/cleaver-0.7.5.tgz
npm http GET https://registry.npmjs.org/cleaver/0.7.5
npm http 200 https://registry.npmjs.org/cleaver/0.7.5
npm http GET https://registry.npmjs.org/cleaver/-/cleaver-0.7.5.tgz
npm http 200 https://registry.npmjs.org/cleaver/-/cleaver-0.7.5.tgz
npm http GET https://registry.npmjs.org/js-yaml/2.1.0
npm http GET https://registry.npmjs.org/highlight.js
npm http GET https://registry.npmjs.org/marked
npm http GET https://registry.npmjs.org/q/0.9.6
npm http GET https://registry.npmjs.org/mustache/0.7.0
npm http GET https://registry.npmjs.org/commander
npm http GET https://registry.npmjs.org/debug
npm http 200 https://registry.npmjs.org/debug
npm http 200 https://registry.npmjs.org/commander
npm http 200 https://registry.npmjs.org/js-yaml/2.1.0
npm http GET https://registry.npmjs.org/js-yaml/-/js-yaml-2.1.0.tgz
npm http 200 https://registry.npmjs.org/js-yaml/-/js-yaml-2.1.0.tgz
npm http 200 https://registry.npmjs.org/mustache/0.7.0
npm http GET https://registry.npmjs.org/mustache/-/mustache-0.7.0.tgz
npm http 200 https://registry.npmjs.org/q/0.9.6
npm http GET https://registry.npmjs.org/q/-/q-0.9.6.tgz
npm http 200 https://registry.npmjs.org/highlight.js
npm http GET https://registry.npmjs.org/highlight.js/-/highlight.js-9.0.0.tgz
npm http 200 https://registry.npmjs.org/q/-/q-0.9.6.tgz
npm http 200 https://registry.npmjs.org/marked
npm http 200 https://registry.npmjs.org/highlight.js/-/highlight.js-9.0.0.tgz
npm http 200 https://registry.npmjs.org/mustache/-/mustache-0.7.0.tgz
npm http GET https://registry.npmjs.org/ms/0.7.1
npm http GET https://registry.npmjs.org/argparse
npm http GET https://registry.npmjs.org/esprima
npm http 200 https://registry.npmjs.org/esprima
npm http 200 https://registry.npmjs.org/ms/0.7.1
npm http GET https://registry.npmjs.org/ms/-/ms-0.7.1.tgz
npm http 304 https://registry.npmjs.org/argparse
npm http GET https://registry.npmjs.org/underscore
npm http GET https://registry.npmjs.org/underscore.string
npm http 200 https://registry.npmjs.org/ms/-/ms-0.7.1.tgz
npm http 200 https://registry.npmjs.org/underscore
npm http 304 https://registry.npmjs.org/underscore.string
/usr/local/bin/cleaver -> /usr/local/lib/node_modules/cleaver/bin/cleaver
cleaver@0.7.5 /usr/local/lib/node_modules/cleaver
├── commander@2.1.0
├── marked@0.2.10
├── q@0.9.6
├── mustache@0.7.0
├── highlight.js@9.0.0
├── debug@2.2.0 (ms@0.7.1)
└── js-yaml@2.1.0 (esprima@1.0.4, argparse@0.1.16)
➜  ~  cleaver version
0.7.5
➜  ~

Woot!

just made PR ;-p

authors: adriens jdan

repo: jdan/cleaver


text:
[BUG]: Right Sidebar toggles disappears on click

ngl, I have implemented something similar in Madness Mode ;)

As that's a obsidian bug, I'll close this. ;)

authors: chrisgrieser jdanielmourao

repo: jdanielmourao/obsidian-sanctum


text:
2FA / ssh tunnel

Me again ;)
Any chance to get 2FA via an interactive authentication working?
I even copied the .vscodium-server directory to the remote but when trying to connect I'm only getting:
[Info  - 06:08:08.798] Resolving ssh remote authority 'ssh-remote+HOSTNAME' (attemp #1)
[Trace  - 06:08:08.810] Identity keys:
/home/XXX/.ssh/id_rsa ssh-rsa SHA256:YYY
/home/XXX/.ssh/id_ecdsa ecdsa-sha2-nistp521 SHA256:ZZZ
[Info  - 06:08:08.840] Trying no-auth authentication
[Error  - 06:08:08.856] Error resolving authority
Error: All configured authentication methods failed
	at _e (/home/XXX/.vscode-oss/extensions/jeanp413.open-remote-ssh-0.0.10/out/extension.js:1:140273)
	at t.RemoteSSHResolver.sshAuthHandler (/home/XXX/.vscode-oss/extensions/jeanp413.open-remote-ssh-0.0.10/out/extension.js:1:379385)
	at authHandler (/home/XXX/.vscode-oss/extensions/jeanp413.open-remote-ssh-0.0.10/out/extension.js:1:373963)
	at Ie (/home/XXX/.vscode-oss/extensions/jeanp413.open-remote-ssh-0.0.10/out/extension.js:1:143146)
	at USERAUTH_FAILURE (/home/XXX/.vscode-oss/extensions/jeanp413.open-remote-ssh-0.0.10/out/extension.js:1:132360)
	at 51 (/home/XXX/.vscode-oss/extensions/jeanp413.open-remote-ssh-0.0.10/out/extension.js:1:283338)
	at e.exports.x (/home/XXX/.vscode-oss/extensions/jeanp413.open-remote-ssh-0.0.10/out/extension.js:1:153888)
	at x.decrypt (/home/XXX/.vscode-oss/extensions/jeanp413.open-remote-ssh-0.0.10/out/extension.js:1:246923)
	at e.exports.D [as _parse] (/home/XXX/.vscode-oss/extensions/jeanp413.open-remote-ssh-0.0.10/out/extension.js:1:153412)
	at e.exports.parse (/home/XXX/.vscode-oss/extensions/jeanp413.open-remote-ssh-0.0.10/out/extension.js:1:157215)
	at Socket.<anonymous> (/home/XXX/.vscode-oss/extensions/jeanp413.open-remote-ssh-0.0.10/out/extension.js:1:139013)
	at Socket.emit (node:events:526:28)
	at Socket.emit (node:domain:475:12)
	at addChunk (node:internal/streams/readable:315:12)
	at readableAddChunk (node:internal/streams/readable:289:9)
	at Readable.push (node:internal/streams/readable:228:10)

As far as I can see in that file, keyboard interactive should in principle exist though it never seems to be called.
The host requires a PW and a interactive 2FA. Another host that also fails requires an identity key and a interactive 2FA.
Is there any more information I could provide?

I got it working. Here's how for anyone having the same issue:
My .ssh/config:
Host remote_behind_2FA_jumphost
    HostName REMOTE_IP
    User REMOTE_USER
    Port REMOTE_PORT
    ForwardAgent no
    IdentityFile ~/.ssh/id_rsa
    IdentitiesOnly yes
    PreferredAuthentications publickey
    ProxyJump jumphost

Host jumphost
    HostName JUMP_IP
    User JUMP_USER
    Port JUMP_PORT
    ForwardAgent yes

Establish an ssh-tunnel via
ssh -f remote_behind_2FA_jumphost -N -L localhost:9000:REMOTE_IP:22

Create a separate ssh config file for vscodium and point the extension to it containing:
Host remote_behind_2FA_jumphost
    HostName localhost
    User root
    Port 9000
    ForwardAgent no
    IdentityFile ~/.ssh/id_rsa
    IdentitiesOnly yes
    PreferredAuthentications publickey
    ProxyJump jumphost

Connect. Be happy.
Sorry for the additional issue but maybe you want to document the two issued I submitted for all users to find them.
If you accept PRs I'd happily do that :)

keyboard interactive is not implemented yet, I left it as a TODO as I've never use it before :smile:, but I think it should be straightforward to do it here
Looking at the ssh library docs seems we just need to show an input box for the user to enter the required input,
Will take a look over the weekend or you can give it a try and do a PR :+1:

I have sadly zero experience with JS so I won't be able to give it a shot.
I'd though be willing to test/trouble shoot :smile:

@gothicVI released v0.0.11 handling keyboard interactive auth, could you test it :pray:

@jeanp413 after updating to v0.0.11, and patching a small bug in ssh2, keyboard-interactive 2FA is working perfectly for me!
This patch was necessary because the partial success response was ignored when using agent authentication.
https://github.com/mscdex/ssh2/pull/1215

Good catch @lucasvbeek hope it gets merged :crossed_fingers: if not I think I'd look into forking the library and cherry-pick you PR :+1:

@jeanp413 sorry for the late reply. I haven't found the time to test yet and with the missing fix to ssh2 I'll wait for a bit until I will.
Thanks so much for the effort though.

@jeanp413 I've tried v0.0.12 now but am getting the following error:
[Info  - 07:08:18.156] Resolving ssh remote authority 'ssh-remote+HOST' (attemp #1)
[Trace  - 07:08:18.170] Identity keys:
/home/XXX/.ssh/id_rsa ssh-rsa SHA256:YYY
[Info  - 07:08:18.208] Trying no-auth authentication
[Info  - 07:08:18.225] Trying publickey authentication: /home/XXX/.ssh/id_rsa ssh-rsa SHA256:YYY
[Error  - 07:08:18.248] Error resolving authority
Error: All configured authentication methods failed
	at _e (/home/XXX/.vscode-oss/extensions/jeanp413.open-remote-ssh-0.0.12/out/extension.js:1:140273)
	at t.RemoteSSHResolver.sshAuthHandler (/home/XXX/.vscode-oss/extensions/jeanp413.open-remote-ssh-0.0.12/out/extension.js:1:380356)
	at authHandler (/home/XXX/.vscode-oss/extensions/jeanp413.open-remote-ssh-0.0.12/out/extension.js:1:374226)
	at ye (/home/XXX/.vscode-oss/extensions/jeanp413.open-remote-ssh-0.0.12/out/extension.js:1:143146)
	at me (/home/XXX/.vscode-oss/extensions/jeanp413.open-remote-ssh-0.0.12/out/extension.js:1:143330)
	at USERAUTH_FAILURE (/home/XXX/.vscode-oss/extensions/jeanp413.open-remote-ssh-0.0.12/out/extension.js:1:132306)
	at 51 (/home/XXX/.vscode-oss/extensions/jeanp413.open-remote-ssh-0.0.12/out/extension.js:1:283338)
	at e.exports.x (/home/XXX/.vscode-oss/extensions/jeanp413.open-remote-ssh-0.0.12/out/extension.js:1:153888)
	at x.decrypt (/home/XXX/.vscode-oss/extensions/jeanp413.open-remote-ssh-0.0.12/out/extension.js:1:246923)
	at e.exports.D [as _parse] (/home/XXX/.vscode-oss/extensions/jeanp413.open-remote-ssh-0.0.12/out/extension.js:1:153412)
	at e.exports.parse (/home/XXX/.vscode-oss/extensions/jeanp413.open-remote-ssh-0.0.12/out/extension.js:1:157215)
	at Socket.<anonymous> (/home/XXX/.vscode-oss/extensions/jeanp413.open-remote-ssh-0.0.12/out/extension.js:1:139013)
	at Socket.emit (node:events:526:28)
	at Socket.emit (node:domain:475:12)
	at addChunk (node:internal/streams/readable:315:12)
	at readableAddChunk (node:internal/streams/readable:289:9)
	at Readable.push (node:internal/streams/readable:228:10)
	at TCP.onStreamRead (node:internal/stream_base_commons:190:23)

where the config entry is
Host HOST
    HostName FQDN
    User XXX
    Port 22
    ForwardAgent yes
    IdentityFile ~/.ssh/id_rsa
    IdentitiesOnly yes
    PreferredAuthentications publickey,keyboard-interactive

which requires 2FA. Is this due to the bug mentioned by @lucasvbeek?

yeah I'll fork the library and cherry-pick his commit as it's really small and not sure when it's gonna be merged upstream

authors: gothicVI jeanp413 lucasvbeek


text:
加了cancelTag(context)，BaseRequest还是回调了OnError方法

场景：进入一个页面获取数据，tag是传的activity.在网络还没有回调的时候，迅速退出Activity。这个时候BaseRequest回调了OnError，抛出了sokect异常。我就捕获了这个异常回了主线程，并弹出了Dialog.Dialog的Context就是Activity.但这个时候Activity已经不存在了。就出现了空指针。
我的问题是：是不是可以在CallBack方法里有什么判断让这个异常不回到主线程？或者说是我用法没有对？谢谢

csncel本来就是已抛异常的方式中断请求,你可以根据onerror中的异常类型判断是否是主动取消的。。

你可以根据onError()中的异常类型判断是否是主动取消的?? 这个 怎么知道是 主动取消的异常呢？看到麻烦大神解答下

e.getMessage().equals("cancel")   如果是主动取消的，异常信息是 cancel 判断一下就可以了。

authors: Christain anjiao jeasonlzy0216


text:
RFC LLM Library Structure

Start Date
No response
Implementation PR
No response
Reference Issues
No response
Summary
An RFC to discuss the structure of the libraries. The proposal is to split the libraries down into a 'LangChain.NET.Core' library containing the core abstractions and the functionality. Each individual LLM would then be split down into individual libraries, allowing users to only take on the dependencies they need.
Basic Example

LangChain.NET.Core
LangChain.NET.OpenAI
LangChain.NET.HuggingFace

Drawbacks
More complicated project structure and deployment.
Unresolved questions
No response

For sure any third party dependencies should had their own library/package. If we assume that there is multiple LLM providers as right now OpenAI and AzureOpenAI then we should go with separate packages, as it is for ef core with MySql, Oracle etc. So it will not be to heavy in future. For me right now is a question if we should go with that further, I made in my draft PR first look into LangChain.NET.Abstractions layer to introduce some interfaces needed for testing right now. Maybe it would be useful in that case to move abstract things there.

Ok, excellent.
I noticed the abstractions, and I like what you've done with it. I'm just wondering what the benefit there is to having that in a separate package, as apposed to in a 'Core' library alongside everything else. What would the use case be for using the abstractions package and not the rest of the core library?

I don't had in mind right now any specific feature rather than organizing code in some ".Shared"/".Contracts" pattern from DDD. Potentially it open road for less headache with nuget packages as such Abstractions package don't need to be iterated with new version each time when we change something in core. In terms of separation of packages for each provider for example. But this is some future thing. Also there is some human factor with development of new packages, you would think twice if you really need add .Core dependency into your package or not.

Hi, all. I just arrived here to say that I would really love to see this lib become a success story. Currently, I can not contribute with code because of excessive workloads related to my job. But I will write my thoughts here.
So, as I understand, the .NET port is going to deviate from the Python source code and its structure? I guess this is somewhat inevitable given the fact that .NET and C# have many differences from Python. In such a case, what would be the strategy for the .NET port to resemble the original LangChain lib? Will there be public classes that would be the same as LangChain's, even if they are packaged in a different way? Are you planning to maintain some kind of one-to-one relationship with them, and if such classes are dropped, what happens with those in the .NET Port? Is the plan to maintain some loose coupling and perhaps the project go its own path in the long term, or is the plan to maintain a close relationship with LangChain and keep up with new features added or even removed?
What about building a community? My previous experience with .NET ports is that they tend to fail often because .NET developers usually do not have the time to contribute (as in my case), and then the original aim to maintain and grow the port becomes a development pain. My view is that for the port to be successful, it needs a community that will be able to contribute. However, this can be done only if a development path with targets is laid out by the core contributors. You see, sometimes if someone wants to contribute and has some time to devote, it would be good to know what kind of development tasks to pick based on the time they have. I know it sounds like too much work for the core team, but it may help the community to grow, while if no such plan exists, then features may appear randomly from those who want to contribute without impacting a lot the functionality of the lib.
I am not sure how many .NET developers would be interested in the project; I am definitely interested in using the lib. I still hope we are many around building in .NET, and this is a needed library, but instead of just jumping on developing code, have second thoughts on how to create a community that contributes regularly. This is usually the key to success in such projects.

Thanks for the thoughful repsonse @gisvlasta. In terms of the .NET port structure, we are trying to find the balance between a common way of doing things to Python whilst also keeping some of the idiomatic .NET specific things. I'm completely ok with the .NET implementation forging it's own path, but I think the core features/naming conventions should be consistent between the 2 languages.
Great call out on creating a community, I will have a think about that.

I'm James.
Resuming the conversation. For the library structure, for now, I would stick to KISS and keep everything in the same package with clear namespace until there is a real need to split into multiple package to reduce the overhead to maintain multiple nuget packages.
In the coming weeks, I want to invest some time in your library as I go deeper with my LLMs learning journey.
What are your thoughts on this?

@fbouteruche There is no additional complexity in maintaining a large number of NuGet packages. Since the project will require a large number of dependencies, in LangChain I use separate packages for everything, and a meta package that allows me to quickly use the most necessary things.
.NET has a fairly large ecosystem, and some platforms require the size of dependencies to be as small as possible

Hi Konstantin,
I’ve just discovered your own project. What is the difference between your project and this one? I see you include this project but I’m puzzled.
Regards,
François.
From: Konstantin S. @.>
Sent: Thursday, October 19, 2023 7:27 AM
To: jeastham1993/langchain-dotnet @.>
Cc: Bouteruche, Francois @.>; Mention @.>
Subject: Re: [jeastham1993/langchain-dotnet] RFC LLM Library Structure (Issue #4)
@fbouteruchehttps://github.com/fbouteruche There is no additional complexity in maintaining a large number of NuGet packages. Since the project will require a large number of dependencies, in LangChainhttps://github.com/tryAGI/LangChain I use separate packages for everything, and a meta package that allows me to quickly use the most necessary things.
.NET has a fairly large ecosystem, and some platforms require the size of dependencies to be as small as possible
—
Reply to this email directly, view it on GitHubhttps://github.com/jeastham1993/langchain-dotnet/issues/4#issuecomment-1770025104, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ACS6KPE7CZHD22H4GMRLXDDYAC2YZAVCNFSM6AAAAAAZ2BUDBGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONZQGAZDKMJQGQ.
You are receiving this because you were mentioned.Message ID: @.@.>>
Amazon Web Services EMEA SARL, 38 avenue John F. Kennedy, L-1855 Luxembourg, R.C.S. Luxembourg B186284
Amazon Web Services EMEA SARL, succursale francaise, 31 Place des Corolles, Tour Carpe Diem, F-92400 Courbevoie, SIREN 831 001 334, RCS Nanterre, APE 6311Z,  TVA FR30831001334

@fbouteruche I started my project a little earlier(and from other things than this repository), and I think we have a lot more things implemented. But I'm trying to keep an eye on the activity in this repository and include these things as well, but things are pretty slow here.

@fbouteruche that's ok with me and I can shut down this project.

authors: CrazyBaran HavenDV fbouteruche gisvlasta jeastham1993


text:
Add an option to hide the trigger when text is <= than collapsed height

Hi,
It would be great to add this option. I've made the necessary changes on a local copy and I would like to make a pull request. But before that, I think it's best to discuss how it should be added.

First option would be to make it optional and simply use the show() and hide() jquery methods.
The second idea is to simply add classes to the the trigger element, like readmore--hidden for instance.

I think the second option is nicer since it is more flexible and doesn't add another option to the plugin. What do you think?

This should already be the default behavior. As demonstrated in demo.html, if a section's height is less than the configured collapsedHeight (or CSS max-height), the trigger is not shown.
I'd like to see an example of the behavior you are trying to address. Could you please post as a gist or fork this bin?

authors: idflood jedfoster


text:
forgot password link doesn't work if I'm logged in

I assume I should be navigated to the forgot password page even though I'm logged in.
It just redirects to account page

I'm trying to understand the architecture here, but I can't even see how /login/forgot gets rendered. there is no route for 'GET' request, only for posts in api.
because I assume api redirects it to /account if user is logged in

figured it out
https://github.com/jedireza/aqua/blob/master/server/web/login/index.js#L26
that's what makes it to redirect

Wow! Now I'm confused,
how does forgot password view render? I've just setup a breakpoint in WebStorm and I see it gets there, and calls
var response = reply.view('login/index'); (which has nothing to do with forgot password page)

then it somehow goes to client side to Router.jsx for login component, reads current path and fires handler for Forgot component.
Need to spend more time to learn how it works

added a commit to my prev pull request.

Thanks for opening an issue.

Wow! Now I'm confused, how does forgot password view render? I've just setup a breakpoint in WebStorm and I see it gets there, and calls

Aqua is like a handful of single page apps. You can see how we break them out here:
https://github.com/jedireza/aqua/blob/master/gulp/webpack.js#L16-L20
The SPAs (single page apps) that have multiple routes, have a client-side router:

https://github.com/jedireza/aqua/blob/master/client/pages/account/Routes.jsx
https://github.com/jedireza/aqua/blob/master/client/pages/admin/Routes.jsx
https://github.com/jedireza/aqua/blob/master/client/pages/login/Routes.jsx

So on the server, we only need to render the main payload and the client takes over once we render in the browser.
I hope this helps.

I need to annotate the app structure and design as a wiki page. I've opened #54 to serve as a reminder to do that.

authors: jedireza rstormsf

repo: jedireza/aqua


text:
demo is throwing Uncaught TypeError: this.transitionTo is not a function

Hi,
I'm executing the demo to test and is not working, with the error:
Uncaught TypeError: this.transitionTo is not a function
Basically none of the buttons sort and search is working, error seems to be
this.transitionTo('admins', {}, this.refs.filters.state);
Any ideas ?
Thanks

Thanks for creating an issue. This sounds like you have a newer version of react-router.
I touch on this a bit in #79

authors: jedireza thomasmodeneis


text:
proxy doesn't start on Ubuntu 16.04 when installed with dnscrypt-loader

I hope this is the right place to post this:
I've set up DNSCrypt, dnscrypt-loader and unbound on Ubuntu Studio 16.04.1. unbound seems to be working without dnscrypt, but I can't open any site when I try to use it with dnscrypt.
DNSCrypt-loader configurations:
`cChroot="dnscrypt"
cPrimaryIP="127.0.1.2"
cPrimaryPort="5351"
cSecondaryIP="127.0.1.2"
cSecondaryPort="5352"
cProxyBaseDir="/usr/local/sbin/"
cProxyBaseName="dnscrypt-proxy"
cProxyApp="$cProxyBaseDir$cProxyBaseName"
cCSVBaseDir="/usr/local/share/dnscrypt-proxy/"
cCSVBaseName="dnscrypt-resolvers.csv"
cCSVFile="$cCSVBaseDir$cCSVBaseName"
cSIGBaseDir="/usr/local/share/dnscrypt-proxy/"
cSIGBaseName="dnscrypt-resolvers.csv.minisig"
cSIGFile="$cSIGBaseDir$cSIGBaseName"
cDaemon="$cProxyApp --daemonize "
cLocalAddress1="--local-address=$cPrimaryIP:$cPrimaryPort "
cLocalAddress2="--local-address=$cSecondaryIP:$cSecondaryPort "
cResolverAddress="--resolver-address"
cProviderName="--provider-name"
cProviderKey="--provider-key"
cResolverList="--resolvers-list=$cCSVFile "
cUser="--user=$cChroot"
cOtherParams="--ephemeral-keys "
cCSVURL="https://download.dnscrypt.org/dnscrypt-proxy/dnscrypt-resolvers.csv"
cSIGURL="https://download.dnscrypt.org/dnscrypt-proxy/dnscrypt-resolvers.csv.minisig"
cDigTarget="internic.net"
cDigTries=2
cDigTime=5
cAnonymousOnly=true
cIPVersion="ipv4"
cEnableSignCheck=true
cGUI="whiptail"`
Relevant unbound configs:
`do-not-query-localhost: no
forward-zone:
name: "."
forward-addr: 127.0.1.2@5351`
If I set the forward-addr: 8.8.8.8, everything's working, but when I try to use dnscrypt I can't open any site.
Here's a result of dig not using dnscrypt:
`user@Host:~$ dig google.com
; <<>> DiG 9.10.3-P4-Ubuntu <<>> google.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 29460
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;google.com.			IN	A
;; ANSWER SECTION:
google.com.		299	IN	A	216.58.214.206
;; Query time: 64 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Mon Oct 03 23:38:36 CEST 2016
;; MSG SIZE  rcvd: 55`
And with dnscrypt:
`user@Host:~$ dig @127.0.1.2 -p 5351 google.com
; <<>> DiG 9.10.3-P4-Ubuntu <<>> @127.0.1.2 -p 5351 google.com
; (1 server found)
;; global options: +cmd
;; connection timed out; no servers could be reached`
dnscrypt-loader status:
`DNSCrypt-proxy  Loaded instances
│
│  --- Configs ---
│  Running as     = dnscrypt
│  Anonymous only = true
│  Sign check     = true
│  IP Version     = ipv4
│
│  --- Primary DNS ---
│  Status         = Running [3691]
│  Execution time = 21:07 01:01:43 (Date days-hh:mm:ss)
│  Proxy IP       = 127.0.1.2:5351
│  Resolver IP    = 185.121.25.85
│  Resolver name  = 2.dnscrypt-cert.uk.d0wn.biz
│  Resolver test  = Dig Query Time  :  msec
│  --- Secondary DNS ---
│  Status         = Running [3862]
│  Execution time = 21:07 01:01:41 (Date days-hh:mm:ss)
│  Proxy IP       = 127.0.1.2:5352
│  Resolver IP    = 95.154.236.104
│  Resolver name  = 2.dnscrypt-cert.fvz-rec-gb-lon-03.dnsrec.meo.ws
│  Resolver test  = Dig Query Time  :  msec`
Also this seems to be related somehow: since I've started tinkering with the network, when I sudo, it prints sudo: unable to resolve host Host then prompts for my password. With certain settings it took really long to respond.
It seems like everything is fine, yet DNSCrypt not working. So I'd like your help, since I've kinda run out of ideas on how to proceed...
Thanks!

Hi,
I'm not familiar with that script, but apparently, it's starting a proxy that listens to 127.0.1.2:5351.
Does it work if you send queries directly to that proxy? eg:
hostip -r 127.0.0.1:5351 example.com

Do you get an IP address back?

Hi!
Nope, it just times out..
Btw, is there some config file, I can manually check / edit? Maybe dnscrypt-loader doesn't do it's job correctly.

So it means that dnscrypt is not even running.
Maybe dnscrypt-loader didn't properly install it. What distribution are you using? Doesn't it have an official dnscrypt-proxy package?

Ubuntu Studio 16.04.1
dnscrypt-proxy 1.7.0
dnscrypt-loader 1.2
I installed them manually. Now, that you mentioned, I've found a dnscrypt-proxy 1.6.1-1 package. So I'll try that, and report back with my findings.
In the meantime here's the last 4 lines from syslog concerning dnscrypt-proxy:
Oct 10 11:16:41 Host dnscrypt-proxy[2774]: Refetching server certificates
Oct 10 11:16:51 Host dnscrypt-proxy[3249]: Refetching server certificates
Oct 10 11:16:56 Host dnscrypt-proxy[2774]: Unable to retrieve server certificates
Oct 10 11:17:06 Host dnscrypt-proxy[3249]: Unable to retrieve server certificates

It is logged every 5 minutes, with some few hour gaps. What's interesting is that the latest is 10days old, yet dnscrypt-loader reported that dnscrypt-proxy is running. Also the latest syslog records about dnscrypt-loader are form Oct 9th. Yet I have these lines in crontab, which should "Download from official source, performs signature check and updates the resolvers.csv file" and "Load DNSCrypt-proxy using a resolver randomly choosed by DNSCrypt-loader" respectively:
@reboot root exec /usr/local/sbin/dnscrypt-loader -u
@reboot root exec /usr/local/sbin/dnscrypt-loader -r

Obviously, I have booted since then.

Nvm the last part. (Seems like grep stopped parsing syslog after a few thousand lines.) Anyway, here are the lines from last boot:
Oct 20 18:56:27 Host CRON[1428]: (root) CMD (root exec /usr/local/sbin/dnscrypt-loader -r)
Oct 20 18:56:27 Host CRON[1427]: (root) CMD (root exec /usr/local/sbin/dnscrypt-loader -u)
Oct 20 18:56:58 Host dnscrypt-loader: Loading /usr/local/sbin/dnscrypt-proxy
Oct 20 18:56:58 Host dnscrypt-loader: Restoring previous dnscript-loader session
Oct 20 18:56:58 Host dnscrypt-loader: Loading primary /usr/local/sbin/dnscrypt-proxy success.
Oct 20 18:57:09 Host dnscrypt-loader:  DNSCrypt-proxy  Loaded instances
Oct 20 18:57:09 Host dnscrypt-loader:  --- Configs ---
Oct 20 18:57:09 Host dnscrypt-loader:  Running as     = dnscrypt
Oct 20 18:57:09 Host dnscrypt-loader:  Anonymous only = true
Oct 20 18:57:09 Host dnscrypt-loader:  Sign check     = true
Oct 20 18:57:09 Host dnscrypt-loader:  IP Version     = ipv4
Oct 20 18:57:09 Host dnscrypt-loader:  --- Primary DNS ---
Oct 20 18:57:09 Host dnscrypt-loader:  Status         = Running [2877]
Oct 20 18:57:09 Host dnscrypt-loader:  Execution time = 18:56 00:00 (Date days-hh:mm:ss)
Oct 20 18:57:09 Host dnscrypt-loader:  Proxy IP       = 127.0.1.2:5351
Oct 20 18:57:09 Host dnscrypt-loader:  Resolver IP    = 37.235.49.61
Oct 20 18:57:09 Host dnscrypt-loader:  Resolver name  = 2.dnscrypt-cert.is.d0wn.biz
Oct 20 18:57:09 Host dnscrypt-loader:  Resolver test  = Dig Query Time  :  msec
Oct 20 18:57:09 Host dnscrypt-loader:  --- Secondary DNS ---
Oct 20 18:57:09 Host dnscrypt-loader:  Status         = Stopped []
Oct 20 18:57:09 Host dnscrypt-loader:  Execution time =   (Date days-hh:mm:ss)
Oct 20 18:57:09 Host dnscrypt-loader:  Proxy IP       =
Oct 20 18:57:09 Host dnscrypt-loader:  Resolver IP    =
Oct 20 18:57:09 Host dnscrypt-loader:  Resolver name  =
Oct 20 18:57:09 Host dnscrypt-loader:  Resolver test  =
Oct 20 18:57:09 Host dnscrypt-loader: Loading secondary /usr/local/sbin/dnscrypt-proxy success.
Oct 20 18:57:30 Host dnscrypt-loader:  DNSCrypt-proxy  Loaded instances
Oct 20 18:57:30 Host dnscrypt-loader:  --- Configs ---
Oct 20 18:57:30 Host dnscrypt-loader:  Running as     = dnscrypt
Oct 20 18:57:30 Host dnscrypt-loader:  Anonymous only = true
Oct 20 18:57:30 Host dnscrypt-loader:  Sign check     = true
Oct 20 18:57:30 Host dnscrypt-loader:  IP Version     = ipv4
Oct 20 18:57:30 Host dnscrypt-loader:  --- Primary DNS ---
Oct 20 18:57:30 Host dnscrypt-loader:  Status         = Running [2877]
Oct 20 18:57:30 Host dnscrypt-loader:  Execution time = 18:56 00:11 (Date days-hh:mm:ss)
Oct 20 18:57:30 Host dnscrypt-loader:  Proxy IP       = 127.0.1.2:5351
Oct 20 18:57:30 Host dnscrypt-loader:  Resolver IP    = 37.235.49.61
Oct 20 18:57:30 Host dnscrypt-loader:  Resolver name  = 2.dnscrypt-cert.is.d0wn.biz
Oct 20 18:57:30 Host dnscrypt-loader:  Resolver test  = Dig Query Time  :  msec
Oct 20 18:57:30 Host dnscrypt-loader:  --- Secondary DNS ---
Oct 20 18:57:30 Host dnscrypt-loader:  Status         = Running [3150]
Oct 20 18:57:30 Host dnscrypt-loader:  Execution time = 18:57 00:10 (Date days-hh:mm:ss)
Oct 20 18:57:30 Host dnscrypt-loader:  Proxy IP       = 127.0.1.2:5352
Oct 20 18:57:30 Host dnscrypt-loader:  Resolver IP    = 176.56.237.171
Oct 20 18:57:30 Host dnscrypt-loader:  Resolver name  = 2.dnscrypt-cert.resolver1.dnscrypt.eu
Oct 20 18:57:30 Host dnscrypt-loader:  Resolver test  = Dig Query Time  :  msec

Oct 20 18:56:58 Host dnscrypt-loader: Loading /usr/local/sbin/dnscrypt-proxy
Oct 20 18:56:58 Host dnscrypt-proxy[2877]: Starting dnscrypt-proxy 1.7.0
Oct 20 18:56:58 Host dnscrypt-proxy[2877]: Ephemeral keys enabled - generating a new seed
Oct 20 18:56:58 Host dnscrypt-proxy[2877]: Done
Oct 20 18:56:58 Host dnscrypt-loader: Loading primary /usr/local/sbin/dnscrypt-proxy success.
Oct 20 18:57:09 Host dnscrypt-proxy[3150]: Starting dnscrypt-proxy 1.7.0
Oct 20 18:57:09 Host dnscrypt-proxy[3150]: Ephemeral keys enabled - generating a new seed
Oct 20 18:57:09 Host dnscrypt-proxy[3150]: Done
Oct 20 18:57:09 Host dnscrypt-loader: Loading secondary /usr/local/sbin/dnscrypt-proxy success.
Oct 20 18:57:13 Host dnscrypt-proxy[2877]: Unable to retrieve server certificates
Oct 20 18:57:14 Host dnscrypt-proxy[2877]: Refetching server certificates
Oct 20 18:57:24 Host dnscrypt-proxy[3150]: Unable to retrieve server certificates
Oct 20 18:57:25 Host dnscrypt-proxy[3150]: Refetching server certificates
Oct 20 18:57:29 Host dnscrypt-proxy[2877]: Unable to retrieve server certificates
Oct 20 18:57:32 Host dnscrypt-proxy[2877]: Refetching server certificates

i have this problem too

Unable to retrieve server certificates means that the initial query to the server failed.
This initial query doesn't even use DNSCrypt at all; it's a standard DNS query.
Maybe the server information is out of date. Or the server doesn't work any more at the moment. Or you have a firewall blocking DNS queries (regular queries, to port 53, using UDP).

license: ISC


text:
Undef HAVE_GETAUXVAL under old Android API versions

getauxval is only available on Android API levels >= 18: https://developer.android.com/ndk/guides/cpu-features.
sys/auxv.h in android is defined as:
unsigned long int getauxval(unsigned long int __type)
__INTRODUCED_IN(18)

Thank you!


text:
What assembly language is supported for this CPU?

The Raspberry Pi 4 Model B tech specs indicate a Broadcom BCM2711, Quad core Cortex-A72 (ARM v8) 64-bit SoC @ 1.5GHz CPU.
BCM2711 documentation and data sheet.
ARMv8-A architecture.
Comparison of ARMv8-A cores.
ARM Cortex-A72 and technical reference manual supports ARM architecture.
Assembly Language with Raspberry Pi Video Tutorial.
ARM Assembly Language.

Still no idea which exact ASM is supported by the Pi4.

It helps to:

Install WSL on Windows 10.
Run the wsl command.
Run code . to install/open vscode in remote/WSL mode.
Follow these instructions:

Now that we're in a Linux environment, run sudo apt-get install gcc-arm-none-eabi.
Run make.

Successfully built a kernel image in 918a2a2b9cdb591350b6847b649cf4e6477eeffa.

https://wiki.cdot.senecacollege.ca/wiki/Aarch64_Register_and_Instruction_Quick_Start

https://developer.arm.com/docs/den0024/latest

https://medium.com/@wizofe/cross-compiling-rust-for-arm-e-g-raspberry-pi-using-any-os-11711ebfc52b

repo: jedmao/os


text:
用户权限 SysPermissionMapper queryDepartPermissionList、queryPermissionByTestRoleId接口中is_route、keep_alive、is_leaf字段数据丢失问题

版本号：3.7.0
问题描述：
修改方法如下，修改resultMap="SysPermission"

错误截图：
友情提示：

未按格式要求发帖、描述过于简单的，会被直接删掉;
描述问题请图文并茂，方便我们理解并快速定位问题;
如果使用的不是master，请说明你使用的分支;

?

实体bean中的这几个字段没有正确将值映射进去

未复现，修改后，尝试执行clean install之后再重启

authors: EightMonth ma19881117 zhangdaiscott

repo: jeecgboot/JeecgBoot


text:
iOS 真机不支持 requestAnimationFrame & cancelAnimationFrame

iP7 iOS10.3.2
WeChat 6.5.12

只好以 setTimeout && clearTimeout 代替二者了.

哈哈，的确把两个个替换了就好使了！！！ 给你点个赞

但是 很卡

authors: Aixtuz TEENSTITAN abaozhizhong


text:
Build option --enable-comm-caching breaks barrier microbenchmark

I have a barrier microbenchmark that scales the number of PEs from 2 to NPES. When OSHMPI is built with --enable-comm-caching, this benchmark always breaks (deadlock) at PE_Size=18 (after performing PE_Size={2..17} correctly).
I've reproduced this bug with Intel MPI and MPICH on two different systems including multi-node and SMP configurations.
This bug is not exhibited when OSHMPI is built without --enable-comm-caching. It also may not repro if NPES=18. NPES=18 and PE_Size=18 may convert a shmem_barrier() to a shmem_barrier_all() and not repro this bug. For those implementations, it has to be at least NPES=19.

Sorry, I think I missed this when you reported it.  The comm-caching implementation is pretty lame, so I should probably just disable it completely.

authors: ArbiterLam jeffhammond

repo: jeffhammond/oshmpi


text:
Add MGet or Multiple Get to improve read performance

I've performance issues when my cache has heavy read and write load in the same time.
I propose an approch like  Reduce mutex blocking while get from multiple keys (like redis MGET ) Or use RW.Mutex while Get() instead.

Hey @swithek. What about this issue? Should it be added as a new feature? If yes, I'd like to work on it.

@gozeloglu I'm not sure it's possible to implement the suggested changes, at least not all of them. I go into more detail here: https://github.com/jellydator/ttlcache/discussions/105#discussioncomment-5999701

bump for my discussion also: https://github.com/jellydator/ttlcache/discussions/160

authors: Planxnx gozeloglu kecci swithek

repo: jellydator/ttlcache


text:
chore: move release.ci.jenkins.io from prodpublick8s cluster to privatek8s cluster

Ref: https://github.com/jenkins-infra/helpdesk/issues/2844

Testing this PR in its current state from my machine first:
$ kubectl config use-context privatek8s-emerging-ram
Switched to context "privatek8s-emerging-ram".

$ helmfile apply -f clusters/privatek8s.yaml -l name=jenkins-release

repo: jenkins-infra/kubernetes-management


text:
added new user to  servicenow-devops. plugin access

added new user to  servicenow-devops. plugin access
Link to GitHub repository
https://github.com/jenkinsci/servicenow-devops-plugin
When modifying release permission
List the GitHub usernames of the users who should have commit permissions below:

ramasnow

This is needed in order to cut releases of the plugin or component.
If you are modifying the release permission of your plugin or component, fill out the following checklist:

### Release permission checklist (for submitters)
- [x] The usernames of the users added to the "developers" section in the .yml file are the same the users use to log in to [accounts.jenkins.io](https://accounts.jenkins.io/).
- [x] All users added have logged in to [Artifactory](https://repo.jenkins-ci.org/) and [Jira](https://issues.jenkins.io/) once.
- [x] I have mentioned an [existing team member](https://github.com/orgs/jenkinsci/teams) of the plugin or component team to approve this request.

When enabling automated releases (cd: true)
Follow the documentation to ensure, your pull request is set up properly. Don't merge it yet.
In case of changes requested by the hosting team, an open PR facilitates future reviews, without derailing work across multiple PRs.
Link to the PR enabling CD in your plugin

### CD checklist (for submitters)
- [x] I have provided a link to the pull request in my plugin, which enables CD according to the documentation.

### Reviewer checklist
- [x] Check that the `$pluginId Developers` team has `Admin` permissions while granting the access.
- [ ] In the case of plugin adoption, ensure that the Jenkins Jira default assignee is either removed or changed to the new maintainer.
- [ ] If security contacts are changed (this includes add/remove), ping the security officer (currently `@Wadeck`) in this pull request. If an email contact is changed, wait for approval from the security officer.

There are IRC Bot commands for it.

Existing team member:  mdavireddy approved the PR


text:
Delete application bdd-spring-1574160832 from this environment

The command jx delete application was run by  and it generated this Pull Request

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approvers:
If they are not already assigned, you can assign the PR to them by writing /assign  in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


text:
chore: bdd-spring-1573655642 to 0.0.1

chore: Promote bdd-spring-1573655642 to version 0.0.1

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approvers:
If they are not already assigned, you can assign the PR to them by writing /assign  in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


text:
Delete application bdd-spring-1580740416 from this environment

The command jx delete application was run by  and it generated this Pull Request

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approvers:
If they are not already assigned, you can assign the PR to them by writing /assign  in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


text:
nextVersion: Unexpected character

Jenkins and plugins versions report

Environment

Paste the output here

What Operating System are you using (both controller, and any agents involved in the problem)?
Linux
Reproduction steps
We would like to use nextVersion() in a Jenkins pipeline to generate the next semantic version.
The plugin can read the current tag but fails to generate the next version.
Expected Results
return the next version
Actual Results
Also:   org.jenkinsci.plugins.workflow.actions.ErrorAction$ErrorId: 9c419606-6cbd-430f-ae09-f66bb71a5bf2
Unexpected character 'ILLEGAL([)' at position '0', expecting '[DIGIT]'
at com.github.zafarkhaja.semver.VersionParser.consumeNextCharacter(VersionParser.java:516)
at com.github.zafarkhaja.semver.VersionParser.digits(VersionParser.java:448)
at com.github.zafarkhaja.semver.VersionParser.numericIdentifier(VersionParser.java:408)
at com.github.zafarkhaja.semver.VersionParser.parseVersionCore(VersionParser.java:285)
at com.github.zafarkhaja.semver.VersionParser.parseValidSemVer(VersionParser.java:255)
at com.github.zafarkhaja.semver.VersionParser.parseValidSemVer(VersionParser.java:195)
at com.github.zafarkhaja.semver.Version.valueOf(Version.java:265)
...
Anything else?
No response

same here..

The gitag accepted seems to be only of type digits; the git tag must be in the format of only number with no prefix.
Accepted: 1.0.0
Not accepted: v1.0.0, [1.0.0]

authors: anvi-27 hepifish kobmik

repo: jenkinsci/conventional-commits-plugin


text:
I don't understand how to use the plugin

Describe your use-case which is not covered by existing documentation.
I went to Dashboard->Manage Jenkins->Configure System. Next, in the Global Database section, I entered the parameters for connecting to the Postgres database. I pressed Test Connection to make sure everything was in order. And what's next? How do I use this connection in my task? I voiced this problem earlier, but in a different repository.

Reference any relevant documentation, other materials or issues/pull requests that can be used for inspiration.
No response

You don't say what you are trying to do.
Are you writing a plugin or something else?
This plugin is generally for plugins to consume.
There is a step you might be able to use but it's undocumented (at least in the README) and I haven't used it before

Thank you for writing!
I want to create a job in which I will connect to Postgres and execute SQL queries.
As I pointed out earlier, I managed to successfully
configure and connect to my database in the Jenkins settings, but it is unclear how I can access it from the job.

Can I give you a small example?

You can give one.
I don't have one / I've never used this functionality.

Ok, I get it. Thank you @timja.
Have a nice day!

authors: Gakhramanzode timja

repo: jenkinsci/database-plugin


text:
Fixed Jenkins UID and GID to be consistent with the Jenkins Docker image

The Jenkins UID and GID has to be same as the Jenkins Docker image otherwise Docker-in-Docker can not be used, by mounting /var/run/docker.sock.
Jenkins Docker image settings: https://github.com/jenkinsci/docker/blob/master/Dockerfile#L7
Resolves #32

Should it be fixed too in other branches?
BTW, I'm starting to think all this should be refactored into a single branch so PRs can be done to address all flavors together. The very same issue just surfaced on #39 too.

yes, we should remove the branches, they are legacy from the Docker official images times

Hi guys, is this PR going to be merged?

@robvadai I don't think so.  Sorry I was unclear in my last comment: I think we should keep all variants aligned, so please file the equivalent PR against the other branches too so that it can be considered.
Thank you!
PS: started to think recently that actually the right fix would be to make the id configurable when running the container.

The thing is we should be pragmatic, so your suggestions are good but I can't see merging branches and making the UID configurable happening any time soon. Which means the only option to get this image working is to use a fork, like I did.
Have you got an ETA for for merging branches and make the UID configurable in runtime?

(I guess I shouldn't have put that PS, that made things unclear. Was more a loud thinking also for other maintainers or anyone interested to contribute.)
For the context in this very PR, I'm saying I think there should two others so that it's mergeable, so that we keep all agent's images UIDs consistent.
You filed the PR against master, there should be one too against the alpine and the jdk11 branches.

I hope it's clearer.

OK no worries.
Alpine branch: https://github.com/jenkinsci/docker-slave/pull/42
JDK11 branch: https://github.com/jenkinsci/docker-slave/pull/43

Usually porting of the PR is being done by the maintainers. But thanks for the PRs

@oleg-nenashev thank you for merging!
And a Merry Christmas in advance 🎄

authors: batmat carlossg oleg-nenashev robvadai

repo: jenkinsci/docker-slave