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.
Monday, December 31, 2018
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.
Make sure the play services version in build.gradle is not higher than that, so you don't get the warning.
Sunday, September 16, 2018
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)
Effort: r
You can debug it by setting a debug on this function:
(debug-on-entry 'org-duration-to-minutes)
Saturday, September 8, 2018
mysql create temporary table from select query
CREATE TEMPORARY TABLE t from select ...
Wednesday, September 5, 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.
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
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.
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.
See here: https://support.google.com/analytics/answer/2763052
Disclaimer: I am not a lawyer, but this seems logical.
Friday, May 11, 2018
iSpy: Open Source Camera Security Software
https://www.ispyconnect.com/
alarm, alert, intruder detection
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.
You must obtain end users’ legally valid consent to:
- the use of cookies or other local storage where legally required; and
- the collection, sharing, and use of personal data for personalization of ads or other services.
- retain records of consent given by end users; and
- provide end users with clear instructions for revocation of consent.
You must clearly identify each party that may collect, receive, or use end users’ personal data as a consequence of your use of a Google product. You must also provide end users with prominent and easily accessible information about that party’s use of end users’ personal data.
https://www.google.com/about/company/consentstaging.html
gdpr
Monday, April 23, 2018
Bigger, tighter mouse maze experiments
https://www.youtube.com/watch?v=UB_37encRCI
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
AverTv catches keyboard events even if tv appp runs behind other windows
Turn off avertv services in Service manager, like avertv scheduer and remote.
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
Godaddy cpanel does not load after logging in, only progress is shown
Try accessing your cpanel hosting site by going to www.yourdomain.com/cpanel
Friday, April 6, 2018
.htaccess file not read by apache
check AllowOverride directive in apache conf
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.
Labels:
connection,
error,
problem,
skype
Wednesday, January 10, 2018
Sleep apnea home exercises
Exercises:
Jaw resist
Lip workout
Tongue forces
Tongue slide
Chewing
Tongue clench
A smile a day
Finger in cheek
Going up
Ceiling swallow
Reach for the ceiling
Tiger yell
"A" vowel
Vowel pronunication
Soft palate blowing
Tongue workout
Tongue press
Sample weekly schedule:
Repeat all exercises twice a day.
Day 1 Week 1:
A smile a day (10 times)
Chewing (3 times)
Lip workout (5 times)
Jaw resist (5 times)
Tongue slide (10 times)
Finger in cheek (10 times)
Day 2 Week 1:
Soft palate blowing (10 times)
Vowel pronunication (5 times)
Tongue workout (10 times)
Lip workout (5 times)
A smile a day (10 times)
Chewing (3 times)
Day 1 Week 2:
"A" vowel (10 times)
Tiger yell (10 times)
Tongue press (10 times)
Going up (10 times)
Tongue slide (10 times)
Finger in cheek (10 times)
Day 2 Week 2:
Jaw resist (5 times)
Tongue clench (5 times)
Tongue workout (10 times)
Soft palate blowing (10 times)
Ceiling swallow (5 times)
Tongue forcesTongue forces (5 times)
Labels:
exercise,
sleep apnea,
snoring
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.
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.
Subscribe to:
Posts (Atom)