Dagger Android Tutorial 1

How to do dagger-android

Guowei Lv

2 minute read

Warning: Google thinks you should avoid dagger-android for new projects. Watch Here But, if you are using it now, here are some notes on how to approach it. This is basically a text version of these videos Application Component Pretty much every app will have an application component, whose scope will be the lifetime of the application. First, create the AppComponent //1. Include this 'AndroidSupportInjectionModule', this is required @Component(modules = {AndroidSupportInjectionModule.

Guowei Lv

1 minute read

Just got the Thinkpad X1 Carbon Gen 7 as work laptop. Installed manjaro and noticed that there is a clipping noise when using the headphone jack. How to fix: Install alsa-tools Create a script in /usr/bin #!/bin/bash hda-verb /dev/snd/hwC0D0 0x20 SET_COEF_INDEX 0x67 hda-verb /dev/snd/hwC0D0 0x20 SET_PROC_COEF 0x3000 Create a new file in /etc/systemd/system/ [Unit] Description=Scriptssh-keygen -t rsa -b 4096 -C "your_email@example.com" [Service] ExecStart=/usr/bin/script [Install] WantedBy=multi-user.

SICP Goodness - Stream(11)

Solving differential equations

Guowei Lv

3 minute read

Do you think Computer Science equals building websites and mobile apps? Are you feeling that you are doing repetitive and not so intelligent work? Are you feeling a bit sick about reading manuals and copy-pasting code and keep poking around until it works all day long? Do you want to understand the soul of Computer Science? If yes, read SICP!!! In last article we talked about the integral procedure.