Monday, December 31, 2018

using react native nativebase with expo

Follow expo setup here: https://facebook.github.io/react-native/docs/getting-started.html

Follow CRNA setup here: http://docs.nativebase.io/docs/GetStarted.html

In the CRNA instructions you may want to use yarn add instead of npm install, so that the dependencies are installed automatically.

Wednesday, November 28, 2018

Select and copy text from a react material ui TextField

For some reason I could not access the underlying input element, so  I added a hidden input element to the page, copied the textfield content to it and then copied it from there:

$('#copy').show();
$('#copy').focus();
$('#copy').val(this.state.input);
$('#copy').select();
document.execCommand('copy')
$('#copy').hide();

Friday, November 9, 2018

uBlock element blocking does nothing, no popup

I checked ublock status and it showed only question marks, so there was a bigger problem somewhere. Restarting the browser fixed it.

Monday, October 29, 2018

Android Emulator says: This app won't run unless you update google play services

Check plays services  version in the emulator: settings, apps, google play services

Make sure the play services version in build.gradle is not higher than that, so you don't get the warning.

Friday, September 14, 2018

Emacs error: Invalid duration format: "r"

When migrating to 26.1 this error came up. Turns out there was an Effort property with the value r somewhere:

Effort: r


You can debug it by setting a debug on this function:


(debug-on-entry 'org-duration-to-minutes)



Saturday, September 8, 2018

Monday, September 3, 2018

Cpanel error - The certificate could not be installed on the domain. You must use an IP address that is on the server.

If you try to install a Let's Encrypt certificate you might encounter this error.I experienced this when I installed a multi-domain certificate and it installed properly for a domain and then CPanel refused to install it for other domains with this error. (I tried it on a Godaddy shared host.)

The solution according to some net forum  posts is just wait and try again later or the next day.

I tried installing the certificate again on the next day and then it installed without any problems for the other domains too.

So it seems it's an intermittent error only which goes away.

Tuesday, August 28, 2018

npx not installed

For older npm it can be installed globally instead.

E.g.

npm install -g create-react-app

instead of

npx create-react-app

Monday, July 9, 2018

Google Maps is about to get much pricier

Look out for July 15th, because then Google switches to a new pricing for Maps and it won't be cheaper.

If your site uses Google Maps then check your usage in your project console to see how much you'll pay unless to reduce map usage or switch to some alternate maps solution.

Friday, June 29, 2018

Upgrading your create-react-native-app project

  • Run ncu -u to upgrade package versions in your package.json (you may have to install ncu:  npm install -g npm-check-updates)
  • Run npm update to install the new versions.
  • You may have to modify your app.json, so that sdk version matches this . ncu shows the current versions.

Tuesday, June 5, 2018

How to find out easily what disase your plant has

Just search for your plant's name and the word disease or similar and switch to image results. There looking at the photos you can easily find which is the most similar to the appareance of your plant and going to the related page you'll find the answer you seek.

Thursday, May 17, 2018

Can I use Google Analytics if I want to comply with GDPR?

Google Analytics has an anonymization feature which anonymizes IP addresses of visitors. With this turned on no personal data is stored on Google's servers (unless you send some extra info in your analytics requests), so you should be OK.

See here: https://support.google.com/analytics/answer/2763052

Disclaimer: I am not a lawyer, but this seems logical.

Friday, May 11, 2018

Wednesday, May 9, 2018

Change voice typing language on Android phone

Go to:
  • Settings
  • Language and Input
  • Tap selected keyboard
  • Voice typing
  • Languages

Monday, April 30, 2018

https (ssl) migration checklist

  • check all http links and turn them into https
  • check server_name links and canonical urls
  • remove robot disallow if any
  • redirect 301
  • add https page to webmaster tools

     

Tuesday, April 24, 2018

EU user consent policy – Company – Google



Properties under your control

For Google products used on any site, app or other property that is under your control, or that of your affiliate or your client, the following duties apply for end users in the European Economic Area.



https://www.google.com/about/company/consentstaging.html

gdpr

Monday, April 23, 2018

Tuesday, April 17, 2018

MariaDB error: "Data truncated for column" when column is mediumint and value fits

Check if the used value is not a string. In case of a string MySQL converts the value silently to mediumint, but MariaDB does something else which causes this error.

Friday, April 13, 2018

Thursday, April 12, 2018

How to find threads in process explorer

Right click on the process then choose properties and then the Threads tab.

Tuesday, April 10, 2018

Friday, April 6, 2018

Monday, February 5, 2018

Solution for Skype cannot connect, only the blue connection progress indicator is spinning

If you have net connection and other apps like the browser work then try signing out completely from skype and sign in again.

Wednesday, January 10, 2018

Tuesday, January 9, 2018

How to get old Skype (classic) back instead of the new ugly one

Do you also hate the look of the new Skype? Despair not, because you can get the old appearance back easily.

Uninstall the new Skype then go to Skype download page, but don't just press the Get Skype button, click the little arrow on it. This shows the various versions and you can choose Skype classic which is the old, familiar looking Skype.

Much better.