Showing posts with label Computer and Internet. Show all posts
Showing posts with label Computer and Internet. Show all posts

Tuesday, April 02, 2024

Is Youtube not working on your Huawei matepad?

Experiencing trouble with YouTube on your Huawei MatePad? You're not alone. Fortunately, there are a few simple solutions you can try to get your videos playing smoothly again.

Solution 1: Install the YouTube App Through Gspace

One straightforward approach is to install the YouTube app from Gspace. This allows you to watch YouTube videos directly from the app without any hassle.

Solution 2: Opt for a Non-Chrome-Based Browser

Another effective workaround is to use a browser other than Chrome. Browsers like Microsoft Edge or Firefox have shown success in playing YouTube videos seamlessly on the MatePad.

Solution 3: Tweak Chrome Settings

If you're keen on using Chrome, simply change the browser's setting by navigating to Chrome://flags. Here, you'll need to disable the 'Android SurfaceControl' option. Don't forget to restart Chrome afterwards. Once done, try loading a YouTube video; it should now work without any issues.

Wednesday, April 01, 2020

Which image format is better? PNG vs BMP

PNG is compressed but lossless image format. 
BMP is both uncompressed and lossless.

There is no quality difference between BMP and PNG format. The only visible difference is the file size.

PNG also supports transparency. Paint in Windows does not save bmp file with transparency.

BMP uncompressed takes more space, but when compressed (e.g. when put in a .zip or .7z file) BMP can be better.

Wednesday, July 03, 2019

TIOBE- programming language index for 2019


Jun 2019            Programming Language

1 Java
2 C
3 Python
4 C++
5 Visual Basic .NET
6 C#
7 JavaScript
8 PHP
9 SQL
10 Assembly language
11 Swift
12 Objective-C
13 Ruby
14 Groovy
15 Go
16 Perl
17 Delphi/Object Pascal
18 MATLAB
19 Visual Basic
20 PL/SQL
21 SAS
22 R

Source: https://www.tiobe.com/tiobe-index/

Wednesday, February 10, 2016

My first Arduino examples

1. Light sensor to control the brightness of an LED

int led = 4;           // the PWM pin the LED is attached to
int brightness = 0;

void setup() {

  // initialize serial communication at 9600 bits per second:
  Serial.begin(9600);
  pinMode(led, OUTPUT);
}

void loop() {

  // read the input on analog pin 0:
  int sensorValue = analogRead(A1);
  // Convert the analog reading (which goes from 0 - 1023) to (0 - 255)
  brightness = 255 - sensorValue * 1.06;
  // print out the value you read:
  Serial.println(brightness);
  analogWrite(led, brightness);
}





2. Keyboard to control LEDs. Send 1 to turn on red LED and 2 to turn on green LED

const int redPin = 2;
const int greenPin = 3;
int x = 4;

void setup() {

  // initialize serial:
  Serial.begin(9600);
  // make the pins outputs:
  pinMode(redPin, OUTPUT);
  pinMode(greenPin, OUTPUT);
}

void loop() {

  // if there's any serial available, read it:
  while (Serial.available() > 0) {

    // look for the next valid integer in incoming serial stream

    x = Serial.parseInt();
    if (x == 1) {
      digitalWrite(redPin, HIGH);
      digitalWrite(greenPin, LOW);
    }
    else if (x == 2) {
      digitalWrite(greenPin, HIGH);
      digitalWrite(redPin, LOW);
    }

    Serial.print(x);

  }
}





3. Keyboard to control the brightness of an LED. Send brightness value (0-255) from keyboard to control the LED.


// pin for the LED, make sure you use a PWM~ pin
const int ledPin = 6;
int x = 444;

void setup() {

  // initialize serial:
  Serial.begin(9600);
  // make the pins outputs:
  pinMode(ledPin, OUTPUT);
}

void loop() {

  // if there's any serial available, read it:
  while (Serial.available() > 0) {
    Serial.println("Enter the brightness of LED between 0 and 255");
    // look for the next valid integer in the incoming serial stream:
    x = Serial.parseInt();
    Serial.println(x);
    analogWrite(ledPin, constrain(x, 0, 255));  
  }
}


Saturday, February 14, 2015

How to change chrome settings->On startup option when it is grey out?

The following instructions are for Windows:

  • Run Registry Editor by typing regedit.exe 
  • In the Windows Registry, find HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome
  • Change the values as you wish


Tuesday, September 16, 2014

How to sync work calendar on Microsoft Outlook to Google Nexus?

Google hates Microsoft. It is not straightforward to sync an Outlook calendar on Google devices such as Nexus.

1. Export your Outlook calendar (i.e. work calendar) to csv file. In Microsoft Outlook, go to File -> Open and export -> Import and export -> Export to a file -> Comma Separated Values -> Select destination folder: choose Calendar

2. Import the csv file to your Google Calendar. In your Google Calendar -> Other calendars -> Import calendar -> choose the csv file

3. Once it is imported to your Google Calendar, your Nexus will sync it automatically if there is a wifi connection.

Thursday, April 03, 2014

How to fix "adb devices" can't find Android device on Windows

Problem
Google Nexus 7 
Windows 7
Installed the latest Android sdk
"adb devices" couldn't find Android device when it was plugged in and USB debugging enabled

How to solve it

1. Adding the new device reference in android_winusb.inf
in C:\Android\sdk\extras\google\usb_driver

Right click your Android device in your computer's "Device Manager", select "properties", Details Tab and from the dropdown Property list select "Hardware Ids". Copy the 2 values in your clipboard.

Edit the android_winusb.inf file included with the Google USB Drivers (the location on my machine is "C:\Android\sdk\extras\google\usb_driver" and add these lines using the 2 values in your clipboard:

; your device model
%SingleAdbInterface%        = USB_Install, Clipboard first value
%CompositeAdbInterface%     = USB_Install, Clipboard second value


after the last lines of the [Google.NTx86] section.

2. Updated the drivers in your computer's Device Manager. (You need admin right to do this)

Device Manager -> Portable devices, right click the Android device in Device Manager -> Change settings (need admin right), uninstall the Android usb driver completely

unplug your Android device, re-plug back in,
update the driver, and manually point it to the google usb driver in "C:\Android\sdk\extras\google\usb_driver" (just select this directory)

3. In Command window, run 'adb devices'.
At this point adb should recognize the device (as an unauthorized device)

4. You will then see a dialog on your Android device, asking whether to accept an RSA key that allows debugging through this computer. Click Ok

(if you don't see this dialog on your phone, unplug your phone from the computer and plug it back in.)

run 'adb devices' again
This time the device will be authorized.

Tuesday, October 29, 2013

GPS based games on smart phones

Foursquare
Turf Wars
Geocaching
Zombies Run
Dokobots

Augmented Reality games
Ingress
GeoBoids

Thursday, October 24, 2013

The best audio format

wav, the most widespred format, developed by Microsoft, lossless format, used in recording and editing stage.
aiff, developed by Apple, lossless format
mp3, widely used, but lossy format, 10% of storage space that a wav file requires.

Wednesday, October 16, 2013

Friday, October 11, 2013

in vitro, in vivo, in silico, in virtuo studies in biology

Researches in Molecular Biology use
  • in vivo (Latin for within the living) observations of living organisms,
  • in vitro (Latin for within the glass) experiments in controlled environments 
  • in silico simulations performed on computers
  • in virtuo analysis is experiments conducted interactively by a biologist in a virtual environment. It remedies the limits of in vivo and in silico approaches by combining the advantages of numerical simulations and natural interactions.

Thursday, April 04, 2013

Why MacBook Pro's battery never show a full charge 100%?

Whenever my MacBook's battery is 99% full, it stays there and never become full charged (100%). This is normal. The batteries used in Macs are designed to avoid continuous charging or short cycle charging, i.e. the battery drops 1 or 2 % then charges back to 99%, which will shorten battery life. It is the best to let the battery run down to below 40% every now and then and then do a full recharge (between 95-99%).

When setting the Mac OS X battery status menu bar icon to display charge state by percentage, you may notice that the reported charge stays between 95 percent and 99 percent. The adapter will not charge the battery to 100% automatically if it will add additional wear to the battery.
Therefore, if your battery status stays at 95-99% and not charging you can disconnect the charger.

Wednesday, April 03, 2013

Common display resolutions

AcronymAspect ratioWidth (px)Height (px) 
FHD16:919201080 
HD+16:91600900 
HD~16:91366768 
SXGA5:412801024 LCD monitors
XGA4:31024768 
WSXGA+16:1016801050 
WXGA+16:101440900 
WXGA16:101280800Wide aspects
UXGA4:316001200gamers, graphic artists

Computer monitors have higher resolutions than most televisions. As of July 2002, 1024 × 768 Extended Graphics Array was the most common display resolution. Many web sites and multimedia products were re-designed from the previous 800 × 600 format to the layouts optimized for 1024 × 768. The availability of inexpensive LCD monitors has made the 5:4 aspect ratio resolution of 1280 × 1024 more popular for desktop usage.

Many computer users including CAD users, graphic artists and video game players run their computers at 1600 × 1200 resolution (UXGA) or higher if they have the necessary equipment. Other recently available resolutions include oversize aspects like 1400 × 1050 SXGA+ and wide aspects like 1280 × 800 WXGA, 1440x900 WXGA+, 1680 × 1050 WSXGA+, and 1920 × 1200 WUXGA. A new more-than-HD resolution of 2560 × 1600 WQXGA was released in 30" LCD monitors in 2007. In 2010, 27" LCD monitors with the resolution 2560 × 1440 were released by multiple manufacturers including Apple, and in 2012 Apple introduced a 2880 × 1800 display on the MacBook Pro. Panels for professional environments, such as medical use and air traffic control, support resolutions up to 4096 × 2160.

Wednesday, February 27, 2013

The most popular 3D formats



  • 3D Studio Max 3DS
  • Wavefront obj
  • ply is the a computer file format known as the Polygon File Format or the Stanford Triangle Format. The format was principally designed by the Stanford graphics lab to store three dimensional data from 3D scanners. Can also be used as alternative to STL.
  • STL is a file format native to the stereolithography CAD software created by 3D Systems. This file format is supported by many other software packages; it is widely used for rapid prototyping and computer-aided manufacturing.
  • wrl (vrml)/x3d/x3dv. X3D is the successor of VRML, but VRML remains popular in open-source and academics.

Higher education in Saudi and Saudi students in western universities funded by government scholarships

Since the 1940s, Saudi Arabia has funded large-scale government scholarships for students to study abroad, significantly expanded in 2005 un...