text:
Issue after Integrating after login screen application

I integrated LGSideMenuController Removed MainViewControler added MYDashboardViewController  which is added in another storyboard. two storyboard [from login]  then loading LGsideMenu [DashboardViewController],  every things is working perfect expect two things.

left menu do have three options (Setting, notification and profile)
When click setting how to make that as my Mainviewcontroller? Do not want to navigate to another viewcontroller.

My Dashboardviewcontorller (i.e MainViewController) viewdidload is calling three times.

sideMenuController.rootViewController = newViewController;
or
[sideMenuController.rootViewController pushViewController:newViewController];
or
[sideMenuController.rootViewController setViewControllers:@[newViewController]];

Feel free to open issue back if you have more questions.

authors: Friend-LGA arishanapalli

repo: Friend-LGA/LGSideMenuController


text:
overwrite bake templates

I have copied and adjusted the files from  BootstrapUI/bake/Template to templates/plugin/BootstrapUI/bake/Template/index.twig and adjusted them
But it does not seem to work.

I done the same thing to overwrite the layout and that works, but the bake templates don't...

Using plugin templates to override bake templates requires to use themes, and theme templates have a higher priority than application templates, hence you cannot override them.
One option would be to copy all files from vendor/friendsofcake/bootstrap-ui/templates/bake/ into templates/plugin/Bake/ (without the bake subdirectory, that's an error in the docs), make your modifications, and then run bake without -t BootstrapUI. Not great, but it is what it is.
Another option would be to bake templates individually and use aliases, eg create templates/plugin/Bake/Template/index_override.twig and then run bake template ControllerName index_override index -t BootstrapUI.

Normally you want to override a plugins templates like cakeDC, BootstrapUI,... you can copy them to the templates folder under templates/plugin/vendorname/ then it will use the files from that folder. Only the way Bake implements it, it will not use the overriden templates, but it will use the template from the plugin itself. Yes, you can create a new plugin and place the templates there and then use the other plugin/theme. But why does bake not use the correct template file like the regular template system....

As I said, bake templates are provided by plugins using CakePHP's theme functionality, and that's simply how themes work, they override the application/plugin level templates, which will in turn become fallbacks.
I guess it should be possible to add support for special application level overrides that win specifically over bake themes, you may want to create an issue over in the Bake repo.

It would appear you not understand the problem with bake...

its not application level, its about override a plugins template, hence put the template in templates/plugin/BootstrapUI.
But you are right the problem is with the bake plugin...

I understand what you're trying to override, when I'm saying "application level override" then I don't mean to override an application template, but simply that the override for the BootstrapUI plugin/theme template is defined in the application level templates.
Unless I'm misunderstanding what you're asking for, I'm very much aware of what  the "problem" in bake is. I don't want to sound like a broken record, but it's that theme paths will win over everything else.
Go open vendor/cakephp/bake/src/View/BakeView.php, change the _paths() method as follows:
protected function _paths(?string $plugin = null, bool $cached = true): array
{
    $paths = parent::_paths($plugin, false);
    foreach ($paths as &$path) {
        // Append 'bake' to all directories that aren't the application override directory.
        if (strpos($path, 'plugin' . DS . 'Bake') === false) {
            $path .= static::BAKE_TEMPLATE_FOLDER . DS;
        }
    }

    // Prepend application level override paths for current bake theme.
    if (!empty($this->theme)) {
        $themePlugin = \Cake\Utility\Inflector::camelize($this->theme);

        $themeOverridePaths = [];
        $templatePaths = \Cake\Core\App::path(static::NAME_TEMPLATE);

        foreach ($templatePaths as $templatePath) {
            $themeOverridePaths[] = $templatePath
                . static::PLUGIN_TEMPLATE_FOLDER
                . DIRECTORY_SEPARATOR
                . $themePlugin
                . DIRECTORY_SEPARATOR
                . static::BAKE_TEMPLATE_FOLDER
                . DIRECTORY_SEPARATOR;
        }

        array_unshift($paths, ...$themeOverridePaths);
    }

    return $paths;
}

and then try baking again with -t BootstrapUI and your modified template located in
templates/plugin/BootstrapUI/bake/Template/index.twig

I'm somewhat confident that you'll see that what you're trying to do will suddenly work.

source: gharchive/issue

repo: FriendsOfCake/bootstrap-ui

license: mit

license_type: permissive

license_source: bigquery


text:
testestset

testsetsetst

wow, when I added the label, github show it was @masellfoodpanda ... replicable :|

@masellfoodpanda , fixed now ;)

what is fixed?

gh bug that when I have added invalid label to this issue it was displayed with MAsell as author of that action

ha thats weird :)

@keradus So, you hacked github again? :+1:

authors: SpacePossum keradus masellfoodpanda

repo: FriendsOfPHP/PHP-CS-Fixer

license: MIT

license_source: github-api


text:
Added DirConstantFixer, ModernizeTypesCastingFixer, RandomApiMigrationFixer

This is only replacement of #1617, whole work was done there. Please do not discuss here.

Thank you @kalessil.

source: gharchive/pull-request


text:
Fix tests to find SharpZipLib/Content/test.zip.

Looks like the .vsmdi file is referring to some nonexistent localtestrun.testrunconfig file. Thus VS refused to run any tests when I tried to set that as the chosen test settings.
I found that when running the tests with no settings at all, all of the 7-zip tests failed. However, by just adding [DeployItem] appropriately, I could get them to stop failing because that would copy the test.zip properly. As I think this is cleaner than using test run settings, I removed that .vsmdi file.

I came across the same problem with a similar fix. This is in the repo now.

authors: FrozenCow binki

repo: FrozenCow/sharpfilesystem


text:
Update args for fuelup v0.2.0

Closes #24
Note: Only to be merged after fuelup v0.2.0 is released!
https://github.com/FuelLabs/fuelup/pull/77 is about to be merged with a new release of fuelup supporting the toolchain pattern (similar to rustup), which means fuelup install is now an invalid command.
The new command to install the latest toolchain will be:
fuelup toolchain install latest

With support for nightly and stable later.

@binggh can you clarify why the install_latest would pass? The toolchain command doesn't exist in v0.1.3, no?

@adlerjohn ah, i think it's because earlier in the day i did cut a new release but cancelled it because I wanted to wait for this PR to be reviewed. Seems like the publish went through regardless: https://github.com/FuelLabs/fuelup/tree/gh-pages so the versioning there is v0.2.0 already

Looks like this doesn't pass CI now

Looks like this doesn't pass CI now

Seems like it something wrong with fuelup-init.sh instead

authors: adlerjohn binggh

repo: FuelLabs/action-fuel-toolchain


text:
Add support for negative decimals

We need to come up with a way to provide support for negative decimals. A decimal value of 1 means that one unit = 0.1, but supporting a negative decimal value of -1 would mean that one unit = 10.
Possible solutions:

add support for signed values?
add another flag that denotes positive or negative decimal orientation
hack in a signed flag to the existing decimal flag (there are only 78 digits in 2^256 so any bit at or over 128 could be used)

What is the intended use case of this? Are there any used "negative decimal" tokens on Ethereum mainnet?

"negative decimals" allows 1 token on fuel to equal multiple tokens on Ethereum (10, 100, 1000, etc). This is useful if the token being bridged wants a single account to be able to hold more than 2^64 tokens. A decimal value of 1 allows for 2^63, and a value of 0 allows for 2^64. So to go beyond 2^64, the decimal value needs to go "negative".
In practice, we should probably create a different param called "multiple" or something that and leave decimals at 0. Or we can even still keep decimals at a typical 9, but set "multiple" to something like 18. This means 1 fuel token equals 1,000,000,000 on ethereum, but you still can work with it in a typical 9 decimal fashion.

authors: dmihal pixelcircuits

repo: FuelLabs/bridge-fungible-token


text:
docs: improve readme to make book more discoverable

Following some feedback that the book was not discoverable.
Also rephrased some of the installation details to make it more accurate and general.

re-requesting a review because I saw a typo, sorry!

repo: FuelLabs/fuelup


text:
forc-pkg panics when building a parent package that depends on a non-library package

I believe depending on something other than a library is not something we want to allow but this should not be panicking but logging an error like "depending on a contract is not permitted".
Steps to reproduce:

Run forc init child
Run forc init parent
Inside parent's Forc.toml add the "child" as a dependency (something like child = {path = "path/to/child"})
Run forc build in parent's directory.

Which will output something like the following:
Compiled library "core".
Compiled library "std".
Compiled contract "child".
thread 'main' panicked at 'no entry found for key', forc-pkg/src/pkg.rs:974:30

Hey @ra0x3, must have missed this one, sorry!
That is a good question, I am not aware if we keep that kind of information directly somewhere but maybe taking a look at compile() at forc-pkg may help since it does have a check for differentiating the program type.

I came across program_type() in ManifestFile implementation that might help for this one.

repo: FuelLabs/sway


text:
Correctly check for overflow and unsafe math

Description
Adds flag checks for overflow in core lib.
Adds commented tests for unsafe math operations - to be fixed in vm
Checklist

[ ] I have linked to any relevant issues.
[ ] I have commented my code, particularly in hard-to-understand areas.
[ ] I have updated the documentation where relevant (API docs, the reference, and the Sway book).

[ ] If my change requires substantial documentation changes, I have requested support from the DevRel team

[ ] I have added tests that prove my fix is effective or that my feature works.
[ ] I have added (or requested a maintainer to add) the necessary Breaking* or New Feature labels where relevant.
[ ] I have done my best to ensure that my PR adheres to the Fuel Labs Code Review Standards.
[ ] I have requested a review from the relevant team or maintainers.

This is not a vm issue, the instruction that's supposed to revert is getting optimized away. Likely the compiler doesn't consider panic-on-invalid-input side effect. Not sure if the compiler behavior is expected or not.
Investigation
if the function looks like this:
#[test(should_revert)]
fn math_0th_root_fail() {
    let _res = asm(r1: 100, r2: 0, r3) {
        log flag r1 r2 zero;
        mroo r3 r1 r2;
        log flag r1 r2 r3;
        log one one one one;
        r3: u8
    };
}

Then the test passes as expected.
However, if we remove the middle log, i.e.:
#[test(should_revert)]
fn math_0th_root_fail() {
    let _res = asm(r1: 100, r2: 0, r3) {
        log flag r1 r2 zero;
        mroo r3 r1 r2;
        log one one one one;
        r3: u8
    };
}

Then the test fails.
Let's look at the bytecode. Compile with forc build --output-bin prog.bin --tests  (in test/src/in_language_tests/test_programs/math_inline_tests). Then we can find the relevant log instructions with forc parse-bytecode prog.bin | rg -C 1 '\bLOG {'
For the first version, i.e. without logging r3 , the bytecode looks like this:
      18230   72920   MOVE { dst: 0x11, src: 0x0 }                                               1a 44 00 00
      18231   72924   LOG { a: 0xf, b: 0x10, c: 0x11, d: 0x0 }                                   33 3d 04 40
      18232   72928   LOG { a: 0x1, b: 0x1, c: 0x1, d: 0x1 }                                     33 04 10 41
      18233   72932   RET { value: 0x0 }                                                         24 00 00 00

However, when we introduce the log in the code in the second version, we get:
      18230   72920   MOVE { dst: 0x11, src: 0x0 }                                               1a 44 00 00
      18231   72924   LOG { a: 0xf, b: 0x10, c: 0x11, d: 0x0 }                                   33 3d 04 40
      18232   72928   MROO { dst: 0x12, lhs: 0x10, rhs: 0x11 }                                   18 49 04 40
      18233   72932   LOG { a: 0xf, b: 0x10, c: 0x11, d: 0x12 }                                  33 3d 04 52
      18234   72936   LOG { a: 0x1, b: 0x1, c: 0x1, d: 0x1 }                                     33 04 10 41
      18235   72940   RET { value: 0x0 }                                                         24 00 00 00

So it seems like the mroo is completely missing in the first version.


text:
How to limit the number of runnable windows?

Thank you for implementing NexusTK's redundant execution function!
I have one question.
Multiple execution is possible using winmm.dll!
How to limit the number of runnable windows?
It's unlimited now!! please help me!

how many windows should be allowed?

I would like to allow 4 windows!!

NexusTK-4windows.zip

Thank you so much!
Is it possible to make it work for a specific window name?
The name of the window is "RookieNEXUS"

I'm not sure if that's possible, the window might not be created at this point. But I don't have the installed so I can't really test.
But I'm also not sure what exactly you're trying to do. If you got one game folder where you don'T want any limits then you could just use the old winmm.dll there and in the RookieNEXUS game folder you use the new one? Shouldn't that work?

Oh, as you said at the beginning, opening 4 windows was successful!
I want to add additional functions here!
I want to apply it only to NEXUS named "RookieNEXUS". I want to prevent windows with other names from working.

If you put the one attached below into your "RookieNEXUS" folder then it would allow 4 instances. At the same time will block all original nexus variants (even those that are in a different folder):
NexusTK-RookieNEXUS.zip
This trick will not work if you place the other winmm.dll into a other nexus folder, it will not be possible to stop it from creating windows (it can only block the original game WITHOUT winmm.dll)

Thanks for your reply.
There seems to be a misunderstanding!
This method launched the game even though the name was not "RookieNEXUS"
For example, if the game has the name "RookieNEXUS", then 4 should be allowed.
However, I don't want the game to run if it's named "NEXUS" or something else!

Ah right, yeah that's probably not possible without game patches. The window was not created yet so I can't check the name.

If so, should I put the code in the source code of cnc-ddraw?

You could do that yeah

Can you help me... It's beyond my abilities... TT

ddraw.zip
This one will check the name of the window and if it isn't "RookieNEXUS" then it will just close the game

Wow thank you for your hard work.
Is it possible to share the source code as well?
I think it will be a great help in studying.

I added this:
    if (lpWindowName && strcmpi(lpWindowName, "RookieNEXUS") != 0)
    {
        _exit(0);
    }

here:
https://github.com/FunkyFr3sh/cnc-ddraw/blob/b4352232c8cfd99dd6cdf5e08aaea5ec5863e66b/src/winapi_hooks.c#L1736

Thank you again.
Is it possible to merge winmm.dll into ddraw.dll to make one ddraw.dll?

Might be possible, but I can't test it so you'll have to try
ddraw-no-winmm.zip

I'll do the test! Thank you so much! I'll do it right now

Thank you so much. It works great!!
I have one more question.
Can RookieNEXUS' game window be connected to a specific IP and port?

No, that's not going to be that easy lol

Oh...
Someone implemented it, and I would like to try making it accordingly.
I know this might be annoying, but can I ask for your help?

So what exactly are you trying to do? You want to check to what server ip the game connects and if it isn't the right ip then just close the game?

Someone implemented it, and I would like to try making it accordingly.
What has he done?

that's right!
What you said is correct.
If the IP and port are not for a specific server, it has been terminated!

Well, I don't know anything about this game. No idea where you insert the server ip to the game reads it.
If you got someone else who done the same already and you got the code for it then i could copy it over for you.

He absurdly didn't share the code...
As far as I know, a window is created and you have to enter the IP.
Until now, after creating a shortcut file, I entered the IP and port after the path to the program and connected!

ddraw.zip
test run it once with your shortcut and then upload me the log so I can see how it looks like

cnc-ddraw-NEXUS-1.log
Here it is!
Also, as I recall, even if I tried connecting to a different IP through a shortcut, I was only able to connect to the IP specified in ddraw.dll .

ddraw.zip
This will now refuse to start the game if the ip/port doesn't match (or if no ip/port passed at all)

thank you so much for your hard work...!
Works great!!
Could you please share the source code?

np!
        int nArgs;
        LPWSTR* szArglist = CommandLineToArgvW(GetCommandLineW(), &nArgs);
        if (szArglist)
        {
            if (nArgs < 3 ||
                wcscmp(szArglist[1], L"100.125.109.89") != 0 ||
                wcscmp(szArglist[2], L"2010") != 0)
            {
                _exit(0);
            }

            LocalFree(szArglist);
        }
        else
        {
            _exit(0);
        }

I inserted this:
here:
https://github.com/FunkyFr3sh/cnc-ddraw/blob/b4352232c8cfd99dd6cdf5e08aaea5ec5863e66b/src/dllmain.c#L57

It's such a sexy way...
Thank you so much for your great help.

When trying to connect with a different IP and port, 100.125.109.89
Is it possible to change the IP and port to 2010 and allow it to connect?
The part you helped with will stop completely if the IP is different.

ddraw.zip
int nArgs;
LPWSTR* szArglist = CommandLineToArgvW(GetCommandLineW(), &nArgs);

if (!szArglist ||
    nArgs < 3 ||
    wcscmp(szArglist[1], L"100.125.109.89") != 0 ||
    wcscmp(szArglist[2], L"2010") != 0)
{
    char exe_path[MAX_PATH] = { 0 };
    GetModuleFileNameA(NULL, exe_path, _countof(exe_path) - 1);

    ShellExecuteA(NULL, "open", exe_path, "100.125.109.89 2010", NULL, 0);

    _exit(0);
}

LocalFree(szArglist);

If the IP you are trying to run using the method you provided is not 100.125.109.89 and the port is not 2010, the game will not run at all.
on the other way,
If I try with 100.125.109.89 2010 it is successful.
What I want is to be directed to 100.125.109.89 2010 even if I try to connect to 127.0.0.1 2010.

Yeah, that's exactly what it's doing. I moved the code to another place, maybe we got more luck there
ddraw.zip

cnc-ddraw.zip
ddraw.zip

An error occurs. win32 (8)
It's called insufficient memory resources.
The game doesn't run.

hm, no idea... The first build did indeed not work (I tested it with another game) - but last one does work now for me. Maybe it somehow doesn't work with NexusTK

You're almost there with the answer...
All previous builds worked fine, the last build is the problem

one last try: ddraw.zip
tested it with 2 different games and it works on both - So if that still doesn't work then you just can't have the automatic server switch (you'll have to use the build from before that change)

Could you please tell me the source code as well? Please!

cnc-ddraw.zip
Make sure you check the task manager, it could be that one game instance is stuck and didn't exit from the last tests

Oh, it will run again.
However, if you run it as 127.0.0.1 2010, it will connect to the IP address of 127.0.0.1 2010.
It does not redirect to 100.125.109.89 2010
Could you please try one last time...?
There is no one around like you when it comes to programming TT

moved it again to another location:
ddraw.zip
cnc-ddraw.zip

When the IP address is 100.125.109.89 2010, the game runs.
If a different IP is entered, a memory resource shortage error occurs.
I think we're almost there!

I have no idea why that would happen
ddraw.zip
cnc-ddraw.zip

andoeneyo daleun-aipi iblyeogsi olyuga balsaenghabnida.
It doesn't work. An error occurs when entering a different IP.
Could it be related to running administrator privileges?
The person implementing your cnc -ddraw requires administrator privileges.

it could be related to administrator privileges yeah, it's because the game is trying to restart itself

that's right. All ddraw.ll implementations that enabled redirection required administrator privileges!

Based on my research so far, it seems to be a path issue.
ShellExecuteW(NULL, L"open", exe_path, L"103.124.100.89 2010", NULL, 0);
(exe_path) part seems to be the problem.
If I enter NEXUS.exe without the exe_path part, it works properly.
Are there any factors that could cause problems with this method?
If possible, I would like to follow the method you created.

ah nice! Yeah that should work.
ddraw.zip
int nArgs;
LPWSTR* szArglist = CommandLineToArgvW(GetCommandLineW(), &nArgs);

if (!szArglist ||
    nArgs < 3 ||
    wcscmp(szArglist[1], L"100.125.109.89") != 0 ||
    wcscmp(szArglist[2], L"2010") != 0)
{
    WCHAR exe_path[MAX_PATH] = { 0 };
    GetModuleFileNameW(NULL, exe_path, _countof(exe_path) - 1);

    WCHAR exe_file_name[MAX_PATH] = { 0 };
    WCHAR exe_file_ext[MAX_PATH] = { 0 };
    _wsplitpath(exe_path, NULL, NULL, exe_file_name, exe_file_ext);

    WCHAR exe_name[MAX_PATH] = { 0 };
    _snwprintf(
        exe_name,
        _countof(exe_name) - 1,
        L"%s%s",
        exe_file_name,
        exe_file_ext);

    ShellExecuteW(NULL, L"open", exe_name, L"100.125.109.89 2010", NULL, 0);
    SetLastError(0);

    _exit(0);
}

LocalFree(szArglist);

Oh my god;
Same symptoms as before
If the IP address is correct, the game will run.
However, if it is a different IP, an insufficient memory resource error occurs.
The way I did it was,  ShellExecuteW(NULL, L"open",  L"NEXUS.exe", L"100.125.109.89 2010", NULL, 0);
The path problem has occurred again, right?

That's strange, the new "exe_name" I added also contains "NEXUS.exe"
I guess you can just use your solution then, but it will only work as long as the game exe is named "NEXUS.exe" though

Thank you so much.
This is off topic, but how many years have you been a programmer? It's amazing.
Additional question. If I don't want to create cnc log files, can I delete the debug.c file?

Thank you so much. This is off topic, but how many years have you been a programmer? It's amazing.

a couple years,..

Additional question. If I don't want to create cnc log files, can I delete the debug.c file?

No, you have to change the build to "ReleaseXP" or "Release" instead of using "Debug..." in visual studio

Thank you so much. I will study hard and become as capable as you!!
All questions have been resolved. I wanted to solve the route problem using your method... but it's too bad TT

I'm really sorry. I'd like to ask one last question.
I understand that if the initial IP is not 103.124.100.89 2010, it will be terminated and reconnected.
I would like to change my method. As soon as you first start the program, change the IP
Is there any way to connect to 103.124.100.89 2010??

you want to do the same as there is now, but without restarting the process?
You would have to patch the game to do that, that's not something you want do it from a directdraw wrapper like cnc-ddraw

I remember that the program someone implemented did not restart.
Will this method be very troublesome?

Not sure how difficult it would be, but that's not something I can help you with

Thank you for your reply. It really helped me a lot. Have a happy day ^^

Thank you so much for your help.
If the window name I told you last time is not RookieNEXUS, it should close.
However, it works even if it is not RookieNEXUS. Where should I move the code?

I noticed that too during the last tests, it's probably because the window is created before ddraw.dll is loaded. That's why the trick doesn't work.
ddraw.zip
insert this:
        if (strcmp(g_ddraw.title, "RookieNEXUS") != 0)
        {
            _exit(0);
        }

here:
https://github.com/FunkyFr3sh/cnc-ddraw/blob/b4352232c8cfd99dd6cdf5e08aaea5ec5863e66b/src/dd.c#L1445

It's perfect
Thank you so much!!
It works perfectly.
have a good day ^^

A variable has been created!
g_ddraw.iscnc1 = strcmp(g_ddraw.title, "NEXUS") == 0;
if (g_ddraw.iscnc1)
{
SetWindowText(hwnd, "RookieNEXUS");
}
if (strcmp(g_ddraw.title, "RookieNEXUS") != 0)
{
_exit(0);
}
I changed the name of the title like this.
This method only works if the window's name is NEXUS.

nice 👍  Might need to change the secodn check now to "else if..." instead of "if" ... otherwise it will still exit

If so, for example, it will work even if it is Hiki NEXUS rather than Rookie NEXUS.
I only want it to work when RookieNEXUS is running.
Is there no way?

Why do you change the window title then if you don't want it to work with anything other than RookieNEXUS?

If I don't change the window title, it just says NEXUS.
Is there any other way than the previous method?

hm, it doesn't make sense to me. If it really says NEXUS then the game shouldn't start because there is a check for RookieNEXUS that would _exit the game if it doesn't match

Is the "strcmp" function unable to retrieve the name changed with SetWindowText?

If this happens, the game will not run.
If you put NEXUS in place of RookieNEXUS, the game will work.

So your problem is you don't even have a game/mod that has the window title "RookieNEXUS" yet? You should patch that in the game exe. If you don't patch it then you'll have to replace "RookieNEXUS" with "NEXUS" in the code.

I was thinking wrong!
I thought it would be simple, but it wasn't...
Thank you every time!!  haha...  it helped me a lot!!


text:
Incorrect versions on modrinth

Carpet fixes v1.17.0 is listed as compatible with MC 1.20, 1.20.1 and 1.20.2, but doesn't actually work on those versions

Also, it works on MC 1.20.3, but in the changelog it's said that it's incompatible with MC versions from 1.20 to 1.20.3

Fixed

authors: FxMorin mdhlp

repo: FxMorin/carpet-fixes


text:
display:inline-table

display:inline-table

This issue was imported from Google Moderator
Moderator votes: +11
Issue added by erspark on 2014-03-30
To vote this issue up or down, simply include +1 or -1 in your comment.

Duplicate of #1087.

authors: Fyrd cvrebert

repo: Fyrd/caniuse


text:
https://developer.mozilla.org/en-US/docs/Web/API/window.atob

https://developer.mozilla.org/en-US/docs/Web/API/window.atob

This issue was imported from Google Moderator
Moderator votes: +3
Issue added by Oria on 2014-04-11
To vote this issue up or down, simply include +1 or -1 in your comment.

Already added at http://caniuse.com/#feat=atob-btoa


text:
ICC Profiles?

Trying to find which browsers can handle ICC profiles..
https://www.color-management-guide.com/web-browser-color-management.html

Arguably duplicate of #1464 if that doesnt only count for JPEG, at least related for sure. #1464 might also be not that discoverable, maybe its title should be changed?

+1

authors: Schweinepriester ahainen enn-nafnlaus


text:
Add Firefox Android support for HTML media capture

Manually verified on the latest version; MDN suggests that support has existed since version 79 (https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/capture).

Also: the current version of Firefox for Android on caniuse is listed as 101, but appears to actually be 104.

Confirmed, thanks! Will look into updating the version number as well.


text:
Bug: Schema which use the array type, display field labels when the array contains only empty strings

Bug: In non-array field types, a non-empty string is required for that field to show up in the document display view.
When the schema field is of type array, the field label is always shown, even if the array only contains an empty string.
Suggestion: It would be nice if the labels didn't shown when an array equals the initial value of [ "" ].

This behaviour is linked with the way Handlebars (and Mustache) interprets what is "falsy" and not. Your question contains two elements: strings and arrays. I'll address those separately.
Using an example where a definition file is in use to create a schema. Here is an excerpt of the definition:
{
	"group": "demo",
	"id": "test",
	"label": "Test Schema",
	"attributes":[
		{
			"type":"string"
			,"id":"title"
			,"label":"Title"
			,"includedInBrief":true
			,"placeholder": "Title"
		}
	]
}

When the schema is produced from this definition, the portion of the display field associated with the "title" element is:
{{#demo_test}}
	{{#if title}}

Title

{{title}}

	{{/if}}
{{/demo_test}}

Obviously, this generated code follows patterns that we have used in the past. The instruction {{#if title}} ensures that this portion is printed only if the attribute "title" is "thruty" (inverse of "falsy"). In Handlebars, the definition of falsy is
false, undefined, null, "", 0, or []

Ref: http://handlebarsjs.com/builtin_helpers.html
To have an attribute displayed in the "display" portion of the schema regardless of its value, remove the #if instruction. This has always been available to schema creators that edit their schema manually. When using a schema definition, we do not have a way to force the display. This could be a possible enhancement to schema definition.

Following the previous comment, I will attempt to discuss the situation with arrays. Here is an example of schema definition and the generated display field.
{
	"group": "demo",
	"id": "test",
	"label": "Test Schema",
	"attributes":[
		{
			"type":"array"
			,"id": "authors"
			,"label": "Authors"
			,"elementType": "string"
		}
	]
}

{{#demo_test}}

Authors

		{{#authors}}

{{.}}

		{{/authors}}

{{/demo_test}}

In this case, the generated code does not contain a {{#if}} instruction. Maybe it should. However, even if it did, an array like [""] would not be "falsy". Adding a {{#if}} instruction would prevent this block from being shown if and only if the field was null or [].
This behaviour, if corrected, would not address your issue. In your case, the following link might be more what you are looking for:
https://github.com/GCRC/nunaliit/wiki/Atlas-Builder-Documentation#custom-document-display
Using the "preprocessDocument" function, one could create a field on the document with a different name than the original one, let's say "authors_fixed", where the array would be made "null" under the appropriate circumstances.
Custom Types (https://github.com/GCRC/nunaliit/wiki/Atlas-Builder-Documentation#schema-custom-type) would not address your situation completely.
However, manual editing of the schema always yields the exact behaviour desired by the schema editor.

Thank you JP.
I looked over the documentation you suggested and I think I found a solution to my problem, which I'll share here.
For starters I updated the create.json file to make sure the array was initiated with the value of [] rather than [""]. That way it can be falsy as you noted above.
Next I rewrote the display.txt to suit my needs of hiding the field names, when the array is [], and displaying when the array != []. To accomplish this, I changed the generated code in the display.txt file for my name array from;
{{#testschema}}

Name

            {{#name}}

                    {{.}}

            {{/name}}

{{/testschema}}

to;
{{#testschema}}
    {{#if name}}

Name

                    {{#each name}}

{{this}}

                    {{/each}}

    {{/if}}
{{/testschema}}

If it works for you, then that's great.
Maybe the {{#if}} instruction should be added for arrays. This way, empty arrays would not be shown in the display.
Also, we could add a flag to attributes to specify that they be displayed, regardless of state.
These two changes should address your issues, right?

Can you please create issues to track those two items so we can close this down?

Did we still want to include a flag as suggested by JP for turning on or off the display of an schema field? Or are the excludedFromForm and excludedFromDisplay attributes sufficient for this task?

authors: ahayes boikle jpfiset

repo: GCRC/nunaliit


text:
want to add dark and light mode toggle

I'm always frustrated when browsing websites or applications without the option to switch between dark and light modes. The lack of this feature often leads to eye strain, especially in low-light environments, and reduces the overall user experience.
Describe the solution you'd like I propose implementing a dark and light mode toggle on our website. This feature would allow users to easily switch between dark and light themes based on their preference or environment. It enhances the user experience by providing a comfortable viewing option in different lighting conditions.
Describe alternatives you've considered
Manual CSS Switch: Manually change the CSS files for dark and light modes, but this approach is cumbersome and not user-friendly.
Browser Extensions: Relying on browser extensions for dark mode, but this isn't consistent acro

ss all users and browsers.

JavaScript Libraries: Use a third-party JavaScript library for theme switching, but this can be overkill for a simple feature.
Additional context Implementing a dark and light mode toggle using HTML and CSS will significantly improve the usability of our website

Use a more unique button if you can, assigned

@rishicds

is this fine?

@rishicds

is this fine?

Yes,this is nice

will update u after i am done with my work! pls update the level if u liked my work!

@rishicds can u pls check and pls update the level if u liked it!

The pull requests are on your repo not this one, also please make it a React Component, and make it one single pull request @sv410

@rishicds will work on and update! pls add level 3 and hacktoberfest

this repo is not a part of hacktoberfest @sv410

repo: GDSC-RCCIIT/gdg-website


text:
Contributing.md

Added the full list of steps to follow from forking the repositry to making a pull request in an efficient manner.

Pls check @Guneetsinghtuli

repo: GDSC-adgitm/Resume-builder


text:
Dockerfile - Use a single directive to add all the configuration

This will simplify the maintenance of the image.
Currently:
ADD core-site.xml $HADOOP_CONF_DIR/core-site.xml
ADD yarn-site.xml $HADOOP_CONF_DIR/yarn-site.xml
ADD mapred-site.xml $HADOOP_CONF_DIR/mapred-site.xml
ADD hdfs-site.xml $HADOOP_CONF_DIR/hdfs-site.xml

Instead we should add a single folder.
If we replace directly the default configuration directory /usr/local/hadoop/etc/hadoop, some things may break as there are some important files in there:
root@hdfs-namenode:/usr/local/hadoop/etc/hadoop# ls -l
total 156
-rw-r--r-- 1  999  999  4436 Nov 13  2014 capacity-scheduler.xml
-rw-r--r-- 1  999  999  1335 Nov 13  2014 configuration.xsl
-rw-r--r-- 1  999  999   318 Nov 13  2014 container-executor.cfg
-rw-rw-r-- 1 root root   873 Aug 26 16:20 core-site.xml
-rw-r--r-- 1  999  999  3670 Nov 13  2014 hadoop-env.cmd
-rw-r--r-- 1  999  999  4224 Nov 13  2014 hadoop-env.sh
-rw-r--r-- 1  999  999  2490 Nov 13  2014 hadoop-metrics.properties
-rw-r--r-- 1  999  999  2598 Nov 13  2014 hadoop-metrics2.properties
-rw-r--r-- 1  999  999  9683 Nov 13  2014 hadoop-policy.xml
-rw-rw-r-- 1 root root  1284 Aug 26 16:20 hdfs-site.xml
-rw-r--r-- 1  999  999  1449 Nov 13  2014 httpfs-env.sh
-rw-r--r-- 1  999  999  1657 Nov 13  2014 httpfs-log4j.properties
-rw-r--r-- 1  999  999    21 Nov 13  2014 httpfs-signature.secret
-rw-r--r-- 1  999  999   620 Nov 13  2014 httpfs-site.xml
-rw-r--r-- 1  999  999  3523 Nov 13  2014 kms-acls.xml
-rw-r--r-- 1  999  999  1325 Nov 13  2014 kms-env.sh
-rw-r--r-- 1  999  999  1631 Nov 13  2014 kms-log4j.properties
-rw-r--r-- 1  999  999  5511 Nov 13  2014 kms-site.xml
-rw-r--r-- 1  999  999 11291 Nov 13  2014 log4j.properties
-rw-r--r-- 1  999  999   938 Nov 13  2014 mapred-env.cmd
-rw-r--r-- 1  999  999  1383 Nov 13  2014 mapred-env.sh
-rw-r--r-- 1  999  999  4113 Nov 13  2014 mapred-queues.xml.template
-rw-rw-r-- 1 root root   840 Aug 26 16:20 mapred-site.xml
-rw-r--r-- 1  999  999   758 Nov 13  2014 mapred-site.xml.template
-rw-r--r-- 1  999  999    10 Nov 13  2014 slaves
-rw-r--r-- 1  999  999  2316 Nov 13  2014 ssl-client.xml.example
-rw-r--r-- 1  999  999  2268 Nov 13  2014 ssl-server.xml.example
-rw-r--r-- 1  999  999  2237 Nov 13  2014 yarn-env.cmd
-rw-r--r-- 1  999  999  4567 Nov 13  2014 yarn-env.sh
-rw-rw-r-- 1 root root   883 Aug 26 16:20 yarn-site.xml

For instance, some scripts may expect a working hadoop-env.sh and break if the script does not exists.
Probably the best way would be to mount the local conf/ dir into a different directory using the ADD Dockerfile directive, and them either:

Symlink our conf files into the default hadoop dir (thus overwriting only the files present in this github repo)
or the opposite.

Fixed and merged in master.

repo: GELOG/docker-ubuntu-hadoop


text:
remove cloudinary provider module

The cloudinary provider module which requires the image/document payload to be passed through the xyz host has been removed.
The signer module has now been reviewed and documented.
The cloduinary signer module has now been reviewed and documented.
The module will not fail silently but return an error message.
The cloudinary entry is now using the cloudinary signer module.
The cloudinary entry is now reviewed and documented.
The cloudinary entry requires a cloudinary account. However, no third party module is required to sign requests, hence the cloudinary signer is included in the XYZ core and the cloudinary entry method is included in the mapp location entries.

Works as expected. I've replaced alerts and confirms with ui elements plus more human wording on removal confirm;

This can't work with both images and documents.

authors: RobAndrewHurst dbauszus-glx

repo: GEOLYTIX/xyz


text:
Test for version of Apple command line utilities to decide whether '-Wl,-ld_classic' is needed

All in the title.
I tested this on my mac with version 14 and it did not apply the flags (which is correct).

I rebased against develop as that is where we put new features (usually). I'll work on testing this on my Macs to make sure it doesn't hurt (not sure how it could but just in case...)

Hmm. And I realize I might have just made the same sin on Baselibs. I guess I'm just used to everyone at NASA being on macOS 15. Well, cross that bridge when I come to it...

I crossed the bridge. Dang. Welp, time to "borrow" your code for Baselibs :)

Actually, you are right, this is a bug on main. My bad.

@climbfuji Well, this seems to work for me on my mac (where the flag is needed). So feel free to undraft when you want.

Undrafted! I see a few CI errors realted to changelog and PR labels, can you help with that please?

I used superpowers to merge in. Something...weird with github.

Thanks @mathomp4 ! Now all we need is a tag for this? and a GEOS PR :-)

Thanks @mathomp4 ! Now all we need is a tag for this? and a GEOS PR :-)

Done:
https://github.com/GEOS-ESM/ESMA_cmake/releases/tag/v3.45.2
and done:
https://github.com/GEOS-ESM/GEOSgcm/pull/784


text:
mepo aliases a la git aliases

Per @JulesKouatchou:

I know that in Git, you can issue the commands:
git config --global alias.co "checkout"
git config --global alias.ci "commit"
git config --global alias.cm "commit -m"
git config --global alias.cam "commit -am"
git config --global alias.st "status

and the following will be added to the .gitconfig file in your home directory:
[alias]
       co = checkout
       ci = commit
       st = status
       cm = commit -m
       cam = commit -am

I believe that it can be possible to do something similar with mepo:
mepo config --global alias.co "checkout"
memo config --global alias.ci "commit"
mepo config --global alias.cm "commit -m"
mepo config --global alias.cam "commit -am"
mepo config --global alias.st "status

and the a .mepoconfig YAML file will be created (if not already) with:
                        ---
alias:
        co: checkout
        ci: commit
        st: status
        cm: commit -m
        cam: commit -am

If you want, I can explore and implement how it can be done.

Better to keep this on a specific $HOME/.mepoconfig. This way we can have other repo specific preferences, such as @ style saved as well.

repo: GEOS-ESM/mepo


text:
Showing 340+ warnings in Swift 4 version

Thanks for the great library. But, it is showing 340+ warnings in my xcode for Swift 4 version.
Can you make compatible if possible to Swift 4?

@AnilkumarRabhasa can you please post a screenshot or log?

PFA.

@AnilkumarRabhasa that's lib geos and not GEOSwift. https://github.com/OSGeo/geos.git

authors: AnilkumarRabhasa vfn

repo: GEOSwift/GEOSwift


text:
Update playernames

Check playername on redeem process and update name in players.json if it changed

included and testing in dev-branch


text:
errors when pip install module

Hello, my terminal is anaconda3-64 bit and my os is win10-64bit, and my error is about pip install module and running getting_started.py error in line 51-59  'file does not start with a file id tag'

@ighui Can you explain what steps did you follow exactly? Did you also tried to run the Jupyter notebook?

authors: deep-introspection ighui

repo: GHFC/HyPyP


text:
Check that crustal data export excludes subduction geometries

@andy22b I found the CFM XML contains the following elements which look supspiciously like subduction data.
Can you help us figure out if they're considered Crustal or not? &  If NOT, then we need a feature that can filter these out.
Hikurangi
(eq-fault-geom) chrisbc@tryharder-ubuntu:~/DEV/GNS/eq-fault-geom/src$>grep Hikurangi NZ_CFM_V0.3_crustal_opensha.xml
    <i152 sectionId="152" sectionName="Hikurangi Hawke Bay" aveLongTermSlipRate="44.0" slipRateStDev="3.0" aveDip="0.0" aveRake="90.0" aveUpperDepth="0.0" aveLowerDepth="20.0" aseismicSlipFactor="0.0" couplingCoeff="1.0" dipDirection="296.8" parentSectionId="-1" connector="false">
      <FaultTrace name="Hikurangi Hawke Bay">
    <i153 sectionId="153" sectionName="Hikurangi Raukumara" aveLongTermSlipRate="54.0" slipRateStDev="6.0" aveDip="0.0" aveRake="90.0" aveUpperDepth="0.0" aveLowerDepth="20.0" aseismicSlipFactor="0.0" couplingCoeff="1.0" dipDirection="301.4" parentSectionId="-1" connector="false">
      <FaultTrace name="Hikurangi Raukumara">
    <i154 sectionId="154" sectionName="Hikurangi Wellington" aveLongTermSlipRate="25.0" slipRateStDev="5.0" aveDip="0.0" aveRake="90.0" aveUpperDepth="0.0" aveLowerDepth="30.0" aseismicSlipFactor="0.0" couplingCoeff="1.0" dipDirection="336.4" parentSectionId="-1" connector="false">
      <FaultTrace name="Hikurangi Wellington">

Puysegur
(eq-fault-geom) chrisbc@tryharder-ubuntu:~/DEV/GNS/eq-fault-geom/src$ grep Puys NZ_CFM_V0.3_crustal_opensha.xml
    <i431 sectionId="431" sectionName="Puysegur" aveLongTermSlipRate="27.0" slipRateStDev="9.0" aveDip="20.0" aveRake="115.0" aveUpperDepth="0.0" aveLowerDepth="15.0" aseismicSlipFactor="0.0" couplingCoeff="1.0" dipDirection="101.3" parentSectionId="-1" connector="false">
      <FaultTrace name="Puysegur">
    <i432 sectionId="432" sectionName="Puysegur Ridge" aveLongTermSlipRate="14.0" slipRateStDev="14.0" aveDip="85.0" aveRake="180.0" aveUpperDepth="0.0" aveLowerDepth="12.0" aseismicSlipFactor="0.0" couplingCoeff="1.0" dipDirection="107.8" parentSectionId="-1" connector="false">
      <FaultTrace name="Puysegur Ridge">

@andy22b I see it should be easy enough to filter out using standard dataframes in the calling script. For now, until we know the status, I'm going to remove those suspect fault sections as they're causing some issues in opensha.

repo: GNS-Science/eq-fault-geom


text:
GPII-3464: Update gpii-express dependencies (October 2018).

See GPII-3464 for details.

This is fine to merge

repo: GPII/gpii-express


text:
Autoflow issue / documentation needed

Hi,
I'm implementing Spectral Mixture Kernel. The implementation is in its nascent stage but I have followed all the instructions given in the kernel documentation (here I have replaced the actual kernel computation with that of RBF below). The difference when compared to other kernel implementations is that I have a initialize_ method for initializing the parameters and I'm not inheriting from class Stationary as the parameters here are different even though it is a stationary kernel. There is some reason (which is not evident to me) I'm running in this error in decor.py
            if obj.is_built_coherence(obj.graph) is Build.NO:
                raise GPflowError('Not built with "{graph}".'.format(graph=obj.graph))

Could you please tell what the issue might be. Stuck over this for days now. Thanks in advance.
class SpectralMixture(Kernel):
    def __init__(self, num_mixtures=1, mixture_weights=None,\
                 mixture_scales=None,mixture_means=None,\
                 input_dim=1,active_dims=None,name='SpectralMixture'):
       '''
        - num_mixtures is the number of mixtures; denoted as Q in
        Wilson 2013.
        - mixture_weights
        - mixture_variance is
        - mixture_means is the list (or array) of means of the
        mixtures.
        - input_dim is the dimension of the input to the kernel.
        - active_dims is the dimension of the X which needs to be used.

        References:
        http://hips.seas.harvard.edu/files/wilson-extrapolation-icml-2013_0.pdf
        http://www.cs.cmu.edu/~andrewgw/typo.pdf
        '''

        super().__init__(input_dim,active_dims,name=name)
        # Q(num_of_mixtures)=1 then SM kernel is SE Kernel.
        if num_mixtures == 1:
            print("Using default mixture = 1")

        # number of mixtures is non trainable.
        self.num_mixtures = num_mixtures
        #Parameter(num_mixtures,trainable=False)

        self.mixture_weights = mixture_weights

        self.mixture_scales = mixture_scales

        self.mixutre_means = mixture_means

    def initialize_(self, train_x, train_y):

        self.input_dim = np.shape(train_x)[1]

        if np.size(train_x.shape) == 1:
            train_x = np.expand_dims(train_x,-1)
        if np.size(train_x.shape) == 2:
            train_x = np.expand_dims(train_x,0)

        train_x_sort = np.copy(train_x)
        train_x_sort.sort(axis=1)

        max_dist = np.squeeze(train_x_sort[:,-1, :] - train_x_sort[:,0, :])

        min_dist_sort = np.squeeze(np.abs(train_x_sort[:,1:, :] - train_x_sort[:,:-1, :]))
        min_dist = np.zeros([self.input_dim],dtype=float)

        # min of each data column could be zero. Hence, picking minimum which is not zero
        for ind in np.arange(self.input_dim):
            min_dist[ind] = min_dist_sort[np.amin(np.where(min_dist_sort[:,ind]>0),axis=1),ind]

        # for random restarts during batch processing. We need to initialize at every
        # batch. Lock the seed here.
        seed= np.random.randint(low=1,high=10**10)
        np.random.seed(seed)

        #Inverse of lengthscales should be drawn from truncated Gaussian |N(0, max_dist^2)|
        # dim: Q x D
        #self.mixture_scales = tf.multiply(,tf.cast(max_dist,dtype=tf.float32)**(-1)

        self.mixture_scales = (np.multiply(np.abs(np.random.randn(self.num_mixtures,\
                      self.input_dim)),np.expand_dims(max_dist,axis=0)))**(-1)
        self.mixture_scales = Parameter(self.mixture_scales,\
                                        transform=transforms.positive)

        # Draw means from Unif(0, 0.5 / minimum distance between two points), dim: Q x D
        # the nyquist is half of maximum frequency. TODO
        nyquist = np.divide(0.5,min_dist)
        self.mixture_means = np.multiply(np.random.rand(self.num_mixtures\
                            ,self.input_dim),np.expand_dims(nyquist,0))
        self.mixture_means = Parameter(self.mixture_means)

        # Mixture weights should be roughly the std of the y values divided by
        # the number of mixtures
        # dim: 1 x Q
        self.mixture_weights= np.divide(np.std(train_y,axis=0),\
                            self.num_mixtures)*np.ones(self.num_mixtures)
        self.mixture_weights= Parameter(self.mixture_weights)
        return None

    @params_as_tensors
    def K(self, X1, X2=None):
        if self.mixture_weights == [] or self.mixture_means == [] \
                                      or self.mixture_scales == []:
                raise RuntimeError('Parameters of spectral mixture kernel not initialized.\
                                    Run `sm_kern_object.initialize_(train_x,train_y)`.')
                # initialization can only be done by user as it needs target data as well.
        if X2 is None:
            X2 = X1

        return tf.exp(-self.scaled_square_dist(X2, X1) / 2)

    @params_as_tensors
    def Kdiag(self, X):

        # just the sum of weights. Weights represent the signal
        # variance.
        return tf.fill(tf.stack([tf.shape(X)[0]]),\
                              tf.sum(self.mixture_weights))

Can we please have documentation on how to use the autoflow. thank you.

Hi, I tried reproducing the issue but it's non-trivial to get your snippet to work - could you please provide a minimal failing example as a github-gist or something like that, including correct imports, some sample data, etc.? That would make it much easier to help!

Hi @st-- , thanks for your comment. The error happened as the my code was buddy, which led to an incomplete graph and its operations. Here is the code for SM kernel with minimum working example.
Spectral Mixture Kernel
import tensorflow as tf
import numpy as np
from gpflow.decors import params_as_tensors
from gpflow.params import Parameter
from gpflow.kernels import Kernel,RBF,Cosine
from gpflow import transforms, autoflow,settings

class SpectralMixture(Kernel):
    def __init__(self, num_mixtures=1, mixture_weights=None,\
                 mixture_scales=None,mixture_means=None,\
                 input_dim=1,active_dims=None,name=None):
        """
        - num_mixtures is the number of mixtures; denoted as Q in
        Wilson 2013.
        - mixture_weights
        - mixture_variance is
        - mixture_means is the list (or array) of means of the
        mixtures.
        - input_dim is the dimension of the input to the kernel.
        - active_dims is the dimension of the X which needs to be used.

        References:
        http://hips.seas.harvard.edu/files/wilson-extrapolation-icml-2013_0.pdf
        http://www.cs.cmu.edu/~andrewgw/typo.pdf
        """
        super().__init__(input_dim,active_dims,name=name)
        # Q(num_of_mixtures)=1 then SM kernel is SE Kernel.
        if num_mixtures == 1:
            print("Using default mixture = 1")

        # number of mixtures is non trainable.
        self.num_mixtures = Parameter(num_mixtures,trainable=False)
        self.mixture_weights = Parameter(mixture_weights)
        self.mixture_scales = Parameter(mixture_scales,transform=transforms.positive)
        self.mixture_means = Parameter(mixture_means)

    @params_as_tensors
    def K(self, X1, X2=None):
        if self.mixture_weights == None or self.mixture_means == None \
                                      or self.mixture_scales == None:
                raise RuntimeError('Parameters of spectral mixture kernel not initialized.\
                                    Run `sm_kern_object.initialize_(train_x,train_y)`.')
                # initialization can only be done by user as it needs target data as well.
        if X2 is None:
            X2 = X1

        # get absolute distances
        X1 = tf.transpose(tf.expand_dims(X1, -1), perm=[1, 0, 2])  # D x N1 x 1
        X2 = tf.expand_dims(tf.transpose(X2, perm=[1, 0]), -2)  # D x N2 x 1

        r = tf.transpose(tf.abs(tf.subtract(X1, X2)), perm=[0, 2, 1])  # D x N1 x N2

        cos_term = tf.multiply(tf.tensordot(self.mixture_means, r, axes=((1),(0))), 2. * np.pi)
        # num_mixtures x N1 x N2

        scales_expand = tf.expand_dims(tf.expand_dims(self.mixture_scales, -2), -2)
                                                                # D x 1 x 1 x num_mixtures
        r_tile = tf.tile(tf.expand_dims(r,-1),(1,1,1,self.num_mixtures))
                                                               # D x N x N x num_mixtures
        exp_term = tf.multiply(tf.transpose(tf.reduce_sum(tf.square(tf.add(r_tile, scales_expand)), 0)\
                                            ,perm=[2, 0, 1]), -2. * np.pi ** 2)

        # num_mixtures x N1 x N2
        weights = tf.expand_dims(tf.expand_dims(self.mixture_weights,-1),-1)
        weights = tf.tile(weights,(1,tf.shape(X1)[1],tf.shape(X2)[1]))
        return tf.reduce_sum(tf.multiply(weights,tf.multiply(tf.exp(exp_term),tf.cos(cos_term))),0)

    @params_as_tensors
    def Kdiag(self, X):

        # just the sum of weights. Weights represent the signal
        # variance.
        return tf.fill(tf.stack([tf.shape(X)[0]]),tf.reduce_sum(self.mixture_weights))

        # tf.tile(tf.reduce_sum(self.mixture_weights,0), tf.shape(X)[0])
        # tf.fill(tf.stack([tf.shape(X)[0]]),tf.reduce_sum(self.mixture_weights),0)

def sm_init(train_x, train_y, num_mixtures):
    """
    For initialization of the parameters for the Spectral Mixture
    Kernel.

    :param train_x: input data
    :param train_y: target data
    :param num_mixtures: number of mixtures
    :return: param_name       dimensions
             ----------       ----------
             mixture weights| num_mixtures x 1
             mixture means  | num_mixtures x input_dim
             mixture scales | input_dim x num_mixtures
    """
    assert isinstance(num_mixtures, int)
    assert train_x.shape[0] == train_y.shape[0]

    input_dim = np.shape(train_x)[1]  # type: int

    if np.size(train_x.shape) == 1:
        train_x = np.expand_dims(train_x ,-1)

    if np.size(train_x.shape) == 2:
        train_x = np.expand_dims(train_x ,0)

    train_x_sort = np.copy(train_x)
    train_x_sort.sort(axis=1)

    max_dist = np.squeeze(train_x_sort[: ,-1, :] - train_x_sort[: ,0, :])

    min_dist_sort = np.squeeze(np.abs(train_x_sort[: ,1:, :] - train_x_sort[: ,:-1, :]))
    min_dist = np.zeros([input_dim] ,dtype=float)

    # min of each data column could be zero. Hence, picking minimum which is not zero
    for ind in np.arange(input_dim):
        try:
            min_dist[ind] = min_dist_sort[np.amin(np.where(min_dist_sort[:,ind] > 0), axis=1), ind]
        except:
            min_dist[ind] = min_dist_sort[np.amin(np.where(min_dist_sort > 0), axis=1)]

    # for random restarts during batch processing. We need to initialize at every
    # batch. Lock the seed here.
    seed= np.random.randint(low=1 ,high=2**31)
    np.random.seed(seed)

    # Inverse of lengthscales should be drawn from truncated Gaussian |N(0, max_dist^2)|
    # dim: Q x D
    # mixture_scales = tf.multiply(,tf.cast(max_dist,dtype=tf.float32)**(-1)

    mixture_scales = (np.multiply(np.abs(np.random.randn(num_mixtures,input_dim)),
                                         np.expand_dims(max_dist ,axis=0)))**(-1)

    # Draw means from Unif(0, 0.5 / minimum distance between two points), dim: Q x D
    # the nyquist is half of maximum frequency. TODO
    nyquist = np.divide(0.5 ,min_dist)
    mixture_means = np.multiply(np.random.rand(num_mixtures,input_dim),\
                                                       np.expand_dims(nyquist,0))
    mixture_means[0,:] = 0

    # Mixture weights should be roughly the std  of the y values divided by
    # the number of mixtures
    # dim: 1 x Q
    mixture_weights= np.divide(np.std(train_y,axis=0),num_mixtures)*np.ones(num_mixtures)

    return mixture_weights, mixture_means, mixture_scales.T

Minimum working example
import gpflow
import numpy as np
import matplotlib.pyplot as plt
plt.style.use('ggplot')
from . import SpectralMixture, sm_init

xx = np.linspace(-5, 5, 100)[:, None]
y = 5. * xx + np.random.randn(np.shape(xx)[0],1)

# Initialize the hyperparameters.
weights,means,scales = sm_init(train_x=X,train_y=Y,num_mixtures=3)
# call the kernel.
kern = SpectralMixture(num_mixtures=3,mixture_weights=weights,\
                 mixture_scales=scales,mixture_means=means,input_dim=1)
K = kern.compute_K_symm(xx)
plt.plot(xx, np.random.multivariate_normal(np.zeros(100), K, 3).T)
plt.show()
plt.savefig('smc_samples')

Oh, glad to hear you managed to get it to work. :-)
Do you still need any help with autoflow, or has that been resolved already as well?

Have you all seen this comment by James Hensman?
https://github.com/GPflow/GPflow/issues/312
"""
Recipe for a spectral mixture kernel:
rbf = GPflow.kernels.RBF
cos = GPflow.kernels.Cosine
k = rbf(1) * cos(1) + rbf(1) * cos(1) + rbf(1) * cos(1)
simple, right?
"""
I admittedly have hard time understanding how this can be the case.

If you look at the correct spectral mixture equation in the supplementary material and look at the derivation in the paper, you will see that the kernel is essentially the product of squared exponential(rbf) and cosine kernels. Cosine kernel (unfortunately no reference, but this) is another periodic kernel, which is defined as
$ k_cos(x,x') = \sigma_cos^2 * cos(|x - x'|) * \ell_cos) $
where $ \sigma $ and $ \ell_cos $ are signal variance and scale parameters.
If we multiply both rbf and cosine kernel, we will arrive at.
$ k_prod(x,x') = \sigma_prod^2 \exp(- (x-x')^2 / (2* \ell_rbf^2)) *  cos(|x - x'|) * \ell_cos) $
where we have combined $\sigma_rbf$ and $\sigma_cos$ to one parameter $\sigma_prod$. Now, if you compare with equation 4 in supplementary material, you will notice that the rbf kernels length scale (or rather inverse) is spectral mixture variance and cosine kernel's scale factor is spectral mixture means. I guess we just need to extrapolate this notion multiple dimensions. Notice that spectral mixture weights is just signal standard deviation $\sigma_prod$. Additionally you might need to read about the spectral mixture parameters from here.
Let me know if you have anyother questions.

I think the key is that spectral kernels provides smooth periodic function, so that intuition leads us to using rbf kernel with cosine kernel.

Interpretation of spectral parameters in short:
mixture scales - represent the variance of the different mixtures meaning, how much shift before you see the next frequency in the spectral space which in signal space is adequately conveyed by the length scale which tells how the signal behaves as we move away in distance from a particular point.
mixture means - represent the different frequencies in spectral space. A particular frequency in spectral space represent the period in signal space.
mixture weights - just weights the spectral component, high weights means the corresponding frequency has maximum presence in the signal space.

Thank you kind sir!  And props for the clarity and efficiency of that explanation -- the links were very helpful.   So my intuition allowed to vaguely reason through why that was the RBF and cosine kernel can produce a spectral mixture.  My still present question -- maybe a dumb question -- why  rbf(1)*cos(1) -- as in specifically, why ' 1 ' ? I would expect that the input would be X. Also are the two length scales completely independent of each other for the two kernels?  I would think they would come from some bivariate prior? To which I know we can use variational inference to get around that; however, that doesn't seem to be discussed in the papers.

Ah, its the kernel definition. it means the input dimension is 1 (ref this). The data is provided through model definition.
Yes, the two length scales are different, they represent two different things as described in my previous comment. We don't specify any prior for these kind of kernels. The issue of overfitting kicks in. The only problem is of initializing them smartly.

for people interested I have the Spectral mixture kernel in GPflow.
https://github.com/imsrgadich/gprsm

@imsrgadich looks super cool! I've been wanting to use a SM kernel for some things for a while.
As for the autoflow documentation, this is duly noted, and we want it as well. However, it may take some time.

authors: gsVAM imsrgadich markvdw st--

repo: GPflow/GPflow


text:
Fix mypy errors -variables are not types-

Ensure type aliases are actually types
Running MyPy over the GPFlow code raised a few type aliases which MyPy was unable to interpret as types. This PR updates those places to ensure that MyPy infers the correct type information.
Description
GPFlow includes several type aliases which are used in function signatures. In some cases it is not possible to infer that these are aliases of types, and are interpreted by MyPy as a "variable". This causes MyPy to throw an error.

LGTM. you'll just have to run it through make format.

Whoops! Sorry.

authors: johnamcleod leroidauphin


text:
DeadTime

Hello Everyone,
I have a question:
How can I extract the dead time with GRSIsort ?
Can someone help please?
Thanks,
Nastaran

See #1173

Closing duplicate issue

authors: VinzenzBildstein nastaran-s

repo: GRIFFINCollaboration/GRSISort


text:
error

[Server thread/INFO]: Orpheussl joined the game
[21:39:01.495] [Server thread/EMERGENCY]: Crash occurred while handling a packet from session: Orpheussl
[21:39:01.496] [Server thread/CRITICAL]: Error: "Class "Biswajit\SimpleForm" not found" (EXCEPTION) in "plugins/Profile-ui-main/src/Biswajit/Profile" at line 30
--- Stack trace ---
#0 plugins/Profile-ui-main/src/Biswajit/Profile(19): Biswajit\Profile->openMyForm(object pocketmine\player\Player#171584)
#1 pmsrc/src/command/PluginCommand(46): Biswajit\Profile->onCommand(object pocketmine\player\Player#171584, object pocketmine\command\PluginCommand#41753, string[7] profile, array[0])
#2 pmsrc/src/command/SimpleCommandMap(212): pocketmine\command\PluginCommand->execute(object pocketmine\player\Player#171584, string[7] profile, array[0])
#3 pmsrc/src/Server(1415): pocketmine\command\SimpleCommandMap->dispatch(object pocketmine\player\Player#171584, string[7] profile)
#4 pmsrc/src/player/Player(1503): pocketmine\Server->dispatchCommand(object pocketmine\player\Player#171584, string[7] profile)
#5 pmsrc/src/network/mcpe/handler/InGamePacketHandler(823): pocketmine\player\Player->chat(string[8] /profile)
#6 pmsrc/vendor/pocketmine/bedrock-protocol/src/CommandRequestPacket(55): pocketmine\network\mcpe\handler\InGamePacketHandler->handleCommandRequest(object pocketmine\network\mcpe\protocol\CommandRequestPacket#147599)
#7 pmsrc/src/network/mcpe/NetworkSession(438): pocketmine\network\mcpe\protocol\CommandRequestPacket->handle(object pocketmine\network\mcpe\handler\InGamePacketHandler#94073)
#8 pmsrc/src/network/mcpe/NetworkSession(382): pocketmine\network\mcpe\NetworkSession->handleDataPacket(object pocketmine\network\mcpe\protocol\CommandRequestPacket#147599, string[30] M./profile..M...^}.2.........F)
#9 pmsrc/src/network/mcpe/raklib/RakLibInterface(217): pocketmine\network\mcpe\NetworkSession->handleEncoded(string[34] ..../(.O..Ie..e...W...y....V.g`p..)
#10 pmsrc/vendor/pocketmine/raklib-ipc/src/RakLibToUserThreadMessageReceiver(40): pocketmine\network\mcpe\raklib\RakLibInterface->onPacketReceive(int 0, string[43] .9x=+..".Z..W^v.F. ... ..b ....lV.v....D...)
#11 pmsrc/src/network/mcpe/raklib/RakLibInterface(109): raklib\server\ipc\RakLibToUserThreadMessageReceiver->handle(object pocketmine\network\mcpe\raklib\RakLibInterface#187873)
#12 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(120): pocketmine\network\mcpe\raklib\RakLibInterface->pocketmine\network\mcpe\raklib{closure}()
#13 pmsrc/src/TimeTrackingSleeperHandler(58): pocketmine\snooze\SleeperHandler->processNotifications()
#14 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(79): pocketmine\TimeTrackingSleeperHandler->processNotifications()
#15 pmsrc/src/Server(1674): pocketmine\snooze\SleeperHandler->sleepUntil(float 1691433541.519)
#16 pmsrc/src/Server(1063): pocketmine\Server->tickProcessor()
#17 pmsrc/src/PocketMine(334): pocketmine\Server->__construct(object pocketmine\thread\ThreadSafeClassLoader#3, object pocketmine\utils\MainLogger#7, string[34] C:\Users..a..atay\Desktop\tekrar, string[42] C:\Users..a..atay\Desktop\tekrar\plugins)
#18 pmsrc/src/PocketMine(357): pocketmine\server()
#19 pmsrc(11): require(string[78] phar://C:/Users/..a..atay/Desktop/tekrar/PocketMine-MP.phar/src/PocketMine.php)
--- End of exception information ---
[21:39:01.497] [Server thread/EMERGENCY]: An unrecoverable error has occurred and the server has crashed. Creating a crash dump
[21:39:01.509] [Server thread/EMERGENCY]: Please upload the "C:/Users/Çağatay/Desktop/tekrar/crashdumps/Mon_Aug_7-21.39.01-+03_2023.log" file to the Crash Archive and submit the link to the Bug Reporting page. Give as much info as you can.
[21:39:01.510] [Server thread/EMERGENCY]: Forcing server shutdown

Fix #Fix A Mistake

@Orpheusssl fix https://github.com/GabBiswajit/Profile-ui

authors: GabBiswajit Orpheusssl

repo: GabBiswajit/Profile-ui


text:
SceneManagement

Manage different scenes within the window and switch between them, scenes can be added at any state of the program.
Smaller improvements to the code in terms of maintainabilty and encapsulation were made as well.
And I am sorry, that a lot changes happened do to intellij's automatic code formatting, I tried my best to fit the style though.

I can take a look today.

well, if you guys are interested, I could start writing some tests (primarily for all non-gl classes, since I don't know if gl is good to test)

authors: Juyas PixelRifts

repo: Games-With-Gabe-Community/Azurite


text:
v0.8.1_28: There is space between heading and the description

SEVERITY: Minor
MODULE:  Mountain Chart
Platform:

Windows 7 / Chrome 45.0
Windows 7 / Firefox 42.0
MAC / Safari 8.0
iPad Air 2 iOS(8.3) / Safari 8.0
Nexus 9 (5.0.1) / Chrome 45.0
Nexus 5 (5.1.1) / Chrome 44.0

RELEASE: v0.8.1
STEPS TO REPRODUCE:

Navigate URL: http://static.gapminderdev.org/vizabi/release/v0.8.1/preview/mountainchart.html
Mountain chart page will be loaded
Click “X and Y”
Note that there is space between heading and the description

ACTUAL RESULTS:
There is space between heading and the description.
EXPECTED RESULTS:
Spacing should be reduced between heading and the description
SCREENSHOT:

i might have partially fixed it. please pull from develop and check

repo: Gapminder/vizabi


text:
Shape mounting

work by @OTHGMars

with apologies for being a slacky McSlackerson there.


text:
Error code: 6005 - This appId is not bound to the SN

Adapter Version 2.0.2
I'm not sure if it's really a relevant error, but I keep getting the message “Error code: 6005 - This appId is not bound to the SN” in the log. What does this mean?

Sorry, my fault :-(( I forgot to add my system in my API Account ... getting old I guess ...


text:
Ability to hide detailed report columns from printed version

Addressing #102.
Added the css and the toggling of these claseses with the checkbox toggle
There is an issue where the additional details don't appear in the print that needs to be addressed as well.

@Gaya  issue #120 neeeds addressing before this can be properly tested but the code should be right for the adding of the class.

Thanks for your work @Scoombe, it has been merged to master 👍

Fixed #102

@Gaya awesome. Another one bites the dust!

authors: Gaya Scoombe

repo: Gaya/thyme


text:
verify!() on non-copy data?

I have a parser returning a String that I want to wrap in verify! and do some stuff on the result with a map!.  Is that possible?
My non-working code:
named!(my_parser<MyType>,
       map!(verify!(parser_that_returns_string,
                    |s: String| !s.is_empty()),
       |s| MyType::CaseType(s))

As is, the compiler complains about "value used after move", which seems right.  But if I change to |s: &String| (or |s: &str|) the compiler complains that it expected type &String (or &str) but got String.
Is there an alternative version of verify! that borrows the value instead of expecting it to be a copy type?  Or could there be?

oh, a verify that would borrow would be good. I'll look into it, maybe there's a way to add one while keeping it backward compatible

Yes, verify_ref sounds good.

it is done in 717e7f0595de for the upcoming nom 5

(the verify combinator will take a reference in all cases)

authors: Geal kaj

repo: Geal/nom


text:
Change remaining len() call into input_len() in multi.rs

This should fix https://github.com/fflorent/nom_locate/issues/8
I assumed that it's an oblivion from this commit:
https://github.com/Geal/nom/commit/b13eb4e06623c9991bf3f803c6b856651ca187e5#diff-14efff2f3aefda9c3e6c71ed4a391280R80
If not, don't hesitate to reject the PR :).
Cheers!
Florent

Coverage remained the same at 87.092% when pulling 47ec4ef6847f553f74be3c5442d2a731c2245336 on fflorent:master into 3dd66729973f4ade748cfb2f2a4b49e0583e1aae on Geal:master.

good catch, thanks!

Thanks Geal!
Florent

authors: Geal coveralls fflorent


text:
🛑 Mastodon is down

In a4d0672, Mastodon ($MASTODON_URL) was down:

HTTP code: 500
Response time: 370 ms

Resolved: Mastodon is back up in e46034e.

repo: GeekCornerGH/status-page


text:
Keyboard hides on input when using animated container

When using a keyboard inside an animated container with Animated.createAnimatedComponent(Container); the keyboard disappears after any input. For brevity, I eliminated unnecessary code, but the animated container is useful for dynamically adding padding to the container when the keyboard shows. This is useful for ensuring all no inputs get covered by the keyboard.
react-native, react, expo, native-base version
https://github.com/expo/react-native/archive/sdk-21.0.2.tar.gz
16.0.0-alpha.12
21.0.2
2.3.2
Expected behavior
input persists in form
Actual behavior
input disappears after typing a letter
Steps to reproduce (code snippet or screenshot)
import React from 'react';
import { Animated } from 'react-native';
import { Container, Content, Form, Item, Text, Label, Input, Button } from 'native-base';

export default class ExampleScreen extends React.Component {

  state = {
    phone: ''
  };

  render () {
    const AnimatedContainer = Animated.createAnimatedComponent(Container);

    return (
      <AnimatedContainer>
        <Content>
          <Form>
            <Item floatingLabel>
              <Label>Phone</Label>
              <Input onChangeText={(phone) => this.setState({phone})}/>
            </Item>
          </Form>
        </Content>
      </AnimatedContainer>
    )
  }
}

Screenshot of emulator/device

Is the bug present in both ios and android or in any one of them?
Anroid. Not sure about IOS.

@SupriyaKalghatgi
thanks for the tip. but could you explain how handling old and new values persists the keyboard and keeps it from disappearing? sorry if the gif was unclear. the issue isn't that the value doesn't show. it doesn't because the sample above doesn't use the value prop. the problem is that the keyboard disappears.

@SimonVuong You can check source code of NativeBase's floating label for handling old and new values of properties whenever animation happens

@SimonVuong did you ever get this sorted out? I'm running to the same problem and haven't been able to figure out a solution yet.

authors: SimonVuong SupriyaKalghatgi tuomohopia

repo: GeekyAnts/NativeBase


text:
[Question] - Picker with custom header(Search input): Need two taps to select item when focus is on search input.

Hi, I'm implementing a picker with a search input in the header and I noticed that after a search I need two taps to pick an item.
Dependencies versions
node: v8.0.0
npm: 4.6.1
"native-base": "2.7.2",
"react": "16.4.2",
"react-native": "0.56.0",

Expected behaviour
I was expecting the item to be picked with one tap like it's done when the search box is not focus.

Actual Behaviour

First tap to hide the keyboard
Second one to select an item

Is the bug present in both iOS and Android or in any one of them?
I'm currently only working on iOS platform.
Code snippet
Segment
const {selected, onValueChange, cities, searchCity, onGoingSearch} = props;

<Segment style={styles.segment}>
  <Left
    style={{
      flexShrink: 1,
      flexGrow: 1,
      flexBasis: "100%",
      paddingLeft: 10,
    }}
  >
    <Picker
      renderHeader={backAction => (
        <PickerHeader
          handleSearchInput={searchCity}
          backAction={backAction}
        />
      )}
      style={{
        backgroundColor: "rgba(216, 216, 216, 0.21)",
        borderRadius: 25,
        height: 40,
        marginBottom: 5,
      }}
      mode="dropdown"
      textStyle={{
        color: "white",
        paddingLeft: 20,
        fontSize: 16,
      }}
      placeholder="Select your city"
      placeholderStyle={{color: "white", paddingLeft: 15}}
      iosIcon={
        <Right>
          <Icon
            name="ios-arrow-down-outline"
            style={{
              color: "white",
              paddingRight: 15,
              fontSize: 20,
            }}
          />
        </Right>
      }
      selectedValue={selected}
      onValueChange={onValueChange}
    >
      {onGoingSearch && cities.length === 0 ? (
        <View>
          <Text>
            No city Matching your search.
          </Text>
        </View>
      ) : (
        cities.map(city => (
          <Picker.Item label={city.name} value={city.id} key={city.id} />
        ))
      )}
    </Picker>
  </Left>

  <Button
    transparent
    style={{
      flexShrink: computeShrinkForSearchButton(),
      flexGrow: 2,
      flexBasis: "100%",
      borderColor: "transparent",
    }}
  >
    <Text
      style={{
        color: "#7ED321",
        paddingLeft: 10,
        paddingRight: 5,
        fontWeight: "bold",
      }}
    >
      Search
    </Text>
  </Button>
</Segment>

PickerHeader
const PickerHeader = props => (
  <LinearGradient colors={["#020A15", "#032655"]} style={styles.LinearGradient}>
    <Header style={styles.header} hasSegment>
      <StatusBar backgroundColor="transparent" barStyle="light-content" />

      <Left style={styles.headerLeft}>
        <Button transparent onPress={props.backAction}>
          <Icon name="arrow-back" style={{color: "white", fontSize: 25}} />
        </Button>
      </Left>

      <Body style={styles.headerBody}>
        <Title style={styles.headerBodyTitle}>
          Select your city
        </Title>
      </Body>

      <Right style={styles.headerRight} />
    </Header>

    <Segment
      style={{
        backgroundColor: "transparent",
        paddingTop: 5,
        marginBottom: 10,
      }}
    >
      <Item style={styles.searchBox}>
        <Icon name="search" style={styles.searchBoxIcon} />
        <Input
          placeholder="Search"
          style={styles.searchBoxInput}
          onChangeText={props.handleSearchInput}
        />
      </Item>
    </Segment>
  </LinearGradient>
);

Any other additional info which would help us debug the issue quicker.
When searching I found this issue: https://github.com/GeekyAnts/NativeBase/issues/1117
where the solution was to set: keyboardShouldPersistTaps='handled' to the content component.
I had a look at the picker code and it seems to not use Content to render the items:
https://github.com/GeekyAnts/NativeBase/blob/master/src/basic/Picker.ios.js#L197
So I'm wondering how I could fix that issue in my case.

Please follow issue guidelines
Failing which this issue will be closed

Sorry for not following guidelines, I just update the issue description

Still cant find code snippet with issue description

This is not working
Take out styles, props and action

Better put in it on snack
It has already taken my time

@ngouass Can you put this on snack?

@SupriyaKalghatgi Trying to do it but I facing issue. it's not able to import a library inside react-native module
https://snack.expo.io/rJKXDWh8m

You can skip the styles and theme part i guess

Working now ! you can have a look at this link: https://snack.expo.io/Skavj-3IQ

The UI is completely broken
Don't get what to test here

UI looks better now for test: https://snack.expo.io/rJQWlMnIX

Can you please run it once yourself?

Done: https://snack.expo.io/Hkua8G3LQ

Is this what you too get?

You can select the platform at the bottom of page, the default is Android.

I get this:

Not a perfect UI but it's enough to reproduce the issue

@ngouass I get this still https://github.com/GeekyAnts/NativeBase/issues/2234#issuecomment-415379431
You must have updated code and not saved before sharing it here
Please quickly provide the code snippet for me help

@ngouass Can you reply quickly?

@SupriyaKalghatgi Sorry for the late response. I didn't make a change since the last time.
Like I said it before I also get #2234(comment) if I use Android Platform but it works if I choose(configuration panel at the footer) to run it on iOS device.

That is not possible, expo cannot scan for iOS

@ngouass Can you try this use case with React Native Picker?

Will do it !

@ngouass Did you try? updates?

Keeping this issue open for today

@SupriyaKalghatgi I didn't have time to test it today, a lot of things in my plate. Will try to dit tomorrow.!

@ngouass Ok, just tomorrow
You dd'nt respond to my earlier pings

@ngouass, did you somehow manage to fix this issue?


text:
Metro from RN 0.60.0 warns that rnpm config is deprecated and will stop working in the next release

This shows up when running the Metro Bundler from React Native v0.60.0:
warn The following packages use deprecated "rnpm" config that will stop working from next release:
  - native-base: https://github.com/GeekyAnts/NativeBase#readme

See https://github.com/react-native-community/cli/blob/master/docs/configuration.md#migration-guide
I see that rnpm is mentioned twice in package.json but I suspect it's not really being used.

Any update on this? I found the same thing after doing npm install and updating to some latest dependencies.

I am over a react native project and have met with similar issue.
**> warn The following packages use deprecated "rnpm" config that will stop working from next release:

native-base: https://github.com/GeekyAnts/NativeBase#readme
react-native-google-signin: https://github.com/react-native-community/react-native-google-signin
react-native-maps: https://github.com/airbnb/react-native-maps#readme
react-native-video: https://github.com/react-native-community/react-native-video#readme
**

@jim20june1989 yes, basically you have to check each dependency repo and see if they released a version where they don't use nrpm anymore. It sucks, i know.

I'm waiting on NativeBase to see if they will be releasing a hotfix soon.

@msqar thanks.
Well then let's hope they sort this out as it's just ridiculous how things have turned after latest release by firebase and google play services. My project feels like mess now.

Here's a PR fixing the issue
https://github.com/GeekyAnts/NativeBase/pull/2749
We'll probably to test it, anybody volunteering?
@RohanTalip @jim20june1989 @msqar

I made the same changes as PR #2749 in my node_modules/native-base/ directory.
I restarted the Metro Bundler process and no longer got the warning about the rnpm config in native-base.  I was also able to start my Vue Native app using Native Base sucessfully from Xcode.
So, it works for me 😄!

Agree, it works. Can we merge this PR so i can update native-base ? Thanks :)

Has been merged, the next release won't be out till the end of the coming week.
Till then, please point your package.json to the master branch.

@sanketsahusoft ah nvm :D i can wait 1 week. Not in a rush. Thanks again.

the next release with the fix is already ?

Any updates on when this will be released?

creating a "react-native.config.js" at the root of the project
package.json entry:

{
  "rnpm": {
    "ios": {},
    "android": {},
    "assets": ["./path-to-assets"],
    "plugin": "./path-to-commands.js"
  }
}

becomes react-native.config.js
module.exports = {
  project: {
    ios: {},
    android: {}, // grouped into "project"
  },
  assets: ['./path-to-assets'], // stays the same
  commands: require('./path-to-commands.js'), // formerly "plugin", returns an array of commands
};

@asdword

Fixed in 2.13.0

I have the same issues in react-native 0.60.04.
But I can't find rnpm key in package.json.

@sankhadeeproy007 absolutely true! it's finally fixed. Thanks everyone for your job! :)

Hi I´m just a few months into react-native, trying to implement custom fonts into my app. It worked perfectly with rnpm but as I shouldn´t use it any more I´m not figuring out how to use cf.
Can anyone here please write down the few steps? I´m sure I´m just missing a small part.. Thanks!


text:
Ajout d'une licence au dépôt?

Pour l'instant il n'y a aucune licence sur le dépôt, ce serait peut-être bien d'en ajouter une... ;)

Fait ! merci de la suggestion ;)

authors: Altonss GeneralDeGaulle


text:
🛑 AI flowise is down

In 88142df, AI flowise (https://aiflow.crushing.xyz) was down:

HTTP code: 0
Response time: 0 ms

Resolved: AI flowise is back up in 4a63c5d after 22 minutes.

repo: GentlemanHu/own-status


text:
🛑 AI flowise is down

In b5165de, AI flowise (https://aiflow.crushing.xyz) was down:

HTTP code: 0
Response time: 0 ms

Resolved: AI flowise is back up in 7ffc035 after 33 minutes.


text:
Screenshot Support ?

Hi ,
is it possible to create screenshots with a command or should I take the windows integrated tools for that ?

Currently, it's not possible.
#684

(you can only record a video scrcpy --record file.mkv)

repo: Genymobile/scrcpy


text:
Cannot open the file when click scrcpy-noconsole

[x] I have read the FAQ.
[x] I have searched in existing issues.

Environment

OS: windows 10
scrcpy version: 1.14
installation method: download - install
device model: Huawei Nova 3i
Android version: EMUI 9.10.296

Describe the bug
cannot open the file when click scrcpy-noconsole, then try with scrcpy then they open cmd windows
''INFO: scrcpy 1.14 https://github.com/Genymobile/scrcpy
adb: error: failed to get feature set: no devices/emulators found
ERROR: "adb push" returned with value 1
Press any key to continue...''
please how to solve this, i need to stream my phone to pc.
thankyou
chrstiangio

https://github.com/Genymobile/scrcpy/blob/master/FAQ.md#adb-issues

thanks, what is path?
it is still not solved, then i repair the adb and doing the usb debugging after i plug in the usb. the scrcpy-nonconsole still not open, But it gives another problem when open using scrcpy with result=
Describe the bug
"INFO: scrcpy 1.14 https://github.com/Genymobile/scrcpy
adb server version (36) doesn't match this client (41); killing...

daemon started successfully
C:\Users\KOMPUTER\Downloads\scrcpy-win64-v1.14\scrcpy-serv... file pushed, 0 skipped. 52.2 MB/s (33142 bytes in 0.001s)
[server] INFO: Device: HUAWEI INE-LX2 (Android 9)
[server] ERROR: Exception on thread Thread[main,5,main]
android.media.MediaCodec$CodecException: Error 0xfffffc0e
at android.media.MediaCodec.native_configure(Native Method)
at android.media.MediaCodec.configure(MediaCodec.java:1967)
at android.media.MediaCodec.configure(MediaCodec.java:1896)
at com.genymobile.scrcpy.ScreenEncoder.configure(ScreenEncoder.java:205)
at com.genymobile.scrcpy.ScreenEncoder.internalStreamScreen(ScreenEncoder.java:84)
at com.genymobile.scrcpy.ScreenEncoder.streamScreen(ScreenEncoder.java:55)
at com.genymobile.scrcpy.Server.scrcpy(Server.java:76)
at com.genymobile.scrcpy.Server.main(Server.java:225)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:371)
[server] ERROR: The hardware encoder is not able to encode at the given definition.
[server] ERROR: Try with a lower definition:
[server] ERROR:     scrcpy -m 1024
Exit due to uncaughtException in main thread:
INFO: Created renderer: direct3d
INFO: Renderer: direct3d
INFO: Initial texture: 1080x2336
WARN: Device disconnected
Press any key to continue..."

need your help sir.
thankyou Mr Rom1v
chrstiangio

https://github.com/Genymobile/scrcpy/blob/master/FAQ.md#exception


text:
Fix compilation errors with old SDL versions

SDL_PixelFormatEnum has been introduced in SDL 2.0.10: https://github.com/libsdl-org/SDL/commit/cc6a8ac87e41d0df68075081dbf5cd2ba46f8fd4
SDL_PIXELFORMAT_BGR444 has been introduced in SDL 2.0.12: https://github.com/libsdl-org/SDL/commit/a1c11854f28b7186a744df412aa6273862459c31
Fixes #2777

Tested and confirmed it works.
Reviewed-by: Yu-Chen Lin npes87184@gmail.com

Thank you.
Merged into master: 739ff9dce011238844dc00e4e245afbb0561928d


text:
Moved tech alerts to top-level menu

Previously, it was nested in the "More" dropdown.

I think I should shorten the title of the menu item even further to something like: "Alerts & Changelog"

repo: GeoscienceAustralia/dea-knowledge-hub


text:
Add 'providers' known property from Stac

Reported in #187
& bump the year in the docs.

Codecov Report

Merging #191 (857de37) into eodatasets3 (c7dd8eb) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##           eodatasets3     #191   +/-   ##
============================================
  Coverage        87.89%   87.90%
============================================
  Files               26       26
  Lines             3669     3670    +1
============================================
+ Hits              3225     3226    +1
  Misses             444      444

Impacted Files
Coverage Δ

eodatasets3/properties.py
91.40% <100.00%> (+0.03%)
:arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c7dd8eb...857de37. Read the comment docs.

authors: codecov-commenter jeremyh

repo: GeoscienceAustralia/eo-datasets


text:
Añadir traducción de el ejemplo methods para todos los lenguajes dis…

…ponibles
En relación al issue #7
Cambié los nombres de los métodos y los parámetros pues en algunos lenguajes no había comentarios y me pareció mejor para entenderlo en español. Si es mejor dejarlos en inglés, háganmelo saber y los cambiaré de nuevo.

Muy buen trabajo, gracias!

authors: GersonLazaro cgarciahdez

repo: GersonLazaro/aprende-x-si-sabes-y


text:
Feature request: add .js extendsion for .d.ts only dir

If our directory has only .d.ts file. We should also add .js for import

For example:

using tsc with --decalarationOnly generate dir types/esm/ with only .d.ts file.
using rollup or esbuild or something else to generate file dist/index.mjs.

ts-add-js-extension will not working. We need fix it.

For example:

using tsc with --decalarationOnly generate dir types/esm/ with only .d.ts file.
using rollup or esbuild or something else to generate file dist/index.mjs.

ts-add-js-extension --dir=types/esm will not working. We need fix it.

I'll check it tonight
The last thing u mentioned, I'll fix it too, I think I should be able to fix it by Friday night, don't worry

For example:

using tsc with --decalarationOnly generate dir types/esm/ with only .d.ts file.
using rollup or esbuild or something else to generate file dist/index.mjs.

ts-add-js-extension --dir=types/esm will not working. We need fix it.

I've check that ts-add-js-extension --dir=types/esm works in both Windows and Linux, is it not working under certain circumstances
I am still thinking about other problem u pointed out

For example:

using tsc with --decalarationOnly generate dir types/esm/ with only .d.ts file.
using rollup or esbuild or something else to generate file dist/index.mjs.

ts-add-js-extension --dir=types/esm will not working. We need fix it.

I've check that ts-add-js-extension --dir=types/esm works in both Windows and Linux, is it not working under certain circumstances I am still thinking about other problem u pointed out

I think I am having a misunderstanding here, u mean types/esm wont work for the problem u pointed out right, not for general use case, right?

It's for the use case that if we have a dir only contain .d.ts files, without any .js file.

@GervinFung See this commit https://github.com/xiaoxiangmoe/ts-add-js-extension/commit/efcf31441a950790bfb1e61114d469482434fd7c

Now I am still unsure what method to use

@xiaoxiangmoe, is there a use case to add .mjs extension too? If there is no need, I think it would be ez to solve this issue

@GervinFung Hi, I think there is no need for add .mjs extension, because there is no coresponse tsconfig settings.

@xiaoxiangmoe Sorry for the late reply, I want to know/double confirm that this feature only involves es module, and not commonjs

@xiaoxiangmoe I pushed the changes, it should be able to solve this issue, can u try it out and let me know?

@xiaoxiangmoe let me know how it goes

Hi, your test case seems wrong.
Try to change "skipLibCheck": true to "skipLibCheck": false and see your dir test/process/source/dts

@xiaoxiangmoe I fixed the type-checking error, the most important part is the output right

@xiaoxiangmoe hello, what do u think? Or my thought is wrong

I change your tsconfig.json from "skipLibCheck": true to "skipLibCheck": false
Then I see

The only way to make it works well is

So I think there is no need for add .mjs extension.

Can we have 100% confidence ts-add-js-extension will work when I remove the .mjs case?

Yes. we needn't handle .mjs case. The only thing we need handle is .js case.

In that case, this tool cane simplified a lot, I think I can remove the functionality of checking whether the imported/exported file exists or not, since we can safely assume the case to handle is always .js. We only need to check whether it's dts or js` only, then append the file extension. Is there anything that I miss?

@xiaoxiangmoe

nothing miss😳
that's same as what I think.

@xiaoxiangmoe 你好，很抱歉这个问题花了这么长时间才解决，因为

我是6月15日才找到工作的，距我辞职已经5个月了, 那时是我第一次有时间回复你
我有一份很接近“第二份工作”的定义工作，我忙着做他们的事情

再次，很抱歉花了我这么长时间才解决，感谢你的耐心，如果一切正常，我将合并新分支并发布它

There is nothing wrong with your implementation.
But the test case doesn't seem to pass tsc. I modified your test case to make it conform to our actual usage.
see here https://github.com/xiaoxiangmoe/ts-add-js-extension/commit/40c0e01b908a40131cde918ae3a3c699c4376fbd

@xiaoxiangmoe I updated, is there anything I can help with?

@xiaoxiangmoe I published 1.6.0

authors: GervinFung xiaoxiangmoe

repo: GervinFung/ts-add-js-extension


text:
using external Audio Input Buffer.

🎯 Goal
The current implementation assumes exclusive control over the microphone. My proposal gives the option to a consumer application using webrtc to have control of the audio, being the microphone or something else.
My custom application requires to record audio from the microphone at all times and sometimes connect to webrtc, for this my main application needs to handle the microphone data to record and send over webrtc at the same time. There is a sample ready callback I could use for getting the audio data but that is only available in the middle of a webrtc connection.
🛠 Implementation details
The changes are in JavaAudioDeviceModule and WebRtcAudioRecord class, when useExternalAudioInputBuffer is enabled the AudioRecordThread is not running. For this to work the consumer application will have to:
1- set useExternalAudioInputBuffer true and pass in the external buffer to use when creating JavaAudioDeviceModule
2- notify about new data being ready on that buffer
✍ Explain examples
audioDeviceModule = JavaAudioDeviceModule.builder(ContextHelper.context).setUseExternalAudioInputBuffer(true)
.setExternalAudioInputBuffer(byteBuffer)
.createAudioDeviceModule()
audioDeviceModule.notifyExternalDataIsRecorded(bytesRead, captureTimeNs)

Hi @Hector-IoT, sorry for the delayed response. You can create this PR to the GetStream/webrtc repository, as this repository mirrors the native code from it. Once you re-create a PR to the webrtc repository, we will kindly review your PR again soon. Thank you!

authors: Hector-IoT skydoves

repo: GetStream/webrtc-android


text:
Add support for redirects on 410 responses

In Optimizely, expired pages respond with a 410 http response which is ignored by the NotFound Handler.
This PR adds a option to enable the redirect manager to work on 410 responses.

@jevgenijsp @kaspars-ozols @marisks
Could any of you have a look at this PR?

repo: Geta/geta-notfoundhandler


text:
Exception calling "GetSecurityDescriptor" with "0" argument(s): "Unknown error (0x80005000)"

Hello, this isn't really an issue per-say, just wanted to post this here in case anyone else has the same issue.  I was getting the following error when running the script:
Exception calling "GetSecurityDescriptor" with "0" argument(s): "Unknown error (0x80005000)"
I looked through the code to find the offending line, and it was running Get-AuditCertificateTemplate <ca name>.  When I ran the command manually it also errored out with the same message, so it's definitely an issue with the PowerShell module.  After some guess and check I found that this error is caused by having a "/" in the certificate template name.  After I renamed and deleted any templates with a / it was able to run sucessfully.

Running into the same issue. Unfortunately our admins are reluctant to rename the certificates to remove the "/" . Has anyone had any success with alternative solution(s) or code modification to accommodate the "/" character?

I just converted "/" to "-".  I don't think the issue is with this project, looked to me like an issue in the PowerShell module.

repo: GhostPack/PSPKIAudit

license: MS-PL


text:
how to get other people to use the command

I want my friends in the group to be able to use the command

currently not a feature, but is already added in rewrite

repo: GhostSelfbot/Ghost


text:
added custom font

closes #18

Thank you!
Happy Hacktoberfest!

repo: GingerKiwi/alice-game


text:
Finer grain locking to decrease contention in ConnectionManager

Did the work in a couple steps:  1) Added a simple test to show how many open/closes could be done per second, 2) switched to locking on the Dictionary and the contained file references separately (4X speed improvement), 3) changed to using a ConcurrentDictionary (no measurable improvement). Also simplified some things and removed the Interlock code because it isn't needed with the locking. Also made the threading tests a little longer to make sure.  Have not seen any anomalies.

I noticed that Close no longer throws an exception if the connection is already closed. Can you fix that in this PR too?

Sure.  I added this in but made sure it doesn't throw if Disposed() is called multiple times as per MS. It will throw if you Dispose() then Close() or Close() twice - I think this is your goal.  Have test cases for all these.  Also made some simplifications in the test project.

authors: Giorgi SartorialOffense


text:
GIFT validation done in browser will be more responsive

Currently, to validate the GIFT in the sidebar, a request is sent to the server which has latency.
PEG.js' parser can run in the browser, so the validation could be done in the sidebar.html, resulting in a faster response regarding GIFT validation.

FYI - I got this working, and cleaned up the way errors are reported a lot. I can just commit these to the master of my fork, and I think they will be added to the other PR I did.

repo: Girardvjonathan/GIFT-google-quiz-plugin


text:
add support for translations in nested dictionaries

To make i18n module compatible with json  files e.g. used by angular-translate nested dictionaries should be supported.

nested dictionaries are supported so ony UT were added in 3348438735239f0527b2c15e33d77d0dbd0ed055


text:
🛑 uzboys is down

In d9a878b, uzboys (uzboys.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: uzboys is back up in cc29048 after 21 minutes.


text:
🛑 hcr is down

In b6de137, hcr (hcr.co.uk) was down:

HTTP code: 403
Response time: 1283 ms

Resolved: hcr is back up in 507b305 after .


text:
🛑 penisdicke is down

In 19b41e9, penisdicke (penisdicke.de) was down:

HTTP code: 0
Response time: 0 ms

Resolved: penisdicke is back up in ca5a89a after 20 minutes.


text:
🛑 rapishare is down

In c88bab7, rapishare (rapishare.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: rapishare is back up in 4bbb2f3 after 1 hour, 2 minutes.


text:
🛑 mynewsize is down

In c4ef9cd, mynewsize (mynewsize.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: mynewsize is back up in 5965aba.


text:
🛑 orkut is down

In 5406b8f, orkut (orkut.com.br) was down:

HTTP code: 0
Response time: 0 ms

Resolved: orkut is back up in aacc9aa.


text:
🛑 orkut is down

In 6323cab, orkut (orkut.com.br) was down:

HTTP code: 0
Response time: 0 ms

Resolved: orkut is back up in 63b8fd4.


text:
🛑 orkut is down

In ecf430d, orkut (orkut.com.br) was down:

HTTP code: 0
Response time: 0 ms

Resolved: orkut is back up in 1e17ece.


text:
🛑 orkut is down

In c31bb56, orkut (orkut.com.br) was down:

HTTP code: 404
Response time: 121 ms

Resolved: orkut is back up in 1b51d28.


text:
🛑 orkut is down

In 94c633c, orkut (orkut.com.br) was down:

HTTP code: 404
Response time: 123 ms

Resolved: orkut is back up in 739ed10.


text:
🛑 orkut is down

In 894c393, orkut (orkut.com.br) was down:

HTTP code: 403
Response time: 156 ms

Resolved: orkut is back up in 46ffc69.


text:
🛑 orkut is down

In ca0a482, orkut (orkut.com.br) was down:

HTTP code: 404
Response time: 115 ms

Resolved: orkut is back up in 8b8b4b5.


text:
🛑 orkut is down

In 06c7f39, orkut (orkut.com.br) was down:

HTTP code: 403
Response time: 251 ms

Resolved: orkut is back up in cafde2d.


text:
🛑 orkut is down

In 0e02438, orkut (orkut.com.br) was down:

HTTP code: 0
Response time: 0 ms

Resolved: orkut is back up in d91804d.


text:
🛑 orkut is down

In fcda0c2, orkut (orkut.com.br) was down:

HTTP code: 403
Response time: 239 ms

Resolved: orkut is back up in a2602d3.


text:
🛑 hcr is down

In 95d4d40, hcr (hcr.co.uk) was down:

HTTP code: 401
Response time: 518 ms

Resolved: hcr is back up in 8f7b5a1.


text:
🛑 hcr is down

In 37f566c, hcr (hcr.co.uk) was down:

HTTP code: 401
Response time: 1394 ms

Resolved: hcr is back up in e209d80.


text:
🛑 orkut is down

In f272416, orkut (orkut.com.br) was down:

HTTP code: 0
Response time: 0 ms

Resolved: orkut is back up in b017ec1.


text:
🛑 hcr is down

In 9845c6b, hcr (hcr.co.uk) was down:

HTTP code: 401
Response time: 748 ms

Resolved: hcr is back up in 69610b6.


text:
🛑 hcr is down

In f3efde5, hcr (hcr.co.uk) was down:

HTTP code: 401
Response time: 1256 ms

Resolved: hcr is back up in b84bca2.


text:
🛑 orkut is down

In 9a4f6e6, orkut (orkut.com.br) was down:

HTTP code: 0
Response time: 0 ms

Resolved: orkut is back up in ce053d4.


text:
🛑 hcr is down

In 91d391e, hcr (hcr.co.uk) was down:

HTTP code: 401
Response time: 768 ms

Resolved: hcr is back up in 1ea401d.


text:
🛑 orkut is down

In 667d31b, orkut (orkut.com.br) was down:

HTTP code: 0
Response time: 0 ms

Resolved: orkut is back up in 4e367ab.