t-lock

t-lock

Member Since 6 years ago

Experience Points
1
follower
Lessons Completed
0
follow
Lessons Completed
7
stars
Best Reply Awards
28
repos

2397 contributions in the last year

Pinned
⚡ Playing with MobX. Better than a todo list.
⚡ WP + Next.js (front-end)
⚡ 🐒 Normalize browsers' default style
⚡ ⚡Electron Screen Recorder
Activity
Jan
14
1 week ago
Activity icon
issue

t-lock issue comment pillarjs/path-to-regexp

t-lock
t-lock

express-route-tester link broken

Hello, express-route-tester link is broken in Live demo section of readme, github pages migrated from .com domain to .io

t-lock
t-lock

Looks like its broken again now

Jan
5
2 weeks ago
Activity icon
issue

t-lock issue comment maoschanz/emoji-selector-for-gnome

t-lock
t-lock

Plans to support GNOME 40?

Are there plans to support GNOME 40?

t-lock
t-lock

@carlwgeorge I've been looking for a good first project in the Linux / Gnome ecosystem, and I'm coming from web development, so css/js is my bread and butter. However, I don't know where to begin with extension development... I can look into this on my own, but in the meantime, I have a question that you, @maoschanz or someone else on this thread might be able to answer:

What I have noticed is that this extension works perfectly with default settings on Gnome 40.4 on Pop OS if I disable extension version validation, but what does not work is the settings. Doesn't this mean that the issue is in the system layer, not something in whatever "web view" powers the tray window?

Dec
27
4 weeks ago
started
started time in 4 weeks ago
Dec
26
4 weeks ago
Activity icon
issue

t-lock issue comment pop-os/system76-driver

t-lock
t-lock

lemp9: Add intel_idle.max_cstate=4 kernel parameter to fix freezes

This should fix https://github.com/pop-os/linux/issues/45

t-lock
t-lock

@leviport Hi there. Can I assume that since this change was merged into the System76 driver package, that my having set it manually on my Lemp9 machine is fine to leave indefinitely?

Thanks for all your work and Merry Christmas 🎄

Activity icon
issue

t-lock issue comment pop-os/linux

t-lock
t-lock

Lemp9 freezes, requires hard reboot after ugpraded to 5.11.0-7612.13~1617215757~20.04~97a8d1a

OS: Ubuntu 20.04.2 LTS

Kernel: 5.11.0-7612.13~1617215757~20.04~97a8d1a

Hardware: Lemur Pro 9 Processor: i7-10510U

The system will randomly freeze and require hard reboot after a few minute. Ubuntu's official 5.8 kernel works without any issue.

t-lock
t-lock

Hi all. I was experiencing this issue on my lemp9 (i7-10510U with 32 gb additional ram) immediately after updating to 21.04. Memtest revealed no issues. Contacted support and they told me to remove my RAM temporarily. I literally just didn't have a small screwdriver around so ended up finding this github thread instead and setting the intel_ide.max_state=4. This is a work machine so I just figured "set it and forget it".

Until now. I want to upgrade to 21.10, but I want to make sure I'm up-to-date on this issue before I make any more changes under the hood.

Could anyone expand on what that setting actually does (I don't notice any performance difference except no more freezing), and whether or not it is suitable to leave it this way indefinitely? Or should I remove it / change the value then do the upgrade to 21.10?

Thanks in advance!!

Dec
10
1 month ago
Activity icon
issue

t-lock issue comment AdvancedCustomFields/acf

t-lock
t-lock

allow relative urls & those which contain anchors

Can you please make the changes in this file acf/includes/fields/class-acf-field-url.php

To allow relative URLS: /a/b/c /a/b/c#some-anchor

I have tried using a custom validation and doesn't work! I've even tried defining

// https://www.advancedcustomfields.com/resources/acf-validate_value/
add_filter('acf/validate_value', 'wbs_network_acf_validate_value', 10, 4);
//add_filter('acf/validate_value/type=url', 'wbs_network_acf_validate_value', 10, 4);

function wbs_network_acf_validate_value( $valid, $value, $field, $input ) {
    // allow relative links to be used which could contain an anchor
    if( 1 || !$valid && preg_match('!^[\/\w\-\#]+$!si', $value)) {
        $valid = true;
    }

    return $valid;
}

I've even tried defining the class ... still nothing.

add_action('acf/init', 'wbs_acf_init', 0);

function wbs_acf_init() {
    if ( ! class_exists('acf_field_url') ) {
        class acf_field_url extends acf_field {
            /*
            *  initialize
            *
            *  This function will setup the field type data
            *
            *  @type	function
            *  @date	5/03/2014
            *  @since	5.0.0
            *
            *  @param	n/a
            *  @return	n/a
            */

            function initialize()
            {

                // vars
                $this->name = 'url';
                $this->label = __("Url", 'acf');
                $this->defaults = array(
                    'default_value' => '',
                    'placeholder' => '',
                );

            }


            /*
            *  render_field()
            *
            *  Create the HTML interface for your field
            *
            *  @param	$field - an array holding all the field's data
            *
            *  @type	action
            *  @since	3.6
            *  @date	23/01/13
            */

            function render_field($field)
            {

                // vars
                $atts = array();
                $keys = array('type', 'id', 'class', 'name', 'value', 'placeholder', 'pattern');
                $keys2 = array('readonly', 'disabled', 'required');
                $html = '';


                // atts (value="123")
                foreach ($keys as $k) {
                    if (isset($field[$k])) $atts[$k] = $field[$k];
                }


                // atts2 (disabled="disabled")
                foreach ($keys2 as $k) {
                    if (!empty($field[$k])) $atts[$k] = $k;
                }


                // remove empty atts
                $atts = acf_clean_atts($atts);


                // render
                $html .= '<div class="acf-input-wrap acf-url">';
                $html .= '<i class="acf-icon -globe -small"></i>' . acf_get_text_input($atts);
                $html .= '</div>';


                // return
                echo $html;

            }


            /*
            *  render_field_settings()
            *
            *  Create extra options for your field. This is rendered when editing a field.
            *  The value of $field['name'] can be used (like bellow) to save extra data to the $field
            *
            *  @type	action
            *  @since	3.6
            *  @date	23/01/13
            *
            *  @param	$field	- an array holding all the field's data
            */

            function render_field_settings($field)
            {

                // default_value
                acf_render_field_setting($field, array(
                    'label' => __('Default Value', 'acf'),
                    'instructions' => __('Appears when creating a new post', 'acf'),
                    'type' => 'text',
                    'name' => 'default_value',
                ));


                // placeholder
                acf_render_field_setting($field, array(
                    'label' => __('Placeholder Text', 'acf'),
                    'instructions' => __('Appears within the input', 'acf'),
                    'type' => 'text',
                    'name' => 'placeholder',
                ));

            }


            /*
            *  validate_value
            *
            *  description
            *
            *  @type	function
            *  @date	11/02/2014
            *  @since	5.0.0
            *
            *  @param	$post_id (int)
            *  @return	$post_id (int)
            */

            function validate_value($valid, $value, $field, $input)
            {
                return true;

                // bail early if empty
                if (empty($value)) {

                    return $valid;

                }


                if (strpos($value, '://') !== false) {

                    // url

                } elseif (strpos($value, '//') === 0) {

                    // protocol relative url

                } else {

                    $valid = __('Value must be a valid URL', 'acf');

                }


                // return
                return $valid;

            }

        }

// initialize
        acf_register_field_type('acf_field_url');
    }
}
t-lock
t-lock

Probably could go ahead and mark this as closed.

Nov
25
1 month ago