The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,860 other subscribers

Archive for the ‘Chrome’ Category

Tested the CastBuddy extension from the Chrome Web Store: nice, but high CPU usage even when no videos

Posted by jpluimers on 2017/04/21

CastBuddy – Chrome Web Store:

This extension finds videos on the web sites you are browsing and allows you to play them on your Chromecast device.

Works nice if you need it, but uses a lot of CPU (on my Retina MacBook with latest chrome: about 75% of one CPU core) so it drains battery fast.

You can view this high CPU usage in the Chrome Task Manager (which used to be available through chrome://tasks, but this is one of the use full Find Hidden Features On Chrome’s Internal Chrome:// Pages features they removed). Fire up the Chrome Task Manager through the Window menu.

Verdict

Enable only when you need it. Disable after use in chrome://extensions

–jeroen

via: CastBuddy – Chrome Web Store:

When it finds Chromecast comptible videos ( .webm, .mp4, .mkv etc), count of videos is shown over extension’s menubar icon, which you can click to Select a video and extension will send it to your Chromecast device. Once a casting session is established, you can control video playback from Extension’s popup page.

Posted in Chrome, Google, Power User | 2 Comments »

Forcing Chrome to use google.com as search engine

Posted by jpluimers on 2017/04/14

I tried the obvious things to force Chrome on my Mac and Windows to use google.com as search engine when searching through the address/search box (omnibox). On Windows, this works fine, but Chrome on Mac (both are linked through my gmail account) keeps insisting to use google.nl no matter what, as all these fail:

There are tons of reports on the google.com/ncr not working (you see the https://google.nl domain, in that search right?).

For me, google.com/ncr redirects to https://www.google.com/?gws_rd=ssl, so it does redirect, but somehow doesn’t mark it to use as default.

In Chrome, my search settings in chrome://settings/searchEngines are these:

Google (Default) search settings

Google (Default) search settings

I’ve never changed it, so it still points to {google:baseURL}search?q=%s&{google:RLZ}{google:originalQueryForSuggestion}{google:assistedQueryStats}{google:searchFieldtrialParameter}{google:searchClient}{google:sourceId}{google:instantExtendedEnabledParameter}{google:contextualSearchVersion}ie={inputEncoding}

So basically, Chrome screws up the {google:baseURL} portion and there is no way to force {google:baseURL} to a certain value as the 2008 bug 1521 was marked “wontfix” in 2010 and nobody at Google seems to care (except a Google employee wanting expense paid trips abroad).

The totally odd thing is that when I start on https://google.com then search for say “Mac OS X start second atom instance”, I get to https://www.google.com/#q=Mac+OS+X+start+second+atom+instance

Poor mans solution

So I’ve defined two new search engine settings:

When Google.com lets you down, force it to use Google.com

When Google.com lets you down, force it to use Google.com

In case you want to copy the text:

Read the rest of this entry »

Posted in Chrome, Google, Power User | 2 Comments »

Decode URLs from The Great Suspender after a browser restart fails to reload them

Posted by jpluimers on 2017/03/16

Hosted at: Decode URLs from The Great Suspender after a browser restart fails to reload them

Converts URLs like these:
chrome-extension://klbibkeccnjlkjkiokjodocebajanakg/suspended.html#url=http%3A%2F%2Fwww.barryodonovan.com%2F2012%2F06%2F29%2Fmigrating-svn-with-branches-and-tags-to-git
back into
http://www.barryodonovan.com/2012/06/29/migrating-svn-with-branches-and-tags-to-git

Source below.

It decodes a URL encoded by The Great Suspender which is a cool Google Chrome plugin that suspends pages after some idle time.

The uncool thing is that when Google Crome restarts after a crash (it’s software, it does that, especially as it consumes truckloads of memory and is full of memory leaks) it often fails to restore some (but not many) of the suspended pages into a usable state: it shows only the encoded URLs.

–jeroen


<!DOCTYPE html>
<!–
Resurrect
Based on 20160531-Google-Plus–403.-That’s-an-error.–Your-client-does-not-have-permission-to-get-URL–sorry–IndexRedirect–workaround.html
at https://gist.github.com/jpluimers/4f07a2f3f9b9890a3a44e184c1abadf2
Converts URLs like these:
chrome-extension://klbibkeccnjlkjkiokjodocebajanakg/suspended.html#url=http%3A%2F%2Fwww.barryodonovan.com%2F2012%2F06%2F29%2Fmigrating-svn-with-branches-and-tags-to-git
back into
url=http://www.barryodonovan.com/2012/06/29/migrating-svn-with-branches-and-tags-to-git
The Great Suspender Google Extension:
https://chrome.google.com/webstore/detail/the-great-suspender/klbibkeccnjlkjkiokjodocebajanakg
Test at http://jsbin.com/yukidaferu/1/edit?html,console,output
–>
<html>
<title>Decode URLs from The Great Suspender after a browser restart fails to reload them</title>
<body>
<h1>Decode URLs from The Great Suspender after a browser restart fails to reload them</h1>
<p>Please URL encoded by <a href="https://github.com/deanoemcke/thegreatsuspender&quot; target="_blank">The Great Suspender</a>:</p>
<input id="suspenderUrl" size="200">
<button type="button" onclick="decodeSuspenderUrlMethod()">Submit</button>
<div id="decodedUrlsCaptionDiv">
<p id="decodedUrlsCaption">Here you will see the decoded URLs so you can follow them:</p>
</div>
<ul id="decodedUrlsUl">
</ul>
<script>
// based on http://www.w3schools.com/js/tryit.asp?filename=tryjs_intro_validate
function decodeSuspenderUrlMethod() {
var decodedUrl = "";
var errorText = "";
// Get the value of the input field with id="numb"
var suspenderUrl = document.getElementById("suspenderUrl").value;
var stripPrefix = "chrome-extension://klbibkeccnjlkjkiokjodocebajanakg/suspended.html#url=";
var prefix = stripPrefix + "http";
// Am I a SO developer now? At least I'm quickly learning some JavaScript basics…
// http://stackoverflow.com/questions/1767246/check-if-string-begins-with-something/9430330#9430330
// https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/String/substring
if (suspenderUrl.indexOf(prefix) == 0) {
// now strip the bits we don't need, then decode what is left.
// I always wondered why they call it substring instead of subString
var googlePlusEncodedUrl = suspenderUrl.substring(stripPrefix.length);
// decoding got a new new a while ago: http://stackoverflow.com/questions/4292914/javascript-url-decode-function/4292961#4292961
decodedUrl = decodeURIComponent(googlePlusEncodedUrl);
} else {
errorText = "URL is missing this prefix: <<" + prefix + ">>";
};
// for now, just add the output; in the future, only add unique output.
// Based on http://stackoverflow.com/questions/5519747/how-to-add-anchor-tags-dynamically-to-a-div-in-javascript/5519795#5519795
var decodedUrlsUl = document.getElementById("decodedUrlsUl");
var decodedUrlLi = document.createElement('li');
if (errorText == ""){
var aTag = document.createElement('a');
aTag.setAttribute('href', decodedUrl);
aTag.innerHTML = decodedUrl;
decodedUrlLi.appendChild(aTag);
} else {
var aDiv = document.createElement('div');
aDiv.innerHTML = errorText + " " + suspenderUrl;
decodedUrlLi.appendChild(aDiv);
}
decodedUrlsUl.appendChild(decodedUrlLi);
}
</script>
</body>
</html>

Posted in Chrome, Development, Google, HTML, HTML5, JavaScript/ECMAScript, Power User, Scripting, Software Development, Web Development | Leave a Comment »

How to enable JavaScript in your browser and why

Posted by jpluimers on 2017/03/02

Just in case it’s not enabled yet: How to enable JavaScript in your browser and why

It even has some html to redirect to it, which I’ve replaced with the wayback machine (and put into a gist as WordPress kills noscript tag blocks and everything they contain.


<noscript>
For full functionality of this site it is necessary to enable JavaScript.
Here are the <a href="http://web.archive.org/web/20160402005258/http://www.enable-javascript.com/&quot; target="_blank">
instructions how to enable JavaScript in your web browser</a>.
</noscript>

I needed it as at a client site, one of the embedded devices would show the message “Javascript is required to use this web portal” in various web browsers so I had to check the JavaScript status in each browser.

–jeroen

Posted in Chrome, Chrome, Development, Firefox, Google, Internet Explorer, JavaScript/ECMAScript, Opera, Power User, Safari, Scripting, Software Development, Web Browsers | Leave a Comment »

Casting the audio of application on your Linux machine via Chrome to a ChromeCast

Posted by jpluimers on 2017/02/06

Hopefully by now mkchromecast [WayBack] works on more Linux versions (and maybe even Mac OS X is better supported [WayBack]), but back then it was only available for Ubuntu 16.10 and up:

Do you want to stream the audio from Rhythmbox, VLC or another Linux app to your TV through Chromecast? Well, we’ve found a nifty little Linux tool that lets you do just that.

Source: How to Send Your Linux Desktop Audio to a Chromecast – OMG! Ubuntu!

The tool is at github: Linux · muammar/mkchromecast Wiki  [WayBack]: mkchromecast – Cast macOS, or Linux Audio to your Google Cast Devices

–jeroen

via:

Posted in *nix, Chrome, Chromecast, Google, Linux, Power User, Ubuntu | Leave a Comment »

When your browser extensions go rouge…

Posted by jpluimers on 2016/11/21

A while ago I suspected at least one of my Chrome extensions to do funny things.

In the end it appeared that “Live HTTP Headers 1.0.8” went rogue a while ago and has by now been removed from the store as this link is gone: https://chrome.google.com/webstore/detail/iaiioopjkcekapmldfgbebdclcnpgnlo ()

It was part of a much larger set of extensions that went away and isn’t limited to Chrome: other browsers with extension mechanisms suffer from this too. More links about this at the bottom of this post.

Which means that by now you should be really careful which extensions you have installed and enabled.

So, browse through these and ensure you’ve disabled everything you don’t need permanently:

On my system, I removed these:

When you go from Chrome to these URLs through the extensions page, it usually appends an UTM tracker like utm_source to the URL.

So I dug into that as well and found these links explaining them:

References:

Read the rest of this entry »

Posted in Chrome, Chrome, Firefox, Google, Internet Explorer, Opera, Power User, Safari, Web Browsers | 3 Comments »

How To Chromecast MKV, MP4, DVI Videos from Chrome (on a Mac, Windows or Linux machine)

Posted by jpluimers on 2016/11/18

There is a Chrome App called Videostream for Google Chromecast that lets you play your own local videos on your Chromecast from your PC with subtitles supported. Not like those Chrome Extensions, it’s a Chrome App that you can launch directly from your desktop through Chrome Launch.

Just launch the app, choose a video, select a Chromecast, and enjoy. Easy as 123.

via: [WayBackHow To Chromecast MKV, MP4, DVI Videos from Windows Computer | Next of Windows

Posted in Chrome, Chromecast, Google, Power User | Leave a Comment »

If you have enough Chrome Google related tabs open, Google will DoS G+ for you

Posted by jpluimers on 2016/11/03

I very often see the captcha. Today Google managed to DoS G+.

It happened right after RDP-ing into my work machine that has like ~100 research related tabs open of which about half are Google hosted pages.

G+ wouldn’t work as those tabs send so many G+ requests that Google effectively did a DoS on G+ for my IP-address and user (switching to another user was fine).

Google doing a DoS on G+ because all the open tabs generate G+ traffic

Google doing a DoS on G+ because all the open tabs generate G+ traffic

Later this got simplfied into this:

–jeroen

Posted in Chrome, G+: GooglePlus, Google, Power User, SocialMedia | Leave a Comment »

Writing tests for http / https request: Postman, SoapUI, Advanced REST client.

Posted by jpluimers on 2016/06/21

I’m using these Chrome Extensions for most of the http / https call mockups, and after that put them in SoapUI (which despite the name also does REST and has come a long way sinceSource: SoupUI – as sometimes that is the only thing that works):

You can get both Postman versions through GetPostman.com as well.

–jeroen

Posted in .NET, .NET 2.0, .NET 3.0, .NET 3.5, .NET 4.0, .NET 4.5, ASP.NET, C#, C# 3.0, C# 4.0, C# 5.0, Chrome, Communications Development, Development, Google, HTTP, Internet protocol suite, Power User, REST, Software Development, TCP | 1 Comment »

Just discovered Vysor now has mouse shortcuts too – via: Cool: Vysor screen sharing by Koush

Posted by jpluimers on 2016/02/19

Just updated Cool: Vysor screen sharing by Koush with this:

Edit 20160217: new keyboard/mouse shortcuts

  • Old: keyboard shortcuts
    • Escape -> Back Button;
    • F1 -> Menu Button;
    • Home -> Home Button;
  • New: mouse shortcuts
    • Middle Click -> Home;
    • Right Click -> Back

"Escape

Now hopefully the screen resolution thing will be fixed: [Wayback/Archive] github.com/koush/vysor.io/issues/68

–jeroen

Posted in Android, Android Devices, Chrome, Development, Google, Keyboards and Keyboard Shortcuts, KVM keyboard/video/mouse, Mobile Development, Power User, Vysor | Leave a Comment »