keyboard – Cursor changes from a filled box to an open box and keystrokes don’t work + strange screenlock behaviour, after change of SSD

After installing the SSD harddisk from another Macbook Air (both are from 2017, running Catalina, bought same day),
I encounter two strange problems:

  • after some inactivity, the cursor changes from a filled box to an open box and keystrokes are no longer taken (but mouse navigation still works); after closing the lid, opening it and entering the password given the screenlock, the cursor is a filled box and keystrokes work again;
  • sometimes, the screen suddenly locks, although the current settings are that it should lock no earlier than after 4h.

Can anyone help? What’s going on??? (I restarted a few times, no change).
Thanks a lot!
G

Purchase an Android TV box.

ttps://www.webhostingtalk.com/”http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>


Purchase an Android TV box. | Web Hosting Talk
‘);
var sidebar_align = ‘right’;
var content_container_margin = parseInt(‘350px’);
var sidebar_width = parseInt(‘330px’);
//–>






  1. Purchase an Android TV box.


    Not so long ago, there was a need to buy an Android set-top box for a TV in order to run various presentations and films without any problems.

    What options can you suggest?












https://www.webhostingtalk.com/
Similar Threads


  1. Replies: 0


    Last Post: 06-07-2005, 01:00 PM


  2. Replies: 2


    Last Post: 01-24-2005, 01:34 PM


  3. Replies: 7


    Last Post: 03-08-2004, 06:10 AM


  4. Replies: 1


    Last Post: 01-28-2004, 07:52 PM


https://www.webhostingtalk.com/
Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  








3d – GLSL Shade a box different colors for two ends with one material in Three.js

First, I knew the following basic knowledges,

Then, I can use shader to render 2D graphics on the Shadertoy or GLSL Sandbox Gallery cross-browser online editor through WebGL or with the cross-platform SHADERed IDE. It’s easy to use GLSL to draw 2D objects because 2D coordinates correspond to gl_Position. But I failed to use ShaderMaterial with the GLSL code to render a BoxGeometry I created in three.js. See the following code for my case.

/** @type {HTMLElement} */ var container;
var camera, scene, renderer;
/** @type {THREE.Mesh} */ var mesh;
var uniforms;
/** @type {THREE.TrackballControls} */ var controls;
/** @type {THREE.LineSegments} */ var wireframe;

var clock = new THREE.Clock();

try {
    init();
    animate();
} catch (err) {
    alert(err);
}
function init() {
    container = document.getElementById('container');

    camera = new THREE.PerspectiveCamera(40, window.innerWidth / window.innerHeight, 1, 3000);
    camera.position.z = 2.0;
    camera.position.y = 1.0;
    camera.rotation.x = -0.45;

    scene = new THREE.Scene();

    //var boxGeometry = new THREE.PlaneGeometry(0.75, 0.75, 1);
    var boxGeometry = new THREE.BoxGeometry(0.5, 0.5, 0.5);

    uniforms = { u_time: { type: "f", value: 0.0 } };

    var material = new THREE.ShaderMaterial({
        uniforms: uniforms,
        side: THREE.DoubleSide,
        transparent: true,
        vertexShader: document.getElementById('vertexShader').textContent,
        fragmentShader: document.getElementById('fragmentShader').textContent
    });

    mesh = new THREE.Mesh(boxGeometry, material);

    var geo, lineMaterial = new THREE.LineBasicMaterial({ color: 0xffffff, transparent: true, opacity: 0.5 });
    // lineMaterial.depthTest = false;
    // lineMaterial.polygonOffset = true;
    // lineMaterial.depthTest = true;
    // lineMaterial.polygonOffsetFactor = -2;
    // lineMaterial.polygonOffsetUnits = 0.1;
    if (0) {
        geo = new THREE.EdgesGeometry(mesh.geometry);
    } else {
        geo = new THREE.WireframeGeometry(boxGeometry);
    }
    wireframe = new THREE.LineSegments(geo, lineMaterial);
    mesh.add(wireframe); // wireframe.material === lineMaterial

    scene.add(mesh);

    var axesHelper = new THREE.AxesHelper();
    mesh.add(axesHelper);

    renderer = new THREE.WebGLRenderer();
    renderer.setClearColor(0xffffff, 1);
    container.appendChild(renderer.domElement);

    onWindowResize();

    window.addEventListener('resize', onWindowResize, false);

    initControls();
    initDatGui();
}

function onWindowResize(event) {
    camera.aspect = window.innerWidth / window.innerHeight;
    camera.updateProjectionMatrix();
    renderer.setSize(window.innerWidth, window.innerHeight);
}

function animate() {
    // requestAnimationFrame(animate);
    try {
        render();
    } catch (err) {
        if (confirm("An error occured:n" + err.message)) {
            return;
        }
    }
    requestAnimationFrame(animate);
}

function render() {
    if (controls) controls.update();
    var delta = clock.getDelta();
    uniforms.u_time.value += delta;
    mesh.rotation.y += delta * 0.5;
    renderer.render(scene, camera);
}

function initControls() {
    if (!THREE.TrackballControls) return

    controls = new THREE.TrackballControls(camera, renderer.domElement);

    // controls.enabled = true; // default is true
    // controls.target = new THREE.Vector3(); // default is new Vector3()

    // controls.rotateSpeed = 3.0; // default is 1.0
    // controls.zoomSpeed = 1.2; // default is 1.2
    // controls.panSpeed = 0.3; // default is 0.3

    // controls.noRotate = false; // default is false
    // controls.noZoom = false; // default is false
    // controls.noPan = false; // default is false

    // controls.staticMoving = false; // default is false
    // controls.dynamicDampingFactor = 0.2; // default is 0.2

    // controls.minDistance = 0;
    // controls.maxDistance = Infinity;
}

function initDatGui() {
    if ('object' !== typeof dat && !dat.GUI) return;
    var datGui = new dat.GUI({ closed: true }); // panel is collapsed 
    if (controls) {
        datGui.add(controls, "enabled").name("Enable").onChange(change);
        datGui.add(controls, "rotateSpeed", 1.0, 10.0).onChange(change);
        datGui.add(controls, "zoomSpeed", 1.0, 5).onChange(change);
        datGui.add(controls, "panSpeed", 0.1, 1.0).onChange(change);
        datGui.add(controls, "noRotate").name("Rotate").onChange(change);
        datGui.add(controls, "noZoom").name("Zoom").onChange(change);
        datGui.add(controls, "noPan").name("Pan").onChange(change);
        datGui.add(controls, "staticMoving").name("Static Moving").onChange(change);
        datGui.add(controls, "dynamicDampingFactor", 0.1, 1.0).name("Dynamic Damping Factor").onChange(change);
        datGui.add(controls, "minDistance", 0, 5).name("MinDistance").onChange(change);
        datGui.add(controls, "maxDistance", 5, 10).name("MaxDistance").onChange(change);
        datGui.add(controls, "reset").name("Reset").onChange(function resetTrackballControls() {
            this.object.reset();
        });
    }

    // var gui = { widthSegments: 1 }
    datGui.add(mesh.geometry.parameters, "widthSegments", 1, 66, 1).name("Width Segments").onChange(function updateGeometrySegments(newValue) {
        wireframe.geometry = mesh.geometry = new THREE.BoxGeometry(0.5, 0.5, 0.5, newValue);
    });
    datGui.add(wireframe, "visible").name("Show Wireframe");

    function change(newValue) {
        this.object(this.property) = newValue;
    }
}
<!DOCTYPE html>
<html>

<head>
<meta charset='utf-8'>
<meta name="description" content="WebGL Shader in Three.js">
<title>Shader</title>
<meta name='viewport' content='width=device-width, initial-scale=1'>
<style>
a { color: #08f; }
b { color: lightgreen; }
html, body, .bespread { margin:0; padding:0; width:100%; height:100%; }
canvas { border: 1px dotted salmon; }
#info { position:absolute; bottom:0; }
</style>
</head>

<body>
<script>
window.onerror = function (msg, url, line, col, error) {
    // Note that col & error are new to the HTML 5 spec and may not be 
    // supported in every browser.  It worked for me in Chrome.
    var extra = !col ? '' : 'ncolumn: ' + col;
    extra += !error ? '' : 'nerror: ' + error;

    // You can view the information in an alert to see things working like this:
    alert("Error: " + msg + "nurl: " + url + "nline: " + line + extra);

    // TODO: Report this error via ajax so you can keep track of what pages have JS issues

    var suppressErrorAlert = true;
    // If you return true, then error alerts (like in older versions of 
    // Internet Explorer) will be suppressed.
    return suppressErrorAlert;
};
</script>

<script id="fragmentShader" type="x-shader/x-fragment">
varying vec3 v_color;

void main( void ) {
    gl_FragColor = vec4(v_color, 1.);    
}
</script>
<script id="vertexShader" type="x-shader/x-vertex">
varying vec3 v_color;

void main()
{
    v_color = vec3(position.x < 0., 0, position.x >= 0.);
    vec4 mvPosition = modelViewMatrix * vec4( position, 1.0 );
    gl_Position = projectionMatrix * mvPosition;
}
</script>

    <div id="container"></div>
    <div id="info">
        <a href="https://threejs.org/examples/#webgl_postprocessing_outline">WebGL Postprocessing Outline</a>
        <br>
        <a href="https://threejs.org" target="_blank" rel="noopener">three.js</a>- Outline Pass by
        <a href="http://eduperiment.com" target="_blank" rel="noopener">Prashant Sharma</a>
        and <a href="https://clara.io" target="_blank" rel="noopener">Ben Houston</a>
    </div>
</body>
<!-- <script src="https://threejs.org/build/three.min.js"></script> -->
<!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r121/three.min.js"></script> -->
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/three@0.130.1/build/three.min.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/three@0.130.1/examples/js/controls/TrackballControls.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/dat.gui@0.7.7/build/dat.gui.min.js"></script>
<!-- <script type="module" src="index.js"></script> -->
</html>

I guessed that it was because it could distinguish between vertexes in the same middle position of the +x sides and -x sides for v_color = vec3(position.x < 0.25, 0, position.x >= 0.25);.

Finally, I also knew that I can Split the geometry into groups with different materials, but I just want to use one ShaderMaterial to do this.


var geo = new THREE.BoxGeometry(48, 48, 48, 2);
var magnetMaterial = ('red', 'blue', 'green', 'purple', 'cyan', 'white', 'black', 'pink', 'orange', 'gray').map(it =>
    new THREE.MeshPhongMaterial({
        color: it, side: THREE.DoubleSide,
        polygonOffset: true, polygonOffsetFactor: 1
    }));

//Initializes the magnetic orientation to +x, red on the left side and blue on the right side.
//faces().materialIndex: -x,-x, +x,+x, +z,+z,+z,+z, -y,-y,-y,-y, -z,-z,-z,-z, +y,+y,+y,+y
// var faceColors = (1, 1, 0, 0, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 1, 1, 0, 0);
// console.log('faceColors', geo.faces.map((it, idx) => it.materialIndex = faceColors(idx))); // for Three.js 1.20

// let's regroup materialIndex of five faces of the two ends of the Cuboid (x+,x-,y+,y-,z+,z-)
console.log(geo.getIndex().count, geo.groups.slice(0));
geo.clearGroups();
(0, 1, 1, 0, 1, 0, 1, 0, 0, 1).forEach((val, idx) => geo.addGroup(6 * idx, 6, val));

Anyone could help me to explain and solve this problem because the gradient is not what I want?

actions – Subscription Box philosophy: users choose from 6 products that rotate weekly. How should I go about updating a renewal order based on usermeta prefs?

This is a meal subscription service. 6 different meals are available each week for a 10 week rotation. Customers can purchase individual meal(s) or a meal bundle (5, 10, 20 meals) for delivery the following week. The cutoff time is Friday and the menu changes. Meals are set up as individual Woo Products.

Subscribing to bundles that change weekly is not a typical scenario handled by “Subscriptions”, “Product Bundles”, and “Composite Products” plugins so I need another method. I’ll explain why these don’t work at the bottom.

Here’s my philosophy, please let me know if this is how I should go about this:

  1. Customers would purchase a simple subscription to become
    subscribers of weekly bundles.
  2. Subscribers would have access to a preferences page with the active meals for the week and can choose their quantities before the Friday cutoff (or get the default choices). This data could be stored as usermeta. Non-scubscribers just choose to order a bundle or individual meals and checkout as normal.
  3. The subscriptions are synchronized to renew on Friday. Users can update their preferences anytime before the Friday cutoff. Whatever the user’s preferences are at the time of renewal, are applied to the order.

The preferences could be stored as simple usermeta similar to “persistent cart”. Is it possible to use the meta preferences to apply the actual products and quantities as line items at the time the order renews such as woocommerce_scheduled_subscription_payment? The subscription price will not change.

Is there any better solution?

The reason the current subscription plugins won’t work is that any time a user updates their subscription, it’s processed as a subscription switch, then processes as a new order by requiring the users to go through the cart again. If multiple customers want to change multiple times before the cutoff it creates too many orders.

I tried setting up Composite products with each week being a component so the user can select their meals for each week but this weekly renewal order would contain all 10 weeks instead of the current week.

wp query – How can i create social media icons with link using meta box in custom post type?

function thegem_team_persons_register_meta_box($post) {
add_meta_box(‘thegem_team_person_settings’, __(‘Person Settings’, ‘thegem’), ‘thegem_team_person_settings_box’, ‘thegem_team_person’, ‘normal’, ‘high’);
}

function thegem_team_person_settings_box($post) {
wp_nonce_field(‘thegem_team_person_settings_box’, ‘thegem_team_person_settings_box_nonce’);
$person_data = thegem_get_sanitize_team_person_data($post->ID);
?>

:
” />

:
” />

:
” />

:
” />

/>

:
” />

:
‘Self’, ‘_blank’ => ‘Blank’), $person_data(‘link_target’), ‘thegem_team_person_data(link_target)’, ‘person_link_target’); ?>

$value) : ?>
“>:
)” type=”text” id=”person_social_link_” value=”” />
esc_html__(‘Select social’, ‘thegem’)),thegem_team_person_additional_socials_list()), ”, ‘thegem_team_person_data(additional_social_links)(social)()’); ?>

esc_html__(‘Select social’, ‘thegem’)),thegem_team_person_additional_socials_list()), $link(‘social’), ‘thegem_team_person_data(additional_social_links)(social)()’); ?>

” />

(function($){
$(function() {
$(‘.additional-socials’).on(‘click’, ‘.add-new’, function(e) {
e.preventDefault();
$(‘.additional-socials .social-pane.empty’).clone().insertBefore($(this)).removeClass(’empty’).show();
});
$(‘.additional-socials’).on(‘click’, ‘.remove a’, function(e) {
e.preventDefault();
$(this).closest(‘.social-pane’).remove();
});
});
})(jQuery);

geometry – intersection between box and convex set

I have a task to make an intersection between the convex set and the box , the equation describing the convex set is r1r2r3 – r1 -r2 – r3 + 2 cos(phi) > 0, phi = 45 ,and I plot it using
p2 = ContourPlot3D(xyz – x – y – z + 2*Cos(45) == 0, {x, 0, 4}, {y, 0, 4}, {z, 0, 4}).
but , I have no idea how to plot the box and how to make the intersection between them to obtain the figure (b). note that to plot the box r1=3.7, r2=1.3 , r3=3. can anyone help me?enter image description here

calculus – Maximum value such that hyperbolic paraboloid fits in cylindrical shaped box with given radius.

I’m struggling with this this exercise for quite a bit. It goes as follows:

Pringles chips are shaped like a hyperbolic paraboloid, with equation:$$z(xy)=frac{y^2}{4}-frac{x^2}{a^2}$$
with the limitation $x^2+frac{y^2}{2}leq q^2$

Determine the maximum value of q such that the chip fit in the cylindrical shaped box with a radius of 2.

My thoughtprocess

so when $q=1$ we get: $$x^2+frac{y^2}{2}leq 1$$
enter image description here

But now I don’t now by how much I have to change q in order to get the right fit.
I know that $$x^2+frac{y^2}{4}leq 1$$ would fit the circle with radius 2, but that is not wat is being asked.

somehow I need to implement:
$$z(xy)=frac{y^2}{4}-frac{x^2}{a^2}$$

But I don’t know how 🙁

If someone knows how to get the answer and would be willing to share it, your awesome!

Thanks in advance

How to remove these (screenshot) unpinned items (red box in image) from window 10 navigation?

So I have this side window navigation panel where I don’t want to see these "quick access" items as if I want to see them I can just click on quick success. So how can I remove these unpinned items but still keep quick access items in quick access on the top listed folder? I want them to never show up on this navigation bar ever again. I hope there is some registry edit way to fix this.

enter image description here

infopath – How can I sort a lookup drop-down list box in the Edit or Create form?

By default, the lookup column in a SharePoint list automatically sorted by the alphabetic values in ascending order

If you need to customize ordering based on special order at Edit and Create Form I think you can’t do it as out of the box solution, and you need to customize your forms via InfoPath as mentioned here

Regarding your views you can sort it alphabetically so that each unique department appears together you should follow the mentioned steps below :

  • From the above list ribbon, select modify view >

enter image description here

From the same page chek Beside Group by Select The department Name Column to group by it and to sort it as

  • Show groups in ascending order
  • Show groups in descending order

enter image description here
You can also create your custom view from

List setting > Scroll down to the below of the page > click create view > and sort as you want.

enter image description here

7 – Add popup within the ckeditor dialog box?

Here is the scenario. I had added a custom plugin in ckeditor. The plugin provide a button on the editor menu and when we click on that button ckeditor dialog box opens up with a text field and and a link attached to it. Now, when I click on the link a form with some list items should pop up using CTOOLS and when I select any items it’s value should be placed in the dialog box text field.

I had created the dialog box but now when I try to click on the link it redirects me to another page instead of opens up another pop up block.

enter image description here

DreamProxies - Cheapest USA Elite Private Proxies 100 Cheap USA Private Proxies Buy 200 Cheap USA Private Proxies 400 Best Private Proxies Cheap 1000 USA Private Proxies 2000 USA Private Proxies 5000 Cheap USA Private Proxies ExtraProxies.com - Buy Cheap Private Proxies Buy 50 Private Proxies Buy 100 Private Proxies Buy 200 Private Proxies Buy 500 Private Proxies Buy 1000 Private Proxies Buy 2000 Private Proxies ProxiesLive.com Proxies-free.com New Proxy Lists Every Day Proxies123.com Best Quality USA Private Proxies