text:
Run X11 windows without windows manager decoration

Is it possible to run an X11 windows without the window manager decoration, I believe this is sometimes called frameless or borderless.

I mean the buttons like the "x" that are common on most windows. On a native Linux box you can run windows without this decoration which is added by the window managed not the application. Attached is a screen shot of xeyes which has the decoration.

e

Ah just found this, https://github.com/microsoft/wslg/discussions/67 which seems to answer my question on window managers

This is “fullscreen” Rider IDE under WSLG. This box around also makes me feel sad☹

Please add fullscreen feature
I don't want to see this white box

Single biggest show stopper for me for switching from VcXsrv -> wslg.
Second biggest show stopper is wslg windows not seemingly supporting windows tilling/snapping/windows+LR hotkeys

@GiGurra, thanks for feedback, we are aware that the "second one" is asked various occasions.
Regarding to no window decorations, @AntonSmolkov @sweetwong and @GiGurra, do you want only when window is at fullscreen? and without those frame, how do you expect you can put back window to non-fullscreen? Or even no frame at windowed (non-fullscreen), how it's expected to be moved? Do know have any model scenario we can refer to? thanks!

No definitely not only full screen.
The best example is the IDE intellij idea. You can download the free community version to see what it currently looks like inside wslg, and compare with how it behaves with a native windows installation.
Basically it always runs without decoration (it renders its own menus and minimize/maximize buttons etc in its own format

@GiGurra, thanks for info.
By looking at native Linux case, particularly running on Ubuntu desktop, the window frame (and title bar) seems still rendered by their Window manager, but it has more consistent visuals with rest of the desktop. So, to clarify the request here would be, it is not removing the window decorations, but do have window decorations with match to the rest of desktop and themes.
Regarding to fullscreen case, it looks on JetBrains IDE, "enter fullscreen mode" option (from View->Appearance) is not available on WSLg, but it is available on Ubuntu desktop. I will need to investigate why.
Also, once JetBrains completed the Wayland native support, then the current Window frame won't be used.
Thanks!

@hideyukn88
Hh, yes you are right. I had completely forgotten that ubuntu does keep some decoration at the top (but not these thick lines all around). When I last used native ubuntu for my dev machine I was actually running some decoration removal thing, dont remember exactly what :)

Can we at least change the color to make it less obtrusive on a dark themed screen?

TBH that would be a really cool feature

Any update on this? WSL has gone out of preview and yet this issue is still present.
Most of third party softwares that emulates X Servers managed to use native windows. Yet WSLg still has this ugly window manager decoration (let's be honest for a second, it looks like it wasn't updated for at least 15 years), and it doesn't even support basic window snapping, even less the more advanced features that we have with a native window.
This is a huge deal breaker for WSLg. I was excited for the GUI apps support on Windows 10, but this alone makes me switch back to X410.
@hideyukn88 @Biswa96

+1 for This Issue. VcXsrv is still better in Window Management than WSLg.

@theonlyfoxy, thanks for checking, we are making progress. if you are on the latest WSLg and Windows 11 (all update applied), please create below file with below contents, then window can be snapped by Win+Left or Right key, thanks!
C:\Users\[Your User Name]\.wslgconfig
[system-distro-env]
WSLG_USE_MSTSC=true
WESTON_RDP_WINDOW_SNAP_ARRANGE=true
WESTON_RDPRAIL_SHELL_LOCAL_MOVE=true

@theonlyfoxy, thanks for checking, we are making progress. if you are on the latest WSLg and Windows 11 (all update applied), please create below file with below contents, then window can be snapped by Win+Left or Right key, thanks!
C:\Users\[Your User Name]\.wslgconfig
[system-distro-env]
WSLG_USE_MSTSC=true
WESTON_RDP_WINDOW_SNAP_ARRANGE=true
WESTON_RDPRAIL_SHELL_LOCAL_MOVE=true

What about the borders around the window and style of buttons?
Wouldn't it be possible to integrate vcxsrv into WSLg and fallback X11 apps to it?

Without borders, the window is offset from the top left. I've noticed this in my own development as well. Having a maximized borderless window results in:

@cyraid how did you manage to remove the window borders? I think it's the whole point of this issue and it seems you've found some kind of magic to achieve it :sweat_smile:

@zodiia Oh, that's just a borderless window. You have to specify the XInternAtom(d, "_MOTIF_WM_HINTS", False); for xlib when creating the window (or glfwWindowHint(GLFW_DECORATED, GLFW_FALSE); for GLFW, etc.)
For programs that you haven't written, there's not much you can do other than ask Microsoft to include Decoration options with WSLG (or at least environment variables to disable decorations on windows) as they're the current window manager, unless you can use a custom window manager with WSLG which I'm not sure you can currently? (based off of what I've been reading)
But for those screenshots: With Chrome in Linux, you can set the window to use no titlebar (so I'm guessing they're just setting the decorator hints to false). Btw, to fix that Chrome issue, you can set the Preferred Ozone platform in chrome://flags to Wayland for a better experience.

Hi, is there a solution to this problem, now idea still has a big box wrapped around it

Hi, is there a solution to this problem, now idea still has a big box wrapped around it

No solution yet, however we might be getting closer to it with Jetbrains products specifically, as they have recently released features for integrating the top bar with the window, just like it is on windows. We might get something better for IntelliJ, CLion, ... soon

It will be nice if we could simply set the colors of the borders, I mean, there are some constraints totally understable regarding usability and compatibility, but, I believe the simples solution is the best one.

@zodiia I think window border color following Windows system theme(Light or Dark) is a simple solution.

lol my linux broke and I wound up having to use WSL and now PyCharm ugly af. What are we doin here guys? Where's the code for these titlebars? We'll fix it ourselves.

Why hasn't a seemingly straightforward request been accommodated after several years? Alternatively, could you provide guidance on how we might resolve this issue ourselves?

ve found this can be overridden in Emacs with the undecorated frame parameter.
See https://www.gnu.org/software/emacs/manual/html_node/elisp/Management-Parameters.html#undecorated.
It mentions Motif Window Manager Hints: https://specifications.freedesktop.org/wm-spec/wm-spec-latest.html so maybe it can be generalized @hideyukn88
Didn't manage to make it work in early-init.el but it does in init.el. Just (push '(undecorated .t) default-frame-alist).
If you can't make it work for some reason, toggle-frame-fullscreen is viable as you can still snap (Win + arrows) the fullscreen frame.

@theonlyfoxy, thanks for checking, we are making progress. if you are on the latest WSLg and Windows 11 (all update applied), please create below file with below contents, then window can be snapped by Win+Left or Right key, thanks!
C:\Users[Your User Name].wslgconfig
[system-distro-env]
WSLG_USE_MSTSC=true
WESTON_RDP_WINDOW_SNAP_ARRANGE=true
WESTON_RDPRAIL_SHELL_LOCAL_MOVE=true

Any updates on this? Is this still needed? What about disabling the white window chrome?

Any news?

any news?

+1 this is still a very annoying issue 2+ years later

+1 this is the only thing stopping me from liking my setup.

@davidhunter22 Enjoy!
sudo apt install -y xdotool
xeyes&
xprop -id $(xdotool search --name xeyes) -f _MOTIF_WM_HINTS 32c -set _MOTIF_WM_HINTS "2, 0, 0, 0, 0"

I think the whole 'remote desktop' approach isn't entirely too smooth IMO. You're not seeing a native solution, you're seeing a Remote Desktop Protocol in action, think using Remote Desktop into someone's machine.
It 'kinda' works, 'cause you can do things like gaming in the cloud with such techniques, but you'll always have that latency and I don't think video approach is the best. Realistically the best approach would be a native Linux Display Driver. But of course Microsoft may be worried about Kernel boundaries, and running things in Kernel land. I wonder if Microsoft is planning such, and the current RDP is a placeholder? Would like to know thoughts of Microsoft developers  on this one.

@cyraid I recommend you to watch this video https://www.youtube.com/watch?v=EkNBsBx501Q and read https://devblogs.microsoft.com/commandline/wslg-architecture/
The future of WSLg is version 2.x, the VAIL+vGPU implementation that uses vRAM instead of system RAM and will bring zero copy, minimal latency.

I've perfectly solved this problem!!
Bash Script:
#!/bin/bash

# Check if any arguments were passed
if [ $# -eq 0 ]; then
  echo "Usage: $0 <window_name>"
  exit 1
fi

# Use the passed argument as the window name
window_name="$1"

# Find all windows matching the window name
window_ids=$(xdotool search --name "$window_name")

# Check if any windows were found
if [ -z "$window_ids" ]; then
  echo "No windows found with the name '$window_name'"
  exit 1
fi

# Loop through all found window IDs and perform the operations
for window_id in $window_ids; do
  echo "Processing window ID: $window_id"
  # Remove window borders
  xprop -id $window_id -f _MOTIF_WM_HINTS 32c -set _MOTIF_WM_HINTS "2, 0, 0, 0, 0"
  # Set window to fullscreen
  wmctrl -ir $window_id -b add,fullscreen
done

echo "All windows have been processed"

Use:
# bash script name: fullscreen, for example: fullscreen xeyes
fullscreen YOUR_WINDOW_NAME

sweetwong

I tried it on phpstorm bot did not work.

@davidhunter22 , @sameert89 Enjoy!
sudo apt install -y xdotool
xeyes&
xprop -id $(xdotool search --name xeyes) -f _MOTIF_WM_HINTS 32c -set _MOTIF_WM_HINTS "2, 0, 0, 0, 0"

Legend! How do you even figure this out? Thanks a bunch!

@sameert89 chatgpt

sweetwong

I tried it on phpstorm bot did not work.

@meminuygur When running this command, ensure that PhpStorm does not launch in a maximized state.

Hi,
I'm using windowgrid  and I need the click sensibility in the title bar.
Please how could I temporally return to old window decoration?
Best regards.

Awesome @moisei! Now we just need a way to make IntelliJ (& friends) render its own buttons again.

Is there any official progress?

authors: AntonSmolkov GiGurra JotaRata MichelTenVoorde PoProstuWitold Stanzilla andrescevp antonio24073 bitnom cyraid davidhunter22 deadcombo differentprogramming gaoyan1998 hideyukn88 keli5 meminuygur moisei onomatopellan sameert89 sweetwong theonlyfoxy undrivendev zodiia

repo: microsoft/wslg


text:
Quickstart Fails to Authenticate.

Where did you get the code?

[ ] Downloaded from GitHub
[ X ] Downloaded from the Microsoft Graph quick start tool
[ ] Followed the tutorial from Microsoft Graph tutorials

Describe the bug
Unable to authenticate against an Azure Tenant - user@.onmicrosoft.com
Works fine with personal MS accounts
To Reproduce
Steps to reproduce the behavior:
Followed the quickstart and it auto-generated the application and created the Key and Secret in the YML file. Unzipped the file. Created a virtual environment, ran pip install -r requirements.txt to install the version as required. Python manage.py migrate and then python manage.py runserver.
Went directly to the home page http://localhost:8000 and got presented with the branded login screen. Clicked Sign and got redirected to MS Login screen. Entered the username, password got prompted for my MS Authenticator to approve the login. Following the approval, I accepted the application permissions and got redirected back to the home page.  The server console shows the /signin HTTP/1.1 302 0 and following the acceptance of the application permissions I see the console  with the /callback?code=0.AAVAAQCX{....} etc. But i do not see the authenticated Nav Bar items. As a test of my authentication, I went to the /calendar route and it too errored with a  line 75, in calendar    time_zone = get_iana_from_windows(user['timeZone'])  which is unrelated to the auth error.  But the user vars on the debug page show
{'user': {'is_authenticated': False}}
request | <WSGIRequest: GET '/calendar'>
user | {'is_authenticated': False}
So I can tell I am not authenticated. I attempted the /signout route and the console reports /signout HTTP/1.1 302 and I am redirected to the default route "/"
This is a Micosoft E5 developer account just created.
SUbsequent requests to not prompt for app permissions but still go through the authenticator but still fail.
(note:  I tried to access the app with my personal MS account not part of the tenant and the app worked as expected)
Expected behavior
I would expect that when I hit sign in and approve when authenticating against an Azure Tenant the same way it would against a personal account.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop

OS: [e.g. iOS]
Browser [e.g. chrome, safari]
Version [e.g. 22]

Dependency versions
asgiref==3.3.4
certifi==2020.12.5
cffi==1.14.5
chardet==4.0.0
cryptography==3.4.6
Django==3.2
idna==2.10
msal==1.10.0
pycparser==2.20
PyJWT==2.0.1
python-dateutil==2.8.1
pytz==2021.1
PyYAML==5.4.1
requests==2.25.1
six==1.15.0
sqlparse==0.4.1
urllib3==1.26.4
Additional context
The default dev E5 tenant is locked down pretty tight with security by default. I just created this tenant last week.
I also tried to follow the Tutorial and typed all the data in myself but that yielded the same results. I initially though the error was mine but when I downloaded the quickstart and thirdly the git repo and ALL 3 methods produced the same results.  I suspect this is a permission or scope issue

The permission was not set for MailboxSettings.Read was NOT set in the my new tenant. I sent the permission and then ran the query. Here is the output after I chose consent for that property
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#users(mailboxSettings)/$entity",
"id": "{{ OMITTED }}",
"mailboxSettings": {
    "archiveFolder": "{{ OMITTED }}",
    "delegateMeetingMessageDeliveryOptions": "sendToDelegateOnly",
    "dateFormat": "",
    "timeFormat": "",
    "userPurpose": "user",
    "automaticRepliesSetting": {
        "status": "disabled",
        "externalAudience": "all",
        "internalReplyMessage": "",
        "externalReplyMessage": "",
        "scheduledStartDateTime": {
            "dateTime": "2022-02-23T05:00:00.0000000",
            "timeZone": "UTC"
        },
        "scheduledEndDateTime": {
            "dateTime": "2022-02-24T05:00:00.0000000",
            "timeZone": "UTC"
        }
    },
    "language": {},
    "workingHours": {}
}

}

Ok yes you are hitting this issue. The timeZone property is missing. You can fix it by going into your Outlook settings (at outlook.office.com) and viewing or setting your timezone.
This code is intended to use UTC if the property is missing in the Graph response.
https://github.com/microsoftgraph/msgraph-training-pythondjangoapp/blob/17d1d48cea829761546cea8efd8f7c33752376b3/demo/graph_tutorial/tutorial/auth_helper.py#L66
I think I may have the syntax wrong. Can you try changing it to:
'timeZone': user['mailboxSettings']['timeZone'] if (user['mailboxSettings']['timeZone'] is not None) else 'UTC'

I made the requested change
'timeZone': user['mailboxSettings']['timeZone'] if (user['mailboxSettings']['timeZone'] is not None) else 'UTC'
But I am still unable to authenticate unless I am using my person account.  The auth against the tenant still returns to the home page with the exact same behavior as above.
I started this project with a free gmail account, then signed up for a developer account E5 subscription for 90 day. I logged into the portal with my newly provisioned tenant information and ran this code sample.  Nothing else.  I wonder or maybe you know if the default developer tenant is not locked down so much it wont let the registered app work.

To my knowledge, not it is not.
Can you try the workaround of ensuring your time zone is set in outlook.office.com for your account?

Having a TZ specified in the code fixed the issue.  I am successfully logged in.

Thanks for confirming. So basically the auth flow was working the whole time, it's the app that was failing to store the user in the session due to the null time zone value.

I was able to find a user that could reproduce this, fix incoming.

source: gharchive/issue

authors: fatpacket jasonjoh

license: MIT

license_type: permissive

license_source: github-api


text:
Translate "custom_fields"?

I try to translate the custom_fields to french
Material EN => Matériel FR
Steal EN => Aciel FR
Does Microweber support the translation of custom_fields and custom_fields_value ?
If not does it support the translation of tags?

Hi, for now translating values is not supported, but we will think how to add it in the future

Hi, for now translating values is not supported, but we will think how to add it in the future

Thank you Peter. Would you know if tags are translated as of today?

authors: FractalMind peter-mw

repo: microweber/microweber


text:
Selecting Indian Currency from picker showing 0 in symbol?

I've just noticed this issue also, simple work around
(pseudo-code)...
if (code.equals("INR")) symbol = [rupee symbol]

Already do that. Just pointing it out.

repo: midorikocak/currency-picker-android


text:
valid Corefile sytax is wrongly parsed

A Corefile with:
dnssex.nl:1053 {
       file dnssex.nl.signed
}

Is wrongly parsed

Hadn't recompiled, works OK.

repo: miekg/coredns

license_source: bigquery


text:
Support custom tsig names inside tsigSecret map

Previously the tsigSecret variable on the Server object was keyed on tsig name.
This means that if you have multiple zones using the same server, it is not possible
for each of the zones to have the same tsig name. By specifying a TsigKeyNameBuilder
function, the server can now differentiate between zones even if they have the same tsig name
without requiring the client to change anything.
Fixes #1325

Please no. Just use TsigProvider. It was added for exactly these kinds of use cases.

source: gharchive/pull-request

authors: Fattouche tmthrgd

repo: miekg/dns


text:
Contactform 7: Issue with refreshing

Hello community,
I've got a problem with my own website http://www.overtref.nl/. I'm building an interactive "Start Project" http://overtref.nl/start-project/  in combination with contact form 7 and SmoothState.js.
Step 1 : Grafisch ontwerp
Step 2 : Restyle huidige huisstijl
Step 3 : Submit the form
After submitting the Contact form 7 the AJAX script conflicts and my page starts reloading. If i disable my SmoothState script it wont reload my page and the AJAX script of contact form 7 wont conflict.
I've been searching the whole forum for a solution but it wont work for me. Is there a possibility to let it work. So i can run SmoothState and Contact form 7 like brothers.
My SmoothState script below
$(function() {
        var $page = $('#main'),
        options = {
        prefetch: true,
        pageCacheSize: 4,
        // blacklist anything you dont want targeted
		 blacklist: '.no-smoothState',
		 development : false,
          onStart: {
            duration: 500, // Duration of our animation
            render: function ($container) {
              TweenMax.to($container.find('#content'), 0.5, {ease: Power2.easeIn, opacity:0});
			  TweenMax.to($container.find('.breadcrumb'), 0.5, {ease: Power2.easeIn, opacity:0, paddingTop:10});
            }
          },
          onReady: {
            duration: 0,
            render: function ($container, $newContent) {
              // Inject the new content
              $container.html($newContent);
              TweenMax.from($container.find('#content'), 0.5, {ease: Power2.easeOut,opacity:0});
			  TweenMax.from($container.find('.breadcrumb'), 0.5, {ease: Power2.easeOut, paddingTop:10, opacity:1});

			  		$(document).ready();
					$(window).trigger('load');

            }
          }
        },
        smoothState = $page.smoothState(options).data('smoothState');
});

Thanks in advance for you help or time.
John Verhagen

Hello,
Try this:
$(function() {
	var $page = $('#main'),
	options = {
		prefetch: true,
		forms: 'form',
		pageCacheSize: 4,
		blacklist: 'form, .no-smoothState',
		development : false,
		onStart: {
			duration: 500, // Duration of our animation
			render: function ($container) {
				TweenMax.to($container.find('#content'), 0.5, {ease: Power2.easeIn, opacity:0});
				TweenMax.to($container.find('.breadcrumb'), 0.5, {ease: Power2.easeIn, opacity:0, paddingTop:10});
			}
		},
		onReady: {
			duration: 0,
			render: function ($container, $newContent) {
				// Inject the new content
				$container.html($newContent);
				TweenMax.from($container.find('#content'), 0.5, {ease: Power2.easeOut,opacity:0});
				TweenMax.from($container.find('.breadcrumb'), 0.5, {ease: Power2.easeOut, paddingTop:10, opacity:1});
				$(document).ready();
				$(window).trigger('load');
			}
		}
		onAfter: function($container) {
			$('div.wpcf7 > form').wpcf7InitForm();
		}
	},
	smoothState = $page.smoothState(options).data('smoothState');
});

P.S. Great site!

Thanks for your reaction!
I have added your code to my script but unfortunately it doesnt change anything to the problem.
It results in:
http://overtref.nl/start-project/#wpcf7-f131-o1

This solution doesn't seem to work anymore since the wpcf7InitForm(); function was removed in Contact Form 7 v4.8.
A new function was added in v4.8.1:
wpcf7.initForm
I've found this code to work well:
function initContactForm() {
  $( 'div.wpcf7 > form' ).each( function() {
    var $form = $( this );
      wpcf7.initForm( $form );
    if ( wpcf7.cached ) {
      wpcf7.refill( $form );
    }
  });
}

Which is then called onAfter using initContactForm();
Discussion on Contact Form 7 forum can be found here:
https://wordpress.org/support/topic/init-function-wpcf7initform/

garethmorgans problem is the form submits 3 times on the initial page load and submits 2 times after you click to a next page.

This is what worked for me and I hope this helps someone else. I've read this thread about 20 times and implemented the advice given, but nothing was working.
My understanding of the problem:
Contact Form 7, which usually submits via AJAX (without page refresh) is initiating a page refresh when smoothstate is active. If you disable smoothstate, CF7 works as expected.
My Solution
My understanding is that smoothstate is designed to work on forms as well as links by default. So to stop this happening on CF7, which already submits with JavaScript, I added .wpcf7-form to the blacklist.
See code below:
;(function($) {
        'use strict';
	var $body = $('html, body'),
    	content = $('#main').smoothState({
			blacklist: '.wpcf7-form',
			// Runs when a link has been activated
			onStart: {
				duration: 500, // Duration of our animation
				render: function ($container) {

					// Add your CSS animation reversing class
					$container.addClass('is-exiting');

					// Restart your animation
					//smoothState.restartCSSAnimations();
				}
	        },
			onReady: {
				duration: 0,
				render: function ($container, $newContent) {

					// Scroll user to the top, this is very important, transition may not work without this
					$body.scrollTop(0);

					// Remove your CSS animation reversing class
					$container.removeClass('is-exiting');

					// Inject the new content
					$container.html($newContent);

					// Trigger load functions
					$(document).ready();
                	                $(window).trigger('load');
				}
		    },
		    onAfter: function($container) {
	                initContactForm();
	            }
  		}).data('smoothState');
})(jQuery);`

I hope this helps!

authors: Eugene1984 NewJenk andytwl garethmorgans overtref

license: mit


text:
tweaked API docs for Date/TimeField

Just some clarifying doc changes and to remove compile warnings introduced by @bdisp in #628

@tig thanks. I recognize that I have this defect because it is not an area that I dominate a lot :-)

@tig thanks. I recognize that I have this defect because it is not an area that I dominate a lot :-)

No problem. I have a passion for getting docs right, and I'm pretty good at English too, so I have no problem fixing things up like this. Please don't take it personally when I do PRs like this, ok?

authors: BDisp tig


text:
Installation via requirements.txt

Towards the end of chapter 7, the author advises us to check installations by directly installing from the requirements.txt file like this:
pip install -r requirements.txt
But this step installs older versions of modules irrespective of whether a newer version has been installed or not. In my case, although most modules had already been installed and running fine, I now have two copies of several  modules. How do I undo this step? Since now I am unsure of which modules are dependent on which other ones. My dist-packages folder is a bit too messy now. :(
Any suggestions?

I think you are mistaken on how requirements work. If you have foo v1.1 installed in your virtualenv, and have foo==v1.0 in your requirements.txt file, when you do pip install -r requirements.txt, pip will uninstall version 1.1 and then install 1.0. You will never end up with two versions installed.
The reason why requirements.txt files are useful is that they indicate the exact versions that were tested against the application. Newer versions will likely work too, but it isn't that uncommon that a new versions of a package breaks compatibility.

Oh. It seemed like there were a lot of modules when I checked my dist-packages folder.
Thanks for clarifying!

authors: miguelgrinberg priyankamandikal

repo: miguelgrinberg/flasky


text:
Remove global scope access

I want to include this polyfill in polyfill.io.  It's good practice for polyfills to use this for the global reference and attach things to it rather than implicitly reading globals, so we'd very much appreciate this change in order to be happier having the polyfill in our service.  Another good effect of this change is that in CommonJS and AMD environments, you will no longer leak the global.

@triblondon great point. Merged!

Smashing, thanks.

authors: miguelmota triblondon


text:
n차 → n면 변경 요청

새로운 기능이나 개선 사항을 설명해주세요.
기존의 8차, 1차, 2차 면학이라고 쓰여 있었던 메인 화면의 예약 현황을 8면, 1면, 2면으로 변경하는 것에 대한 요청
보조 정보
No response

Resolved in commit f43a45


text:
IMPROVE - Use async await syntax in fetchNewestAlert function

Describe the feature you want to improve

In the fetchNewestAlert function in MainTabViewModel, change this function to be async, as opposed to using a closure

getDocuments has an async await version, rather than closure based

Describe alternatives you've considered
N/A

Hello, I would like to work on this Issue

you got it! @MilanLabuss

authors: MilanLabuss mikaelacaron

repo: mikaelacaron/Basic-Car-Maintenance


text:
Append Swift 2.3 support

This version seems to be OK.

I've merged it and pushed 2.4, thanks for helping out @florentmorin !

:-)

authors: florentmorin mikaoj

repo: mikaoj/BSImagePicker


text:
Introduced inheritance as a Relation property and handle it

removed HTML tags for empty attribute list

Codecov Report

Merging #8 (43e537b) into main (c24b5f0) will increase coverage by 0.40%.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##               main       #8      +/-   ##
============================================
+ Coverage     86.14%   86.55%   +0.40%
- Complexity      133      136       +3
============================================
  Files            17       17
  Lines           361      372      +11
============================================
+ Hits            311      322      +11
  Misses           50       50

Impacted Files
Coverage Δ

src/Formatter/ClassFormatter.php
100.00% <100.00%> (ø)

src/Formatter/RelationsFormatter.php
100.00% <100.00%> (ø)

src/Handler/Relation/ClassExtendsHandler.php
100.00% <100.00%> (ø)

src/Model/Relation.php
100.00% <100.00%> (ø)

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 c24b5f0...43e537b. Read the comment docs.


text:
MySQL Function NOW()

Hi,
I would like to execute a query like this :
INSERT INTO logs (name, action, creation) VALUES ('test', 'test', NOW())
Here is what I've tried so far :
$data = array('username' => 'test', 'action' => 'test', 'creation' => now());
$db->from('logs')->insert($data)->execute();
But unfortunately this doesn't work as PHP interprete 'now()' as a PHP function.
I also tried to write "now" instead of "now()" but it returns "0000-00-00 00:00:00" instead of the current datetime.
So I would like to know, is it possible to execute MySQL functions using your database toolkit please ?

Unfortunately there is no way to send string values that won't get escaped.
But you can use a PHP equivalent function to NOW().
function now() {
  return date("Y-m-d H:i:s");
}

$data = array('username' => 'test', 'action' => 'test', 'creation' => now());

Actually, I want to use the SQL NOW() function because my PHP server is separated from my SQL server, so the time is different.
But I will use the php-way to get the current datetime for the moment.
Thanks.

In that case you can use the DateTime object, then use the setTimezone method on it to keep your values in sync.

Thanks, I'll try that.

authors: ArtyumX mikecao

repo: mikecao/sparrow


text:
low-level output error generated RuntimeError: Detected a call to Model.fit inside a tf.function. Model.fit is a high-level endpoint that manages its own tf.function. Please move the call to Model.fitoutside of all enclosingtf.functions. Note that you can call a Modeldirectly onTensors inside a tf.functionlike:model(x)`.

---------------------------------------------------------------------------

RuntimeError                              Traceback (most recent call last)

[<ipython-input-98-85af94263904>](https://localhost:8080/#) in <cell line: 19>()
     17 f.set_validation_metric('rmse')
     18 f.set_metrics(['rmse'])
---> 19 f.manual_forecast(
     20     call_me='lstm_latest',
     21     lags=input_size,

8 frames

[/usr/local/lib/python3.10/dist-packages/keras/engine/training.py](https://localhost:8080/#) in _disallow_inside_tf_function(method_name)
   4043             "`model(x)`."
   4044         ).format(method_name=method_name)
-> 4045         raise RuntimeError(error_msg)
   4046
   4047

RuntimeError: Detected a call to `Model.fit` inside a `tf.function`. `Model.fit is a high-level endpoint that manages its own `tf.function`. Please move the call to `Model.fit` outside of all enclosing `tf.function`s. Note that you can call a `Model` directly on `Tensor`s inside a `tf.function` like: `model(x)`.

This is my cell code:
#@title Prognosa Short Term
input_size = 6 #@param {"type":"integer"}
output_size = 3 #@param {"type":"integer"}

unit = 'unit1' #@param {"type":"string"}
outage = 'foh' #@param {"type":"string"}

f = Forecaster(
    y=kinerja_df_extended_nanremoved_standardized[f'{unit}_{outage}s'],
    current_dates=kinerja_df_extended_nanremoved_standardized['date'],
    test_length = 0,
    future_dates = output_size,
    cis = False,
)
f.set_estimator('lstm')
f.set_validation_metric('rmse')
f.set_metrics(['rmse'])
f.manual_forecast(
    call_me='lstm_latest',
    lags=input_size,
    batch_size=1,
    epochs=128,
    validation_split=0,
    shuffle=False,
    activation='tanh',
    optimizer='Adam',
    learning_rate=0.001,
    lstm_layer_sizes=(64,128,256,128,64,)*1,
    dropout=(0.05,0.05,0.05,0.05,0.05,)*1,
    plot_loss=True
)
display(f.tf_model.summary())

I ran it on  Google Colab.

I'm having a hard time reproducing the error. What version of tensorflow and keras do you have installed? With 2.11.0, things on my end continue to work well. You can try sharing your dataset with me if it is not restricted: mikekeith52@gmail.com

Nevermind, I have fixed it with restarting runtime, I have no idea what caused that errors.


text:
Mail.new STDIN.read raises invalid byte sequence in US-ASCII

The stack trace:
invalid byte sequence in US-ASCII
mail-2.7.1/lib/mail/message.rb:2032:in `match'
mail-2.7.1/lib/mail/message.rb:2032:in `match'
mail-2.7.1/lib/mail/message.rb:2032:in `set_envelope_header'
mail-2.7.1/lib/mail/message.rb:2132:in `init_with_string'
mail-2.7.1/lib/mail/message.rb:137:in `initialize'
mail-2.7.1/lib/mail/mail.rb:51:in `new'
mail-2.7.1/lib/mail/mail.rb:51:in `new'

The locale on the machine:
$ locale
LANG=C.UTF-8
LANGUAGE=
LC_CTYPE="C.UTF-8"
LC_NUMERIC="C.UTF-8"
LC_TIME="C.UTF-8"
LC_COLLATE="C.UTF-8"
LC_MONETARY="C.UTF-8"
LC_MESSAGES="C.UTF-8"
LC_PAPER="C.UTF-8"
LC_NAME="C.UTF-8"
LC_ADDRESS="C.UTF-8"
LC_TELEPHONE="C.UTF-8"
LC_MEASUREMENT="C.UTF-8"
LC_IDENTIFICATION="C.UTF-8"
LC_ALL=

The Exim configuration which pipes the email to a Ruby script: https://github.com/leafac/www.kill-the-newsletter.com/blob/master/exim.conf
The Ruby script itself: https://github.com/leafac/www.kill-the-newsletter.com/blob/master/mail_handler.rb
I can provide an example of an email that causes the problem via a private channel.
I read a bunch about this online and I still can’t figure it out.
Should I change the locale to en_US.utf8 by changing /etc/environment?
LANG=en_US.utf8
LC_ALL=en_US.UTF-8

Should I start my Ruby script with something like the following?
Encoding.default_external = Encoding::UTF_8
Encoding.default_internal = Encoding::UTF_8

Should I invoke Ruby with the --encoding argument? I tried --encoding UTF-8:UTF-8 but it didn’t work.
Should I do something else entirely?
Thank you for this gem and for your help.

Classic problem with Ruby picking up US-ASCII from your environment. You can set LANG/LC_ALL globally, pass it per script invocation in your Exim config, or set Encoding.default_external = … in your script itself. Nice setup; good luck!

First Attempt
Edit the mail_handler.rb to begin with
Encoding.default_external = Encoding::UTF_8

or
Encoding.default_external = Encoding::UTF_8
Encoding.default_internal = Encoding::UTF_8

In both cases the problem persists (with UTF-8, this time): invalid byte sequence in UTF-8.
I expected that, because I think that using the --encoding command-line flag when invoking Ruby, which had I tried before, amounts to the same as adding the lines above to the beginning of the script.
Second Attempt
Undid the First Attempt.
Change the locale in the operating system with
# update-locale LANG=en_US.UTF-8

and rebooted such that now
# locale
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

Surprisingly, the message is still invalid byte sequence in US-ASCII, as opposed to UTF-8.
Third Attempt
Set LC_ALL as well such that
# cat /etc/default/locale
LANG=en_US.UTF-8
LC_ALL=en_US.UTF-8

and rebooted such that now
# locale
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=en_US.UTF-8

Same: invalid byte sequence in US-ASCII.
Fourth Attempt
With the locale as in the Third Attempt, recompiled Ruby with ruby-install.
No dice: invalid byte sequence in US-ASCII.
Conclusion
Please help 🙏

Here’s what’s doing it for me for now:

I configured Exim to pass the LANG environment variable.†
I String#scrub the data as it comes from STDIN.

I believe I’m losing characters that are encoded in anything that isn’t UTF-8. But it seems infrequent enough that my users probably won’t care too much. Also, I’m not sure if there’s anything I can do about it.
† I ended up using LANG=C.UTF-8, as opposed to the LANG=en_US.UTF-8 that I used in the comments above. I was under the wrong impression that LANG=en_US.UTF-8 ⇒ Encoding.default_external = Encoding::UTF_8 and LANG=C.UTF-8 ⇒ Encoding.default_external != Encoding::UTF_8. So I was fighting the LANG=C.UTF-8. But I was wrong: LANG=C.UTF-8 ⇒ Encoding.default_external == Encoding::UTF_8. The problem seems to be that Exim was stripping the LANG=C.UTF-8 from the environment. In other Ruby processes, for example, the Sinatra server, the encoding was Encoding.default_external = Encoding::UTF_8 just fine.

Exim was stripping the LANG=C.UTF-8 from the environment

Sounds like it! Passing through a clean env. https://lists.exim.org/lurker/message/20160302.191005.a72d8433.en.html

authors: jeremy leafac

repo: mikel/mail


text:
🛑 OMSF is down

In 3c3c319, OMSF (https://www.omsf.io) was down:

HTTP code: 0
Response time: 0 ms

Resolved: OMSF is back up in a55c1a3 after 10 minutes.

repo: mikemhenry/website-uptime


text:
🛑 OMSF is down

In 0514bb0, OMSF (https://www.omsf.io) was down:

HTTP code: 0
Response time: 0 ms

Resolved: OMSF is back up in f45c1bf after 10 minutes.


text:
Small improvements (SubItemUtil, RangeSelector, ActionModeHelper)

action mode helper can be resetted => needed, if you retain the helper on rotation and don't want to leak the activity
range selector and SubItemUtil supports a payload for a more effective notifying of the adapter

I saw, that the FastAdapter.select() does not yet support payloads for the select functions, I think it should though...

@MFlisar thanks

authors: MFlisar mikepenz

repo: mikepenz/FastAdapter


text:
Allow dtime= on events to tweak their offset.

I am unsure if I am doing the buffer manipulation correctly on the incoming check, but, this seems to do the correct thing in practice.  Definitely needs some review.

Thanks cnlohr!

authors: cnlohr mikesart

repo: mikesart/gpuvis


text:
ホストマシンとコンテナのCPUアーキテクチャが必ずしも一致しない

概要
DockerfileのFROM指定およびdockerコンテナ起動時の引数に platform を指定することで、ホストマシンと異なるCPUアーキテクチャのコンテナを実行することができます。
e.g.)

Dockerfile: FROM --platform=linux/amd64 ruby
devcontainer.json: "runArgs": ["--platform=linux/amd64"]

現在、コンテナに転送するツールはホストマシンのCPUアーキテクチャによって決定されていますが、ホストマシンとコンテナのCPUアーキテクチャが必ずしも一致しないため、コンテナのCPUアーキテクチャによって決定できると良さそうに思います。
コンテナのCPUアーキテクチャ取得方法の調査
docker run --rm -it --platform linux/x86_64 denoland/deno deno repl

画像のようにDocker Desktopではplatformの検出が行われているのですが、クローズドソースのためどの用にして検出しているのか調査しきれていません。
少なくとも docker inspect コマンドの結果にはエミュレーション周りの情報がなさそうに見えます。
（Platform プロパティがそれっぽいかなと思ったのですが単に linux となっておりCPUアーキテクチャは含まれていなさそう）
$ docker inspect 4f138061da85afadf18a7957dc64e5e2cb91af398812fab040f1b63f4f7fb700 | jq '.[0].Platform'
"linux"

uname のあるコンテナであれば、 docker exec <container_id> uname -m で取得できますね。
開発用コンテナで uname が無いコンテナを利用するなんて過酷なことをする人はいないと思いますので、この判定方法で良いかもしれません。

現状はホストとコンテナが同じ ARCH であるという前提の設計となっているため、比較的大規模な構成変更が必要。

xxx_arm64.go となっているものは xxx.go に変更し、ARCH を判定して出し分けるように修正
プログラム開始直後にバイナリダウンロードを行っているが、 ARCH がわかるのがコンテナを起動した後なのでダウンロードタイミングを修正

docker image inspect [IMAGE] 内にありました！ uname などのコマンドに依存せず取得できそうです！
$ docker inspect bd427ed09808be5183ce482d3ee9cfbda82d718d5417040ce692f8931fa0b6b8 | jq '.[0].Image'
"sha256:ffbf322e0c89d8900c18108ba362920f572e4ea109c7df37870ecaeeaa53aab7"

$ docker image inspect ffbf322e0c89d8900c18108ba362920f572e4ea109c7df37870ecaeeaa53aab7 | jq '.[0] | {Os: .Os, Architecture: .Architecture}'
{
  "Os": "linux",
  "Architecture": "amd64"
}

ARCH がわかるのがコンテナを起動した後なのでダウンロードタイミングを修正

docker image inspect で特定できることがわかったので、イメージのIDが特定できればコンテナを起動せず判定できそうです

Dockerfile内からビルド時に判定したい場合は環境変数 BUILDPLATFORM と TARGETPLATFORM が使えそうです。
https://docs.docker.com/build/building/multi-platform/#cross-compilation
これはFeatureを作る時に使えそうですね

M1 Mac で x86_64 のコンテナ起動しても、 AppImage は実行できないようですね...。
これもスタティックリンク Vim に置き換える形になりそう。

ひとまず which を使う実装が簡単なのでそれで実装完了。
Linux での動作確認完了。
M1 Mac での動作確認中。
README に環境と実行する Vim/NeoVim の関係をまとめないと...

あ、 M1 Mac の nvim AppImage も動かないのか...。
今度はこっちを vim-static にフォールバックしないと。

整理するとこう。
本当はホストの ARCH まで分岐しないといけないけど arm の Win も Linux も持っていないので無理。

Limitation としては

macOS で NeoVim を利用する場合はシステムインストールされたものを利用する必要がある
aarch64 のコンテナで NeoVim を利用する場合はシステムインストールされたものを利用する必要がある
NeoVim AppImage が使えず、システムインストールの NeoVim も存在しない場合、 NeoVim の代わりに Vim が起動する

という感じか。

調査ありがとうございます。めちゃくちゃややこしいですね…

start コマンドばかり確認して run コマンドのことを忘れていた。今から実装します。

#60 で対応。

Release v3.3.0 · mikoto2000/devcontainer.vim でリリースしました。

@mikoto2000 ありがとうございます！


text:
モデルのテンプレート改善

現状は以下になっている。

https://github.com/mikoto2000/ya-rails-template/blob/371d7c59881bef6c6ed948d5b842beb17bf85a5e/templates/active_record/model/model.rb

以下 Rails のモデルテンプレートをベースにするように修正する。

https://github.com/rails/rails/blob/655278edeb82ec5f081313abf9c9f59c8be76b22/activerecord/lib/rails/generators/active_record/model/templates/model.rb.tt#L4

745875467a0fae8b39cde0b8bb02d255177c997c で完了。


text:
emoji

current emoji has problems with tabulate. Maybe change for different emoji?

delteted emoji


text:
Refactor conda download into a separate script

I want to add this script to @mila-udem/blocks. In order not to copy paste the same code, let's create a single script.
This will be a multiple stage process:

Merge this script
Point travis to it
Use it in blocks

@rizar?

Hmm, it is already in blocks. In this case I don't know why tests there are failing.

repo: mila-udem/fuel


text:
Resolving variables in external files

This change lets the user navigate to the definition of variables defined in other files (which are linked by the Resource keyword)

Hi there! Is someone reviewing/testing/merging this?

@MikeBeardman I think you change looks good.  The one question I have is all the code that you removed.  For example 'in keyword/file' variable resolution and linking used to work and doesn't anymore.  Just wondering if something was off in what I am doing.
I think the solution is to keep the previous code and also your code.  I can handle this, but just thought I would mention it.

Hey mtrubs, thanks for merging.. And apologies for disabling your in keyword feature. It was unclear to me what the code was doing.  I looking forward to making further contributions in future, and will be a bit more careful regarding existing features.

No worries. Thanks for contributing.
On Jul 4, 2015 2:44 AM, "MikeBeardman" notifications@github.com wrote:

Hey mtrubs, thanks for merging.. And apologies for disabling your in
keyword feature. It was unclear to me what the code was doing. I looking
forward to making further contributions in future, and will be a bit more
careful regarding existing features.
—
Reply to this email directly or view it on GitHub
https://github.com/millennialmedia/intellibot/pull/89#issuecomment-118471194
.

authors: MikeBeardman cluehr mtrubs

repo: millennialmedia/intellibot


text:
Add CSS styles and responsive meta tag

This PR includes CSS styles and a responsive meta tag for the resume webpage.

linked with issue


text:
protobuf requirement package conflicts

milvus-model==0.2.0 requires protobuf==3.2.0. This conflicts with a package that I need for testing in a cloud environment: that requires "protobuf!=3.20.0, !=3.20.1, !=4.21.0, !=4.21.1, !=4.21.2, !=4.21.3, !=4.21.4, !=4.21.5,".
pymilvus==2.4.0 depends on protobuf>=3.2.0 and the next version of pymilvus may depend on protobuf==4.25.2, both of which are perfectly compatible.
Could milvus-model's protobuf dependency match the pymilvus dependency exactly?
https://github.com/milvus-io/milvus-model/blob/8202e8fe864f902487fb28b0e4b29a411bfb70b6/pyproject.toml#L28

The reason for this protobuf requirement is that we are using Hugging Face's transformer for some models, and it needs protobuf version 3.20.2 or lower.
https://github.com/huggingface/transformers/blob/a8eb4f79f946c5785f0e91b356ce328248916a05/setup.py#L141
3.20.2 seems a current feasible solution. We will delve deeper into this.

the specific version dependency is removed.

authors: lynnssi wxywb

repo: milvus-io/milvus-model


text:
Add current proto file from milvus project

Add latest proto from Milvus project.
/cc @yhmo
/kind improvement
Signed-off-by: Congqi Xia congqi.xia@zilliz.com

/lgtm

authors: congqixia yhmo

repo: milvus-io/milvus-proto


text:
License

Hello!  This is super exciting work, super excited to dig into it!  Are you able to add a license to this repository so that we can correctly use/attribute the repository?  Thanks, andy!  :)

Thank you for bringing this to our attention. I've added the licensing information in the main folder. Enjoy!

Thank you very much! 😄


text:
Programmatically clicking a cell for editing

Heya, Great work with the plugin I absolutely love it!
I was wondering however if there was a way to programatically select a cell and show the editing caret inside. Ive tried the standard .focus() and .click() onto the cell to no avail =(
Cheers

I was having the same issue and this worked perfectly for me. Thanks.

authors: kronocharia kstole

repo: mindmup/editable-table


text:
🛑 MineVN Website is down

In c2410f9, MineVN Website (http://minevn.net) was down:

HTTP code: 0
Response time: 0 ms

Resolved: MineVN Website is back up in a7b43ae.


text:
希望   SaveAsByTemplate  可以指定模板里某一个 Sheet  进行数据填充

有时候一个模板里会有多个  Sheet  希望可以指定某一个 Sheet 进行  SaveAsByTemplate 数据填充  谢谢大佬

我纳闷怎么没有这个鬼功能

authors: FPHFZM Godaday

repo: mini-software/MiniExcel


text:
Change address in Transaction Details is not correct for recipient

Hi Elias,
Issue Impact: Minor
Device Manufacturer: Samsung
Device Model: S10
Device OS: Android
Device OS Version: 11
Application Version: apk: v0.98.29
Wallet: 1.1.4
I know this was changed recently so that the Change Address is always the users address, however looking at the sender and receiver's transaction details side by side, having Change Address being the incoming amount on the right side of the screenshot doesn't look correct.
Maybe Change Address can just be renamed to My Address? Then I think both sides would make sense...
Screenshot shows Sender's tx details on the left , recipient's on the right:

Thanks
Jazmin

Good idea, now changed in wallet v1.1.5

confirmed as fixed by @MiniJaz

authors: eliasnemr eurobuddha jazminrib

repo: minima-global/Minima


text:
Request for Contribution: Add webpage GUI for GPT-2-based APIs

Part of the reason I am building gpt-2-cloud-run is for easy integration with a web-based front end.
Unfortunately, I suck at front-ends and don't know best practices. (Ideally, I want something similar to OpenAI's UI which has parameter selection and input capabilities for inline autocompletion)

I'll need help for a simple web-based frontend that's flexible. Some feature specifications:

A single HTML file with the app (no external JS/CSS; including from a CDN is OK).
Supports all parameters that the default API supports. (e.g. length, temperature, top_k)
A button for submission which is disabled on click until a response/error is received (to prevent double-submissions since they are slow)

Heya, Max: are you thinking the UI should be standalone, with a config option (maybe saved in LocalStorage) to point to an existing gpt-2-cloud-run endpoint? Or do you imagine it would be part of this Cloud Run container, adding a Starlette route for the UI?

UI should be standalone .html file that points to the API (i.e. a config parameter), and not a part of the container. The reason for this is if it's a part of the container, it'll result in a blank screen when doing the initial GET request to boot it up.

Update: working on this in the ui branch.

Done!

authors: minimaxir spdustin


text:
git clone git@bitbucket.org:jvimal/bgp.git - Permission denied

$ git clone git@bitbucket.org:jvimal/bgp.git
Cloning into 'bgp'...
Warning: Permanently added 'bitbucket.org' (RSA) to the list of known hosts.
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

should really be $ git clone --recursive https://bitbucket.org/jvimal/bgp.git

how does this repository affect https://bitbucket.org/jvimal/bgp?
you should probably open an issue there i guess...
this can be closed

authors: cheriimoya evandrix

repo: mininet/mininet


text:
[RELEASE] Server RELEASE.2024-02-06T21-36-22Z

Server RELEASE.2024-02-06T21-36-22Z has changes that impact the docs:

[ ] Adds support for limiting the duration of all STS accounts under AssumeRoleWithWebIdentity PR #18835

https://min.io/docs/minio/linux/developers/security-token-service/AssumeRoleWithWebIdentity.html <- this policy would override any client-set duration

repo: minio/docs


text:
Feature/1256 edit single question page textarea component

Add editable component functionality.

@tomas-stefano
Have updated the metadata presenter version number but PR. Checks now passing, but PR need someone to push the button on 'reviewed'. If there are no other issues, can you shunt it along for me, please. Thanks.

repo: ministryofjustice/fb-editor


text:
SAA-1536 deprecated heavy hitting endpoint with the plan to remove when given all clear.

This flags the GET activities/{ID} as deprecated with the plan to remove it in the near future once we are happy it is no longer used.

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (757d449) 86.98% compared to head (976fb22) 86.98%.

Additional details and impacted files
@@            Coverage Diff            @@
##               main     #773   +/-   ##
=========================================
  Coverage     86.98%   86.98%
  Complexity     3450     3450
=========================================
  Files           358      358
  Lines         11986    11986
  Branches       1001     1001
=========================================
  Hits          10426    10426
  Misses         1093     1093
  Partials        467      467

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

authors: codecov-commenter matt-crowson-moj


text:
Add error handling for no additional information in 'Risk to Self'

Context
https://trello.com/c/K4wTSYL3/462-risk-to-self-additional-information
Changes in this PR
This error case was not handled previously.
Screenshots of UI changes

Release checklist
As part of our continuous deployment strategy we must ensure that this work is
ready to be released at any point. Before merging to main we must first
confirm:
Pre merge checklist

[ ] Are any changes required to the e2e tests?
[ ] If you've added a new route, have you added a new
auditEvent? (see server/routes/apply.ts for examples)
[ ] Are there environment variables or other infrastructure configuration which needs to be included in this release?
[ ] Are there any data migrations required. Automatic or manual?
[ ] Does this rely on changes being deployed to the CAS API?

Post merge checklist
Once we've merged it will be auto-deployed to the dev environment.
Find the build-and-deploy job in CircleCI.
Should a release fail at any step, you as the author should now lead the work to
fix it as soon as possible.

@patrickjfl ah my bad, it looks like the (optional) copy has been taken out of the prototype, but I forgot to take it out here


text:
Support income range

This is an improvement on the income flow, which skips the 3rd page when the user earns either less or more than the thresholds. If they earn between the thresholds, the 3rd page is displayed.
For this to work, the https://github.com/ministryofjustice/fr-staffapp/pull/697 has to be merged first..

Looks good :+1:

authors: colinbruce novotnyjakub

repo: ministryofjustice/hwf-publicapp


text:
AP-1874 format sort code as plain text

Format sort code as plain text
Link to story
On the bank transactions CSV file, some sort codes were being interpreted by Excel as dates and displayed wrongly.  This PR forces them to be interpreted as plain text by preceeding them with a single quote
Checklist
Before you ask people to review this PR:

[ ] Tests and rubocop should be passing: bundle exec rake
[ ] Github should not be reporting conflicts; you should have recently run git rebase master.
[ ] There should be no unnecessary whitespace changes. These make diffs harder to read and conflicts more likely.
[ ] The PR description should say what you changed and why, with a link to the JIRA story.
[ ] You should have looked at the diff against master and ensured that nothing unexpected is included in your changes.
[ ] You should have checked that the commit messages say why the change was made.

UAT link for Mike: https://ap-1874-format-sort-code-applyforlegalaid-uat.apps.live-1.cloud-platform.service.justice.gov.uk/

authors: Alex-Swann stephenrichards


text:
Update team.html.md.erb

.. my first PR ever on this account.

I'll remove Christine Elliott, Business Analyst , and sort my permissions out hopefully so I can squash and merge this PR.


text:
Feature/firewall change 2180

Initial stateful firewall test rules. terraform plan works for this.

Closing this as it's superseded by #2488


text:
only sleep in wait() if the result is not true

there is no need to sleep if the result is already true, so save some time

This might actually be anti-optimization, because if cycle iteration count while you wait for $result to become true is >1, then you actually loose time by checking $result again inside cycle.

@aik099 if the result is true, the loop will exit

@aik099 if the result is true, the loop will exit

That is how it works currently. But what I'm saying that extra code to check same exit condition only doubles code run time which is spending more time then is saved by calling usleep extra time after $result is true.

So you suggesting the if statement will take longer than 1/10s
On May 30, 2017 2:02:48 PM GMT+05:45, Alexander Obuhovich notifications@github.com wrote:

@aik099 if the result is true, the loop will exit

That is how it works currently. But what I'm saying that extra code to
check same exit condition only doubles code run time which is spending
more time then is saved by calling usleep extra time after $result is
true.
--
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub:
https://github.com/minkphp/MinkSelenium2Driver/pull/270#issuecomment-304807654

It depends on how soon condition will become true. If element doesn't appear on the page for certain time, then total time spent on that extra IF execution might be close (I haven't measured really) to sleep time.
I think you'd better attach some benchmarks for cases with extra IF and without it with different waiting times (e.g. element appeared after X milliseconds, sleep time, extra if time, total time).

What about changing it around and having a while and not a do...while loop? Then there are the same amount of checks, but the loop only waits if the condition is not true. If the condition returns true strait away we save 1/10s

sorry $result need to be set of course

authors: aik099 individual-it stof


text:
Some new feature suggestions

Thank you very much for creating this amazing extension. Would you mind adding features?

Table search function
Web console provide table search functions
I have to work with multiple projects, each contains tens or hundreds or even thousands of tables/views, the search function can help me find the tables I am looking for very quickly.

Enhanced right click menu
Currently, when right click the table name, there are only 2 items, i.e. preview table in vscode or remotely. It will be great if you can add additional items, like Copy table ID or Query this table/view. For the columns, items such as Copy column name will also very helpful.

Displaying resources other than tables/views in the side panel
The last one, I don't know this is even possible. Currently the panel only show tables/views, if it can display Saved queries, Stored Procedures etc. that will be great. I can make some changes in on laptop, save my query in the "saved queries", and then the query can be retrieved/edited/executed in web console as well.

Even without this functions, this extension also is awesome, but adding these features will make it even great.
Thank you!

@GaryLiuTelus

Enhanced right click menu

I've published this as v1.22.0, so give it a try!

As for the other requests, I'll check to see if there is an API I can use for BQ when I have time.

Thank you very much!

authors: GaryLiuTelus minodisk

repo: minodisk/bigquery-runner


text:
🛑 Ralsei is down

In 492b059, Ralsei (ralsei.nightcore.monster) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Ralsei is back up in 626d8aa.

repo: mint-lgbt/status


text:
mip-carousel 建议添加样式

1.支持当前显示的图片和总图片的数量，例如右下角显示1/20（在轮播图很多的情况下有这种需求）。
2.支持滑动时的效果。 目前的是在滑动后显示下一张图片，没有拖动效果（参考swiper）。

@fengchuantao 跟进一下

完成更新

升级完成

@NowhereToRun 已经完成上线，可以查看线上效果，有问题可以及时反馈，如果没有问题可以close这个issue谢谢

你好，还有两个问题

轮播图不支持图片懒加载
默认图功能（这个是不是属于mip-img了）

默认图是mip-img.懒加载后续升级 @NowhereToRun

authors: NowhereToRun fengchuantao pearlwang1106

repo: mipengine/mip-extensions


text:
mip2核心文件和mip-nav-slidedown组件有兼容性。高度不能撑起来

BUG 描述
清晰和准确的描述 Bug 是什么
复现步骤
重新复现 Bug 的步骤
官网核心换位mip2后，该组件出现bug
https://www.mipengine.org/examples/mip-extensions/mip-nav-slidedown.html
点击预览，点击demo页按钮即可复现。高度撑不起来。并且头部会跟着滚动（期望固定）
期望结果
顶部固定。列表滚动。且列表页全屏

bug截图

环境及版本信息:
所有环境。
预估导致因素：mip2核心文件。组件8.27号还是正常的。应该是最近的核心文件改动导致。

问题定位
问题是由这个 PR 引入的
@xiaoiver https://github.com/mipengine/mip2/pull/228
body {
  overflow-y: auto;
  overflow-x: hidden; // bug
  position: relative;
  &.trigger-layout {
    height: 100% !important;
  }
}

当 body 不没撑满屏幕时，会导致下拉菜单被父元素的 overflow hidden 截断

authors: huanghuiquan tfciw


text:
Django integration link in docs broken

It currently links to: http://elsdoerfer.name/docs/django-assets/
That link is broken, gives a 404:
https://github.com/miracle2k/webassets/search?utf8=✓&q=http%3A%2F%2Felsdoerfer.name%2Fdocs%2Fdjango-assets%2F
I guess it should link to https://django-assets.readthedocs.org/en/latest/ or https://github.com/miracle2k/django-assets instead?

Yes it should!


text:
React: Consume API frontend

Project requirement

Create a new React app called 'hello-react-front-end'
Initialize the project with Git.
Create the App component with react-router.
Create the Greeting component that will display a greeting. Set it up as a route in the App component.
Create a store, an action, and a reducer that will connect to the API endpoint to get the random greeting.
Display the random greeting in the Greeting component.

Link to Rails PR

@descholar-ceo thanks for the review.

repo: mirouhml/hello-react-front-end


text:
Math magicians: full website

Create a website consisting of 3 pages: Home, Calculator, and Quote.
Follow the general layout provided in the activity.
Add some styling to improve the look and feel.
Use React Router to link the navigation with each page.

Thanks for the review @Whoistolu !

repo: mirouhml/math-magicians


text:
Filter button is now a real button (for mobile users)

Hello!
After two weeks or so of testing in post-production, I'm opening this PR to replace the simple text button to toggle filter menu, to a real button. Otherwise, users don't know it's a button but just a label.

Before

After

Before

After

Before

After

Pull Request Checklist
(Please keep this section. It will make maintainer's life easier.)

[x] Privileged views and APIs are guarded by proper permission checks.
[x] All visible strings are translated with proper context.
[x] All data-formatting is locale-aware (dates, numbers, and so on).
[x] Database queries are optimized and the number of queries is constant.
[x] The changes are tested.
[x] The code is documented (docstrings, project documentation).
[x] Python code quality checks pass: pycodestyle, pydocstyle, pylint.
[x] JavaScript code quality checks pass: eslint.

Wonder if dropdown isn't a better fit?
eg. as seen on amazon

I think it would require to change the logic on the toggle button. As of now, I think it's preferable to just make the toggle label/ button visible to the user.
Then, we could try to think and implement a better way for storefront 2.0.

repo: mirumee/saleor


text:
Pivot to a WASM-based CGI server.

The CGI protocol is a great way to map HTTP requests to system processes (environment variables, stdin, stdout, stderr and arguments). Using the same protocol we can map HTTP requests to WASI invocations.
### Tasks
- [x] Implement script selection instead of just supporting single script. In doing do, implement PATH_INFO and PATH_TRANSLATED
- [ ] Expose a script URI, script name and server name
- [x] Support passing a server name in some manner. May be able to reporpuse interface for this
- [ ] Add support for HTTPS scheme and expose the scheme to the script
- [ ] Ensure the script cannot cause the server to return a malformed HTTP response
- [ ] Parse the URI query string as command-line arguments
- [ ] Ensure hyper discards response bodies on HEAD
- [ ] Non-Parsed Header script support
- [ ] Validate script behavior for CGI response by adding support for document, local redirect, client redirect and client redirect with document responses
- [ ] Add support for content encodings and prevent the script from changing headers necessary for communicating correctly with the client
- [ ] Recommendations for servers and example scripts
- [ ] Security considerations

Documentation

CGI RFC
Cloudflare Worker Request Limits
Original HTTP/1.1 RFC

I already have a basic CGI server. Clearing the task list and starting a new one.

[x] Implement a TCP server that passes the TCP stream as input and output for a child process
[x] Define environment variables on the child process for the server context
[x] Add support for a shutdown signal
[x] Limit child process execution to some duration
[x] Parse the request headers to expose them to the child process as HTTP_* environment variables
[x] Handle case sensitivity in request header names correctly
[x] Set the CWD to be the directory containing the script and not the directory running the server.
[x] Add script to assert the env vars, args and stdin are all passed in correctly otherwise exits with non-zero error code.
[x] Add support for the child process to set the status
[x] Add support for the child process to define headers
[x] Consume any remaining bytes in the stream in case the child process does not read from the input stream.
[x] Handle case sensitivity in response header names correctly
[x] Change line endings to add \r if neccessary in client header fields
[x] Remove all X-CGI headers set by the script
[ ] Pass a null PATH_INFO when the request path is just /
[ ] Work through section 9 of the CGI RFC
[ ] Review all cases of MUST, MAY and SHOULD in the spec
[ ] Allow testing CGI scripts by providing a subcommand to define all of the request-specific context
[ ] Support URL-decoding the URI path from the HTTP request
[ ] Use the host header to provide the server name meta variable
[ ] Add support for TLS
[ ] Pass the request scheme meta variable to the child process
[ ] Add support for compressed request bodies and responses, requires recalculating content length based on transfer encoding being removed.
[ ] Add support for the child process to define trailers
[ ] Add a test for the output when passing username and password in the URI via cURL
[ ] Support parsing the URI query as command line arguments
[ ] Make the script timeout configurable
[ ] Make the request and header sizes configurable
[ ] Add support for local redirect responses
[ ] Add support for Client Redirect Response
[ ] Filter child process protocol headers to ensure the script cannot override headers necessary for the server to communicate with the client

I finished implementing support for loading any CGI script from the CGI bin directory. Also, I added a document root to be used to resolve relative CGI bin paths, used as working directory for scripts and for path translation.
The assert.cgi script now validates all non-protocol meta variables are passed correctly.

I now pass the server name from the command line (resolved on server start) to the script.

The script name and server name are both passed to the script. However, script URI also requires knowing the scheme.

The plan is to have the server context maintain a scheme variable. The scheme will just be "http" for now and will support "https" once I add TLS support.

The script now gets a valid script URI verified in assert.cgi.

The query string is now parsed as command-line arguments.

Hyper does not discard bodies on HEAD requests. I created a router that implements Service (instead of the CGI client). The router drops the body on HEAD requests and maps io errors to HTTP status codes.
I tried passing a null stdout to the child process, but that means the script can't set any headers which is the entire point of HEAD requests.

Implemented a static asset server that loads files fully into memory before returning the contents.
The server prevents loading of files with the cgi extension statically (i.e. must be loaded dynamically).

I added tests for all 4 types of responses, including local redirection. The local redirection test currently fails since I just return an error response saying "unsupported".

Added logic to ensure redirects have empty bodies.

I added support for local redirects by moving the body collection logic to the router. Then, the CGI script is invoked with a body of Bytes, which is cheap to clone allowing replaying of the request body. Finally, I updated the request's URI's path and query from the location header and was able to get both local redirect tests to pass.

Closing in favor of tracking improvements in another issue.

repo: misalcedo/tortuga


text:
Sounds player copy command has wrong syntax

The command given is /playsound <sound> master @s ~ ~ ~ <pitch> <volume>, however the pitch and volume parameters are switched from the official minecraft syntax of <volume> <pitch>
Copy command from your website

Official syntax from wiki:

Thanks for reporting!

authors: HoboMaggot misode

repo: misode/sounds


text:
🛑 API Voeux Affelnet is down

In 5865812, API Voeux Affelnet (https://voeux-affelnet.apprentissage.beta.gouv.fr/api/healthcheck) was down:

HTTP code: 502
Response time: 466 ms

Resolved: API Voeux Affelnet is back up in 2d8216f.

repo: mission-apprentissage/upptime


text:
Missing Typescript definitions

In this day of AI it's hardly much of a share, but:
declare module '@mistralai/mistralai' {
  class MistralClient {
    constructor(apiKey?: string, endpoint?: string)

    private _request(method: string, path: string, request: any): Promise<any>

    private _makeChatCompletionRequest(
      model: string,
      messages: Array<{ role: string; content: string }>,
      temperature?: number,
      maxTokens?: number,
      topP?: number,
      randomSeed?: number,
      stream?: boolean,
      safeMode?: boolean
    ): object

    listModels(): Promise<any>

    chat(options: {
      model: string
      messages: Array<{ role: string; content: string }>
      temperature?: number
      maxTokens?: number
      topP?: number
      randomSeed?: number
      safeMode?: boolean
    }): Promise<any>

    chatStream(options: {
      model: string
      messages: Array<{ role: string; content: string }>
      temperature?: number
      maxTokens?: number
      topP?: number
      randomSeed?: number
      safeMode?: boolean
    }): AsyncGenerator<any, void, unknown>

    embeddings(options: {
      model: string
      input: string | string[]
    }): Promise<any>
  }

  export default MistralClient
}

Thanks for your contribution!
Can you open a PR?

I added some typedefs to my fetch based client
https://github.com/mistralai/client-js/issues/8#issuecomment-1856663540

I used @sublimator's typedef as a starting point and added types for all the responses:
declare module '@mistralai/mistralai' {

    export interface ModelPermission {
        id: string;
        object: 'model_permission';
        created: number;
        allow_create_engine: boolean;
        allow_sampling: boolean;
        allow_logprobs: boolean;
        allow_search_indices: boolean;
        allow_view: boolean;
        allow_fine_tuning: boolean;
        organization: string;
        group: string | null;
        is_blocking: boolean;
    }

    export interface Model {
        id: string;
        object: 'model';
        created: number;
        owned_by: string;
        root: string | null;
        parent: string | null;
        permission: ModelPermission[];
    }

    export interface ListModelsResponse {
        object: "list";
        data: Model[];
    };

    export interface TokenUsage {
        prompt_tokens: number;
        completion_tokens: number;
        total_tokens: number;
    }

    export interface ChatCompletionResponseChoice {
        index: number;
        message: {
            role: string;
            content: string;
        };
        finish_reason: string;
    }

    export interface ChatCompletionResponseChunkChoice {
        index: number;
        delta: {
            role?: string;
            content?: string;
        };
        finish_reason: string;
    }

    export interface ChatCompletionResponse {
        id: string;
        object: 'chat.completion';
        created: number;
        model: string;
        choices: ChatCompletionResponseChoice[];
        usage: TokenUsage;
    }

    export interface ChatCompletionResponseChunk {
        id: string;
        object: 'chat.completion.chunk';
        created: number;
        model: string;
        choices: ChatCompletionResponseChunkChoice[];
    }

    export interface Embedding {
        id: string;
        object: 'embedding';
        embedding: number[];
    }

    export interface EmbeddingResponse {
        id: string;
        object: 'list';
        data: Embedding[];
        model: string;
        usage: TokenUsage;
    }

    class MistralClient {
        constructor(apiKey?: string, endpoint?: string);

        private _request(
            method: string,
            path: string,
            request: unknown
        ): Promise<unknown>;

        private _makeChatCompletionRequest(
            model: string,
            messages: Array<{ role: string; content: string }>,
            temperature?: number,
            maxTokens?: number,
            topP?: number,
            randomSeed?: number,
            stream?: boolean,
            safeMode?: boolean
        ): object;

        listModels(): Promise<ListModelsResponse>;

        chat(options: {
            model: string;
            messages: Array<{ role: string; content: string }>;
            temperature?: number;
            maxTokens?: number;
            topP?: number;
            randomSeed?: number;
            safeMode?: boolean;
        }): Promise<ChatCompletionResponse>;

        chatStream(options: {
            model: string;
            messages: Array<{ role: string; content: string }>;
            temperature?: number;
            maxTokens?: number;
            topP?: number;
            randomSeed?: number;
            safeMode?: boolean;
        }): AsyncGenerator<ChatCompletionResponseChunk, void, unknown>;

        embeddings(options: {
            model: string;
            input: string | string[];
        }): Promise<EmbeddingResponse>;
    }

    export default MistralClient;
}

I'd be more than happy to contribute a PR.

authors: flore2003 lerela nyacg sublimator

repo: mistralai/client-js


text:
Close bug

I see that this issue has been reported in the past Here But the issue was closed  ?
However I think there are still issues with how screens are closed. I have produced a small test app that demonstrates this issue. You can download it here
Here
Here is an overview of the problem
Here
Please advise.
Thanks.

Short answer: App Inventor assumes that Screen1 is the lowest item in the activity stack. When you open a second copy of Screen1, as you do in your example, this assumption is broken.
Long answer: The close application logic closes all of the screens in the Android activity stack until it hits Screen1, and then calls System.exit(0); to quit the VM. However, Android sees this as more of a crash than an exit, so it attempts to restore the activity stack to what it was just prior to the exit call. In this case, the topmost Screen1 has been finished, so now the topmost activity is now Screen2 (with the original Screen1 still below it in the stack). This is the underlying basis for the behavior you observe.

Hi -
Sorry, not sure what you mean when you say When you open a second copy of Screen1, as you do in your example, this assumption is broken.  I was not aware that I was opening a "copy" of anything - the app has 3 screens and I am using the only command I know to open an instance of a new screen ?
Also, I think its worth mentioning that this phenomenon really only manifests itself when you try deploy the app to your phone (without using the AI companion.)
If I am not using the commands correctly or if there is a "better" way to call additional screens without triggering this circular behaviour, then I would appreciate some advice.
Many Thanks.

I am guessing that this is still an issue, so thought I would suggest a work-around for anyone experiencing the same issue. Please remember - afaik - this is just an issue if you try deploy your app to your phone as an apk.
To force-close the app, I store a variable in TinyDB called "quit_check" when the "quit" button is pressed, I write "YES" to this field. All other screens that can be called from the main screen check / read this value (during the screen initialize method) and if its "YES" they call "Close Application" command again. This seems to work.
Hope this helps someone..

Activities are managed as a stack in Android, and therefore in App Inventor. When you use the "open another screen" it always creates a new activity that gets put on the stack. The sample project you shared with us does this:
                  Screen1
         Screen2  Screen2  Screen2
Screen1  Screen1  Screen1  Screen1
----------------------------------
   t0       t1       t2       t3

When you get to state t2 and call close application, App Inventor pops all of the activities from the topmost activity until it gets to an activity called Screen1. The problem is that because you are opening another Screen1, it immediately finds that second Screen1 and attempts to exit. Android, confused as to why the app has exited, will recover the activity stack minus the activity that exited, which gives you state t3.
Instead of opening another Screen1, you should call "close screen" to return to Screen1 from Screen2. This ensures that a single Screen1 exists so that the semantics of the close application block are maintained.

We should not be allowed to open another Screen1.Or should force close another screen to return.

Ok, thanks for clearing that up for me. I come from a windows development background (Delphi) and so am used to having more flexibility with regards program flow and asset management.
Is the approach you outline a property of Java or App inventor ? It just seems to enforce a very restrictive / linear navigation model. Quite often in an application, one screen can call a second which in turn may need to call a third. In the system you outline, the user would have to go something like this ->
Screen1 -> Screen2->Screen3
Then to get back to the main screen would have to re-trace their steps, so,.,
Screen3 ->Screen2 -> Screen1
Whereas , quite often its useful to allow the user to simply go from screen3 directly back to screen1 (and so bypass Screen2).
Just seems odd to me coming from a typical Windows development system.
Anyway, thanks for your feedback.

Fair point and I will close this issue now.
Cheers..

@ewpatton When NFC component is used, Screen1 activity is set as  singleTask in Compiler.java. Can we always set Screen1 as singleTadk to fix? Open screens without close will crashed the app.

authors: SynapseUser ewpatton p4ssw0rd

repo: mit-cml/appinventor-sources


text:
Represent spaces as dots in Text blocks

Describe the desired feature

Spaces in Text blocks are often hard to read, especially when they are in the start or end of the text.  Due to the use of non-monospaced fonts, it is even more difficult to know how many spaces are there.
My suggestion is to represent spaces in the Text blocks with dots visually. These dots won't replace spaces but just indicate the presence of spaces.
In most IDEs like Android Studio, this is already a thing.

Take this image for example,

The first Text block has an empty text.
The second one has the text hello
The third one has the text ∙hello∙ (∙ represents a space)

Fun Activity: Count the number of spaces in the text of the last Text block 😁

Give an example of how this feature would be used

This improves the readability of the text inside a Text block.
Why doesn't the current App Inventor system address this use case?

This is a Blockly thing, and there's no user setting available to change the behavior of the Text block.
Why is this feature beneficial to App Inventor's educational mission?

It improves readability for everyone, including students and teachers 🙃

I feel like this could cause confusion for users that are seeing the dots for the first time, they might not understand why the dots are there. Some users also may not want this feature so if possible there should be a setting to toggle it.

Fun Activity: Count the number of spaces in the text of the last Text block

6?

I like the idea of @pavi2410 . Maybe you could make a kind of shadow dot like the shadow blocks in this proposition. https://community.appinventor.mit.edu/t/what-is-your-opinion-about-helper-blocks-in-app-inventor-gsoc-project-user-feedback/9057
We indeed have users who have problems with their blocks and just have some space character somewhere that you can not see.

what happens in the case where I use the text of a label as part of the
interface to my app?
Do the dots show up only in the blocks editor, but not in the app or the
designer?
== Hal
Hal Abelson
hal@mit.edu
Prof. of Comp. Sci. and Eng.
MIT Dept. of Elec. Eng. and Comp. Sci.
On Fri, May 29, 2020 at 1:41 PM Peter Mathijssen notifications@github.com
wrote:

I like the idea of @pavi2410 https://github.com/pavi2410 . Maybe you
could make a kind of shadow dot like the shadow blocks in this proposition.
https://community.appinventor.mit.edu/t/what-is-your-opinion-about-helper-blocks-in-app-inventor-gsoc-project-user-feedback/9057
We indeed have users who have problems with their blocks and just have
some space character somewhere that you can not see.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/mit-cml/appinventor-sources/issues/2199#issuecomment-636098089,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAGAXN563HFEXTLEZK7X64DRT7XQVANCNFSM4NOGA3RA
.

I imagine we could implement this in a similar way to how word processing software has the option to show non-printable characters. This way it is a setting that is off by default (so as not to confuse people), but can be turned on for people who prefer the extra sanity check.

if possible there should be a setting to toggle it.

Yes, this should be customizable by changing a user setting.

Fun Activity: Count the number of spaces in the text of the last Text block

6?

Yes, it is 6! 😁 (1 in the start + 5 in the middle)

make a kind of shadow dot

Yes, the dots are for visualization purposes only.  The original text will still have spaces in it. Just the spaces will be rendered as dots.
There can be problem when the character we use for representing a space is the same as what the user would type. But it all depends on the solution. Of course, we shouldn't be just replacing the space with a character back and forth.
One solution I have in mind is to use a custom font, in which the space character is replaced with a character like U+2022 • BULLET (HTML • · •). This font should only be used in the Text blocks.

what happens in the case where I use the text of a label as part of the interface to my app?

This won't affect the actual text which is typed by the user, but it only provides a way to visually represent a space more distinctly.

Do the dots show up only in the blocks editor, but not in the app or the designer?

Yes, the intent of this feature is only to improve readability of the text inside the Text blocks.

One solution I have in mind is to use a custom font, in which the space character is replaced with a character like U+2022 • BULLET (HTML • · •). This font should only be used in the Text blocks.

Just noting that getting that to work would be a bit trickier than just creating a css selector. It would actually require building a custom field.
Blockly doesn't have /great/ css support atm, so text inputs actually have the same css class as label text. If we want to apply custom css to the /just/ text inputs we'll have to create a custom text-input subclass that appends an extra css class. And that css class should probably be applied to the html input that appears over the input field, which requires some more custom javascript.
So it is possible! But some custom javascript will need to be written for the field. Then the relevant block definitions will need to be changed to use that field. And the custom field may be affected by the Blockly upgrade (especially the html input part, because that property got renamed).
Just to be clear: I do think this is a good idea! It's just not as easy to implement as one would hope.

I have a solution in mind, instead of dots, we can just add a shadowed bar there, so there won't be confusion of dots and spaces will be clearly visible

authors: ABasral BeksOmega PeterMathijssen conorshipp ewpatton halatmit pavi2410


text:
keep getting rsync error "The source and destination cannot both be remote."

Hi,
I am trying to provision a AWS box using below configuration through windows.

Vagrant.configure("2") do |config|
    config.vm.define :web do |web_config|
    web_config.vm.box = "dummy"
web_config.vm.box_url = "https://github.com/mitchellh/vagrant-aws/raw/master/dummy.box"

web_config.vm.provider :aws do |aws|
    aws.access_key_id = ###
    aws.secret_access_key = ###
    aws.keypair_name = ###
    aws.ssh_username = "ubuntu"
    aws.ssh_private_key_path = ###
    aws.instance_type = "m1.small"
    aws.ami = "ami-7914170d"
end
web_config.ssh.username = "ubuntu"
  end

But there seems to be an issue with rsync. I keep getting this error:
Host path: C:/Project/vagrant/
Guest path: /vagrant
Error: The source and destination cannot both be remote.
rsync error: syntax or usage error (code 1) at main.c(1135) [receiver=3.0.6]

Just ran into this on a machine; running 'where' on rsync revealed:
C:\Program Files (x86)\Primesense\NITE\bin\rsync.exe
A copy of rsync 3.0.9, tucked into the Microsoft Kinect SDK long ago.
Thanks for the reminder of the /cygdrive/ paths, I was able to do a disk to disk copy with rsync -av /cygdrive/i/ /cygdrive/j/   without having to go find another binary, at 2PM on a friday.
Sorry to driveby necropost; but this is one of the top results on google for "rsync windows the source and destination cannot both be remote".

authors: codergtam kamilion

repo: mitchellh/vagrant-aws


text:
[FALSE-POSITIVE]  dlvr.it

Domains or links
dlvr.it
More Information
How did you discover your web site or domain was listed here?
Tried to visit a site served via dlvr.it
Have you requested removal from other sources?
This is the only source
Additional context
This is a URl shortener, not a phishing site.

@mitchellkrogza This is back on the active list again.


text:
wiadomosci.onet.pl

part of onet.pl
Onet.pl is the largest Polish web portal. It is owned by the Kraków-based Grupa Onet.pl S.A. It was founded in 1996 by Optimus company. According to Alexa rankings, as of October 2017, it was the 45th most popular website worldwide and the 3rd most popular site in Poland.
Match found in list.41.hosts.ubuntu101.co.za.domains:
wiadomosci.onet.pl

Looks legitimate @mitchellkrogza @xxcriticxx
We are restructuring the project/repository, please be patient :+1:
Thanks for your awesome work :+1: :100:

@funilrys i am not in rush thank you for your great software and thx to @mitchellkrogza for hosting this file

Just a notice for the future @xxcriticxx,
Because of the new structure, you can now send a PR to https://github.com/Ultimate-Hosts-Blacklist/whitelist/blob/master/domains.list and we will review/pull :+1:

I can't find wiadomosci.onet.pl into the new system.
Closing.

authors: funilrys xxcriticxx


text:
android manifest issue

Hi for a project at school i got the task to add push notifications to our app. i'm a pretty big noob so i was relieved when i saw your app, running it on its own is just fine, but when i try to intergrate it into my app the notifications don't show up and i think i know what the problem is in the manifest you have this line

for you the entire line is green when i look into your project but in my project the part starting at sercives is red so that includes services. I might be installing it wrong but i moved all the .dart files you had to my lib folder and imported it and when i write code i don't get errors so that went well. but when i press the button the notification just won't show up. could you maybe help me out? I would really appreciate it.

First, this library is meant for local notifications and doesn't actually support push notifications scenarios. For push notifications, you have to use Firebase Cloud Messaging. There is a flutter plugin for this already.
Second, to talk about how to properly use this library in your app...
The proper way to use a flutter library is the add a reference to it in your project's pubspec. For learning how to use packages in flutter, read the flutter documentation.  For learning about pubspec, read the dart documentation.
This is just a guess, but I think the reason your app doesn't work is because you only copied the .dart files from this library, but you actually need some java  and swift  files for everything to work. Lucky for you, the pubspec manages all of this for you. So you don't need to copy any files, just add a reference the package in your pubspec, and it will pull in all the necessary dart, java, swift files for that plugin to work.
As an example, look at the code for my work-in-progress app that was the motivation for this library:

Adding the library to the pubspec under the "dependencies" section
Adding the service to the manifest to allow running code in the background

Thrid, it looks like you are using intellij/Android Studio... There are known issues where these IDEs don't give full support (for example, missing code completion) for the Android project when the flutter project is open as the root gradle project. There is an open issue in the flutter repo to track this. Basically, even if the IDE says there are errors in the Java/Android project, it's likely you will still be able to build and run your flutter app.
Hopefully this helps.

Thank you so much for the detailed reply, I forgot to actually run the project after changing my manifest and adding the plugin in dependencies so it works now. i have another question though if you don't mind.
So in my project we are making a planning app, and we store everything in a local db and we have a due date in the db so what i have to do is to send out a notification 3 days before the due date hits. is this possible with your plugin? or do i need to use the scheduled notification plugins? (there are 2 plugins with this feature i think). I would greatly appreciate a response. I have no clue how i'm gonna do this, maybe you could give me a tip in how to accomplish this if it isn't to much trouble?
Thanks anyways for the reply I really appreciate it.

This plugin doesn't support scheduled notifications. I think you could use android_alarm_manager to run any arbitrary code some time in the future. In your case, you could schedule some function that will use this plugin to create your notification. The downside is that this would only be supported on android. I think background execution like this in iOS is still an unsolved problem for flutter.

Hi sorry to bother you again with a question, but when i make a notification isOngoing: true it will stay there but when i put another notification after that the new notification will just dismiss the unswipeable notification. is this a contraint of you your plugin? if so how would i go about it? sorry it this is going off topic of my initial question

authors: Rajivrocks-Ltd mitchhymel