Apple Macbook Pro M1 – Auto Change Brightness

Every time I use my Apple Macbook Pro M1 the brightness is automatically changed. It becomes very dimmed when I use the Macbook while on battery power.

Found the solution in Apple forum and put the steps in screenshots for easy for troubleshooting for other Macbooks users.

1) Go to battery preferences

apple macbook pro M1 - battery preference
apple macbook pro M1 – battery preference

2) If your Slightly dim the display while on battery power is checked, please uncheck it.

apple macbook pro M1 - checked slightly dim the display
apple macbook pro M1 – checked slightly dim the display
apple macbook pro M1 uncheck slightly dim the display
apple macbook pro M1 uncheck slightly dim the display

Watching Netflix & Youtube at Genting Permai using Unifi Air

I use Unifi Air as my internet broadband at Genting Permai. Why I use Unifi Air? I chose it because it is affordable and unlimited data. My usage is not that heavy just watching Netflix and Youtube.

Average Download and Upload Speed

If not so many concurrent users, the speed is reasonable. On average download speed is 20MB/s and average upload speed is 2MB/s.

unifi air download and upload speed at genting permai
unifi air download and upload speed at genting permai

No Buffering when Watch Netflix and Youtube

Payment from Nuffnang for My Advertisement Income

I put Nuffnang advertisement on my blog. I requested for pay out for my ads income.

I requested on 25th Nov 2020 and received the check on 16th January 2021. It took nearly 2 months to get the check.

Based on my experience with Nuffnang, its income not as good as before and better use Google AdSense. My blog rarely shows any Nuffnang advertisement maybe due to low traffic. Ha ha

nuffnang letter containing check
nuffnang letter containing check
nuffnang check from nuffnang
nuffnang check from nuffnang
nuffnang check received
nuffnang check received

Stream Movies from Ubuntu Shared Folder to Samsung Smart TV

Set Up Sharing Folder Service at Ubuntu

Install minidlna service

Configure /etc/minidlna.conf (sets WHICH FOLDERS to use AND who is using the service)

edit /etc/minidlna.conf :

Notes: for vim, press insert to edit the file, then press escape “:x” to save changes.

Configure the path & friendly name

minidlna conf - media path
minidlna conf – media path

minidlna conf - friendly name
minidlna conf – friendly name

Configure user:

minidlna - conf - user root
minidlna – conf – user root

Save the changes

Configure /etc/default/minidlna (sets WHO the service runs as)

Configure user as root

minidlna - conf - user root
minidlna – conf – user root

Save the changes

Restart minidlna service

Access the Folder at Samsung Smart TV

Go to input source, you will see friendly name that has been set.

samsung smart tv - source view ubuntu nas
samsung smart tv – source view ubuntu nas
samsung smart tv - folders inside the ubuntu nas
samsung smart tv – folders inside the ubuntu nas

Video on Accessing the Ubuntu NAS

References:

http://mylinuxtechcorner.blogspot.com/2013/09/smart-tv-streaming-from-ubuntu-nas.html
Running minidlna on Ubuntu

Google Adsense Verify Billing Address

I have Google Adsense account to generate some income for my blogs. After reaching certain amount Google will show notification that needs to verify billing address.

Billing Address Verification Notification

google adsense - notification to verify billing address
google adsense – notification to verify billing address

According to Google, they have sent the verification address letter on 8th January 2021. I received it today which is 10th February 2021. It took nearly 4 weeks ++.

google adsense - verify billing address
google adsense – verify billing address

Billing Address Verification Letter

I was happy when I received the verification letter. I told myself if I don’t receive it by this week. I will ask Google to resend the letter.

google adsense - letter front
google adsense – letter front
google adsense - letter back
google adsense – letter back
google adsense - letter inside code
google adsense – letter inside code

Verify The Billing Address by Entering the Code

Click verify and key in the code inside the letter. Upon success, it will show success status and the verification billing address widget will disappear.

google adsense - click verify
google adsense – click verify
google adsense - fill up and submit
google adsense – fill up and submit

Godot 3.2.3 Grid Movement Part 2/2

I converted this Godot Grid Movement Video Tutorial into textual tutorial because I feel it is much easier to follow textual tutorial.

This is Part 2, you can view Part 1 here.

What You Will Learn From This Godot Grid Movement Tutorial

  1. How to create player sprite that move in 2D grid
  2. Create Collision walls where the player sprite cannot pass through the wall

Part 2 – Player Sprite Moves within Walls

Create Walls

i. Add child node -> Add TileMap.
ii. Set Tile Set from empty to new Tile Set.
iii. Double click on new Tile Set to change to Resource tab.
iv. Click “+” add texture (add bottom left)
v. Use the default Godot icon as the wall.
vi. Make the Icon editor window bigger by clicking on the up arrow (bottom right)
vii. Zoom in the tile set by clicking “+” at top right.
viii. Click “New Single Tile” and click grid icon to enable the grid.
ix. Select the icon if selected yellow line will appear.
x. Change color to black by clicking the “Modulate”
xi. Change RGB color to 000000

godot grid movement - create tilemap
godot grid movement – create tilemap
godot grid movement - set tile set to new tile set
godot grid movement – set tile set to new tile set
godot grid movement - double click on new tile set to set the resources
godot grid movement – double click on new tile set to set the resources
godot grid movement - add the resource
godot grid movement – add the resource
godot grid movement - use default godot icon
godot grid movement – use default godot icon
godot grid movement - click up arrow bottom rigth to make the icon editor bigger
godot grid movement – click up arrow bottom rigth to make the icon editor bigger
godot grid movement - zoom in the icon
godot grid movement – zoom in the icon
godot grid movement - click new single tile and enable the grid
godot grid movement – click new single tile and enable the grid
godot grid movement - grid enabled
godot grid movement – grid enabled
godot grid movement - change color by clicking on modulate
godot grid movement – change color by clicking on modulate
godot grid movement - change color to black where RGB 000000
godot grid movement – change color to black where RGB 000000

Add Collision to The Wall Tile Set

i. Ensure tile set is still selected (yellow outline)
ii.Click “Collision”
iii. Click the square icon
iv. The select the region within the yellow line.
v. Icon color will change to turquoise if collision is properly set.

godot grid movement - add collision square
godot grid movement – add collision square

Create The Maze

i. Click on player sprite (to go back to player scene)
ii. You will see the TileMap is black now.
iii. Check the TileMap is 64×64
iv. Click on TileMap and start populating the walls to create your own maze.

godot grid movement - wall is black
godot grid movement – wall is black
godot grid movement - ensure size is 64x64
godot grid movement – ensure size is 64×64
godot grid movement - create maze
godot grid movement – create maze

Add RayCast2D to Player Sprite

i. Right click on Player sprite -> Add child node
ii. Select RayCast2D
iii. Set the RayCast2D
– Position x = 32, y = 32 (to make centre (red plus sign))
– Enable is on
– Cast to y = 32 (to make the down blue arrow to just at the edge of the player sprite)

godot grid movement - create raycast2D
godot grid movement – create raycast2D
godot grid movement - set the raycast2D
godot grid movement – set the raycast2D

Update the Player Script

i. Click on the script icon near Player sprite
ii. Update the script based on the code below.
iii. Ensure script indentation is correct.

godot grid movement - open script
godot grid movement – open script

godot grid movemen t- update script with raycast2d p1
godot grid movemen t- update script with raycast2d p1

godot grid movemen t- update script with raycast2d p2
godot grid movemen t- update script with raycast2d p2

Run The Game

i. Click Play icon (top right)
ii. Now you can see the player sprite can’t pass through the walls.

Godot 3.2.3 Grid Movement Part 1/2

I converted this Godot Grid Movement Video Tutorial into textual tutorial because I feel it is much easier to follow textual tutorial.

What You Will Learn From This Godot Grid Movement Tutorial

  1. How to create player sprite that move in 2D grid
  2. Create Collision walls where the player sprite cannot pass through the wall

Part 1 – Make the Sprite Move

Create Node

i. Click “Other Node”
ii. Then select “Node”

godot grid movement - create node
godot grid movement – create node
godot grid movement - select node
godot grid movement – select node

Create Sprite

i. Right click “Node” -> Add child node
ii. Select Sprite
iii. Drag and drop icon.png into sprite texture at right panel
iv. At sprite panel, untick centered on
v. Click “Scene” (top menu left) then save scene as player.

godot grid movement - create sprite
godot grid movement – create sprite
godot gride movement - drag n drop icon to sprite texture
godot gride movement – drag n drop icon to sprite texture
godot grid movement - untick centered
godot grid movement – untick centered
godot grid movement - save scene as player
godot grid movement – save scene as player

Add Script to the Player sprite

i. Right click on Sprite -> Attach Script
ii. Click create on when the window open.
iii. Remove all codes except “extends Sprite”
iv. Copy the code below and paste to the script. Ensure indentation is correct.

godot grid movement - attach script
godot grid movement – attach script
godot grid movement - create script
godot grid movement – create script

godot grid movement - remove all codes except extends Sprite
godot grid movement – remove all codes except extends Sprite

godot grid movement - script part 1
godot grid movement – script part 1

godot grid movement - script part 2
godot grid movement – script part 2

Run the Scene

i. Click “Play” (top right) or F5 to run the scene.
ii. Move your arrow left, right, up and down to move the player sprite.

Part 2 Godot Grid Movement Tutorial – Make The Collision Wall and Combined with Player Sprite

Unifi Mesh Wifi M4 TP Link Set Up

I took the Unifi Mesh Wifi package of RM15 per month for 24 months. It was quite easy to set up just need to install mobile application Deco then follow its step by step instruction.

You can refer this document by TP Link to understand how to set it up.

I only include part not covers by the document which is the button to add new Wifi network. You just need to click on the “+” on right top.

TP Link Mesh Wifi Deco App - add new mesh
TP Link Mesh Wifi Deco App – add new mesh

Then you can follow the step by step instruction.

Below is example of pulsing blue.

 

Resipi Ayam atau Mutton Stuffing for Taco, Wraps or Burritos

 

Tortillas Wrap
Tortillas Wrap

Bahan – Bahan:

  1.  Bawang besar (potong dadu)
  2. Bawang putih (mayang halus)
  3. cili blend / cili boh
  4. rempah kari + serbuk cili + air (mix)
  5. jintan putih
  6. Serbuk ketumbar
  7. parsley herb
  8. white pepper + salt
  9. perasa: sos tomato, sos cili, kicap and tiram.
  10. Minced mutton atau ayam cincang.

 

Herbs - parsley, cumin, coriander
Herbs – parsley, cumin, coriander

Tumis macam biasa bahan-bahan di atas mengikut turutan nombor dimana akhir sekali adalah meletakkan ayam atau mutton minced sehingga bahan utama protein tersebut masak secukupnya.

Side filling / toppings

Preparation for Taco fillings
Preparation for Taco fillings
  1. capsicum
  2. japanese cucumber
  3. carrot
  4. shredded cheese
  5. lettuce
  6. rocket leaf
  7. Baby tomato
  8. Thousand island sauce
  9. Honey Mustard

(you can choose to slice match size or any size you prefer)

preheat Taco shells in oven
preheat Taco shells in oven
Baked shredded cheese till melt before putting veggies
Baked shredded cheese till melt before putting veggies

you can choose any type of – WRAPS/ BURRITO / TORTILLAS / CORN WRAPS (TACO) mengikut selera. Since my youngest son been dreaming eating TACO… so i made few options because my 2nd son prefer to eat Burritos.

 

 

Readymade Taco Shells
Readymade Taco Shells

Lain orang lain kesukaan tetapi yang penting you can just made one time cook for the same fillings.

Chicken and Mutton Burritos
Chicken and Mutton Burritos

 

buritos kambing
buritos kambing