Posts

10% Of what we see on the internet are ads

Image
After several months of using the Pi-Hole ad blocker on my home network, I have reviewed the statistics, and I was quite surprised. I use an iPhone for my day to day, and I have DNS configured to work with Pi-Hole, so these results are based on a person using an iPhone, but since the Ads providers and the applications that I use are for Android as well, I would think the stats would be the same or very similar for an Android user as well. About 10% of internet traffic and bandwidth is used to load ads on my phone, I wouldn't have imagined how much but that's the way it is, and I have to admit that not all Ads are listed here, those on Facebook or Instagram aren't Pi-Hole blocks them therefore they are not reflected, if they were taken into account I would believe that the percentage would reach 15%. These graph data are daily, but I review this graph daily and very similar statistics appear every day, varying by 0.4% more or less. I hope that this information has been curio...

El 10% de lo que vemos en internet son anuncios

Image
Después de varios meses de usar el bloqueador de anuncios Pi-Hole en mi red doméstica, revisé las estadísticas y me sorprendí bastante. Utilizo un iPhone para mi día a día y tengo DNS configurado para funcionar con Pi-Hole, por lo que estos resultados están basados en una persona que usa un iPhone, pero como los proveedores de anuncios y las aplicaciones que uso también son para Android, creo que las estadísticas también serían iguales o muy similares para un usuario de Android. Aproximadamente el 10% del tráfico de Internet y del ancho de banda se utiliza para cargar anuncios en mi teléfono, no hubiera imaginado cuánto pero así es, y debo admitir que no todos los anuncios están listados aquí, los de Facebook o Instagram. no son Pi-Hole los bloquea por lo tanto no se reflejan, si se tuvieran en cuenta creo que el porcentaje llegaría al 15%. Los datos de estos gráficos son diarios, pero reviso este gráfico diariamente y cada día aparecen estadísticas muy similares, variando un 0,4% más ...

VSCode REGEX to remvoe all html tags properties

 If you need to remove all properties from your html tags, you can use this REGEX (find with token in VSCode): (\s+(?!colspan|rowspan)\w+\s*=\s*".*?")+

React.JS Apache deployment configuration .htaccess

I fyou are having problems with URL in React.JS application when you deploy it on a Hosting, consider to create an .htaccess file in the domain (or subdomain) root folder, and write the following. < IfModule mod_rewrite.c >     < IfModule mod_negotiation.c >         Options - MultiViews - Indexes     </ IfModule >     RewriteEngine On     # Handle Authorization Header     RewriteCond %{HTTP:Authorization} .     RewriteRule . * - [ E = HTTP_AUTHORIZATION: %{HTTP:Authorization} ]     # Redirect Trailing Slashes If Not A Folder...     RewriteCond %{REQUEST_FILENAME} !- d     RewriteCond %{REQUEST_URI} (. + ) / $     RewriteRule ^ % 1 [ L , R = 301 ]     # Send Requests To Front Controller...     RewriteCond %{REQUEST_FILENAME} !- d     RewriteCond %{REQUEST_FILENAME} !- f     RewriteRule ^ in...

Focused cards in Flatlist React Native Typescript

Image
  import React , { useState } from 'react' ; import { Dimensions , FlatList , StyleSheet , Text , View } from 'react-native' ; interface InnerItem { id : string ; title : string ; } interface OuterItem { id : string ; title : string ; innerData : InnerItem []; } const DATA : OuterItem [] = [ { id : '1' , title : 'Outer Item 0' , innerData : [ { id : '1a' , title : 'Inner Item 1' }, { id : '1b' , title : 'Inner Item 2' }, { id : '1c' , title : 'Inner Item 3' }, { id : '1d' , title : 'Inner Item 4' }, { id : '1e' , title : 'Inner Item 5' }, { id : '1f' , title : 'Inner Item 6' }, { id : '1g' , title : 'Inner Item 7' }, { id : '1h' , title : 'Inner Item 8' }, ], }, { id : '2' , title : 'Outer I...

React Native - Change app name and package name

Image
Install React Native Rename module npm install react-native-rename -g Execute inside project folder react-native-rename "MyApp" -b com.mycompany.myapp IF ERRORS APPEAR Delete node_modules folder Execute npm install If error on BUILD, gradle verison 11 required: Add to gradle.properties org.gradle.java.home=C:\\Program Files\\Android\\Android Studio\\jre Go to android folder and execute cd android / gradlew . bat wrapper If ERROR: ReactNativeFlipper.java uses or overrides a deprecated API. edit android/app/build.gradle defaultConfig { multiDexEnabled true ... //other configs }

Solve SecurityError: localStorage is not available for opaque origins React Native

SecurityError: localStorage is not available for opaque origins On React Native Fix adding this to package.json   "jest" : {     "preset" : "react-native" ,     "setupFilesAfterEnv" : [       "<rootDir>setup-test.js"     ],     "verbose" : true ,     "testURL" : "http://localhost/" ,     "testEnvironment" : "node"   }   If it does not work, try it: Change your setup-test.js jsdom like this: /**  * Set up DOM in node.js environment for Enzyme to mount to  */ const { JSDOM } = require ( 'jsdom' ); const url = 'http://localhost' ; const jsdom = new JSDOM ( '<!doctype html><html><body></body></html>' , { url });