Every opacity value hex code

I often work with HEX colors and want to apply some alpha to them.

Calculating the exact alpha HEX value is tedious job so here it is: the complete list of every possible opacity value in HEX

100% — FF
99% — FC
98% — FA
97% — F7
96% — F5
95% — F2
94% — F0
93% — ED
92% — EB
91% — E8
90% — E6
89% — E3
88% — E0
87% — DE
86% — DB
85% — D9
84% — D6
83% — D4
82% — D1
81% — CF
80% — CC
79% — C9
78% — C7
77% — C4
76% — C2
75% — BF
74% — BD
73% — BA
72% — B8
71% — B5
70% — B3
69% — B0
68% — AD
67% — AB
66% — A8
65% — A6
64% — A3
63% — A1
62% — 9E
61% — 9C
60% — 99
59% — 96
58% — 94
57% — 91
56% — 8F
55% — 8C
54% — 8A
53% — 87
52% — 85
51% — 82
50% — 80
49% — 7D
48% — 7A
47% — 78
46% — 75
45% — 73
44% — 70
43% — 6E
42% — 6B
41% — 69
40% — 66
39% — 63
38% — 61
37% — 5E
36% — 5C
35% — 59
34% — 57
33% — 54
32% — 52
31% — 4F
30% — 4D
29% — 4A
28% — 47
27% — 45
26% — 42
25% — 40
24% — 3D
23% — 3B
22% — 38
21% — 36
20% — 33
19% — 30
18% — 2E
17% — 2B
16% — 29
15% — 26
14% — 24
13% — 21
12% — 1F
11% — 1C
10% — 1A
9% — 17
8% — 14
7% — 12
6% — 0F
5% — 0D
4% — 0A
3% — 08
2% — 05
1% — 03
0% — 00

How to use it:
#000000 – Black with ought opacity
#17000000 – Black with 9% opacity

If you liked this article and think it is useful use the buttons below.

How to Reset MAC OS X DOCK to DEFAULT SETTINGS

First launch the Terminal app, located in the Utilities folder under Applications, or just hit Cmd + Space and type “Terminal“.

Type (copy & paste) the command below:

defaults delete com.apple.dock; killall Dock

Then hit return.

Your Dock will now be new as the day it shipped. You are free to mess it up again 🙂

If you liked this article and think it is useful use the buttons below.

Retro FC Plus 168 in 1 games list

I recently felt nostalgic and wanted to play some of the 8-bit NES games from my childhood. Having an emulator such as OpenEMU that can run NES roms is great but owning a physical device is even better.

Thanks to AliExpress I acquired a portable 8-bit game console with 168 games build in. It’s clone of Game Boy Mini called Coolbaby RS-6 A or Retro FC Plus known by the user manual. It’s a cool little gadget which I will review in details later.

Coolbaby RS-6 A Retro Portable Mini Handheld Game Console 8-Bit 3.0 Inch Color LCD Kids Color Game Player Built-in 168 games
Coolbaby RS-6 A Retro Portable Mini Handheld Game Console 8-Bit 3.0 Inch Color LCD Kids Color Game Player Built-in 168 games

The complete list of 8-bit games was nowhere to be found so here it is or at least this is what came loaded on my device:

  1. Kung Fu Panda
  2. Jackal
  3. Rush n Attack
  4. Turtle Fighter
  5. Turtles 2
  6. Silk Worm
  7. Captain American
  8. Contra
  9. Super Contra
  10. Contra Force
  11. Double Dragon 2
  12. Double Dragon 3
  13. Hot Blood Story
  14. Hot Blood Wrestle
  15. Hot Blood Soccer
  16. Snow Bros
  17. Guerrilla War
  18. Chip Dale 1
  19. Top Gun Dual Fight
  20. World Cup Soccer
  21. Tetris 2
  22. Tank A1990
  23. Street Fighter V
  24. Tiny Toon 2
  25. Super Mario Bros
  26. Super Mario Bros 3
  27. Super Mario Bros 6
  28. Super Mario 14
  29. Adventure Island
  30. Adventure Island 2
  31. Cross Fire
  32. Jackie Chan
  33. Jungle Book
  34. Juuouki
  35. Kick Master
  36. Little Nemo Dream
  37. Mighty Final Fight
  38. Ninja Gaiden 2
  39. Ninja Gaiden 3
  40. Mitsume Ga Tooru
  41. Plants Vs Zombies
  42. Power Blade 2
  43. Batman
  44. Rockman 3
  45. Spider Man
  46. Tom Jerry
  47. Pacmania
  48. RBI Baseball
  49. 1942
  50. 80 Days
  51. Adventures Of Dino
  52. Adventures Of Lolo
  53. Adventures Of Lolo 2
  54. Aether Thgher
  55. Aladdin 3
  56. Angry Bird
  57. Argus
  58. Arkanoid
  59. Astro Robo Sasa
  60. Badminton
  61. Ballistic Hayhen
  62. Baltron
  63. Bananna
  64. Porter
  65. Bicycle Race
  66. Bokosuka Wars
  67. Bomb
  68. Buggy Popper
  69. Burai Fighter
  70. Bwings
  71. Challenger
  72. Chinese Chess
  73. Chubby Cherub
  74. Boat Race
  75. Defiance
  76. Destry I
  77. Dig Dug 2
  78. Dough Boy
  79. Dragon
  80. Dr. Mario
  81. Duck
  82. Elevator Action
  83. Exed Exes
  84. F1 Race
  85. Family Jockey
  86. Fire Dragon
  87. Flappy
  88. Flipull
  89. Football
  90. Galg
  91. Geimos
  92. Goodhand
  93. Goonies
  94. Gradius
  95. Gyrodine
  96. Gyromite
  97. Gyruss
  98. Harry Potter
  99. Hassle
  100. Hello Kitty
  101. Hokutono Ken
  102. Hovercraft
  103. Hydlide
  104. Ice Hockey
  105. Keroppi No Diabo
  106. Kung Fu
  107. Ladangel
  108. Lot Lot
  109. Mach Rider
  110. MagMax
  111. Metro Cross
  112. Mickey Mouse
  113. Mighty Bomb Jack
  114. Ms Pac Man
  115. Music Moment
  116. Ninja 2
  117. Pachi Com
  118. Pac Land
  119. Paperboy
  120. Pooyan
  121. Power Soccer
  122. The Legent Of Ka
  123. Circus Charlie
  124. Solomon S Key
  125. Spartan X
  126. TwinBee
  127. Donkey Kong
  128. Donkey Kong Jr
  129. Donkey Kong 3
  130. Bomber Man
  131. ExciteBike
  132. Front Line
  133. Galaga
  134. Galaxian
  135. Lode Runner
  136. Lode Runner 2
  137. Macross
  138. Tennis
  139. Ice Climber
  140. Dig Dug
  141. Pinball
  142. Space Invaders
  143. Super Chinese
  144. Field Combat
  145. Spy Hunter
  146. Spar
  147. Star Force
  148. Star Gate
  149. Street Frenzy
  150. Super Elf
  151. Surface Fire
  152. Swirl
  153. Tactful Monkey
  154. TNT (Bomberman with skin)
  155. Top Shot (Galaga with skin)
  156. UFO Race
  157. Under World
  158. Urban Champion
  159. Village Protector
  160. WarpMan
  161. Warrior Chase
  162. Warship
  163. What s up
  164. Wrestle
  165. Wrestling champion
  166. Yie Ar Kung Fu
  167. Zero Gravity
  168. Zippy Race
If you liked this article and think it is useful use the buttons below.

Make a directory writable by Apache on Mac OS X

Just a quick reference on how to make a directory writable by OSX integrated Apache web server.

1. Set the ownership of your desired directory/file to the _www user:

sudo chown -R _www:staff path/to/folder/

2. Set the permissions so that the _www can write in the directory/file without giving permissions to everyone else:

sudo chmod -R 755 path/to/folder

Happy coding 🙂

If you liked this article and think it is useful use the buttons below.

Recompile with -Xlint in Android studio

Staying out of deprecated methods is useful, so your app won’t run in some compatibility mode on the device. Plus having clean build output is also nice 🙂

While building an app, Gradle may produces some warnings telling you that some input files are using unchecked or unsafe operations or they are overriding a deprecated API.

Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

As the message suggest, we should recompile with -Xlint to get more details about the warnings.

In the app level build.gradle file

app level build.gradle file

we should add a section labelled  allprojects{}(if not already present).

In the allprojects{} section we will instruct Gradle to apply custom compiler arguments for each task involving  Java code compilation.

allprojects {
    tasks.withType(JavaCompile) {
        options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
    }
}

Now each time we build our app we will get detailed output of the unchecked or unsafe operations and the deprecated API we are using.

Tip: if for some reason we want to continue using a deprecated API and just suppress the warnings, we could annotate the deprecated method with the

@SuppressWarnings("deprecation")

annotation.

If you liked this article and think it is useful use the buttons below.