text:
Can I use the [Config] inside another class than a function

Hello,
I try to inject a settings inside a dependency but it doesn't work:
public FunctionConfiguration([Config("myConnectionString")] string myConnectionString)
But when I try on my function, it works:
public static void Run([EventHubTrigger(...)] string myEventHubMessage,
            [Config("myConnectionString")] string myConnectionString,
            TraceWriter log)

Have you an idea ?
Thank you !

Hi,
Unfortunately that does not work currently - I'd also love to be able to declare bindings somewhere in dependency tree.
When you use [Config] in function declaration, corresponding parameter value is resolved by Azure WebJobs at runtime. Using it in constructor does not do anything unless you have a DI manager that respects the binding. I already have another binding that supports DI, I could probably figure out how to combine the two.

I was inspired by this article and I decided to solve this by injecting IConfiguration instance. See this sample for example. Essentially the recommendation is to use a provider class that is responsible for actually reading values from Application Settings via IConfiguration. So for this problem I'd recommend using dependency injection binding instead of configuration binding.

Thank you !

authors: JulienCroain daulet


text:
Ability to describe schedules using a more standard syntax, on boards that support std lib.

We should look into being able to use something like the std library to describe time frames on boards that support std::chrono. This may not include all 8-bit boards.
For example, if submitting a long-running task as described in #8  for say, 1 day's time, it would be better to use some kind of chronology function such as days(1) rather than saying 3600 * 24 seconds.
This needs a bit of refinement before any work is done.

I’ve created a few helper functions that make it easier to define delays for events. I think for now the syntax is fairly clear and doesn’t feel overly verbose.

source: gharchive/issue

repo: davetcc/TaskManagerIO

license_type: permissive

license_source: github-api


text:
Toast notifications could use improved contrast

The toast notifications utilize '--toastify-text-color-light' as the foreground color. For the footer, in particular, the combination of --toastify-text-color-light (#757575) as a foreground on a background of #E5E5E5 results in lower than ideal contrast that can make the message hard to read. I'm not sure what toastify color variables are available to you so I don't have a drop in replacement. Replacing --toastify-text-color-light with pretty much anything darker would be enough.
The problematic CSS is included in src/content/notify/Toast.css under #rango-toast .Toastify__toast-body footer code { }

It looks like --toastify-text-color-light is defined in Toastify's _variables.scss config. You could override it locally, or perhaps use --toastify-color-dark: #121212;

Okay, I'll fix it

#371 Fixes this :)

repo: david-tejada/rango

license: MIT


text:
Documentation how to setup cron with Magento 2

As the latest Warden release includes the crontab package with crond running in the background, it would be useful to have a document (with examples) on how to use this feature (for ex. in Magento 2).

PRs are welcome if there is really a need for this, although I fail to see the need. Crontab works as crontab does: you can either edit it by running crontab -e per the usual, or use the bin/magento CLI tool per dev docs to install the crontab offered by the application:
$ warden shell
www-data@exampleproject-php-fpm:/var/www/html$ bin/magento cron:install
Crontab has been generated and saved
www-data@exampleproject-php-fpm:/var/www/html$ crontab -l

#~ MAGENTO START 69dd2b02e1f3a65918182048ea4e29979a849d8942e8f53ed20a4bf10e529b36
* * * * * /usr/bin/php /var/www/html/bin/magento cron:run 2>&1 | grep -v "Ran jobs by schedule" >> /var/www/html/var/log/magento.cron.log
#~ MAGENTO END 69dd2b02e1f3a65918182048ea4e29979a849d8942e8f53ed20a4bf10e529b36

repo: davidalger/warden


text:
Big problem on RUN action

When I click on RUN button the console prints this error

When I click on RUN button the console prints this error

Can you provide some info.
Operating system, Web browser, if you are using some vpn etc.
This happen at the start or after some time?

i think it was a block, because noi it works. This is caused because Instragram allowes only 200/250 unfollow action / day. I think you should improve the script in this way:
200 unfollow action / day with random pause during the day, in this way you prevent 2 type of Instagram blocks, the 200/250 limit block and the block caused by a repetitive action with same pauses as a bot.

i think it was a block, because noi it works. This is caused because Instragram allowes only 200/250 unfollow action / day. I think you should improve the script in this way: 200 unfollow action / day with random pause during the day, in this way you prevent 2 type of Instagram blocks, the 200/250 limit block and the block caused by a repetitive action with same pauses as a bot.

Mmm thats interesting, never tried with that many unfollows.
Thanks for this info, we should make a 200 unfollow limit per day. So this issue will remain open until this is fixed

Cuando hago clic en el botón EJECUTAR, la consola imprime este error

i think it was a block, because noi it works. This is caused because Instragram allowes only 200/250 unfollow action / day. I think you should improve the script in this way: 200 unfollow action / day with random pause during the day, in this way you prevent 2 type of Instagram blocks, the 200/250 limit block and the block caused by a repetitive action with same pauses as a bot.

Mmm thats interesting, never tried with that many unfollows.
Thanks for this info, we should make a 200 unfollow limit per day. So this issue will remain open until this is fixed

Hey guys, do you have any idea how long this lockdown lasts? since I give it a "RUN" but I get the same error in the console

Cuando hago clic en el botón EJECUTAR, la consola imprime este error

i think it was a block, because noi it works. This is caused because Instragram allowes only 200/250 unfollow action / day. I think you should improve the script in this way: 200 unfollow action / day with random pause during the day, in this way you prevent 2 type of Instagram blocks, the 200/250 limit block and the block caused by a repetitive action with same pauses as a bot.

Mmm thats interesting, never tried with that many unfollows.

Thanks for this info, we should make a 200 unfollow limit per day. So this issue will remain open until this is fixed

Hey guys, do you have any idea how long this lockdown lasts? since I give it a "RUN" but I get the same error in the console

How many people did you unfollow? And when was the last time when you used the script?

Cuando hago clic en el botón EJECUTAR, la consola imprime este error

i think it was a block, because noi it works. This is caused because Instragram allowes only 200/250 unfollow action / day. I think you should improve the script in this way: 200 unfollow action / day with random pause during the day, in this way you prevent 2 type of Instagram blocks, the 200/250 limit block and the block caused by a repetitive action with same pauses as a bot.

Mmm thats interesting, never tried with that many unfollows.

Thanks for this info, we should make a 200 unfollow limit per day. So this issue will remain open until this is fixed

Hey guys, do you have any idea how long this lockdown lasts? since I give it a "RUN" but I get the same error in the console

How many people did you unfollow? And when was the last time when you used the script?

In the early hours of this morning I unfollowed about 200 but with yesterday's 100, it should be 300. I had no idea there was a limit as I thought the 5 minute rest bot would do the trick. Do you have any idea?

Is anyone still facing such issues?

Its probably still happening, its not handled in the code.. Its seems to be a 300 unfollowers per day max limit.

Is there a way to do a cooldown to unfollow or something like that so I don't get banned?


text:
[Vanilia Javascript] How can i show dots and auto play slides?

Hi author. First of all, this is my first time using embla-carousel . I'm just curious can i setup autoplay function and showing dots of multiple slides by using only vanilia javascript?. The codesandbox is for ReactJS iirc. How about javascript vanilia only? ( non reactJS or none npm?)

Hi @buinguyenhoangtho,
You’ll have to combine the code from these two CodeSandboxes yourself:

Autoplay
Dots & Arrows

Just click on the VanillaJs link next to the example carousel.
Best,
David

Hi @davidcetinkaya . Thanks for your quick reponese. But my site is not using any npm/node package . . It completely static with HTML + Javascript Are there another way?

Hi again @buinguyenhoangtho,
In that case you can use a CDN as described in the docs.
Best,
David

Yes i'm using CDN but it not support autoplay or dots. i guess

Hi @buinguyenhoangtho,
The arrow/dots and autoplay functions are simply JavaScript functions and has nothing to do with NPM or CDN. You can simply copy and paste these functions into any environment that runs JavaScript, whether you have a NPM or CDN setup, or any other setup for that matter.
Judging from you response, you might be new to JavaScript, and that's totally fine. We've all been there at some point. But it's very important to keep the Embla Carousel issues, discussions and other Embla forums relevant to questions regarding Embla. I have very limited time and I can't create examples that cover every single use case out there. What you want to achieve is not an issue with Embla.
My recommendation is that you join the JavaScript group on Reddit and ask for help there. My experience is that people are quite helpful there and I'm sure that you'll get some help with what you want to achieve.
Best of luck!
David

authors: buinguyenhoangtho davidcetinkaya

repo: davidcetinkaya/embla-carousel


text:
NuGet installable features/commands.

Something like this would be nice:
Install-Package JabbR.Server
Install-Package JabbR.Command.Warn
Install-Package JabbR.Command.Ban
Install-Package JabbR.Feature.BeepOnMention
Install-Package JabbR.Filter.NoCss
Install-Package JabbR.Filter.NoMarquee
Install-Package JabbR.Theme.Green
It would be nice to see some of the requested features be opt-in rather than building a massive command set.  Plus, with extensibility points, we can build out the features we need.

Come up with a set of things you want to extend and we can get working on this.

I think a good starting point would be to bring the sprocket feature (ISprocket/RegexSprocket) in from Jabbot and give us the ability to plug command processors in at the server level for commands that start with /.  For instance, at the server you could extend ISprocket an provide an abstract class for actions that affect a user.
For instance, imagine a JabbR.CorporalPunishment package with WarnUserSprocket, KickUserSprocket, and BanUserSprocket functionality.   The first class interprets '/warn scottt732' and sends a message to the chat room either as the invoker of the command or as the server warning the user to be nice.  If you wanted to get crazy with it, you could have a stateful provider that keeps track of #warns/kicks and automatically kicks on the Xth warning, bans on the Yth kick, etc.

repo: davidfowl/JabbR


text:
Not working on an iframe with sandbox allow-scripts

Hello,
First of all thank you for this project.
I got it working fine, but when I add a sandbox="allow-scripts" attribute to the iframe it does not work. Not sure if this is a bug or a missing feature or an intended design decision.
Besides working without the sandbox, I can also get it to work with sandbox="allow-scripts allow-same-origin". So it seems the sandbox is breaking the functionality.
My use case is hosting user submitted code in an iframe with sandbox="allow-scripts".
Thanks and let me know if you have a PayPal address to donate.

Hi,
I think that is a feature of the browser that we can not code around, the sandbox restricts access to the communication between the iFrame and the parent page. As you noted you have to add allow-same-origin to reenable this communication channel.
PayPal: dave@bradshaw.net
Dave.

Thanks. Just left you a donation. I would recommend you put your PayPal link in your resizer website, you deserve some monetary appreciation.

It would be nice if this were featured prominently in the README. The workaround is to have the iframe content come from a different server. For me that means adding a custom domain alias to heroku. Thank goodness for Let's Encrypt.

Please feel free the raise a PR adding this to the troubleshooting section

It may be possible to get around this via https://javascript.info/cross-window-communication#cross-window-messaging

@dharmaturtle postMessage is what iframe-resizer uses internally to talk to the iFrame. The problem is if you put the iframe into sandbox mode it turns off all communication with the parent page, unless you add the allow-same-origin option.

Ahh, I see. I think the solution (for those of us determined to use sandbox) is to host the iframe content on another domain.

Note, however, that you need to be very careful when dealing with framed content that comes from the same origin as the parent. If a page on https://example.com/ frames another page on the same origin with a sandbox that includes both the allow-same-origin and allow-scripts flags, then the framed page can reach up into the parent, and remove the sandbox attribute entirely.
https://www.html5rocks.com/en/tutorials/security/sandboxed-iframes/

authors: benatkin davidjbradshaw dharmaturtle psmithson

repo: davidjbradshaw/iframe-resizer

license: mit

license_source: bigquery


text:
Problem with React Native and react-dom

When I try to use react-redux-form in my React Native application I get the following error:
EventPluginRegistry: Cannot inject event plugin ordering more than once. You are likely trying to load more than one copy of React.
This is the same issue as this one.
This problem makes react-redux-form unusable with React Native.
I have to admit that I am relatively new to developing with React and React Native, so maybe I am missing something simple?
If you need some more information just let me know what you need.

@janhenkgerritsen I found the issue, was able to replicate it in a React Native test project, and went ahead and fixed it. Thanks for the report!

authors: davidkpiano janhenkgerritsen

repo: davidkpiano/react-redux-form


text:
Transitioning to an ID from within a deeply nested parallel machine leads to an incorrect result.

Bug or feature request?
Bug
Description:
I get an unexpected result when I try to transition to an ID from within a nested parallel machine.
(Bug) Expected result:
X

(Bug) Actual result:
{ X: {}, Y: { A: 'D', B: 'H' } }

Link to reproduction or proof-of-concept:
import { assert } from 'chai';
import { Machine } from '../../src/index';
import { testMultiTransition } from '../utils';

describe('Jump to ID', () => {
  const machine = Machine({
    initial: 'X',
    states: {
      X: {
        id: 'X',
        on: {
          1: 'Y',
          2: 'Y.A.C', // 6.18
          // 3: { Y: { A: 'C', B: 'F' } } // 6.19
          4: 'Y.A.$history'
        }
      },
      Y: {
        parallel: true,
        states: {
          A: {
            initial: 'D',
            states: {
              C: {
                on: {
                  finish: '#X'
                }
              },
              D: {},
              E: {}
            }
          },
          B: {
            initial: 'G',
            states: { F: {}, G: {}, H: {} }
          }
        },
        on: {
          kill: '#X'
        }
      }
    }
  });

  const expected = {
    'Y.B.G': {
      kill: 'X'
    },
    '{"Y":{"A":"C","B":"H"}}': {
      finish: 'X'
    }
  };

  Object.keys(expected).forEach(fromState => {
    Object.keys(expected[fromState]).forEach(eventTypes => {
      const toState = expected[fromState][eventTypes];

      it(`should go from ${fromState} to ${JSON.stringify(
        toState
      )} on ${eventTypes}`, () => {
        const resultState = testMultiTransition(machine, fromState, eventTypes);

        assert.deepEqual(resultState.value, toState);
      });
    });
  });
});

I have some time to take a look at this, but I'm not sure how much help I'll be.  In transitionStateValue there is a check for if (this.parallel) { ... }.  What if we're moving out of a parallel StateNode.  Should it be checking the target StateNode's parallel?  I'm still trying to learn the code.

repo: davidkpiano/xstate


text:
This is frustrating

I have a VPS, with 7 IPs which I "proxified" them, (I know I said that thousand times), and I get like only 3 bots that I have to split or trick them to eat them?
Tell me something, does those IPs count as one which is the main VPS ip?
I don't get it.
Another thing, in the lower right corner, the coordinates are working to the opposite way.
I mean, when I move my mouse up, the bot goes down and so.

I need the answer to this question too. I just want to know how raga.pw and agarbots.net are able to get it working ? From where do all this (sometimes 400+) bots come from? Are they using proxies?

Exactly!
I Tried to buy 200 ips from my host company, they told this:

ARIN is the organization that presides over all IP address provisions in North America. Contrary to popular belief no one provider has the ability to provide you more IP's than any other. With that in mind we have no reason to deny you as many IP's as you would like so long as you do not violate ARIN's policies (most relevant being section 4.2).
How to provide Justification
Send an email to us detailing the following:
Service(s) with which these IPs will be used (please be detailed).
Number of addresses needed immediately.
How many addresses you anticipate needing within one year.

And get that @picusc , the cost of 256 ip per month is $190 !!!
Could those be run on a VPS? nooo way, they need a very expensive dedicated server to run, maybe more that one server.
Some proxy providers give you like 1000 proxy per day, I tried one of these companies , and I get only like 5 bots.

Hmm.. I am not a very technical person. But I think that finding proxies is the not the main issue. The main issue is finding your cell in the minimap. Agario updated yesterday again and now even raga is not working. I think what keeps happening is that agario makes is harder and harder to find the target cell and therefore the bot makers have to work harder and harder too. I say that proxies are not the main issue becaue I am fairly certain that the script is able to connect to the server but it is unable to find the cell.

Well, scrambling cells is a global problem, but no security system is complete as a known fact. people will find a way eventually.
I was taking about how many cells you get from proxies, or raga doesn't use proxies?
You said and I qoute :

From where do all this (sometimes 400+) bots come from? Are they using proxies?

Ok. I did some searching.
According to this link, Agario limits 5 bots per ip.
According to this link, Agario limits 3 bots per ip.
According to this link(most recent), Agario limits 1 bots per ip.

OMG, here we go again and again...
People want 1k bots when each server allow 220-250 players.
If you need more than 100 bots to get some decent mass, goto play parchis.

BTW.. @Dohab you're getting 3 bots because you are using 1 IP, not 7.
If you don't setup a proxy server, forget it.
Also more IP doesn't mean more resources, add an IP to a VPS doesn't use any resource.

@picusc I don't think that major bot sites are using proxies.
There must be an agreement between them and agar.io, it's business after all.
Because they can't depend on public proxies for there business, right? and what about fixing the scrambling after 24 hours, while our geniuses here scratching there heads for weeks? I believe they have the solution already, but they delay it 24 hours or so, so we think that they are good.
Anyways, using (NOPROXY) works great on my own server. If I can port  that to a FFA server, that would be amazing.
and @WJKH we will keep opening issues like this until we get a good answers. I've read almost all your replies in this repo, most of them are not productive. Everything you said is disappointing, you just keep us down, you tell us to do nothing, to think of nothing, to accept what we got, how are we gonna success like that, how are we stop thinking? and ... parchis? man ...
Speaking of productivity, you said:

If you don't setup a proxy server, forget it.

I've setup a proxy server using squid, and i've followed a tutorial to add all 7 IPs I've got, how to use them now?

Also more IP doesn't mean more resources, add an IP to a VPS doesn't use any resource.

another mind killing reply. no solution, no reasons, nothing .. just a plain "forget about it" phrase.

I don't think Agario and Bots sites have an alliance.
This is because when the last major update happened(10-11 days ago), it took Raga less than 48 hours to get their bots working but Agarbots.net took almost an entire week.
But this time agarbots.net has already fixed their bots but raga hasn't been able to do it. Also, there are other sites too like agarbots.ovh and bagar.io who are working at their own pace.

Well at agarbot.ovh, I was in holidays when they published the first patch
so I couldn't react that fast. I can assure you, we are not related at all
with agar.io.
Le dim. 28 févr. 2016 à 07:32, picusc notifications@github.com a écrit :

I don't think Agario and Bots sites have an alliance.
This is because when the last major update happened(10-11 days ago), it
took Raga less than 48 hours to get their bots working but Agarbots.net
took almost an entire week.
But this time agarbots.net has already fixed their bots but raga hasn't
been able to do it. Also, there are other sites too like agarbots.ovh and
bagar.io who are working at their own pace.
—
Reply to this email directly or view it on GitHub
https://github.com/davidmann4/ogar-feeder-bot/issues/261#issuecomment-189796803
.

@Dohab everyone will keep laughing when read 1k proxy / 3k bots.
It's not about how productive are my replies, you make the wrong questions then you get wrong answer.

I've setup a proxy server using squid, and i've followed a tutorial to add all 7 IPs I've got, how to use them now?

Do you checked your proxy in a common browser?
Is your proxy working?

another dead end reply. no solution, no reasons, nothing .. just a plain "forget about it" phrase.

Did you try to add 256 IP to a VPS to say it's not possible?
Now you can guess why you get wrong answer.

@WJKH I didn't ask for magic, raga, agarbot and others have done it. I don't have any problem thinking that they may have contacted an alien hacker to help them, except that there is no proof of alien existence, rather than using 1k proxy. Poetry saying: "Once you eliminate the impossible, whatever remains, no matter how improbable, must be the truth.", and "If you don't make mistakes, you don't make anything".
Now I can focus on something other than proxies, it's the famous Edward Thorndike way, learn by trying and failing.
If you know something, why don't you share it? tell us what's wrong and whats right. I dare anyone ask the same question again if they get a detailed answers. no body laugh on no body.

@Dohab
First, you understand me wrong. I was talking about running 1k bots for personal use (a game with 1k bots inside to be right), no for commercial use like as the sites you mention above.
Second, those sites were developed by programmers or the owner hired a programmer to develop it. You don't need an alien, just hire someone and you could get the same :)
Third, it's not a forum where you come for help or something like it. You can open an issue to report a problem, request a feature or something relevant to the project and I believe that if you don't know how configure your proxy server isn't relevant for the project.
Now if you still want to continue and try to be helped, you need tell us the problem because "I can't get more than 3 bots" does not say much and you speak too much but didn't reply my last questions.

@WJKH lol, I do speak so much.
Ok, you are right, I'm sorry, this is not a forum, my mistake, but there is no other place to ask.
Anyway, the answer to your questions, when I telnet my ips I get something like:
HTTP/1.0 400 Bad Request Server: squid/3.1.23 Mime-Version: 1.0 Date: Tue, 01 Mar 2016 05:45:33 GMT Content-Type: text/html Content-Length: 3661 X-Squid-Error: ERR_INVALID_REQ 0 Vary: Accept-Language Content-Language: en X-Cache: MISS from server.xxx.net X-Cache-Lookup: NONE from server.xxx.net:3128 Via: 1.0 server.xxx.net (squid/3.1.23) Connection: close
and what seems to be a html code printed beneath that.
When I enter my IP:PORT in chrome, I get an error page from my server, notice the last line;
`The requested URL could not be retrieved

The following error was encountered while trying to retrieve the URL: /

Invalid URL

Some aspect of the requested URL is incorrect.

Some possible problems are:

Missing or incorrect access protocol (should be http:// or similar)

Missing hostname

Illegal double-escape in the URL-Path

Illegal character in hostname; underscores are not allowed.

Your cache administrator is root.

**Generated Tue, 01 Mar 2016 05:49:04 GMT by server.xxx.net (squid/3.1.23)**`

, And for adding 256 ips to my VPS, no I didn't try, but you told me once that adding ips to a vps doesn't make them act as proxies and my VPS count as one ip.
I'm sorry again, and if you suggest a place where people are talking about this repo in depth, that would be great.

You know what? I think I'm gonna forget the hole thing and play fair, it's more fun without cheating.
Thanks all.

authors: DeepSnowNeeL Dohab WJKH picusc


text:
momentary grab & drag randomly "latches" and won't let go until i click again

i have it set to show the little 4-way arrow when i left-click to grab; i can't seem to determine a pattern, it just half the time won't "let go" unless i click again.

will this be fixed?
it happens for me on both linux and windows
makes the extension pretty much unusable

here's the debug:
Uncaught TypeError: Failed to execute 'collapse' on 'Selection': 1 argument required, but only 0 present. onMouseUp
Apparently newer releases of google-chrome requires that the 'collapse' function takes at least one argument.

Thanks for the info. That will make it easier to fix. I'll try to find some time to look into this, but in the meantime, pull requests are most welcome!

Fix finally released in v2.8.
Ping @walterw2, @deathtrip.

authors: davidparsson deathtrip walterw2

repo: davidparsson/ScrollbarAnywhere


text:
How do I insert a link?

 or text add

<a link>

I was wondering too. How do I add links?

@QinFeiFei You can provide 'link' in your customtoolbar config, in the src code this is not there. For more configuration options you can look into quill configuration

I was wondering too. How do I add links?

Write it like this:
//google.com

authors: QinFeiFei davidroyer gowdaabhishek1990 xiliubianbian


text:
how to use gpu in 'src/compare.py'?

hello, I want to use gpu for src/compare.py, and I modify the code as follow:
with tf.Graph().as_default(),tf.device('/gpu:0'):
but it shows error:
compare.py              :56  'main'  in facenet.load_model(model_dir, meta_file, ckpt_file)
facenet.py                    :369  'load_model'  in saver.restore(tf.get_default_session(), os.path.join(model_dir_exp, ckpt_file))
/home/xxx/local/anaconda2/lib/python2.7/site-packages/tensorflow/python/training/saver.py:1428  'restore'  in {self.saver_def.filename_tensor_name: save_path})
/home/xxx/local/anaconda2/lib/python2.7/site-packages/tensorflow/python/client/session.py:767  'run'  in run_metadata_ptr)
/home/xxx/local/anaconda2/lib/python2.7/site-packages/tensorflow/python/client/session.py:965  '_run'  in feed_dict_string, options, run_metadata)
/home/xxx/local/anaconda2/lib/python2.7/site-packages/tensorflow/python/client/session.py:1015  '_do_run'  in target_list, options, run_metadata)
/home/xxx/local/anaconda2/lib/python2.7/site-packages/tensorflow/python/client/session.py:1035  '_do_call'  in raise type(e)(node_def, op, message)

how should I use the gpu in this py to compare two face images?
thank you very much!

Hi @IvyGongoogle,
I usually use the CUDA_VISIBLE_DEVICES environment variable. Have you tried that?

@davidsandberg hello, sorry to reply late. Thank you very much!

authors: IvyGongoogle davidsandberg

repo: davidsandberg/facenet


text:
Question about the shape of embddings

About two month ago, I used facenet_train.py to train nn4_small2_v model.if I input one image, the output shape of embddings is (1, 128).But now,I used the new code of  facenet_train.py  to train nn4_small2_v model,if I input one image, the output shape change to (9,128).Is this normal?
my code :
feed_dict = {self.images_placeholder: [oneimage], self.phase_train_placeholder: False}
output=(self.sess.run(self.embeddings, feed_dict=feed_dict))
print(output.shape)

I'm not sure what is going on there. I ran the test case test_training_nn4_small2_v1 in test/train_test and put a break point on line 200 in facenet_train.py.
For the variable batch i have the dimensions

batch.shape
(6, 96, 96, 3)
and for the emeddings generated by that line i get the dimensions
sess.run(embeddings, feed_dict=feed_dict).shape
(6, 128)
So the batch size is 6 in both the input and the embeddings which is as expected.

@davidsandberg
I have gived up finding the answer. My datasets had some error pictures ,so I used try/exception to keep training  going on.I don't know whether it can cause the problem or not.  Now, my first job is to remove error images.Anyway, Thanks a lot.

authors: VictoryDong davidsandberg


text:
Unable to load shape predictor model using dlib 19.5

I get
terminate called after throwing an instance of 'dlib::serialization_error'
  what():  Unexpected version found while deserializing dlib::shape_predictor.

when trying to use shape predictor model using dlib 19.5

Did you unzip the file?

How to unzip the file.

authors: davisking rashmi-learning yxchng

repo: davisking/dlib


text:
[python] dnn face recognition with cnn face detector

Hi Davis, appreciate your every piece of work.
I have been looking for your face recognition examples for a while, and used frontal face detector (hog+svm) successfully in my dnn face recognition (your pretrained resnet v1 model) application. Now, I am planning to employ your new 5-point landmark detection instead of older 68-point landmark detector, together with cnn face detector. What should be a proper step to  take, to employ a combination of your cnn face detector + 5-point landmark detector + dnn face recognizer?
Afaik, the 5 point landmark detector and dnn face recognizer (pretrained resnet v1 model) were trained with hog+svm face detector outputs, so that you are not using cnn face detector in your recent face rec examples. So, do I have to train 5-point landmark detector and dnn face recognizer from scratch, with cnn face detector outputs to get reasonable results when using cnn as face detector?

You don't have to do anything.  The new 5-point model is a drop in replacement for the old one.  That's the whole point :)

So, I am just replacing the frontal face detector with cnn face detector and thats it? dont have to train a new resnet model with cnn face detector outputs?

authors: davisking kizilkanat


text:
🛑 Line of Succession is down

In cae3e1e, Line of Succession (https://lineofsuccession.co.uk/) was down:

HTTP code: 502
Response time: 392 ms

Resolved: Line of Succession is back up in 69f90a1 after 9 minutes.

repo: davorg/uptime


text:
修改cls文件以适应新版论文格式规范

主要改动:

修改样例中的封面信息
修改封面字体样式
添加box实现封面对齐效果
去除一些不需要的标点
标题加粗并修改字号
添加box实现封面对齐效果
调整目录缩进和字体
删除一些本科论文不需要的内容
参考文献样式改用宏包gbt7714实现
修改参考文献字体大小
添加标签以方便正文部分字数统计

支持一下！

抱歉学弟，之前比较忙，没时间处理你的PR，实在不好意思。我近期会看一下，没问题就merge了，感谢你的贡献！

抱歉学弟，之前比较忙，没时间处理你的PR，实在不好意思。我近期会看一下，没问题就merge了，感谢你的贡献！

学长，感觉英文封面还是学长的版本看着舒服点，这位老哥的更改虽然说也可以，但是看着还是怪怪的。

抱歉学弟，之前比较忙，没时间处理你的PR，实在不好意思。我近期会看一下，没问题就merge了，感谢你的贡献！

学长，感觉英文封面还是学长的版本看着舒服点，这位老哥的更改虽然说也可以，但是看着还是怪怪的。

对齐用的参数是根据我自己的毕设调整的，具体参数需要针对自己的情况微调

按最新的论文规范来说，英文封面这些信息应该是要求对齐的。我毕业那年没这个要求，所以我当时就没对齐。不过这些都可以自己调整，问题不大。

感觉gbt7714是不是有点没必要呢，我看起来好像跟之前的差别不大hhh

以前写课程论文用顺手的，就引进来了，宏包有问题也好找人甩锅不是😂

感觉gbt7714是不是有点没必要呢，我看起来好像跟之前的差别不大hhh

根据研究生学长的反馈调整了三级标题的样式，这条也已经顺手改回去了

source: gharchive/pull-request

authors: Doit-Cai JiaFeiMiao-K-Cat davyxx3


text:
无法代理游戏

如果我选择代理某款游戏,比如Pokemon Go,不能正常使用,卡在登录这一步上了,我选的是谷歌账号登录
当我用官方的shadowsockets全局代理的时候可以使用,
我想知道除了要代理想玩的游戏,是不是还要代理其他的一些app

这个找到原因了,有些游戏登录需要谷歌的服务,需要把谷歌服务也代理了


text:
Update README.md

hello github open a Pull Request

adw sd aw

repo: daxingshen/HelloGit


text:
Windows Daytona workspace

Describe the solution you'd like
We should explore the possibility of running Windows images with Daytona to allow users to create workspaces in a Windows environment. This feature might enable additional native development workflows that can not be ran on Linux.
We should look into https://github.com/dockur/windows as possible images to use.
Additional context
We should first discuss the approach here and outline the necessary changes, if any, needed to make this happen.

@Tpuljak I want to know that how the image that we are currently using Is configured. Is there a seperate repository or docker hub link ?

@divanshu-go the current default image that daytona ships with (daytonaio/workspace-project) is built with the devcontainer definition found here https://github.com/daytonaio/daytona/tree/main/hack/project_image.

https://github.com/daytonaio/daytona/tree/main/hack
also what the use of builder_image/.devcontainer and project_image
they both looks similar.

@Tpuljak what if we consider using https://mcr.microsoft.com/en-us/catalog?search=window&type=partial rather than  https://github.com/dockur/windows

@divanshu-go you're free to suggest any approach that will accomplish the goal of creating a windows-based workspace.

@Tpuljak
we have two options here
1. using one of the official images https://hub.docker.com/r/microsoft/windows
Cons:

these containers can only be built on windows-kernel ( windows home edition) not supported.

they only works on https://learn.microsoft.com/en-us/virtualization/windowscontainers/deploy-containers/system-requirements#operating-system-requirements

limitations https://learn.microsoft.com/en-us/virtualization/windowscontainers/quick-start/lift-shift-to-containers#what-cant-be-moved-to-windows-containers

Pros:

they are much faster than https://github.com/dockur/windows because these are using the underlying windows hardware while  https://github.com/dockur/windows use kvm-qemu virtualization which is slower
use less resources
more efficient

2. using https://github.com/dockur/windows
Cons:

currently KVM QEMU virtualization only work on Window11 (docker engine) and Linux(docker engine),  using Docker desktop is currently compatible https://github.com/dockur/windows?tab=readme-ov-file#compatibility-

It just makes a VirtualBox of Windows in a container using standalone scripts which utilises KVM-qemu underneath

use a lot of resources

will be very hard to use as windows-based workspace.

Pros:

allow full control to users

@quest-bot embark

using one of the official images https://hub.docker.com/r/microsoft/windows

@divanshu-go, I don't believe that this is a viable options. From what I can see, windows containers aren't meant for this use case but rather only for deployment on Windows Servers.

using https://github.com/dockur/windows

Even though the support is currently lacking for MacOS, I suggest you try this out.
You can create an example repository with a devcontainer configuration that has this (https://github.com/dockur/windows?tab=readme-ov-file#usage-) docker compose set. Then try to run daytona create THAT_REPO and let us know how it goes.
Looking at the compose, Daytona might not even have to do anything special here if it can be fully configured with the devcontainer standard.

@Tpuljak If we go with option 1 of using microsoft images and if we want to test them out on linux or macs , we use setups mentioned here accordingly , https://github.com/StefanScherer/windows-docker-machine?tab=readme-ov-file

@Tpuljak If we go with option 1 of using microsoft images and if we want to test them out on linux or macs , we use setups mentioned here accordingly , https://github.com/StefanScherer/windows-docker-machine?tab=readme-ov-file
using this will enable support on all three OS - linux , mac , windows (might work on home edition if we use WSL)

@divanshu-go okay. Please try out both setups yourself and let use know how it goes and what might be the better option in the context of Daytona.

@Tpuljak

which image should we use.
progress till now , https://github.com/divanshu-go/windows-dev-container.git

which image should we use.

@divanshu-go use anything you want. Ideally, all of them will work normally.

I meant to say that should we show a option to the user regarding this or what to do ?

I meant to say that should we show a option to the user regarding this or whatever we choose ?

If this can be solved through a devcontainer, there is no need to implement anything in Daytona.

@quest-bot embark

@quest-bot embark

@divanshu-go based on the discussion we had in slack, you managed to get a windows-based container running and the next step is to figure out how to get agent ssh server running on windows so we can have it running and connected to the daytona server.

@divanshu-go no need for this. If you send me a message on Slack, expect a response there.
If you want to discuss the approach here, which we prefer, you will get a response here.

@quest-bot embark

@quest-bot embark

@quest-bot embark

@Tpuljak
Proposal: Implement Windows Image Support for Daytona
Problem Statement:
Currently, Daytona lacks native support for Windows development environments, limiting its usability for developers working with Windows-specific technologies or workflows. This proposal aims to expand Daytona's capabilities by introducing comprehensive Windows image support.
Proposed Solution:
We will implement Windows image support by leveraging the https://github.com/dockur/windows project as a potential base for Windows images. The implementation will involve a multi-faceted approach to integrating Windows container support into Daytona's existing infrastructure.
Detailed Approach:

Image Runtime Integration

Modify pkg/runtime/runtime.go to:

Add OS type detection
Create specialized runtime configuration for Windows images
Implement validation for Windows-specific container requirements

Image Builder Enhancement

Update pkg/build/builder.go to:

Recognize and process Windows images
Handle Windows-specific build and configuration requirements
Create fallback mechanisms for Windows image provisioning

Workspace Configuration

Extend pkg/config/workspace.go to:

Support Windows-specific workspace parameters
Add validation for Windows image selection
Create new configuration options for Windows workspace creation

Key Implementation Strategies:

Utilize dockur/windows images as a primary reference implementation
Develop flexible detection and configuration mechanisms
Ensure minimal impact on existing Linux-based workflows
Provide comprehensive error handling and validation

Technical Challenges to Address:

Performance optimization for Windows containers
Networking and volume mounting complexities
Licensing and security considerations
Compatibility with different development scenarios

Proposed Research and Validation:

Conduct a proof of concept (PoC) with minimal Windows development scenarios
Investigate Windows Subsystem for Linux (WSL) integration options
Explore alternative Windows containerization technologies

Potential Benefits:

Expanded platform support
Increased flexibility for developers
Support for Windows-native development workflows
Broader adoption of Daytona across different development environments

Implementation Roadmap:

Initial research and architectural design
Prototype implementation
Comprehensive testing
Documentation updates
Community and maintainer feedback integration

Additional Context:
This proposal directly addresses the need to explore running Windows images with Daytona, enabling users to create workspaces in Windows environments and supporting development workflows that cannot be easily run on Linux.
Requested Actions:

Review the proposed approach
Provide guidance on specific implementation details
Discuss any additional considerations or constraints

I am prepared to:

Conduct in-depth research
Develop a detailed implementation plan
Create proof of concept code
Collaborate closely with maintainers throughout the process

Alignment with Project Goals:
This enhancement aligns with Daytona's mission of providing flexible, powerful development environments by expanding platform support and user capabilities.

@Tpuljak please assign me this issue so that I can start working on Implementation part, we can discuss & refine the details in the PR raised by me, if assigned.

@ARYPROGRAMMER  To use Windows 10, and 11 on a VM, the user will need the license key. Please check for Windows terms and conditions for virtualization.

@ARYPROGRAMMER I'm about 99% sure that https://github.com/daytonaio/daytona/issues/1339#issuecomment-2518748621 is AI generated. Most of it doesn't really have anything to do with the issue and is mostly bloat.
If you're serious about working on the issue, you can, without getting assigned.
@Rutik7066 and @unsuman are already working on it.

would work on it

Go for it then. You can record a video of your approach and solution and post it here for discussion.

@quest-bot embark

@Tpuljak here is my approach to the issue . , my devcontainer link , https://github.com/hunnywar/go-web.git
user also view web VNC on port 8080 (without password)

also you can connect to VNC on local port 5900
user can do RDP on port (with password)
it also setup powershell remoting inside the windows VM
after daytona ssh , you can do cd /vagrant && vagrant ssh to open a interactive powershell
it also setups WinRM,  The default HTTP port is 5985. The default HTTPS port is 5986
also openssh is fully configured in windows VM

RDP

Screencast From 2024-12-19 18-16-13.webm
cd /vagrant     and then vagrant ssh

@hunnywar nice work, seems like an interesting approach.
We have @Rutik7066 already assigned to the issue and working on it as we speak. You can connect via Slack and work on this together if you're interested. Both of you would be rewarded, of course.

@Tpuljak can you please share the slack link , I'm not able to find it

repo: daytonaio/daytona


text:
If PhysicalPath was set to Provider root + Name it would work more like a physical provider

Hello again Dazinator. I know this issue has been discussed several times, but id like to bring it up again, cause it keeps bothering me..
I really want to use this framework for testing my code, but if i do it contaminates my code, because it works differently than the physical provider.
In my code i iterate through a bunch of directories and i create an in memory tree to represent the folder structure, and i use the physical path since its the simplest way to get the path of an item.
If i want to test this code using the framework here i have to change my code so that the path is a combination of provider root and the name from the fileInfo.
To me thats quite problematic.. The behavior of the framework should replicate what the actual fileproviders(physical, composite and the last one i dont remember) does.
Do you agree? I see the problem in setting a virtual path in a property called PhysicalPath, but i think thats just because the interface is poorly designed, it should just have been called Path.

My opinion on this is currently follows:
Look at other file providers - like the EmbeddedFileProvider:
https://github.com/aspnet/FileSystem/blob/dev/src/FS.Embedded/EmbeddedResourceFileInfo.cs#L65
They don't set a physical path because there is no physical path - the file is held in memory.
PhysicalPath really only makes sense for the Physical File Provider - you can tell that's the rational behind its name being "PhysicalPath" and the fact that the embedded file provider does not set this.
What does this mean?
If you want to work with this IFIleProvider / IFileInfo abstraction, you accept that "PhysicalPath" breaks the abstraction because its only relevant for some providers and not others - in this case its relevant for PhysicalFileProvider but not EmbeddedFileProvider or in my case the InMemoryFileProvider.
Therefore my advice is not to ever rely on PhysicalPath. If you do you are accepting that you are coupled with PhysicalFileProvider.
One last point, InMemoryFileProvider is meant to be an IFileProvider implementation, not just a PhysicalFileProvider substitute. For example, if your app used a IFileProvider that went to google cloud storage, and you wanted to write some tests, you could substitute it for an InMemoryFileProvider.
Saying all this if you really want to set a PhysicalPath - could you just derive your own IFileInfo that looks like this but takes the PhysicalPath:
https://github.com/dazinator/Dazinator.AspNet.Extensions.FileProviders/blob/master/src/Dazinator.AspNet.Extensions.FileProviders/FileInfo/StringFileInfo.cs#L9
Then use that in place of StringFileInfo etc?

Thats a really good point! I totally see now (:
So its just the dotnet core interfaces being funky ^^
It just seemed so wierd to me that the functionality was so different, but i see now that you are not the outlier but the Physical provider is the one causing things to get all wierd..
Thanks alot for being patient enough to explain in detail, i hope others wondering the same thing will come here and see this (:
Closing. (:

No problem - it was confusing for me at first too. Unfortunately microsoft won't improve this design now so its easy to fall into the trap of becoming coupled to the physical file provider and physical file paths if your are not very careful. I suspect for most applications that is just fine, but the more extensible and well tested ones that actually want to take more advantage of the abstraction, well they then hit this bit of hot water. Anyway, hope it's not caused you too much hassle. Please continue to raise anything that you think might improve things as I will always consider any suggestions.

authors: RPaetau dazinator


text:
add got library error handling

Currently it is impossible to catch errors from got library when using textract.fromUrl method.
E.g. when the url is broken or the server is unavailable. PR passes those errors to the provided callback.

👍

This has been published with textract 2.1. Thanks, and sorry for the delay!

repo: dbashford/textract


text:
Add GitHub Pages site

gh-pages branch

Done

repo: dbazhenov/awesome-pmm

license: Unlicense


text:
Error on invocation: "No module named mssqlcli"

Hello, I am on macOS Catalina 10.15.7, trying to use mssql-cli to query a SQL Server DB, I installed using pip3 install mssql-cli, but for some reason the CLI thinks it should be pointed at Python 2.7:
❯ pip3 install mssql-cli
< ... >
❯ mssql-cli
/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python: No module named mssqlcli

for reference here is the version info of my various relevant commands:
❯ which pip3
/Library/Frameworks/Python.framework/Versions/3.8/bin/pip3
❯ pip3 --version
pip 21.1.3 from /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pip (python 3.8)
❯ which python3
/Library/Frameworks/Python.framework/Versions/3.8/bin/python3
❯ python3 --version
Python 3.8.2
❯ which pip
/Library/Frameworks/Python.framework/Versions/3.8/bin/pip
❯ pip --version
pip 21.1.3 from /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pip (python 3.8)
❯ which python
/usr/bin/python
❯ python --version
Python 2.7.16

Any pointers for un-crossing the wires to point at the correct directory on cli startup would be appreciated.

I am having this exact issue as well.

Open the mssql-cli with vim(/usr/local/bin/mssql-cli), change the last line which python -m mssqlcli.main "$@" to python3 -m mssqlcli.main "$@", it works for me!

authors: ahearn15 emperorente ethan-fox-capsule

repo: dbcli/mssql-cli


text:
Autocomplete functions with blank brackets or without parameters

Now Dbeaver autocomplete functions like this schema.myfunc(int4,int4)(:$1,:$2).
It would be nice if the autocomplete looked like schema.myfunc() or schema.myfunc(int4,int4)

And what DBeaver version do you use?

verified

authors: LonwoLonwo gaginsgagins uslss

repo: dbeaver/dbeaver


text:
Automatic proxy configuration not showing up on the application

System information:

Windows 10 x64
22.1.2
Additional extensions

Connection specification:

Database name and version
com.mysql.cj.jdbc.Driver  8.0.17
No

Describe the problem you're observing:
On the documentation i can see the image below but i cannot find it anywhere on the software...

I can only see the above:

There is no option "Automatic proxy configuration".
Am i doing something wrong ?
Steps to reproduce, if exist:
Include any warning/errors/backtraces from the logs

Hello @dimitrispal
Thanks for noticing.
Automatic proxy configuration is available only in DBeaver PRO versions.
I added this info to our wiki page.

authors: LonwoLonwo dimitrispal


text:
Please add "expand selection" shortcut like VSCODE

Please add "expand selection" shortcut like VSCODE's Shift+Alt+→, or like IDEA's ctrl+w

Thank you for idea

This is second time I'm trying to move to DBeaver (first attempt was a year ago), and it still misses most basic keyboard shortcuts every other IDE offers by default. It is very hard to make a switch from any other tool when a dev has to re-define most of most used shortcuts to match industry standard key combinations.
If DBeaver could switch from its homemade amateurish editor window to something like https://github.com/microsoft/monaco-editor it'd be a massive leap forward for DBeaver.

This is second time I'm trying to move to DBeaver (first attempt was a year ago), and it still misses most basic keyboard shortcuts every other IDE offers by default. It is very hard to make a switch from other tools when a dev has to re-define most of most used shortcuts to match industry standard key combinations. Right now I'm on clickdhouse.cloud, but all I need from them is UI, and it's very pricey as their UI is bundles with subpar cloud DB setup which I don't need, but their quite basic UI is lightyears ahead of DBeaver in terms of convenience simply because they use same editor as everybody else does.
If DBeaver could switch from its homemade amateurish editor window to something like https://github.com/microsoft/monaco-editor it'd be a massive leap forward for DBeaver.

说话都说不清，而且很刻薄。monaco editor哪里比DBeaver的editor(包括sql editor和data editor)更有优势，你倒是举个例子啊？DBeaver的一些表现形式，包括sql editor的代码提示、语法配色，data editor处理外键、链接、图片等等虐爆其他editor。

Monaco editor demo:
https://microsoft.github.io/monaco-editor/playground.html?source=v0.47.0#example-creating-the-editor-hello-world
SQL syntax demo: https://dtstack.github.io/monaco-sql-languages/  (repo: https://github.com/DTStack/monaco-sql-languages)
I mean, it's IDE standard at this point, but I guess since DBeaver is written in Java, unfort there's no way Monaco can be easily integrated with it :(


text:
Is it possible to export sql queries in JSON format in Dbeaver?

I am trying to figure out a way to get Dbeaver and matillion redshift in sync using github. Matillion doesn't accept sql files as input, so I want to convert my dbeaver queries into JSON format which is accepted by matillion.

Sorry for the long answer, Query cannot be exported in JSON format, but query result can (select in query context menu Execute>Export from query).
Please reopen the ticket or create a new one if you have any other questions.


text:
On Kubuntu 20.04 and Windows 10, toolbar icons of DBeaver are too small

System information:

Operating system (distribution) and version
Kubuntu 20.04 and Windows 10
DBeaver version: 7.1.1
Additional extensions: no
Display resoluton:  2560*1400

Connection specification:
no relations.
Describe the problem you're observing:
Toolbar icons of DBeaver are too small, it is hard to eyes to see these small icons.

Steps to reproduce, if exist:
no relations.
Include any warning/errors/backtraces from the logs
no

hi @yetangye ,
thanks for the bug report. It seems that issue is duplicate of #6581 .
Ticket closed as duplicate

authors: uslss yetangye


text:
#16436 Appearance of the edited cell with the date data type

This pull request corrects the display of the cell border.
Before
https://user-images.githubusercontent.com/9607501/174434369-180e8aba-a9c1-4ab1-842c-31cdc6f218f6.mp4
After
https://user-images.githubusercontent.com/9607501/174434370-cbcdab79-5559-4e32-bb96-d29fdedb2919.mp4

verified

authors: troizet uslss


text:
l10n(zh_TW): Update translations of bundle_tw.properties

Add: 添加 -> 新增
Application: 應用程序 -> 應用程式
Apply: 應用 -> 套用
Audit Policy: 審計策略 -> 稽核方針
Byte: 字節 -> 位元組
Cache: 緩存 -> 快取
Catalog: 目錄 -> 型錄
Character: 字符 -> 字元
Charset: 字符集 -> 字元集
Class: 類 -> 類別
Code: 代碼 -> 程式碼
Code Completion: 程式碼完成 -> 程式碼補全
Concatenation: 相加 -> 拼接
Connection Settings: 連接設置 -> 連線設定
Configurators: 配置器 -> 組態器
Configure: 配置 -> 組態
Console: 控制台 -> 主控台
Constant: 常量 -> 常數
Create: 創建 -> 建立
Cut: 剪切 -> 剪下
Custom: 自定義 -> 自訂
Data: 數據 -> 資料
Database: 數據庫 -> 資料庫
Debug: 除錯, 調試 -> 偵錯
Debugger: 調試器 -> 偵錯器
Default: 默認 -> 預設
Delimiter: 分隔符 -> 分隔字元
Device: 設備 -> 裝置
Disabled: 禁用 -> 停用
Disconnect: 斷開連線
Disk: 磁盤 -> 磁碟
Driver: 驅動程序 -> 驅動程式
Document: 文檔 -> 文件
Export: 導出 -> 匯出
Family: 家庭 -> 家族
File: 文件 -> 檔案
File System: 文件系統 -> 檔案系統
Filter (n.): 過濾器 -> 篩選器
Filter (v.): 過濾 -> 篩選
Font: 字體 -> 字型
Formatter: 格式化程序 -> 格式化器
General: 常規, 通用 -> 一般
Generator: 生成器 -> 產生器
Grid Header: 網格標題 -> 網格標頭
Group (n.): 組 -> 群組
Hash: 哈希 -> 雜湊
Header: 表頭 -> 標頭
Import: 導入 -> 匯入
Indent: 縮進 -> 縮排
Info/Information: 信息 -> 資訊
Layout: 佈局 -> 配置
Link: 鏈接 -> 連結
Load: 加載 -> 載入
Login/Logon: 登錄 -> 登入
Memory: 內存 -> 記憶體
Message: 消息 -> 訊息
Navigate: 導航 -> 導覽
Navigation: 導航 -> 導覽
Navigator: 導航器 -> 導覽器
Network: 網絡 -> 網路
Notes: 註釋 -> 備註
Object: 對象,對像 -> 物件
Open: 打開 -> 開啟
Operating System: 操作系統 -> 作業系統
Owner: 所有者 -> 擁有者
Package (n.): 包裝, 包裹, 軟件包, 包 -> 程式包
Paste: 粘貼 -> 貼上
Plain text: 純文本 -> 純文字
Policy: 策略 -> 方針
Preferences: 首選項 -> 偏好設定
Profile: 配置文件 -> 設定檔
Programming Language: 編程語言 -> 程式語言
Project: 項目 -> 專案
Protocol: 協議 -> 協定
Queue: 隊列 -> 佇列
Reconnect: 重新連接 -> 重新連線
Refresh: 刷新 -> 重新整理
Release Notes: 發行說明 -> 發行備註
Remote: 遠程 -> 遠端
Rename: 重命名 -> 重新命名
Reset: 重置 -> 重設
Runstats: 運行狀態 -> 執行狀態
Server: 服務器 -> 伺服器
Secure socket layer: 保護套接字層 -> 安全性插座層
Security Policy: 安全策略 -> 安全方針
Set/Settings: 設置 -> 設定
Schema: 架構 -> 綱要
Software: 軟件 -> 軟體
Source Code: 源代碼 -> 來源碼
String: 字符串 -> 字串
Storage: 存儲 -> 儲存
Tab: 標籤 -> 頁籤
Table: 表 -> 表格
Tablespace: 表空間 -> 表格空間
Template: 模板 -> 樣板
Text: 文本 -> 文字
Timestamp: 時間戳 -> 時間戳記
Transaction: 事務 -> 交易
User: 用戶 -> 使用者
User Name: 用戶名 -> 使用者名稱
User Interface: 用戶界面 -> 使用者介面
Variable: 變量 -> 變數
View (v.): 查看 -> 檢視
View (n.): 視圖 -> 檢視
Viewer: 查看器 -> 檢視器
&Database:  -> 資料庫(&D)
&Generate SQL: &G生成SQL -> 產生SQL(&G)
&Filter: &F過濾器 -> 篩選器(&F)
&SQL Editor: &SQL編輯器 -> SQL編輯器(&S)
X 進制 -> X 進位

@E1izabeth - Excuse me. Should I add my information at the top of each bundle_tw.properties file? Just like the previous translators did?

It's not necessary, only if you want

@E1izabeth  - BTW, I suggest that DBeaver rename the following two bundle_xxx.properties into:

bundle_zh.properties -> bundle_zh_CN.properties
bundle_tw.properties -> bundle_zh_TW.properites (at least modify these files)

Otherwise, the Resource Bundle of IntelliJ will translate bundle_tw.properties into 特威文 instead of 中文/台灣.

Thank you for suggestion

There are a lot of changes, because of automatic conversion ascii code symbols to upper case. If it can be turned off, it's better to turn it off it in future, but I'm not sure it's possible.

Excuse me. What do you mean "automatic conversion ascii code symbols to upper case"?

If you look at the files, you'll see that some changes were unintentional.
For example, here nothing was changed at the translation, just a couple of letters in ascii code were upper cased.

I'm not sure if you can control it while using translation tools.

Oh~, I see. I'm not sure whether it is caused by IntelliJ. If so, hope someone can tell me how to turn it off.

Thank you for investigation. I'll add it in our wiki.

verified


text:
fix: #10232 Improved italian translations

I've tried to fill in as much tokens as I could while resolving #10232

Thanks for your contribution.
Looks nice.
Waiting for one more review and QA Team.

Hi guys, Can this be merged by any case?

This PR awaits our QA team.

verified

authors: LonwoLonwo MashaKorax ShadelessFox coluzziandrea


text:
DBOSconfig contains undocumented parameters

Hi.
Looking at config.ts L20 and config.ts L204 I noticed the following :
One is that the dbClientMetadata variable has undocumented and not enforced expected structure.
Namely
{
    entities: Array<string>
}

which apart from not being documented also leads to unneeded // eslint-disable-next-line  comments in the code.
The other is that the application parameter is also declared as any although it too has an expected "structure" of object
which is documented and enforced by the schema leading again to unneeded // eslint-disable-next-line  comments
I have created a branch at my fork that you can preview the changes.
In that I also "fixed" the return type of (readFileSync)https://github.com/dbos-inc/dbos-transact/blob/0f40236023cf2460324a6e5b9e01bec73c4bd147/src/utils.ts#L10 to be just string and removed the related as string  casts.
I can create a PR if you wish.
Thanks

Thanks for reporting and nice fixes! Can you create a PR? The dbClientMetadata is no longer used so we can remove it completely. We'd be happy to review your contribution!

You are welcome!
Following the path of reducing //eslint-disable comments I also made this.
If you think it's worth it I'll make a PR for it too.

The changes to reduce the eslint-disable look great too! Much cleaner code.

authors: demetris-manikas maxdml qianl15

repo: dbos-inc/dbos-transact


text:
[Feature] Support for clone as a model materialization type

Is this your first time submitting a feature request?

[X] I have read the expectations for open source contributors
[X] I have searched the existing issues, and I could not find an existing issue for this feature
[X] I am requesting a straightforward extension of existing dbt functionality, rather than a Big Idea better suited to a discussion

Describe the feature
We currently "gate" models behind tests by adding a downstream model that does a full table copy via table materialization.  This worked at first but has not scaled and gets expensive on pay-as-you-go compute.
Instead of using a table materialization, we would like to add a clone materialization that does a databricks shallow clone on the upstream table and adds it to a different schema with the same table name.  This will be a very fast operation and will not have an expensive I/O hit.
It should only work with upstream models that are supported by shallow clone (not views, for example)
clone models should run just like any other model, including support for the graph operators, hooks, custom schema macro, custom database macro, etc.
There should not be any dependencies on dbt state artifacts in order to run a model with a clone materialization (unlike databricks-dbt's current implementation of the dbt clone cli linked below)
Describe alternatives you've considered

Post hooks: can't find a way to wait until after tests finish successfully
On-run-success:  can't find a way to wait until after tests finish successfully
Custom logic in Airflow or Databricks jobs: prefer to keep the graph internally to dbt and not add custom logic elsewhere.  It gets too complex to maintain the graph of models in difference codebases/tools.
databricks-dbt custom materialization for clone: not supported by models and only works from the dbt clone cli command.

Who will this benefit?

Anyone who wants to copy a model to a new database schema in a fast and cost-optimized way on a database that supports shallow clone

Are you interested in contributing this feature?
Yes
Anything else?

Related github issue with databricks-dbt package: https://github.com/databricks/dbt-databricks/issues/832

See a potential approach with a code example in the comment here.  This is not fully functioning but is close.

databricks-dbt clone materialization (does not work from a model): https://github.com/databricks/dbt-databricks/blob/main/dbt/include/databricks/macros/materializations/clone.sql

This is a great feature request. I have been trying to fiure out a way to wait until all tests have passed, before a table is cloned to production without extra cost.
What we have implemented so far is to get the result we want is to add a custom schema for the most important models of a model folder. We run our tests in our custom schema during the build command. When everything has finished successfully, we run a macro to clone the tables from the custom schema to the production schema with a macro, that is called repeatedly. This logic only exists on Airflow and not on the dbt repo, so it's difficult to remember and debug in case a test fails. I have this in my backlog since July 2023, to refactor the usage of macros after the flow has finished, and rather use post-hooks. A new type of materialization which could clone the previous model could solve the problem, although it would create yet another model in the model folder.
With our implementation we make sure we never show into production untested tables, as we prefer leaving them outdated.
Any thoughts?

@thomasantonakis I've thought about that too.  We also use Airflow and do a lot of custom parsing of the dbt manifest to hook in other functionality that dbt does not support natively.  However I would love to get away from those patterns and use more native dbt solutions.  I'm okay with the overhead of another model because it reduces complexity in our custom airflow logic.
I got a POC pretty close to working here but it feels a bit hacky.  The model.sql would call the clone() macro instead of adding the config() block.  With some guidance I don't think it would be a big lift to add a proper clone materialization for use by database backends that support cloning.
I am open to contributing to this some more but will need guidance. The dbt-databricks folks suggested that I open a feature request with dbt-core

I also think this is a good feature request. Note that if you want this materialization to be available for any adapter, you'll have to check what zero-copy clone feature each data warehouse offers.
If it's too ambitious to get this approved as a new official dbt materialization, you could instead write a dbt package that provides this materialization.
I have written a dbt package that provides a materialization "acid_clone" that does something like this for Snowflake. In our case, it's important that the clones are created only at the end of the run, if the whole run was successful. The point is to make the dbt run "ACID", as far as these final tables are concerned. We create all the clones in a single Snowflake transaction. The package is not public but I'd be happy to share more information.

I noticed a [clone.sql](that https://github.com/dbt-labs/dbt-adapters/blob/b12c9870d6134905ab09bfda609ce8f81bc4b40a/dbt/include/global_project/macros/materializations/models/clone/clone.sql#L2) in the dbt-adapters repo already but it looks to have the same problem as the dbt-databricks version here.
Why was it implemented with a dependency on the state file?  Most other materializations do not have that dependency.
Could the table type be determined at runtime instead of via the state file?

authors: johnson-jay-l seub thomasantonakis

repo: dbt-labs/dbt-core


text:
[CT-2165] TypeError : 'dict; object is not callable

Is this a new bug in dbt-core?

[X] I believe this is a new bug in dbt-core
[X] I have searched the existing issues, and I could not find an existing issue for this bug

Current Behavior
I am trying to run a very basic dbt project on Ubuntu and I am going through this issue when I try to run the models
02:46:42  Running with dbt=1.4.1
02:46:42  Unable to do partial parsing because saved manifest not found. Starting full parse.
02:46:43  Encountered an error:
'dict' object is not callable
02:46:43  Traceback (most recent call last):
  File "/root/dbt_env/lib/python3.10/site-packages/dbt/main.py", line 135, in main
    results, succeeded = handle_and_check(args)
  File "/root/dbt_env/lib/python3.10/site-packages/dbt/main.py", line 198, in handle_and_check
    task, res = run_from_args(parsed)
  File "/root/dbt_env/lib/python3.10/site-packages/dbt/main.py", line 245, in run_from_args
    results = task.run()
  File "/root/dbt_env/lib/python3.10/site-packages/dbt/task/runnable.py", line 454, in run
    self._runtime_initialize()
  File "/root/dbt_env/lib/python3.10/site-packages/dbt/task/runnable.py", line 165, in _runtime_initialize
    super()._runtime_initialize()
  File "/root/dbt_env/lib/python3.10/site-packages/dbt/task/runnable.py", line 94, in _runtime_initialize
    self.load_manifest()
  File "/root/dbt_env/lib/python3.10/site-packages/dbt/task/runnable.py", line 81, in load_manifest
    self.manifest = ManifestLoader.get_full_manifest(self.config)
  File "/root/dbt_env/lib/python3.10/site-packages/dbt/parser/manifest.py", line 203, in get_full_manifest
    manifest = loader.load()
  File "/root/dbt_env/lib/python3.10/site-packages/dbt/parser/manifest.py", line 339, in load
    self.parse_project(
  File "/root/dbt_env/lib/python3.10/site-packages/dbt/parser/manifest.py", line 467, in parse_project
    parser.parse_file(block)
  File "/root/dbt_env/lib/python3.10/site-packages/dbt/parser/base.py", line 425, in parse_file
    self.parse_node(file_block)
  File "/root/dbt_env/lib/python3.10/site-packages/dbt/parser/base.py", line 386, in parse_node
    self.render_update(node, config)
  File "/root/dbt_env/lib/python3.10/site-packages/dbt/parser/models.py", line 362, in render_update
    super().render_update(node, config)
  File "/root/dbt_env/lib/python3.10/site-packages/dbt/parser/base.py", line 362, in render_update
    context = self.render_with_context(node, config)
  File "/root/dbt_env/lib/python3.10/site-packages/dbt/parser/base.py", line 240, in render_with_context
    get_rendered(parsed_node.raw_code, context, parsed_node, capture_macros=True)
  File "/root/dbt_env/lib/python3.10/site-packages/dbt/clients/jinja.py", line 590, in get_rendered
    return render_template(template, ctx, node)
  File "/root/dbt_env/lib/python3.10/site-packages/dbt/clients/jinja.py", line 545, in render_template
    return template.render(ctx)
  File "/root/dbt_env/lib/python3.10/site-packages/jinja2/environment.py", line 1301, in render
    self.environment.handle_exception()
  File "/root/dbt_env/lib/python3.10/site-packages/jinja2/environment.py", line 936, in handle_exception
    raise rewrite_traceback_stack(source=source)
  File "<template>", line 23, in top-level template code
  File "/root/dbt_env/lib/python3.10/site-packages/jinja2/sandbox.py", line 393, in call
    return __context.call(__obj, *args, **kwargs)
TypeError: 'dict' object is not callable

It is most l likely a python error regarding a format in the yaml file (I think) but the error displayed here is not informative
my dbt_project.yml is very basic
# Name your project! Project names should contain only lowercase characters
# and underscores. A good package name should reflect your organization's
# name or the intended use of these models
name: "test"
version: "1.0.0"
config-version: 2

# This setting configures which "profile" dbt uses for this project.
profile: "test"

# These configurations specify where dbt should look for different types of files.
# The `model-paths` config, for example, states that models in this project can be
# found in the "models/" directory. You probably won't need to change these!
model-paths: ["models"]
analysis-paths: ["analyses"]
test-paths: ["tests"]
seed-paths: ["seeds"]
macro-paths: ["macros"]
snapshot-paths: ["snapshots"]

target-path: "target" # directory which will store compiled SQL files
clean-targets: # directories to be removed by `dbt clean`
  - "target"
  - "dbt_packages"

# Configuring models
# Full documentation: https://docs.getdbt.com/docs/configuring-models

# In this example config, we tell dbt to build all models in the example/
# directory as views. These settings can be overridden in the individual model
# files using the `{{ config(...) }}` macro.
models:
  test:
    # Config indicated by + and applies to all files under models/example/
    #example:
    #  +materialized: view
    test_model:
      +schema: sample_tracking
      +materialized: table

dbt-core version 1.4.1
python : 3.10.7
Expected Behavior
Execute the model query that is very basic
Steps To Reproduce
See description
Relevant log output
No response
Environment
- OS: Ubuntu 22.10
- Python: 3.10
- dbt: 1.4.1

Which database adapter are you using with dbt?
No response
Additional Context
No response

@radaniba I would expect you to see this error if you've written some code like:
-- models/some_model.sql
{% set some_dict = {} %}
{{ some_dict() }}

If I run dbt parse, I get the same error:
TypeError: 'dict' object is not callable

Because I'm initializing some_dict as a dictionary, but then trying to call it as a macro/function. Have you created any models including code that looks like that?
It would be better if that TypeError / traceback included a pointer back to the exact file where the offending code has been written.


text:
dbt persist_docs - please persist view and view column descriptions to Snowflake when a model is a view AND persist_docs = True

Describe the feature
When a model is materialized as a view in snowflake and persist_docs for that model is true, descriptions for that model and that model's columns are persisted in Snowflake as view and column comments.
Describe alternatives you've considered
None
Additional context
I believe there was a time when Views in Snowflake did not support commenting (or their columns didn't?), but a dbt Cloud client mentioned to me that Snowflake does now support this and asked that we look into supporting this functionality. Also I think it's a good idea.
Who will this benefit?
Snowflake users that leverage persist_docs and have views in their projects.
Are you interested in contributing this feature?
Yes!!! I'm guessing we have a check somewhere in the persist_docs handler that just doesn't attempt to alter the view to avoid errors and we can just remove that check for Snowflake.

@randypitcherii Thanks for opening! dbt has always supported persisting model-column descriptions for Snowflake views, but it historically did not support persisting column-level descriptions, because Snowflake requires column comments to be included in the initial create or replace view statement.
The good news is: We added support for this, as a last-minute addition, in dbt-snowflake==1.0.0! (#53) The way we did it was a bit unorthodox:

Run the model SQL with limit 0 where false, just to get column names and types
Combine those columns with provided descriptions (from .yml file) to template out create or replace view

Try it out:
version: 2

models:
  - name: my_cool_view_model
    description: this is a cool model
    config:
      materialized: view
      persist_docs:
        relation: true
        columns: true
    columns:
      - name: ID
        description: this is a cool column

dbt will compile and run three bits of SQL:
select * from (
            select 1 as id
        ) as __dbt_sbq
        where false
        limit 0
;

create or replace  view analytics.dbt_jcohen.my_cool_view_model
(
  ID COMMENT $$this is a cool column$$
)
   as (
    select 1 as id
  );

comment on view analytics.dbt_jcohen.my_model IS $$this is a cool model$$;

With this result:

While testing, I did realize that the column name checker is case-sensitive, because we didn't do the logic here quite right:
https://github.com/dbt-labs/dbt-snowflake/blob/e75986f0b81749bc790f52dcea4ecd1c1a7f3f2a/dbt/include/snowflake/macros/adapters.sql#L48-L50
Snowflake columns are almost always uppercase! So this should really be column_name|lower in model_columns. I'm going to mark that fix a bug + a good first issue.

repo: dbt-labs/dbt-snowflake


text:
Support hot reload of Zulip Schedule

Move sheets API into common dir, since multi use
Live download from Google Sheets using Config
Falls back on old schedule if new one can't be downloaded for some reason

Closes https://github.com/dbvideostriketeam/wubloader/issues/376

authors: ZeldaZach ekimekim

repo: dbvideostriketeam/wubloader


text:
Cannot read properties of undefined (reading 'isMobile')

I have an error
collapsible-resource-manager:2 TypeError: Cannot read properties of undefined (reading 'isMobile')
at Proxy.handler (collapsible-resource-manager:2:646852)

+1

+1

👍

Are there plans to fix this?

authors: aaronaccessvr dzandrey nurmuhammet-ali web-svb

repo: dcasia/collapsible-resource-manager


text:
DCCN-2022: переадресация

@timac11 @larioandr
Необходимо сделать переадресацию с dccn.ru на https://2022.dccn.ru/

done


text:
Fix CLI test against latest Cosmos

Latest Cosmos always includes the framework and selected properties.
This change fixes the metadata label to include those fields.

Don't merge yet. PR needed for the latest Cosmos.

LGTM. In the future we might want to decode the metadata to make sure it decodes to what we expect.

Yep. I'll file an issue.
On Fri, Jun 24, 2016 at 4:02 PM tamarrow notifications@github.com wrote:

LGTM. In the future we might want to decode the metadata to make sure it
decodes to what we expect.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/dcos/dcos-cli/pull/665#issuecomment-228484137, or mute
the thread
https://github.com/notifications/unsubscribe/AAwfGh6FHQ74PobL8ZoGQLNGn5foJUKBks5qPGITgaJpZM4I-LDR
.

--
José Armando García Sancio
Mesosphere

authors: jsancio tamarrow

repo: dcos/dcos-cli


text:
DCOS-44841: add network node resolver

This adds the nodes resolver using the nodes network client to generate nodes. This is a workaround
since the nodes resolver does not actually return nodes yet.
CLOSES DCOS-44841
Testing
Check the tests for plausibility
Trade-offs
N/A
Dependencies
This is depending on #3579
Screenshots
N/A

Build is failing, because
[cos-ui-oss-pipeline_PR-3586-PJ6NYP23X7UCWVN36KKJETLOVGNHJNHK6L5NBKTJNGQX3HTRJYMQ] Running shell script

+ npm run commitlint -- --from ph/feature/DCOS-44840-network-nodes-client

> dcos-ui@0.0.0-dev commitlint /jenkins/workspace/cos-ui-oss-pipeline_PR-3586-PJ6NYP23X7UCWVN36KKJETLOVGNHJNHK6L5NBKTJNGQX3HTRJYMQ

> commitlint "--from" "ph/feature/DCOS-44840-network-nodes-client"

/jenkins/workspace/cos-ui-oss-pipeline_PR-3586-PJ6NYP23X7UCWVN36KKJETLOVGNHJNHK6L5NBKTJNGQX3HTRJYMQ/node_modules/@commitlint/cli/lib/cli.js:70

		throw err;

		^

Error: fatal: ambiguous argument 'ph/feature/DCOS-44840-network-nodes-client..HEAD': unknown revision or path not in the working tree.

Use '--' to separate paths from revisions, like this:

'git <command> [<revision>...] -- [<file>...]'

File conflict.

I just rebase 👍

Do we not need to write tests like https://github.com/dcos/dcos-ui/pull/3589/files ?
With fakeShedulers and of.

I took another approach to the problem which @DanielMSchmidt pointed out to me here: https://daniel-s.de/2019/01/testing-rxjs-side-effects/ So I took the async | await approach. if I should use the fakeSchedulars please let me know.

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

repo: dcos/dcos-ui


text:
chore(deps): update dependency execa to v4.0.2

This PR contains the following updates:

Package
Type
Update
Change

execa
devDependencies
patch
4.0.1 -> 4.0.2

Release Notes

sindresorhus/execa
v4.0.2
Compare Source
Bug fixes

Fix with third-party promises (like bluebird) not working (#427)

Renovate configuration
:date: Schedule: At any time (no schedule defined).
:vertical_traffic_light: Automerge: Disabled by config. Please merge this manually once you are satisfied.
:recycle: Rebasing: Whenever PR becomes conflicted, or if you modify the PR title to begin with "rebase!".
:no_bell: Ignore: Close this PR and you won't be reminded about this update again.

[ ] If you want to rebase/retry this PR, check this box

Available now for Enterprise: Renovate Pro with real-time webhook handling and priority job queue.

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

v5.0.47
GitHub release

Your semantic-release bot :package::rocket:

authors: mesosphere-ci mesosphere-renovate


text:
fix(deps): update dependency cnvs to v1.1.18

This PR contains the following updates:

Package
Type
Update
Change

cnvs
dependencies
patch
1.1.14 -> 1.1.18

Release Notes

mesosphere/cnvs
v1.1.18
Compare Source
v1.1.17
Compare Source
v1.1.16
Compare Source
v1.1.15
Compare Source

Renovate configuration
:date: Schedule: At any time (no schedule defined).
:vertical_traffic_light: Automerge: Disabled by config. Please merge this manually once you are satisfied.
:recycle: Rebasing: Whenever PR becomes conflicted, or if you modify the PR title to begin with "rebase!".
:no_bell: Ignore: Close this PR and you won't be reminded about this update again.

[ ] If you want to rebase/retry this PR, check this box

Available now for Enterprise: Renovate Pro with real-time webhook handling and priority job queue.

Renovate Ignore Notification
As this PR has been closed unmerged, Renovate will now ignore this update (1.1.18). You will still receive a PR once a newer version is released, so if you wish to permanently ignore this dependency, please add it to the ignoreDeps array of your renovate config.
If this PR was closed by mistake or you changed your mind, you can simply rename this PR and you will soon get a fresh replacement PR opened.


text:
DCOS-8479: Add staged animation to healthbar

This adds the candy stripe animation also to the staging bar healthbar in the services section.

Reviewer: @aldipower

mesosphere-ci retest this please

mesosphere-ci retest this please

Staged or Deploying?

This adds the candy stripes for tasks that are staged for what marathon delivers as tasksStaged. An application which has tasks staged usually also has an ongoing deployment. This is why there is a little confusion about the names. To be clear this adds the candy stripes for staged tasks not necessarily deploying applications.
The following image should explain the deploying state.

Weird, the bar says "Staging" but we show "Waiting" (try to deploy a non-existing docker image to replicate).

In the bar we show the states of the tasks which is right. One task is constantly staging and failing because the docker image does not exist. The Waiting is the state of the service. Which is considered if queueEntry.delay.overdue === true. Following the docs it waiting means that marathon is waiting for offers from mesos. Which in this case ain't true? But the service can't reach a running state.
I added the animation also to the dot badge in the tooltip.

retest this please

retest this please

This is awesome! Thanks @Poltergeist!!

authors: Poltergeist mesosphere-web pierlo-upitup rcorral


text:
Pin mypy for integration tests

High-level description
Pin mypy for integration tests, to prevent stricter checks failing after mypy 0.790 was released. Also run other tests with any Python 3, not just unsupported 3.5
Corresponding DC/OS tickets (required)

D2IQ-72431 mypy failure following upgrade

@mesosphere-mergebot request-review @jkoelker @pierrebeitz

@mesosphere-mergebot test all

@mesosphere-mergebot changelog-not-required test change only

repo: dcos/dcos


text:
Switched ref_origin for Mesos and mesos-modules back to master.

High-level description
This changes ref_origins of Mesos and modules back to master after the DCOS 2.2 branchoff.
Corresponding DC/OS tickets (required)

/D2IQ-72537 Mesos and modules branchoff in DCOS 2.2.

@mesosphere-mergebot label Ready For Review

@mesosphere-mergebot request-review qianzhangxa DominikDary

@mesosphere-mergebot changelog-not-required internal change

authors: DominikDary asekretenko


text:
Re-testing

With https://github.com/dcousens/fast-dat-parser/commit/f08481836b5e5704c6931dcb9046cf5b3590146e,  the code needs to be re-verified.
Overall, the safety and guarantees of the programs validity have increased... but it was still a major refactor.

Seems fine :+1: - ha

repo: dcousens/fast-dat-parser

license: isc


text:
django-devserver staticfiles support

Add --staticfiles commandline argument to allow runserver to use the StaticFilesHandler, instead of AdminMediaHandler. Fixes issue #20

It should be nice to merge this pull request, you can't use devserver with grappelli without it.

authors: manfre oxys

repo: dcramer/django-devserver


text:
ValidationError: '5 is greater than the maximum of -180' when requesting a cube with spatial subset for several datasets

When requesting a cds cube with a spatial subset, an Validation Error occurs for some dataset ids:  ValidationError: '5 is greater than the maximum of -180'
this happens for the following dataset ids:

satellite-soil-moisture:saturation:daily
satellite-soil-moisture:saturation:10-day
satellite-soil-moisture:saturation:monthly
satellite-soil-moisture:volumetric:daily
satellite-soil-moisture:volumetric:10-day
satellite-soil-moisture:volumetric:monthly

to reproduce:
from xcube.core.store import find_data_store_extensions
from xcube.core.store import get_data_store_params_schema
from xcube.core.store import new_data_store

store = new_data_store('cds')

dataset = store.open_data('satellite-soil-moisture:saturation:daily',
                          variable_names=['soil_moisture_saturation'],
                          bbox=[5, 35, 6, 36],
                          spatial_res=0.25,
                          time_range=['1978-11-01', '1978-11-06'])
dataset

The stacktrace:
---------------------------------------------------------------------------
ValidationError                           Traceback (most recent call last)
<ipython-input-6-82c0cb0543ee> in <module>
      3                           bbox=[5, 35, 6, 36],
      4                           spatial_res=0.25,
----> 5                           time_range=['1978-11-01', '1978-11-06'])
      6 dataset

~/Desktop/projects/xcube-cds/xcube_cds/store.py in open_data(self, data_id, opener_id, **open_params)
    768         self._assert_valid_opener_id(opener_id)
    769         self._validate_data_id(data_id)
--> 770         return super().open_data(data_id, **open_params)
    771
    772     ###########################################################################

~/Desktop/projects/xcube-cds/xcube_cds/store.py in open_data(self, data_id, **open_params)
    417
    418         schema = self.get_open_data_params_schema(data_id)
--> 419         schema.validate_instance(open_params)
    420         handler = self._handler_registry[data_id]
    421

~/Desktop/projects/xcube/xcube/util/jsonschema.py in validate_instance(self, instance)
    101                             format_checker=jsonschema.draft7_format_checker,
    102                             # We have to explicitly sanction tuples as arrays.
--> 103                             types=dict(array=(list, tuple)))
    104
    105     def to_instance(self, value: Any) -> Any:

~/miniconda3/envs/xcube/lib/python3.7/site-packages/jsonschema/validators.py in validate(instance, schema, cls, *args, **kwargs)
    932     error = exceptions.best_match(validator.iter_errors(instance))
    933     if error is not None:
--> 934         raise error
    935
    936

ValidationError: 5 is greater than the maximum of -180

Failed validating 'maximum' in schema['properties']['bbox']['items'][0]:
    {'maximum': -180, 'minimum': -180, 'type': 'number'}

On instance['bbox'][0]:
    5

Subsetting is not supported by the soil moisture dataset, so it's expected that the call will fail. The error message is correct (since the min-x value of the bounding box has a maximum permitted value of -180), but admittedly a bit cryptic. It could be made more explicit that [-180, -90, 180, 90] (i.e. the whole world) the only permitted value for the bbox parameter.

Subsetting is not supported by the soil moisture dataset, so it's expected that the call will fail. The error message is correct (since the min-x value of the bounding box has a maximum permitted value of -180), but admittedly a bit cryptic. It could be made more explicit that [-180, -90, 180, 90] (i.e. the whole world) the only permitted value for the bbox parameter.

After further discussion, I'm implementing subsetting within the CDS store, so that smaller bounding boxes will be allowed (though of course the full data still has to be fetched via the backend, so no time or bandwidth is saved).

After further discussion, I'm implementing subsetting within the CDS store, so that smaller bounding boxes will be allowed (though of course the full data still has to be fetched via the backend, so no time or bandwidth is saved).

PR #37 (addressing Issue #35) has removed the store-internal subsetting again, but I'm keeping this issue closed because PR #38 technically fixes the problem (by disallowing the bbox parameter) and the latest xcube gen2 improvements actually fix the problem (by incorporating general-purpose subsetting).

authors: AliceBalfanz pont-us


text:
🛑 Danbs is down

In 9733777, Danbs (https://danbs.net) was down:

HTTP code: 404
Response time: 4112 ms

Resolved: Danbs is back up in 48229a8 after 6 minutes.

repo: ddanbs/upptime


text:
🛑 Danbs is down

In 21a8ddb, Danbs (https://danbs.net) was down:

HTTP code: 404
Response time: 146 ms

Resolved: Danbs is back up in 8cf963d after 6 minutes.


text:
🛑 Danbs is down

In 30e1587, Danbs (https://danbs.net) was down:

HTTP code: 404
Response time: 147 ms

Resolved: Danbs is back up in ee38559 after 12 minutes.


text:
🛑 Danbs is down

In a3ea5d7, Danbs (https://danbs.net) was down:

HTTP code: 404
Response time: 2775 ms

Resolved: Danbs is back up in cb34c10 after 6 minutes.


text:
🛑 Danbs is down

In 08b011b, Danbs (https://danbs.net) was down:

HTTP code: 404
Response time: 221 ms

Resolved: Danbs is back up in 66dedeb.


text:
🛑 Danbs is down

In fac9ae5, Danbs (https://danbs.net) was down:

HTTP code: 404
Response time: 229 ms

Resolved: Danbs is back up in 4c2302d.


text:
mapbox style

The map configuration is beautiful, is it convenient to public the mapbox style?

Yeah, the style url is:
mapbox://styles/ddiu8081/ckz82q8eb000c14o8uw4ky79d

and can be found in src/data/dataList.ts.
But I think it is almost the same as the official theme Mapbox Light, only with some components hidden :)


text:
foreman start does not handle SIGTERM correctly

I have encountered this issue in both Mac os X Lion and an ubuntu server (on which I was manually running foreman start).
I have the following over-simple Procfile
web:    export RAILS_ENV=production; bundle exec rails server thin -p $PORT
worker: export RAILS_ENV=production; bundle exec rake jobs:work

This produces a number of processes including rails s thin, which is managed by the parent process (the one launched by foreman start).
Then I just press CTRL-C, which stops foreman, but then I can observe the child process still running when inspecting it with ps -ef.
It looks like foreman is not properly SIGTERming its child processes when it is SIGTERMed itself.

I have the same issue when working with rescue workers. My Procfile looks like this:
web: bundle exec thin start -p $PORT
resque-web: resque-web -s thin -p 9999 -L -F
worker_lo: bundle exec rake resque:workers QUEUE="high,med,low" COUNT=5 VERBOSE=1
worker_hi: bundle exec rake resque:workers VERBOSE=1 QUEUE="critical" COUNT=5
scheduler: bundle exec rake resque:scheduler VERBOSE=1
After sending foreman a ctrl-c, I still have all rescue worker processes running and need to manually kill them. I also tried the suggestion above (using env), with no success. Also the thin server ("web" task) tries to restart when receiving the signal SIGTERM (instead of terminating), which results in an error message.
^CSIGINT received
12:25:46 system        | sending SIGTERM to all processes
[...]
12:25:46 worker_lo.1   | rake aborted!
12:25:46 worker_lo.1   | SIGHUP
12:25:46 worker_lo.1   |
12:25:46 worker_lo.1   | Tasks: TOP => resque:work
12:25:46 worker_lo.1   | (See full trace by running task with --trace)
12:25:46 worker_hi.1   | rake aborted!
12:25:46 worker_hi.1   | SIGHUP
12:25:46 worker_hi.1   |
12:25:46 worker_hi.1   | Tasks: TOP => resque:work
12:25:46 worker_hi.1   | (See full trace by running task with --trace)
[...]
12:25:46 web.1         | >> Restarting ...
12:25:47 web.1         | >> Using rack adapter
12:25:47 web.1         | >> Thin web server (v1.2.11 codename Bat-Shit Crazy)
12:25:47 web.1         | >> Maximum connections set to 1024
12:25:47 web.1         | >> Listening on 0.0.0.0:5000, CTRL+C to stop
12:25:47 web.1         | /usr/local/lib/ruby/gems/1.9.1/gems/eventmachine-0.12.10/lib/eventmachine.rb:572:in start_tcp_server': no acceptor (RuntimeError) 12:25:47 web.1         | 	from /usr/local/lib/ruby/gems/1.9.1/gems/eventmachine-0.12.10/lib/eventmachine.rb:572:in start_server'
12:25:47 web.1         | 	from /usr/local/lib/ruby/gems/1.9.1/gems/thin-1.2.11/lib/thin/backends/tcp_server.rb:16:in connect' 12:25:47 web.1         | 	from /usr/local/lib/ruby/gems/1.9.1/gems/thin-1.2.11/lib/thin/backends/base.rb:53:in block in start'
12:25:47 web.1         | 	from /usr/local/lib/ruby/gems/1.9.1/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in call' 12:25:47 web.1         | 	from /usr/local/lib/ruby/gems/1.9.1/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run_machine'
12:25:47 web.1         | 	from /usr/local/lib/ruby/gems/1.9.1/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run' 12:25:47 web.1         | 	from /usr/local/lib/ruby/gems/1.9.1/gems/thin-1.2.11/lib/thin/backends/base.rb:61:in start'
12:25:47 web.1         | 	from /usr/local/lib/ruby/gems/1.9.1/gems/thin-1.2.11/lib/thin/server.rb:159:in start' 12:25:47 web.1         | 	from /usr/local/lib/ruby/gems/1.9.1/gems/thin-1.2.11/lib/thin/controllers/controller.rb:86:in start'
12:25:47 web.1         | 	from /usr/local/lib/ruby/gems/1.9.1/gems/thin-1.2.11/lib/thin/runner.rb:185:in run_command' 12:25:47 web.1         | 	from /usr/local/lib/ruby/gems/1.9.1/gems/thin-1.2.11/lib/thin/runner.rb:151:in run!'
12:25:47 web.1         | 	from /usr/local/lib/ruby/gems/1.9.1/gems/thin-1.2.11/bin/thin:6:in <top (required)>' 12:25:47 web.1         | 	from /usr/local/bin/thin:19:in load'
12:25:47 web.1         | 	from /usr/local/bin/thin:19:in `'
12:25:47 web.1         | process exiting

authors: hirschnase tristanverdier

repo: ddollar/foreman


text:
PR #281 fail 해결하기

#281 pull request에서 GitGuardian Security Checks에 의해 fail이 일어나는것 해결해야한다.

석현아. #281  에서는 GitGuardian 이 문제가 아니라 환경 변수 이름 관련해서 코멘트 남겨뒀으니 그걸 확인해줘.

그리고 fail 이유는 과거 커밋 메시지에 web hook url 이 있어서인데, 과거 커밋을 없앨수는 있는데, 이게 꽤나 복잡하니, 그냥 현재 코드를 백업한 후에 해당 PR 을 없애버리고, webhook url 없는 새로운 커밋을 해서 PR 만드는게 편할듯 하다.

@kmu-leeky 코멘트를 지금 확인했네요 보고 수정해보겠습니다. 그리고 현재 main에서 새 브랜치를 생성하고 백업한 코드를 커밋해봤는데 똑같은 fail이 일어났습니다. 현재 main에 이미 url이 있는 코드가 올라가있어서인거 같습니다.

그런듯하네.. 해당 커밋 자체를 없애야 할수도 있겠네.

커밋 자체를 없애야 할 것 같습니다.

응 그래야 할것 같은데. 해볼수 있겠어?

@kmu-leeky 브랜치를 따로 파서 https://gre-eny.tistory.com/301를 보고 특정 커밋을 삭제하는 git rebase -i 를 사용해봤는데

커밋 삭제전 reflog

커밋 삭제

커밋 삭제후 reflog

디렉토리 확인 결과 커밋이 삭제돼서 2.txt가 사라졌지만 커밋 삭제후 relog에서 a8e4fec 커밋은 그대로 남아있어 제대로 동작한건지 잘 모르겠습니다. 깃에 익숙치않아서 잘못건드릴까 걱정되긴합니다.

석현아. 현재의 최신 main 브랜치로 부터 만들어서 삭제 후 PR 을 만들었다면 해당 내용의 추가/삭제 여부를 알수 있을것 같아. 다른 브랜치에서 작업을 했으니 우선 PR 을 하나 생성해볼래?

석현아 같이 한번 봐야겠는데.. 시간 날때 내방에서 같이 보자.

넵 수업끝나고 1시 20분쯤에 바로 방으로 가겠습니다

@kmu-leeky 이 이슈는 close 하겠습니다.

repo: ddps-lab/spotlake


text:
Create own Next.js runtime

Since Vercel pulled the trigger and moved (https://github.com/vercel/vercel/pull/5640) their Next.js runtime into a private repository, we no longer have access to their builder and can use it in the future. 🙈
So we have to move on (like we already did with the bridge package) and develop our own runtime for doing this.

I am not sure to understand what now-next was responsible of? Building the code?

Yep, it's the secret sauce that Vercel uses to make Next.js runnable inside AWS Lambda.
It builds Next.js with a special serverless target and splits it into multiple chunks so that different routes can be served by different Lambdas.

Okay I see! And given the amount of lines of code that had been removed, I imagine this a huge work?

Not that big, since we can simply fork it and integrate it into this repository.
The hard work is to maintain the package and add support for upcoming Next.js features that are Vercel exclusive.
Currently Vercel has not dropped big changes, but I guess with the release of Next.js 11 they will also add some goodies that only work with Vercel in the first place (Like they did with static regeneration in 9 and internationalization in 10).

I see what you mean! Thank you for all these explanations!

authors: lcswillems ofhouse

repo: dealmore/terraform-aws-next-js


text:
coordinates inside displacement function

Hi,
I would like to generalize displacement(x, y, z) such that ux and uy are read from a list istead of being
a function of (x,y,z), but I realized that
x,y,z and ux and uy have a dimension larger than the number of atoms.
I would expect that the modifier acts on the coordinates of the unstrained model,
which have coordinates model.system.x with len(model.system.x) = number of atoms.
I would be glad if you could clarify what x,y,z are and why its values and lengths are different from the unmodified model, in order to understand how to read
ux, uy from an external list.
In the following the scipt where the issue is exemplified,
the aim is to substitute ux with ux_ext inside the function.
Thank you for any advice!
modifier-gen.txt

The onsite_modifier-function will compute the changed positions first, and only then take the appropriate shape. The larger number of sites comes from all the other sites that are first computed, but lie outside the polygon. The function is also called twice, for the A and B sublattice of graphene. The original, distorted and all the sites before the cutout are shown in following figure:

We are working on a better implementation of the model class such that this could be used to read out the updated positions from a .xyz-file. This work is still at the first stages, but this will help with the problem you are encountering. Right now, it is harder to tackle this problem. Right now, I just suggest you to print out the values and the sublattice that they correspond to, then, you can change the values manually for that system.
`


text:
Recover lost files

My iPhone got hacked and lost a lot of files I need
Open RateCheckGatewayFilterFactory.java.pdf
Safari - Apr 2, 2020 at 8:34 PM 2.pdf

logs_31.zip

logs_298.zip
logs_297.zip

Try pulling the latest code

repo: dearMOMO/momo-cloud-permission


text:
Mausoleum missing tag - boss not spawned

Issue description
Title says all
Map name
Mausoleum
Map image
No response
Layout rating
None
Density rating
None
Boss rating
None
Layout

[ ] League mechanics - If map is good for league mechanics that require some space (Breach, Legion)
[ ] Delirium mirror - If you can hold delirium mirror through whole map or delirium mirror gets good value in it
[ ] Outdoors - If map is outdoors or indoors (Dunes vs Cells for example)
[ ] Linear - If map is linear instead of having multiple paths to take. Map counts as linear even if the line goes in circle
[ ] Few obstacles - If map does not have a lot of obstacles (so for example is good for shield charging around)

Boss

[X] Not spawned - If boss is not spawned on entering the map (important for Altar farming, can be verified by checking for boss altars spawning or not)
[ ] Rushable - If boss is close to map start or can be rushed quickly and reliably, a lot quicker than completing whole map
[ ] Phases - If boss has hard phases that force you to wait (delay on initial boss spawn counts too)
[ ] Soft phases - If boss has soft phases that can be bypassed with DPS (teleports at certain threshold, heals, partial damage reduction)
[ ] Separated - If boss room is separated from rest of the map

Thanks, should be implemented now

authors: Hatredzik deathbeam

repo: deathbeam/maps-of-exile


text:
DBZ-7157: Key serialisation for events from sharded collections with composite sharding key

https://issues.redhat.com/browse/DBZ-7157

@jcechace So now let's put aside incremental snapshot. What will be the key of the message in case of sharded collection? Will it contain only _id or the sharding key too? If the latter then I don't think it is correct.

Don't ask me why ChangeStreamDocument#keyDocument contains the sharding key too. I have no idea why that would be useful :) ... maybe to indicate that the document moved between shards or something.

@jcechace Exactly and does the PR now behaves in that way? Also (and that's topic for another PR) maybe the sharding key should end up in Connect headers, WDYT?

@jcechace Applied, thanks

authors: jcechace jpechane

repo: debezium/debezium